/* ═══════════════════════════════════════════════════════
   style.css — Dra. Daniele Bica Madalozzo
   estrabismo.med.br

   NOTA TIPOGRÁFICA:
   "Ferly" não está disponível no Google Fonts.
   Utilizando "Playfair Display" (serif elegante) como substituta.
   Para ativar Ferly: troque --font-display para
   'Ferly', 'Playfair Display', serif  e importe via @font-face.
═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  /* Paleta fornecida pelo cliente */
  --gold:        #bc9b73;
  --brown-mid:   #8a6745;
  --sand-light:  #e3dacc;
  --brown-dark:  #503621;

  /* Derivadas */
  --white:       #ffffff;
  --gold-hover:  #a5875f;
  --text-body:   #2c1a0c;
  --text-muted:  #7a6555;
  --border:      rgba(188, 155, 115, 0.25);

  /* Tipografia */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Espaçamento */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 5rem;

  /* Layout */
  --container-max: 1160px;
  --container-px:  1.25rem;

  /* Bordas */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-pill: 50px;

  /* Sombras */
  --shadow-xs: 0 1px 4px rgba(80, 54, 33, 0.07);
  --shadow-sm: 0 2px 10px rgba(80, 54, 33, 0.09);
  --shadow-md: 0 4px 22px rgba(80, 54, 33, 0.13);
  --shadow-lg: 0 8px 40px rgba(80, 54, 33, 0.18);

  /* Transições */
  --ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ─────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: inherit;
}

address { font-style: normal; }


/* ─────────────────────────────────────────
   3. TIPOGRAFIA
───────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.22;
  color: var(--brown-dark);
  font-weight: 500;
}

h1 { font-size: clamp(1.7rem, 5.5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.45rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; font-family: var(--font-body); letter-spacing: 0.03em; }

p {
  margin-bottom: var(--sp-3);
  line-height: 1.75;
}
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--brown-dark); }


/* ─────────────────────────────────────────
   4. UTILITÁRIOS
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); font-size: 0.9rem; }

section { padding-block: var(--sp-7); }

/* Cores de fundo de seções */
.section--white { background-color: var(--white); }
.section--sand  { background-color: var(--sand-light); }
.section--gold  { background-color: var(--gold); }

/* Cabeçalho de seção centralizado */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.section-header h2 { margin-bottom: var(--sp-3); }
.section-intro {
  max-width: 660px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.03rem;
}

/* Linha dourada decorativa antes dos H2 */
.section-header h2::before,
.sobre__text h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: var(--sp-3);
}
.section-header h2::before { margin-inline: auto; }
.sobre__text h2::before    { margin-inline: 0; }


/* ─────────────────────────────────────────
   5. BOTÕES
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Primário */
.btn--primary {
  background-color: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secundário */
.btn--secondary {
  background-color: transparent;
  color: var(--brown-dark);
  border: 2px solid var(--gold);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* Navbar — touch target mínimo 44px (Core Web Vitals / mobile) */
.btn--nav {
  background-color: var(--gold);
  color: var(--white);
  padding: 0.78rem 1.25rem;  /* 44px total com font-size 0.85rem */
  font-size: 0.85rem;
  min-height: 44px;
}
.btn--nav:hover { background-color: var(--gold-hover); }

/* Branco (sobre fundo gold) */
.btn--white {
  background-color: var(--white);
  color: var(--brown-dark);
  box-shadow: var(--shadow-sm);
}
.btn--white:hover,
.btn--white:focus-visible {
  background-color: var(--sand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Focus visível acessível */
.btn:focus-visible,
.accordion__trigger:focus-visible,
.slider__btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-pill);
}


/* ─────────────────────────────────────────
   6. NAVBAR
───────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid var(--sand-light);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease);
}
.navbar.is-scrolled { box-shadow: var(--shadow-sm); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}

.navbar__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  /* Fallback visual se logo não carregou */
  background-color: var(--sand-light);
  border-radius: var(--r-sm);
}


/* ─────────────────────────────────────────
   7. ENQUADRAMENTOS DE FOTO
   ASSINATURA DO DESIGN: forma orgânica assimétrica
   (borda-arredondada irregular que lembra a delicadeza
    clínica sem a rigidez do retângulo ou do círculo)
───────────────────────────────────────── */
.photo-frame {
  position: relative;
  /* Forma orgânica — elemento distintivo da página */
  border-radius: 62% 38% 68% 32% / 54% 66% 44% 56%;
  overflow: hidden;
  background-color: var(--sand-light);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

/* Anel dourado decorativo ao redor da foto */
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px rgba(188, 155, 115, 0.45);
  pointer-events: none;
  z-index: 1;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Visual durante carregamento */
  background: linear-gradient(135deg, var(--sand-light) 60%, rgba(188, 155, 115, 0.3));
}

/* Variante para seção "Sobre" (forma ligeiramente diferente para variedade) */
.photo-frame--sobre {
  border-radius: 38% 62% 42% 58% / 56% 44% 68% 32%;
}


/* ─────────────────────────────────────────
   8. HERO
───────────────────────────────────────── */

/* Eyebrow: keyword anchor acima do H1
   Sinaliza ao Google (e ao usuário vindo de Ads) onde ele chegou */
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-mid);
  background-color: rgba(188, 155, 115, 0.12);
  border: 1px solid rgba(188, 155, 115, 0.35);
  border-radius: var(--r-pill);
  padding: 0.35em 0.9em;
  margin-bottom: 0;
  line-height: 1;
}
.hero {
  background-color: var(--white);
  padding-block: var(--sp-6) var(--sp-7);
  position: relative;
  overflow: hidden;
}

/* Círculo de fundo — cria warmth sem poluir */
.hero::before {
  content: '';
  position: absolute;
  right: -8%;
  top: -15%;
  width: 60%;
  height: 130%;
  background: radial-gradient(ellipse at 60% 40%, var(--sand-light) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.hero__h1 {
  font-size: clamp(1.7rem, 5.5vw, 3.2rem);
  color: var(--brown-dark);
  line-height: 1.18;
  max-width: 17ch;
}

.hero__sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 0;
}

.hero__microcopy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: calc(-1 * var(--sp-2));
  margin-bottom: 0;
}

.hero__photo {
  display: flex;
  justify-content: center;
}

.hero__photo .photo-frame {
  width: min(260px, 78vw);
  aspect-ratio: 3 / 4;
}


/* ─────────────────────────────────────────
   9. SOBRE
───────────────────────────────────────── */
.sobre__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: flex-start;
}

.sobre__photo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sobre__photo .photo-frame {
  width: min(240px, 70vw);
  aspect-ratio: 3 / 4;
}

.sobre__text { flex: 1; }

.sobre__text h2 { margin-bottom: var(--sp-4); }
.sobre__text p  { font-size: 1rem; color: var(--text-body); }

.sobre__lista {
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.sobre__lista li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.sobre__lista li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.6em;
}

.sobre__crm {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(188, 155, 115, 0.3);
  margin-top: var(--sp-1);
}

.sobre__crm::before { display: none !important; }


/* ─────────────────────────────────────────
   10. SINTOMAS
───────────────────────────────────────── */
.sintomas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.sintomas__card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease), transform var(--ease);
}

.sintomas__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.sintomas__card h3 {
  margin-bottom: var(--sp-3);
  color: var(--brown-mid);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.sintomas__card ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.sintomas__card li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.sintomas__card li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* Bloco "Boa notícia" */
.boa-noticia {
  background-color: var(--sand-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.boa-noticia p {
  font-size: 1.03rem;
  margin-bottom: 0;
}


/* ─────────────────────────────────────────
   11. TRATAMENTO
───────────────────────────────────────── */
.tratamento__blocos {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.tratamento__bloco h3 {
  color: var(--brown-mid);
  margin-bottom: var(--sp-3);
}

.tratamento__opcoes {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.tratamento__opcao {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  background-color: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease);
}

.tratamento__opcao:hover { box-shadow: var(--shadow-sm); }

.tratamento__icone {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.05em;
}

.tratamento__opcao strong {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: 0.98rem;
}

.tratamento__opcao p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.65;
}


/* ─────────────────────────────────────────
   12. CALLOUT (caixa de destaque)
───────────────────────────────────────── */
.callout {
  background-color: var(--white);
  border-left: 4px solid var(--brown-mid);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-xs);
}

.callout p {
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 0;
}

/* Variante mais suave */
.callout--light {
  background-color: var(--sand-light);
  border-left-color: var(--gold);
  box-shadow: none;
}


/* ─────────────────────────────────────────
   13. DIFERENCIAIS
───────────────────────────────────────── */
.diferenciais__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.diferencial__card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.diferencial__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.diferencial__icone {
  width: 48px;
  height: 48px;
  background-color: var(--sand-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-mid);
  flex-shrink: 0;
  transition: background-color var(--ease);
}

.diferencial__card:hover .diferencial__icone {
  background-color: var(--gold);
  color: var(--white);
}

.diferencial__icone svg { width: 24px; height: 24px; }

.diferencial__card h3 {
  font-size: 1rem;
  color: var(--brown-dark);
  margin: 0;
}

.diferencial__card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}


/* ─────────────────────────────────────────
   14. DEPOIMENTOS / SLIDER
───────────────────────────────────────── */
.slider {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

.slider__track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slider__slide {
  min-width: 100%;
  padding-inline: var(--sp-1);
}

.depoimento__card {
  background-color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  max-width: 660px;
  margin-inline: auto;
  position: relative;
}

/* Aspas decorativas */
.depoimento__card::before {
  content: '\201C'; /* " */
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-4);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

.depoimento__card p {
  font-style: italic;
  font-size: 1.03rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-3);
}

.depoimento__card cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Controles do slider */
.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--ease), color var(--ease);
  cursor: pointer;
}

.slider__btn:hover {
  background-color: var(--gold);
  color: var(--white);
}

.slider__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: background-color var(--ease), transform var(--ease);
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.slider__dot.is-active {
  background-color: var(--gold);
  transform: scale(1.25);
}

/* Avaliações Google */
.google-rating {
  text-align: center;
  margin-top: var(--sp-5);
}

.google-rating a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.93rem;
  color: var(--text-muted);
  transition: color var(--ease);
}

.google-rating a:hover { color: var(--brown-dark); }

.stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 1px;
}


/* ─────────────────────────────────────────
   15. ATENDIMENTO
───────────────────────────────────────── */
.atendimento__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.atendimento__lista {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-block: var(--sp-4);
}

.atendimento__lista li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

.atendimento__lista li::before {
  content: '📍';
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 0.2em;
}

.atendimento__contato {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.atendimento__contato p { margin-bottom: 0; line-height: 1.8; }

/* Mapa */
.atendimento__mapa {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 260px;
}

.mapa-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  background-color: var(--sand-light);
}

.mapa-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none; /* JS revela quando src for real */
}

.mapa-wrapper iframe.is-loaded { display: block; }

.mapa-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-5);
  text-align: center;
  background: linear-gradient(135deg, var(--sand-light) 60%, rgba(188, 155, 115, 0.15));
  color: var(--text-muted);
}

.mapa-fallback.is-hidden { display: none; }

.mapa-fallback svg {
  width: 36px;
  height: 36px;
  color: var(--gold);
}

.mapa-fallback p {
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 0;
  font-size: 1rem;
}

.mapa-fallback span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mapa-fallback small {
  font-size: 0.78rem;
  color: rgba(122, 101, 85, 0.7);
  margin-top: var(--sp-2);
  border-top: 1px dashed rgba(188, 155, 115, 0.4);
  padding-top: var(--sp-2);
  width: 100%;
  max-width: 260px;
}


/* ─────────────────────────────────────────
   16. FAQ / ACCORDION
───────────────────────────────────────── */
.faq__container { max-width: 720px; }

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.accordion__item {
  background-color: var(--white);
  border: 1px solid rgba(188, 155, 115, 0.3);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--ease), border-color var(--ease);
}

.accordion__item.is-open {
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.5;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--ease), background-color var(--ease);
  font-family: var(--font-body);
}

.accordion__trigger:hover {
  color: var(--brown-mid);
  background-color: rgba(188, 155, 115, 0.05);
}

.accordion__item.is-open .accordion__trigger { color: var(--brown-mid); }

.accordion__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.32s ease;
}

.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  padding-inline: var(--sp-5);
}

.accordion__item.is-open .accordion__panel { max-height: 500px; }

.accordion__panel p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding-bottom: var(--sp-4);
  margin-bottom: 0;
}


/* ─────────────────────────────────────────
   17. CTA FINAL
───────────────────────────────────────── */
.cta-final { padding-block: var(--sp-7); }

.cta-final__inner {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

/* Linha decorativa branca antes do H2 */
.cta-final__inner h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.75), transparent);
  margin-bottom: var(--sp-3);
  margin-inline: auto;
}

.cta-final__inner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.cta-final__inner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  margin-bottom: 0;
}

.cta-final__micro {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  line-height: 1.6;
}


/* ─────────────────────────────────────────
   18. FOOTER
───────────────────────────────────────── */
.footer {
  background-color: var(--brown-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-block: var(--sp-6);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer__brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.footer__nome {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.footer__crm {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__info address {
  font-size: 0.88rem;
  line-height: 1.75;
}

.footer__address { color: rgba(255, 255, 255, 0.55); }

.footer__info a[href^="tel"] {
  color: var(--gold);
  font-weight: 500;
}

.footer__social {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer__social a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  transition: color var(--ease);
}

.footer__social a:hover { color: var(--gold); }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-4);
}

.footer__legal p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin-bottom: var(--sp-1);
}


/* ─────────────────────────────────────────
   19. ANIMAÇÕES DE SCROLL
───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay { transition-delay: 0.14s; }

/* Respeitar preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .accordion__panel,
  .slider__track {
    transition: none;
  }
  html { scroll-behavior: auto; }
}


/* ─────────────────────────────────────────
   20. RESPONSIVO — TABLET (≥ 768px)
───────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --container-px: 2rem; }

  section { padding-block: var(--sp-8); }

  /* Hero: layout lado a lado */
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-7);
  }

  .hero__content { flex: 1; min-width: 0; }

  .hero__photo .photo-frame {
    width: min(320px, 38vw);
  }

  /* Sobre: foto à esquerda, texto à direita */
  .sobre__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-7);
  }

  .sobre__photo {
    width: auto;
    flex-shrink: 0;
  }

  .sobre__photo .photo-frame { width: 240px; }

  .sobre__text { flex: 1; min-width: 0; }

  /* Sintomas: 3 colunas */
  .sintomas__grid { grid-template-columns: repeat(3, 1fr); }

  /* Diferenciais: 2 colunas */
  .diferenciais__grid { grid-template-columns: repeat(2, 1fr); }

  /* Atendimento: texto + mapa lado a lado */
  .atendimento__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-5);
  }

  .atendimento__texto  { flex: 1; min-width: 0; }
  .atendimento__mapa   { flex: 1; min-height: 380px; }
  .mapa-wrapper        { min-height: 380px; }

  /* Footer: grid 3 colunas */
  .footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: var(--sp-5) var(--sp-6);
  }

  .footer__legal {
    border-top: none;
    padding-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: var(--sp-5);
  }
}


/* ─────────────────────────────────────────
   21. RESPONSIVO — DESKTOP (≥ 1024px)
───────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero__photo .photo-frame { width: min(380px, 33vw); }
  .sobre__photo .photo-frame { width: 270px; }
  .diferenciais__grid { grid-template-columns: repeat(4, 1fr); }

  /* Tratamento: opções em coluna única mas com mais espaço */
  .tratamento__opcoes { gap: var(--sp-3); }
}