/* =====================
   RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

/* =====================
   VARIÁVEIS
===================== */
:root {
  --terracota: #893f0a;
  --offwhite: #f3ede9;
  --verde: #5d644f;
  --dark: #2b2b2b;
}

/* =====================
   BASE
===================== */
body {
  font-family: "Montserrat", sans-serif;
  background: var(--offwhite);
  color: var(--dark);
  line-height: 1.8;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =====================
   HEADER – CORRIGIDO E PROFISSIONAL
===================== */
.header {
  background: var(--offwhite);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1px 0;
}

.header-inner {
  display: flex;
  justify-content: center; /* centraliza tudo */
  align-items: center;
  gap: 60px; /* espaço entre logo e menu */
  flex-wrap: wrap; /* evita corte */
}

/* LOGO */
.logo {
  max-height: 80px; /* NUNCA corta */
  width: auto;
  display: block;
}

/* NAV */
.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--verde);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

/* EFEITO HOVER */
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--terracota);
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.nav a:hover {
  color: var(--terracota);
}

.nav a:hover::after {
  width: 100%;
  left: 0;
}

/* =====================
   HERO
===================== */
.hero {
  height: 100vh;
  background-image: url("_DSC6602.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* overlay da imagem */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.25) 70%,
    rgba(243, 237, 233, 0.6) 85%,
    rgba(243, 237, 233, 1) 100%
  );
}

/* container texto */
.hero-text {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 18px;
  max-width: 900px;
}

/* =====================
   CABEÇALHO DO HERO
===================== */
.hero-header {
  margin-bottom: 28px;
}

/* NOME */
.hero-name {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px; /* cola no subtítulo */
}

/* SUBTÍTULO (CRP & Doula) */
.hero-role {
  display: block;
  margin-top: 0; /* garante que não afaste */
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  opacity: 0.92;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 20px; /* mesmo tamanho do poema */
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 12px;
}

.hero-poem {
  font-size: 17px; /* um pouco menor que antes (era 22px) */
  line-height: 1.8;
  margin: 0 auto;
  max-width: 420px;
}
/* =====================
   CTA FINAL
===================== */
.hero-cta {
  display: inline-block;
  margin-top: 28px;
  font-style: italic;
  font-size: 16px;
  opacity: 0.92;
  cursor: pointer;
  position: relative;
}

/* underline fino */
.hero-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
}

/* hover sutil */
.hero-cta:hover {
  opacity: 0.75;
}

/* =====================
   ANIMAÇÃO HERO
===================== */
.hero-name,
.hero-role,
.hero-title,
.hero-poem,
.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.hero-role {
  animation-delay: 0.15s;
}

.hero-cta {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   RESPONSIVO
===================== */
@media (max-width: 768px) {
  .hero {
    height: 90vh;
  }

  .hero-name {
    font-size: 34px;
  }

  .hero-role {
    font-size: 13px;
  }

  .hero-title {
  font-size: 13px;
}

.hero-poem {
  font-size: 17px;
}
  .hero-cta {
    font-size: 14px;
  }
}

/* =====================
   SOBRE
===================== */
.sobre {
  background: linear-gradient(
    to bottom,
    #f3ede9 0%,
    #efe5dd 40%,
    #d7c6b7 100%
  );
  padding: 120px 0;
}

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* FOTO SOBRE MIM — RETRATO */
.sobre-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(93, 100, 79, 0.3);
}

.sobre-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sobre-text h2 {
  font-family: "Playfair Display", serif;
  color: var(--terracota);
  font-size: 34px;
  margin-bottom: 20px;
}

/* =====================
   SERVIÇOS
===================== */
.servicos {
  padding: 100px;
}

.servicos h2 {
  text-align: center;
  font-family: "Playfair Display", serif;
  margin-bottom: 40px;
}

.servico {
  background: #fff;
  border: 1px solid var(--verde);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.servico:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.servico-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.servico-header h3 {
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--verde);
  background: transparent;
  color: var(--verde);
  cursor: pointer;

  /* centralização REAL */
  display: grid;
  place-items: center;

  /* evita o + ficar torto */
  line-height: 0;
  padding: 0;

  /* remove estilo default ios */
  appearance: none;
  -webkit-appearance: none;

  font-size: 22px;
  font-weight: 400;

  /* deixa o clique macio no iPhone */
  -webkit-tap-highlight-color: transparent;
}

/* AJUSTE FINO: sobe 1px (iPhone) */
.toggle {
  transform: translateY(-1px);
}

.servico.active .toggle {
  transform: translateY(-1px) rotate(45deg);
}

.servico-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.4s ease;
}

.servico.active .servico-content {
  max-height: 500px;
  opacity: 1;
}

.servico-content p {
  margin-top: 16px;
  font-size: 15px;
}

/* =====================
   CONTATO
===================== */
.contato {
  padding: 90px 0;
  background: #fff;
  text-align: center;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background: var(--terracota);
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
}

/* =====================
   MAPA
===================== */
.mapa {
  padding: 100px 0;
  background: #fff;
}

.mapa-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.mapa iframe {
  width: 100%;
  height: 400px;
  border-radius: 16px;
}

.mapa-box {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* =====================
   FOOTER
===================== */
.footer {
  padding: 40px 0;
  text-align: center;
  font-size: 15px;
}

/* =====================
   WHATSAPP
===================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 20px;
  }

  .logo {
    max-height: 70px;
  }

  .nav {
    gap: 20px;
  }

  .nav {
    display: flex;
    gap: 16px;
  }

  .hero {
    height: 90vh;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 18px;
  }

  /* SOBRE MOBILE — FOTO AO LADO */
  .sobre {
    padding: 80px 0;
  }

  .sobre-inner {
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: start;
  }

  .sobre-img {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
  }

  .sobre-text h2 {
    font-size: 26px;
  }

  .sobre-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .servicos {
    padding: 60px 20px;
  }

  .contato {
    padding: 60px 20px;
  }

  .mapa {
    padding: 60px 0;
  }

  .mapa-inner {
    grid-template-columns: 1fr;
  }

  .mapa iframe {
    height: 300px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  /* SOBRE – MOBILE */
  .sobre-inner {
    display: flex;
    flex-direction: column; /* empilha */
    gap: 32px;
  }

  /* TEXTO PRIMEIRO */
  .sobre-text {
    order: 1;
  }

  /* FOTO EMBAIXO */
  .sobre-img {
    order: 2;
    max-width: 260px; /* controla tamanho da foto */
    margin: 0 auto; /* centraliza */
  }
}

/* =====================
   SERVIÇOS (IMAGEM AO EXPANDIR)
===================== */

.servico-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.6s ease,
    opacity 0.4s ease;
}

.servico.active .servico-content {
  max-height: 900px; /* maior por causa da imagem */
  opacity: 1;
}

/* corpo expandido com grid */
.servico-body {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

/* imagem */
.servico-img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(93, 100, 79, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.servico-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* texto */
.servico-text p {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* animação suave da imagem */
.servico-img {
  opacity: 0;
  transform: translateY(10px);
  transition: 0.5s ease;
}

.servico.active .servico-img {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {
  .servico-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* imagem ocupa mais espaço no card */
  .servico-img {
    border-radius: 16px;
    width: 100%;
  }

  .servico-img img {
    height: 280px; /* ou 320px */
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* deixa texto mais colado e “natural” */
  .servico-text p {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* =====================
   SERVIÇOS – DESKTOP (imagem direita + texto embaixo do título)
===================== */
@media (min-width: 769px) {
  .servico-body {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 0.6fr 0.75fr;
    gap: 28px;
    align-items: start;
  }

  /* texto ocupa bem a largura e não vira parede */
  .servico-text p {
    font-size: 15px;
    line-height: 1.9;
    max-width: 500px; /* evita ficar largo demais */
    margin: 0;
  }

  /* imagem na direita com altura boa */
  .servico-img {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(93, 100, 79, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }

  .servico-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* =====================
   MEUS PROJETOS
===================== */

.projetos {
  padding: 110px 0;
  background: linear-gradient(180deg, #fff 0%, #f3ede9 100%);
}

.projetos-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.projetos-header h2 {
  font-family: "Playfair Display", serif;
  color: var(--terracota);
  font-size: 40px;
  margin-bottom: 10px;
}

.projetos-header p {
  font-size: 16px;
  color: rgba(43, 43, 43, 0.85);
  line-height: 1.8;
}

.projetos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

/* Card */
.projeto-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px;

  border: 1px solid rgba(93, 100, 79, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* overlay branco translúcido */
.projeto-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75); /* controla transparência aqui */
  z-index: 1;
}

/* garante que o conteúdo fique acima */
.projeto-card > * {
  position: relative;
  z-index: 2;
}

.projeto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.08);
}

.projeto-topo h3 {
  font-size: 22px;
  margin-bottom: 6px;
  font-weight: 600;
}

.projeto-sub {
  display: block;
  font-size: 14px;
  color: rgba(43, 43, 43, 0.75);
}

/* Badges */
.projeto-badges {
  margin: 18px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(93, 100, 79, 0.35);
  color: rgba(43, 43, 43, 0.85);
  background: rgba(255, 255, 255, 0.75);
}

.badge-ok {
  border-color: rgba(137, 63, 10, 0.45);
  color: var(--terracota);
}

.badge-warn {
  border-color: rgba(43, 43, 43, 0.25);
  color: rgba(43, 43, 43, 0.7);
}

/* Texto */
.projeto-texto {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(43, 43, 43, 0.9);
  margin-bottom: 22px;
}

.projeto-texto strong {
  font-weight: 600;
  color: var(--terracota);
}

/* Ações */
.projeto-acoes {
  display: flex;
  flex-direction: column; /* empilha */
  gap: 12px;
  align-items: flex-start; /* mantém alinhado à esquerda */
}

/* Botões premium (reaproveita seu .btn, mas melhora aqui) */
.btn {
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--terracota);
  color: #fff;
  border: 1px solid var(--terracota);
}

.btn-outline {
  background: transparent;
  color: rgba(43, 43, 43, 0.95);
  border: 1px solid rgba(93, 100, 79, 0.5);
}

.btn-outline:hover {
  opacity: 0.85;
}

/* Nota */
.projeto-nota {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(43, 43, 43, 0.7);
}

/* =====================
   RESPONSIVO
===================== */
@media (max-width: 768px) {
  .projetos {
    padding: 80px 0;
  }

  .projetos-header h2 {
    font-size: 30px;
  }

  .projetos-grid {
    grid-template-columns: 1fr;
  }

  .projeto-card {
    padding: 22px;
  }
}

/* =====================
   FAQ
===================== */
.faq {
  padding: 110px 0;
  background: #fff;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-header h2 {
  font-family: "Playfair Display", serif;
  color: var(--terracota);
  font-size: 40px;
  margin-bottom: 10px;
}

.faq-header p {
  font-size: 16px;
  color: rgba(43, 43, 43, 0.8);
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

/* Card FAQ */
.faq-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(93, 100, 79, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.04);
}

/* Botão da pergunta */
.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  font-size: 16px;
  font-weight: 500;
  text-align: left;
  color: rgba(43, 43, 43, 0.95);
}

/* ícone */
.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(93, 100, 79, 0.55);
  color: rgba(43, 43, 43, 0.8);
  flex-shrink: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Resposta */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.35s ease;
  padding: 0 20px;
}

.faq-answer p {
  margin: 0;
  padding-bottom: 14px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(43, 43, 43, 0.88);
}

.faq-answer p:first-child {
  padding-top: 2px;
}

.faq-answer strong {
  font-weight: 600;
  color: var(--terracota);
}

/* Aberto */
.faq-item.active .faq-answer {
  max-height: 600px;
  opacity: 1;
  padding-bottom: 18px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* vira um X elegante */
}

/* CTA */
.faq-cta {
  margin-top: 40px;
  text-align: center;
}

/* Responsivo */
@media (max-width: 768px) {
  .faq {
    padding: 80px 0;
  }

  .faq-header h2 {
    font-size: 30px;
  }

  .faq-question {
    font-size: 15px;
  }
}

/* ===================== 
   SERVIÇOS EM 2 POR LINHA (PC)
===================== */

/* mobile: 1 por linha */
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* desktop: 2 por linha */
@media (min-width: 769px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    align-items: start;
  }

  /* tira margin-bottom pq o gap já resolve */
  .servico {
    margin-bottom: 0 !important;
  }

  /* quando abrir, ocupa a linha inteira */
}

/* ===========================
   SERVIÇO ABERTO (PC) COM IMAGEM FULL + TEXTO EM CIMA
=========================== */
@media (min-width: 769px) {
  /* o body vira "palco" */
  .servico.active .servico-body {
    position: relative;
    display: block; /* tira o grid */
    min-height: 520px;
  }

  /* imagem ocupa o card todo */
  .servico.active .servico-img {
    position: absolute;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
  }

  .servico.active .servico-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  /* uma camada escura (ou clara) pra texto ficar legível */
  .servico.active .servico-body::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.25) 55%,
      rgba(0, 0, 0, 0.1) 100%
    );
    border-radius: 16px;
  }

  /* texto por cima */
  .servico.active .servico-text {
    position: absolute;
    z-index: 3;
    left: 22px;
    right: 22px;
    bottom: 22px;

    padding: 18px 18px;
    border-radius: 14px;

    /* efeito vidro (bonito) */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .servico.active .servico-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.7;
    max-width: 92%;
  }

  .servico.active .servico-text strong {
    color: #fff;
  }
}

/* ===== FIX HEADER MOBILE (iPhone) ===== */
.header {
  padding-top: env(safe-area-inset-top);
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
    flex-wrap: nowrap; /* evita quebrar bagunçado */
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto; /* rolagem horizontal */
    white-space: nowrap; /* não quebra */
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 10px;
    gap: 18px;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 15px;
  }
}

/* ==========================
   "ZOOM OUT" MOBILE (iPhone)
========================== */
@media (max-width: 430px) {
  html {
    font-size: 14px; /* antes: 16px -> reduz tudo */
  }

  .container {
    width: 92%;
  }

  /* Header menor */
  .logo {
    max-height: 56px;
  }

  .nav a {
    font-size: 14px;
  }

  /* Hero menor e mais largo visualmente */
  .hero-name {
    font-size: 30px;
  }

  .hero-title {
    font-size: 16px;
  }

  .hero-poem {
    font-size: 16px;
    line-height: 1.7;
  }

  /* Seções menos "gordas" */
  .sobre {
    padding: 60px 0;
  }

  .servicos {
    padding: 50px 16px;
  }

  .projetos,
  .faq {
    padding: 70px 0;
  }
}

/* MENU MOBILE COM SCROLL (não quebra em 2 linhas) */
@media (max-width: 768px) {
  .nav {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 8px;
  }

  .nav a {
    flex: 0 0 auto;
  }
}

/* =====================================
   HEADER MOBILE - NÃO QUEBRA E NÃO CORTA
===================================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .logo {
    max-height: 58px;
  }

  .nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto; /* scroll lateral */
    white-space: nowrap; /* impede quebrar linha */
    -webkit-overflow-scrolling: touch;
    gap: 18px;
    padding: 6px 8px 10px;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 15px;
    padding: 6px 0;
  }

  .header {
    padding: 6px 0;
  }
}

/* =========================================
   NO MOBILE: texto NÃO fica por cima da imagem
========================================= */
@media (max-width: 768px) {
  /* volta layout normal (sem absolute) */
  .servico.active .servico-body {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .servico.active .servico-img {
    position: relative;
    inset: auto;
  }

  .servico.active .servico-img img {
    height: 260px; /* ajuste: 240~320 */
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
  }

  /* remove a camada escura do overlay */
  .servico.active .servico-body::after {
    display: none;
  }

  /* texto volta pra baixo */
  .servico.active .servico-text {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;

    margin-top: 14px;
    padding: 0;

    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
  }

  .servico.active .servico-text p {
    color: var(--dark);
    font-size: 14px;
    line-height: 1.7;
  }

  .servico.active .servico-text strong {
    color: var(--terracota);
  }
}

/* =========================================
   FIX IOS: serviços SEM overlay no mobile
   (força sobrepor regras duplicadas)
========================================= */
@media (max-width: 768px) {
  .servico.active .servico-body {
    display: block !important;
    min-height: auto !important;
  }

  .servico.active .servico-img {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
  }

  .servico.active .servico-img img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    object-position: center 35% !important;
    display: block !important;
  }

  /* remove o overlay escuro */
  .servico.active .servico-body::after {
    display: none !important;
    content: none !important;
  }

  .servico.active .servico-text {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2 !important;

    margin-top: 14px !important;
    padding: 0 !important;

    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
  }

  .servico.active .servico-text p {
    color: var(--dark) !important;
  }

  .servico.active .servico-text strong {
    color: var(--terracota) !important;
  }
}

@media (max-width: 768px) {
  .servico-header h3 {
    font-size: 16px !important;
    white-space: nowrap;
  }

  .servico-header {
    gap: 16px; /* afasta do botão */
  }

  .toggle {
    flex-shrink: 0; /* impede o botão de esmagar */
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .logo {
    max-height: 58px;
  }

  /* MENU: SEM SCROLL, QUEBRA EM 2 LINHAS */
  .nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* permite quebrar */
    white-space: normal; /* permite quebrar */
    overflow-x: hidden; /* não deixa rolar */
    gap: 10px 16px; /* linha/coluna */
    padding: 6px 0 10px;
  }

  .nav a {
    font-size: 13px;
    padding: 3px 0;
  }
}

@media (max-width: 768px) {
  /* garante que a seção não empurre para o lado */
  .servicos .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* cards ocupam 100% certinho */
  .servicos-grid {
    width: 100% !important;
    margin: 0 auto !important;
  }

  .servico {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 18px !important; /* menor que 24px */
  }
}

@media (max-width: 768px) {
  .servicos {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .servicos .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin: 0 auto !important;
  }

  .servicos-grid {
    margin: 0 auto !important;
  }

  .servico {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 768px) {
  .hero {
    background-position: 60% center; /* puxa a imagem um pouco pra esquerda */
  }
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1; /* evita o texto descer */
  padding: 0; /* garante centro real */
  font-size: 22px; /* opcional: aumenta levemente */
  font-weight: 400;
}

@supports (-webkit-touch-callout: none) {
  .toggle {
    transform: translateY(-2px);
  }
  .servico.active .toggle {
    transform: translateY(-2px) rotate(45deg);
  }
}

/* =========================
   FIX + CENTRALIZADO (SERVIÇOS)
========================= */
.toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--verde);
  background: transparent;

  width: 36px;
  height: 36px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  font-size: 22px;
  line-height: 1;
  padding: 0;

  font-family: "Montserrat", sans-serif;
  font-weight: 400;

  color: var(--verde);
  cursor: pointer;
}

/* melhora no iOS especificamente */
.toggle::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* =========================
   HEADER MOBILE 1 LINHA
========================= */
@media (max-width: 768px) {
  .nav {
    flex-wrap: nowrap !important; /* NÃO deixa quebrar linha */
    justify-content: center;
    overflow-x: hidden; /* não deixa rolar */
    gap: 12px !important; /* diminui espaço entre links */
  }

  .nav a {
    font-size: 12px !important; /* diminui a fonte */
    padding: 2px 0 !important;
    letter-spacing: -0.3px; /* “aperta” um pouco */
  }
}

/* =====================
   RESPONSIVO
===================== */
@media (max-width:768px){

  .header-inner { flex-direction:column; gap:12px; }

  .nav {
    flex-wrap:wrap;
    justify-content:center;
    gap:10px 16px;
  }

  .hero { height:90vh; background-position:60% center; }

  .hero-name { font-size:34px; }
  .hero-role { font-size:13px; }
  .hero-title { font-size:16px; }
  .hero-poem { font-size:16px; }

  .sobre-inner { grid-template-columns:1fr; }

  .mapa-inner { grid-template-columns:1fr; }

  .whatsapp-float {
    width:52px;
    height:52px;
    right:16px;
    bottom:16px;
  }
}

/* AMARÉ */
.projeto-card:nth-child(1) {
  background-image: url("amare_foto.jpeg");
}

/* ÂMAGO */
.projeto-card:nth-child(2) {
  background-image: url("foto_amago.jpeg");
}

section {
  position: relative;
  z-index: 1;
}

.section-transition {
  position: relative;
}

.section-transition::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(243, 237, 233, 0),
    rgba(243, 237, 233, 1)
  );
  pointer-events: none;
}

