/* =========================================================================
   Dra. Helena Vasconcelos Prado — Oftalmologia
   Clean editorial. Azul-clínico + verde-água + âmbar só no CTA.
   Corpo >= 18px, contraste AA, acessibilidade sênior.
   ========================================================================= */

:root {
  --ink:        #0f2a3f;   /* azul-clínico profundo (texto/estrutura) */
  --ink-2:      #12324a;
  --teal:       #2f7d6f;   /* apoio, contraste AA sobre off-white */
  --teal-deep:  #245c52;
  --mint:       #e8f3ef;   /* fundo de seção */
  --mint-2:     #dceee7;
  --paper:      #f7f9f8;   /* off-white base */
  --white:      #ffffff;
  --amber:      #c96f22;   /* CTA — contraste AA de texto branco */
  --amber-hover:#b0611c;
  --line:       #cfe0da;
  --muted:      #3d5566;   /* cinza-azulado com contraste >= 4.5:1 sobre paper */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --r: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: var(--r);
}
.skip-link:focus { left: 1rem; top: 1rem; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .85rem 1.6rem;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 600;
  border-radius: var(--r); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.1rem; }
.btn--primary { background: var(--amber); color: #fff; box-shadow: 0 6px 18px -8px rgba(201,111,34,.7); }
.btn--primary:hover { background: var(--amber-hover); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--mint-2); }

/* Section index deco number */
.section-index {
  display: block;
  font-family: var(--serif);
  font-size: clamp(6rem, 20vw, 13rem);
  line-height: .8;
  color: var(--teal);
  opacity: .07;
  margin: 0 0 -.4em;
  pointer-events: none;
  padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2));
}
.section-index--light { color: #fff; opacity: .12; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,249,248,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { color: var(--teal); display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; }
.brand__text em { font-style: normal; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1rem; }
.nav ul a { position: relative; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--teal); transition: width .25s ease;
}
.nav ul a:hover::after { width: 100%; }
.nav__cta { font-size: .98rem; min-height: 46px; padding: .6rem 1.15rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; width: 48px; height: 48px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.hamburger span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: clamp(460px, 74vh, 720px); object-fit: cover; object-position: 60% 30%;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,42,63,.92) 0%, rgba(15,42,63,.72) 42%, rgba(15,42,63,.05) 78%);
}
.hero__content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  color: #fff; max-width: 720px;
}
.hero__eyebrow {
  font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint-2); margin: 0 0 1.1rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 500; margin: 0 0 1.3rem;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: #e9f1ee; max-width: 40ch; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.hero__actions .btn--outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero__actions .btn--outline:hover { background: #fff; color: var(--ink); }
.hero__cred { font-size: .84rem; color: #cdddd7; margin: 0; letter-spacing: .01em; }

/* ---------- Strip público ---------- */
.strip { background: var(--ink); color: #eef4f2; }
.strip__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.strip__col { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; }
.strip__col + .strip__col { border-left: 1px solid rgba(255,255,255,.14); padding-left: 3rem; }
.strip__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--mint-2); line-height: 1; }
.strip__col p { margin: 0; font-size: 1.08rem; color: #d8e5e1; }

/* ---------- Sobre ---------- */
.sobre { padding: clamp(3rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 5rem); overflow: hidden; }
.sobre__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.sobre__portrait { position: relative; }
.sobre__portrait img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r);
  box-shadow: 0 30px 60px -30px rgba(15,42,63,.4);
}
.sobre__portrait::before {
  content: ""; position: absolute; left: -22px; bottom: -22px; width: 60%; height: 60%;
  background: var(--mint-2); border-radius: var(--r); z-index: -1;
}
.sobre__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 0 0 1.4rem; }
.sobre__text p { margin: 0 0 1.15rem; color: var(--ink-2); }
.creds {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.creds li { background: var(--paper); padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.creds strong { font-family: var(--serif); font-size: 1.35rem; color: var(--teal-deep); font-weight: 600; }
.creds span { font-size: .82rem; color: var(--muted); }

/* ---------- Condições ---------- */
.cond { background: var(--mint); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.cond__head { max-width: 720px; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.cond__head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 1rem; }
.cond__head .cond__intro { color: var(--muted); font-size: 1.1rem; margin: 0; }
.cond__list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.cond__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2rem; transition: transform .25s ease, box-shadow .25s ease;
}
.cond__item:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(15,42,63,.35); }
.cond__item--wide { grid-column: 1 / -1; }
.cond__item h3 { font-size: 1.5rem; margin: 0 0 1rem; color: var(--teal-deep); }
.cond__body p { margin: 0 0 .9rem; font-size: 1rem; color: var(--ink-2); }
.cond__body p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep);
  background: var(--mint-2); padding: .18rem .5rem; border-radius: 3px; margin-right: .5rem;
}
.cond__cta { margin-top: 2.5rem; }

/* ---------- Exame ---------- */
.exame { display: grid; grid-template-columns: 1.15fr 1fr; }
.exame__media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.exame__panel { background: var(--ink); color: #eef4f2; padding: clamp(2.5rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }
.exame__panel h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin: 0 0 1.1rem; }
.exame__panel p { color: #d8e5e1; margin: 0 0 1.5rem; }
.exame__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.exame__list li { position: relative; padding-left: 1.8rem; font-size: 1.05rem; color: #e9f1ee; }
.exame__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  border: 2px solid var(--mint-2); border-radius: 50%;
}
.exame__list li::after {
  content: ""; position: absolute; left: 4px; top: calc(.55em + 4px); width: 4px; height: 4px;
  background: var(--mint-2); border-radius: 50%;
}

/* ---------- Convênios ---------- */
.conv { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 5rem); overflow: hidden; }
.conv__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.conv__intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 1rem; }
.conv__intro p { color: var(--muted); margin: 0; }
.conv__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.conv__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; }
.conv__card h3 { font-size: 1.25rem; margin: 0 0 1rem; }
.conv__card p { font-size: 1rem; color: var(--ink-2); margin: 0; }
.conv__note { font-size: .92rem !important; color: var(--muted) !important; margin-top: 1rem !important; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { background: var(--mint); color: var(--ink); font-weight: 500; font-size: .95rem; padding: .4rem .85rem; border-radius: 40px; border: 1px solid var(--line); }
.conv__card--price { background: var(--ink); color: #fff; border-color: var(--ink); }
.conv__card--price h3 { color: #fff; }
.conv__price { font-family: var(--serif); font-size: 3.4rem; font-weight: 500; line-height: 1; margin: 0 0 .8rem !important; color: #fff !important; }
.conv__price span { font-size: 1.3rem; vertical-align: top; margin-right: .2rem; color: var(--mint-2); }
.conv__card--price .conv__note { color: #cdddd7 !important; }

/* ---------- Agendamento ---------- */
.agenda { background: var(--teal-deep); color: #fff; padding: clamp(3rem, 5vw, 4.5rem) 0; }
.agenda__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.agenda__text h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 1rem; }
.agenda__text p { color: #d6e9e4; margin: 0; }
.agenda__actions { display: grid; gap: 1rem; }
.agenda__btn {
  display: flex; flex-direction: column; gap: .15rem; text-decoration: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  padding: 1.1rem 1.5rem; border-radius: var(--r); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.agenda__btn:hover { background: rgba(255,255,255,.16); transform: translateX(4px); }
.agenda__btn strong { font-size: 1.2rem; }
.agenda__btn span { font-size: .95rem; color: #cfe6e0; }
.agenda__btn--wa { background: var(--amber); border-color: var(--amber); }
.agenda__btn--wa span { color: #ffe9d6; }
.agenda__btn--wa:hover { background: var(--amber-hover); }

/* ---------- Localização ---------- */
.local { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.local__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: stretch; }
.local__info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 1.3rem; }
.local__address { font-style: normal; font-size: 1.2rem; line-height: 1.5; margin: 0 0 1.6rem; color: var(--ink-2); }
.local__hours { margin: 0 0 1.8rem; display: grid; gap: 1.1rem; }
.local__hours dt { font-weight: 600; color: var(--teal-deep); font-size: .95rem; }
.local__hours dd { margin: .1rem 0 0; color: var(--ink-2); }
.local__map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); min-height: 360px; }
.local__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq { background: var(--mint); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.faq__head { position: sticky; top: 100px; }
.faq__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 1rem; }
.faq__head p { color: var(--muted); margin: 0; }
.faq__items { display: grid; gap: 1rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0 1.6rem; transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--teal); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.2rem 1.3rem 0; position: relative;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.6rem; font-weight: 400; color: var(--teal); transition: transform .25s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 0 1.4rem; color: var(--ink-2); font-size: 1.02rem; }

/* ---------- CTA final ---------- */
.final-cta { background: var(--ink); color: #fff; text-align: center; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.final-cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 .8rem; max-width: 18ch; margin-inline: auto; }
.final-cta p { color: #d8e5e1; font-size: 1.15rem; margin: 0 0 2rem; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.final-cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.final-cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Footer ---------- */
.site-footer { background: #0a1f2f; color: #c6d6d0; padding: clamp(2.5rem, 4vw, 3.5rem) 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.footer__brand .brand__mark { color: var(--mint-2); }
.footer__id { margin: 0; color: #dfeae6; font-weight: 500; line-height: 1.5; max-width: 34ch; }
.footer__contact p { margin: 0 0 .5rem; }
.footer__contact a { color: var(--mint-2); }
.footer__legal { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.footer__legal a { color: var(--mint-2); font-weight: 500; }
.footer__copy, .footer__made { margin: 0; color: #8ea9a1; font-size: .85rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.4); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  max-width: 720px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 20px 50px -18px rgba(15,42,63,.5);
  padding: 1.3rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; flex: 1 1 320px; font-size: .98rem; color: var(--ink-2); }
.cookie-banner__actions { display: flex; gap: .7rem; flex: 0 0 auto; }
.cookie-banner__actions .btn { min-height: 44px; padding: .55rem 1.3rem; font-size: 1rem; }

/* ---------- Página legal (privacidade) ---------- */
.legal { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 1.2rem; }
.legal__lead { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 .8rem; }
.legal__updated { color: var(--muted); font-size: .95rem; margin: 0 0 2.5rem; }
.legal section { margin: 0 0 2.2rem; }
.legal h2 { font-size: 1.45rem; margin: 0 0 .9rem; color: var(--teal-deep); }
.legal p { margin: 0 0 1rem; color: var(--ink-2); }
.legal ul { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--ink-2); }
.legal li { margin: 0 0 .55rem; }
.legal__back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal__back a { font-weight: 600; font-size: 1.1rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1.5rem 1.5rem 2rem;
  }
  .nav.is-open ul { flex-direction: column; gap: 1rem; width: 100%; }
  .nav.is-open a { font-size: 1.15rem; }
  .nav__cta { width: 100%; }
  .hamburger { display: flex; }

  .sobre__grid,
  .conv__grid,
  .agenda__inner,
  .local__grid,
  .faq__grid { grid-template-columns: 1fr; }

  .exame { grid-template-columns: 1fr; }
  .exame__media img { min-height: 300px; }

  .cond__list { grid-template-columns: 1fr; }
  .conv__cards { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .sobre__portrait { max-width: 420px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .strip__grid { grid-template-columns: 1fr; gap: 2rem; }
  .strip__col + .strip__col { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 2rem; }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .hero__content { justify-content: flex-end; padding-bottom: 2.5rem; }
  .hero__media::after { background: linear-gradient(180deg, rgba(15,42,63,.35) 0%, rgba(15,42,63,.55) 45%, rgba(15,42,63,.92) 100%); }
  .btn { width: 100%; }
  .hero__actions .btn, .final-cta__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
