/* =========================================================
   Dr. Gabriel Terra — Oftalmologia
   ========================================================= */

:root {
  --ink: #0E1621;
  --navy: #16243A;
  --navy-2: #1E3150;
  --ivory: #F8F5EF;
  --sand: #EFE8DC;
  --white: #FFFFFF;
  --gold: #B8996A;
  --gold-light: #D9C29B;
  --gold-dark: #8F7348;
  --text: #2A3340;
  --muted: #6A7280;
  --line: rgba(14, 22, 33, .1);
  --line-light: rgba(255, 255, 255, .12);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -24px rgba(14, 22, 33, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; color: var(--ink); }
h2 { font-family: var(--serif); font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.005em; }
h2 em, h1 em { font-style: italic; color: var(--gold-dark); }
p { margin: 0 0 1rem; }
strong { font-weight: 600; color: var(--ink); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--gold); color: var(--ink); padding: 8px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--sans); font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: .85rem; }
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(184, 153, 106, .7); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(184, 153, 106, .9); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--white); }
.btn--outline { color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--ivory); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.btn--light svg { fill: #1FAF55; }
.btn--light:hover { background: var(--white); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem; color: var(--gold-dark);
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header.is-scrolled {
  --header-h: 72px;
  background: rgba(14, 22, 33, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-light);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 54px; width: auto; transition: height .4s var(--ease); }
.header.is-scrolled .header__logo img { height: 46px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  position: relative; font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .82);
  transition: color .3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover { color: var(--white); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink); color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 100px;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/hero.webp") 78% center / cover no-repeat;
  animation: heroZoom 14s var(--ease) both;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 22, 33, .96) 0%, rgba(14, 22, 33, .75) 42%, rgba(14, 22, 33, 0) 70%),
    linear-gradient(0deg, rgba(14, 22, 33, .9) 0%, rgba(14, 22, 33, 0) 35%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 700px; }
.hero .eyebrow { color: var(--gold-light); }
.hero__title {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero__title em { display: block; color: var(--gold-light); }
.hero__lead { font-size: 1.1rem; font-weight: 300; color: rgba(255, 255, 255, .78); max-width: 520px; margin-bottom: 36px; }
.hero__lead strong { color: var(--white); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero__note { margin-bottom: 44px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.hero__note a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

.hero__creds {
  list-style: none; margin: 0; padding: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  border-top: 1px solid var(--line-light);
  font-size: .95rem; color: var(--white);
}
.hero__creds span { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 2px; }


/* ---------- Highlights ---------- */
.highlights { position: relative; z-index: 2; margin-top: -54px; }
.highlights__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.highlight { display: flex; gap: 18px; padding: 34px 32px; }
.highlight + .highlight { border-left: 1px solid var(--line); }
.highlight svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.highlight h3 { margin-bottom: 4px; }
.highlight p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }

/* ---------- Section heads ---------- */
section { position: relative; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 20px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--left { text-align: left; margin: 0; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-head--light h2 { color: var(--white); }
.section-head--light h2 em { color: var(--gold-light); }
.section-head--light p { color: rgba(255, 255, 255, .72); }
.section-head--light strong { color: var(--white); }
.section-head--light .eyebrow { color: var(--gold-light); }

/* ---------- Oculoplastia ---------- */
.oculo {
  padding: 120px 0;
  background:
    radial-gradient(1200px 600px at 85% 0%, rgba(184, 153, 106, .16), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(30, 49, 80, .9), transparent 60%),
    var(--ink);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
}
.oculo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400' fill='none' stroke='%23B8996A' stroke-opacity='.10'%3E%3Cpath d='M40 200C180 60 620 60 760 200C620 340 180 340 40 200Z'/%3E%3Ccircle cx='400' cy='200' r='92'/%3E%3Ccircle cx='400' cy='200' r='40'/%3E%3C/svg%3E") center 40px / min(1100px, 140%) no-repeat;
}

.oculo__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 24px; align-items: stretch;
}
.oculo__card {
  position: relative; display: flex; flex-direction: column;
  padding: 44px 36px 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.oculo__card:hover { border-color: rgba(217, 194, 155, .45); transform: translateY(-4px); }
.oculo__num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--gold-light); opacity: .55; margin-bottom: 18px; }
.oculo__card h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.oculo__card > p { font-size: .96rem; }
.oculo__links { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.oculo__card .link-arrow { color: var(--gold-light); }
.checklist a { color: inherit; text-decoration: underline; text-decoration-color: rgba(217, 194, 155, .45); text-underline-offset: 3px; transition: color .3s; }
.checklist a:hover { color: var(--gold-light); }

.checklist { list-style: none; margin: 8px 0 0; padding: 0; }
.checklist li {
  position: relative; padding: 11px 0 11px 30px; font-size: .94rem; color: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line-light);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 16px; height: 9px;
  border: 1.5px solid var(--gold-light); border-radius: 50%;
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 20px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light);
}

.oculo__photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 420px; }
.oculo__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); transition: transform 1.2s var(--ease); }
.oculo__photo:hover img { transform: scale(1.05); }
.oculo__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(217, 194, 155, .3); }

.oculo__why {
  position: relative; margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 36px 44px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(184, 153, 106, .18), rgba(184, 153, 106, .05));
  border: 1px solid rgba(217, 194, 155, .25);
}
.oculo__why h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.oculo__why p { margin: 0; max-width: 700px; font-size: .96rem; }
.oculo__why strong { color: var(--white); }

/* ---------- Services ---------- */
.services { padding: 130px 0 110px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  padding: 38px 34px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 56px; height: 56px; margin-bottom: 24px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--sand); color: var(--gold-dark);
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted); font-size: .94rem; }
.service--accent { background: var(--navy); border-color: var(--navy); }
.service--accent h3 { color: var(--white); }
.service--accent p { color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.service--accent .service__icon { background: rgba(217, 194, 155, .15); color: var(--gold-light); }
.service--accent .link-arrow { color: var(--gold-light); }
.services__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 48px; }

/* ---------- Atendimento (horários e convênios) ---------- */
.booking { padding: 110px 0; background: var(--white); }
.booking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin-inline: auto; }
.info-card { padding: 36px 34px; border-radius: var(--radius-lg); background: var(--ivory); border: 1px solid var(--line); }
.info-card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin: 0 0 14px; }
.info-card h3 + p { color: var(--text); }
.info-card p + h3 { margin-top: 28px; }
.info-card .note { color: var(--muted); font-size: .94rem; }
.info-card .link-arrow { margin-top: 6px; }
.hours { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours caption { caption-side: top; text-align: left; margin-bottom: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 600; color: var(--ink); padding-right: 16px; }
.hours td { text-align: right; color: var(--text); }
.insurers { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.insurers li { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }

/* ---------- About ---------- */
.about { padding: 110px 0; background: var(--sand); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.about__photo { position: relative; margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius-lg); }
.about__photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
  border: 1px solid var(--gold); border-radius: var(--radius-lg);
}
.about__photo figcaption {
  position: absolute; left: 24px; bottom: 24px;
  padding: 16px 22px; border-radius: 14px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3);
}
.about__photo figcaption strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.about__photo figcaption span { font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.about__content h2 { margin-bottom: 26px; }
.about__content > p { color: var(--text); }

.timeline { list-style: none; margin: 32px 0 36px; padding: 0; border-left: 1px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 20px 26px; font-size: .95rem; color: var(--muted); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--sand); }
.timeline span { display: block; font-weight: 600; color: var(--ink); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* ---------- Steps ---------- */
.steps { padding: 120px 0; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps__list li { position: relative; padding: 34px 28px; border-top: 1px solid var(--ink); }
.steps__n {
  display: block; font-family: var(--serif); font-size: 3rem; line-height: 1;
  color: var(--gold); margin-bottom: 18px;
}
.steps__list h3 { margin-bottom: 8px; }
.steps__list p { margin: 0; font-size: .94rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding: 110px 0 130px; background: var(--white); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq .section-head .btn { margin-top: 10px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 26px 50px 26px 0; font-size: 1.08rem; font-weight: 600; color: var(--ink);
  transition: color .3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border: 1px solid var(--line); border-radius: 50%;
  background:
    linear-gradient(var(--gold-dark), var(--gold-dark)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--gold-dark), var(--gold-dark)) center / 1.5px 11px no-repeat;
  transition: transform .35s var(--ease), background-color .35s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); background-color: var(--sand); }
.faq__list summary:hover { color: var(--gold-dark); }
.faq__list details p { padding: 0 50px 26px 0; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 0; background: linear-gradient(var(--white) 50%, var(--ivory) 50%); }
.cta__inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: end;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(184, 153, 106, .25), transparent 60%),
    linear-gradient(135deg, var(--navy-2), var(--ink));
}
.cta__photo { width: 100%; max-width: 380px; margin: 40px auto 0; align-self: end; }
.cta__content { align-self: center; padding: 70px 60px 70px 0; color: rgba(255, 255, 255, .75); }
.cta__content .eyebrow { color: var(--gold-light); }
.cta__content h2 { color: var(--white); margin-bottom: 18px; }
.cta__content h2 em { color: var(--gold-light); }
.cta__content p { margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact { padding: 120px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: stretch; }
.contact__info h2 { margin-bottom: 34px; }
.contact__list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 18px; align-items: flex-start; font-size: .98rem; }
.contact__list svg { flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--sand); fill: none; stroke: var(--gold-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact__list strong { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact__list a:hover { color: var(--gold-dark); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); background: var(--sand); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .55); padding: 70px 0 40px; font-size: .86rem; }
.footer__inner { display: grid; justify-items: center; text-align: center; gap: 30px; }
.footer__logo { height: 70px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.footer__nav a { color: rgba(255, 255, 255, .8); }
.footer__nav a:hover { color: var(--gold-light); }
.footer__legal { border-top: 1px solid var(--line-light); padding-top: 28px; width: 100%; }
.footer__legal p { margin: 0 0 6px; }
.footer__legal strong { color: rgba(255, 255, 255, .8); font-weight: 500; }
.footer__legal a { color: var(--gold-light); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .nav { gap: 22px; }
  .nav a:not(.btn) { font-size: .85rem; }
}

@media (max-width: 1080px) {
  /* Menu vira hambúrguer aqui para caber todos os itens */
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2rem; color: var(--white); }
  .nav__cta { margin-top: 12px; }

  .oculo__grid { grid-template-columns: 1fr 1fr; }
  .oculo__photo { grid-column: 1 / -1; grid-row: 1; min-height: 320px; max-height: 380px; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .faq__grid { gap: 56px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header__logo img { height: 44px; }
  .nav a:not(.btn) { font-size: 1.7rem; }

  /* No celular a foto fica no topo e o texto logo abaixo, sem cobrir o rosto */
  .hero { display: block; min-height: 0; padding: 0 0 64px; }
  .hero__bg {
    position: relative; inset: auto;
    height: 50vh; height: 50svh; min-height: 320px; max-height: 460px;
    background: url("../img/dr-gabriel-retrato.webp") center 22% / cover no-repeat;
  }
  .hero__bg::after {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(14, 22, 33, .55) 28%, rgba(14, 22, 33, 0) 55%),
      linear-gradient(180deg, rgba(14, 22, 33, .75) 0%, rgba(14, 22, 33, 0) 28%);
  }
  .hero__inner { margin-top: -80px; }
  .hero .eyebrow { font-size: .66rem; letter-spacing: .14em; margin-bottom: 14px; }
  .hero__title { font-size: 2.35rem; margin-bottom: 18px; }
  .hero__lead { font-size: 1rem; margin-bottom: 26px; }

  .highlights { margin-top: 0; padding-top: 40px; }
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid var(--line); }

  .services__grid { grid-template-columns: 1fr 1fr; }
  .about__grid, .faq__grid, .contact__grid, .booking__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; }
  .faq .section-head { position: static; }

  .oculo__why { flex-direction: column; align-items: flex-start; }

  .cta__inner { grid-template-columns: 1fr; }
  .cta__content { padding: 56px 32px 0; order: -1; text-align: center; }
  .cta__content .eyebrow { justify-content: center; }
  .cta__photo { max-width: 300px; margin-top: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .oculo, .services, .booking, .about, .steps, .faq, .contact { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }

  .hero__actions .btn, .services__actions .btn { width: 100%; white-space: normal; text-align: center; }
  .info-card { padding: 28px 22px; }
  .hours th, .hours td { display: block; text-align: left; padding: 0; border: 0; }
  .hours tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .hours tr:last-child { border-bottom: 0; }
  .hero__creds { gap: 14px 28px; }

  .oculo__grid, .services__grid, .steps__list { grid-template-columns: 1fr; }
  .steps__list { gap: 0; }
  .steps__list li { padding: 28px 4px; }
  .oculo__card { padding: 34px 26px 28px; }
  .oculo__why { padding: 30px 26px; }
  .oculo__why .btn { width: 100%; white-space: normal; text-align: center; }

  .about__photo::before { inset: 16px -12px -16px 16px; }
  .about__photo figcaption { left: 16px; bottom: 16px; }

  .faq__list summary { font-size: 1rem; padding-right: 46px; }
  .faq__list details p { padding-right: 0; }

  .contact__actions .btn { flex: 1; }
  .contact__map, .contact__map iframe { min-height: 320px; }

  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* =========================================================
   Páginas internas (tratamentos)
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(184, 153, 106, .18), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(30, 49, 80, .9), transparent 60%),
    var(--ink);
  color: rgba(255, 255, 255, .78);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400' fill='none' stroke='%23B8996A' stroke-opacity='.10'%3E%3Cpath d='M40 200C180 60 620 60 760 200C620 340 180 340 40 200Z'/%3E%3Ccircle cx='400' cy='200' r='92'/%3E%3Ccircle cx='400' cy='200' r='40'/%3E%3C/svg%3E") 110% 60% / 900px no-repeat;
}
.page-hero__inner { position: relative; }
.page-hero__inner > * { max-width: 780px; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 22px;
}
.page-hero h1 em { color: var(--gold-light); }
.page-hero__lead { font-size: 1.12rem; font-weight: 300; max-width: 640px; margin-bottom: 34px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.breadcrumb { margin-bottom: 34px; font-size: .82rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .5); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .3); }
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: var(--gold-light); }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 70px; align-items: start; padding: 90px 0 110px; }

.prose { font-size: 1.04rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 30px 0 10px; }
.prose p { margin-bottom: 1.1rem; }
.prose ul.list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.prose ul.list li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); }
.prose ul.list li:last-child { border-bottom: 0; }
.prose ul.list li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 17px; height: 10px;
  border: 1.5px solid var(--gold); border-radius: 50%;
}
.prose ul.list li::after { content: ""; position: absolute; left: 6.5px; top: 19.5px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.prose a:not(.btn):not(.mini-card) { color: var(--gold-dark); text-decoration: underline; text-decoration-color: rgba(143, 115, 72, .35); text-underline-offset: 3px; }
.prose a:not(.btn):not(.mini-card):hover { text-decoration-color: currentColor; }

.callout {
  margin: 34px 0; padding: 28px 30px; border-radius: var(--radius);
  background: var(--sand); border-left: 3px solid var(--gold);
}
.callout strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 6px; }
.callout p { margin: 0; }

.steps-inline { list-style: none; margin: 10px 0 1.4rem; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.steps-inline li { counter-increment: st; position: relative; padding: 20px 22px 20px 70px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.steps-inline li::before {
  content: counter(st); position: absolute; left: 22px; top: 18px;
  font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--gold);
}
.steps-inline strong { display: block; margin-bottom: 2px; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 10px 0 1.6rem; }
.mini-card {
  display: block; padding: 22px 22px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
a.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.mini-card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.mini-card p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.mini-card .link-arrow { margin-top: 10px; font-size: .85rem; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { padding: 30px; border-radius: var(--radius-lg); background: var(--navy); color: rgba(255, 255, 255, .75); text-align: center; }
.side-card img { width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 2px solid var(--gold-light); }
.side-card strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--white); }
.side-card small { display: block; font-size: .78rem; letter-spacing: .06em; margin-bottom: 16px; color: rgba(255, 255, 255, .55); }
.side-card p { font-size: .92rem; margin-bottom: 20px; }
.side-card .btn { width: 100%; }
.side-links { padding: 26px 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.side-links h3 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.side-links ul { list-style: none; margin: 0; padding: 0; }
.side-links li a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; font-weight: 500; color: var(--ink); transition: color .3s; }
.side-links li:last-child a { border-bottom: 0; }
.side-links li a:hover, .side-links li a[aria-current="page"] { color: var(--gold-dark); }
.side-links li a::after { content: "→"; color: var(--gold); }

.related { padding: 110px 0; background: var(--sand); }
.related .services__grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.related .service { display: block; }
.related .service .link-arrow { margin-top: 14px; }

.cta--page { background: linear-gradient(var(--white) 50%, var(--ivory) 50%); padding-bottom: 110px; }

.footer__treat { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .82rem; }
.footer__treat a { color: rgba(255, 255, 255, .6); }
.footer__treat a:hover { color: var(--gold-light); }
.footer__addr { margin: 0; font-size: .85rem; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 1.6rem; }
.info-grid .info-card { padding: 26px 24px; background: var(--white); }
.prose .info-card h3 { font-size: 1.35rem; margin: 0 0 10px; }
.prose .info-card p + h3 { margin-top: 22px; }
.map-embed { margin: 6px 0 12px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(.4) contrast(1.05); }

.page-body--single { grid-template-columns: minmax(0, 560px); justify-content: center; }

.draft-banner {
  position: fixed; inset: auto 0 0; z-index: 100; margin: 0; padding: 10px 16px;
  background: #B3261E; color: var(--white); text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
}

@media (max-width: 1000px) {
  .page-body { grid-template-columns: 1fr; gap: 50px; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .page-hero__actions .btn { width: 100%; }
  .page-body { padding: 64px 0 80px; }
  .mini-grid, .sidebar, .info-grid { grid-template-columns: 1fr; }
  .related { padding: 80px 0; }
  .cta--page { padding-bottom: 80px; }
}
