/* ==========================================================================
   Dr. Celso Ayres — Landing page
   ========================================================================== */

:root {
  --green-900: #16291f;
  --green-800: #1f3a2e;
  --green-700: #2b4d3d;
  --green-600: #3c6652;
  --green-100: #e5ede7;
  --sand-50: #faf8f3;
  --sand-100: #f3efe6;
  --sand-300: #e2d9c6;
  --gold: #b8935a;
  --ink: #1d2420;
  --ink-soft: #4b5650;
  --line: #e3ddd1;
  --white: #ffffff;
  --wa: #1fa855;

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

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 41, 31, .06), 0 12px 32px -12px rgba(22, 41, 31, .18);
  --container: 1140px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--green-800); color: var(--white); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: .9rem;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  padding: .85em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-800); color: var(--white); box-shadow: 0 8px 20px -10px rgba(31, 58, 46, .7); }
.btn-primary:hover { background: var(--green-900); color: var(--white); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: var(--white); }
.btn-light { background: var(--white); color: var(--green-900); }
.btn-light:hover { background: var(--sand-100); color: var(--green-900); }
.btn-large { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-small { padding: .6em 1.1em; font-size: .9rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .9);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-800); color: var(--sand-100);
  font: 500 1rem var(--font-serif); letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font: 600 1.05rem var(--font-serif); color: var(--green-900); }
.brand-text small { font-size: .78rem; color: var(--ink-soft); }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.nav-menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-menu a:not(.btn):hover { color: var(--green-600); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green-900); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  --hero-bg: #27342c;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--sand-100);
  background: radial-gradient(ellipse at 75% 40%, #34443a 0%, var(--hero-bg) 55%, #1d2821 100%);
}
.hero-media {
  position: absolute; z-index: -1;
  top: 0; right: 0; bottom: 0; width: 54%;
}
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img {
  object-fit: cover; object-position: 50% 22%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.hero-inner {
  min-height: min(calc(100vh - var(--header-h)), 760px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(56px, 9vw, 120px);
}
.hero-copy { max-width: 560px; }
.hero-kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: .82rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand-300); margin-bottom: 1.4rem;
}
.hero-rule { width: 40px; height: 1px; background: var(--gold); }
.hero h1 { color: var(--white); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.08; }
.hero h1 em { font-style: italic; color: #d9bd8c; }
.hero .lead { color: rgba(243, 239, 230, .8); font-size: 1.15rem; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 32px 0 56px; }
.btn-gold { background: #d9bd8c; color: var(--green-900); }
.btn-gold:hover { background: #e6cfa6; color: var(--green-900); }
.hero-link { color: var(--sand-100); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(243, 239, 230, .35); padding-bottom: 2px; }
.hero-link:hover { color: var(--white); border-color: var(--white); }
.hero-link span { display: inline-block; transition: transform .2s; }
.hero-link:hover span { transform: translateX(3px); }

.hero-strip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(243, 239, 230, .16);
}
.hero-strip li { display: flex; gap: 14px; align-items: flex-start; padding: 24px 24px 28px 0; }
.hero-strip li + li { padding-left: 24px; border-left: 1px solid rgba(243, 239, 230, .16); }
.hero-strip .icon { color: #d9bd8c; margin-top: 3px; }
.hero-strip strong { display: block; font: 500 1.1rem var(--font-serif); color: var(--white); }
.hero-strip span { font-size: .9rem; color: rgba(243, 239, 230, .7); }

/* Credentials ------------------------------------------------------------ */
.credentials { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.credentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.credential { padding: 28px 24px; border-left: 1px solid var(--line); }
.credential:first-child { border-left: 0; padding-left: 0; }
.credential-label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); margin-bottom: 4px; }
.credential strong { font: 500 1.2rem var(--font-serif); color: var(--green-900); }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--sand-100); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-intro { color: var(--ink-soft); font-size: 1.1rem; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.prose p { color: var(--ink-soft); font-size: 1.1rem; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Cards ------------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: 20px;
}
.card-icon .icon { width: 26px; height: 26px; }
.tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .82rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--sand-100); color: var(--green-800); }

/* Modes & steps ---------------------------------------------------------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.mode { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.mode p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.mode p strong { color: var(--ink); font-weight: 600; }
.mode-icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }

.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.step-n {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 500 1.1rem var(--font-serif);
  background: var(--green-800); color: var(--white);
}

.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--green-100); color: var(--green-900);
  padding: 18px 22px; border-radius: var(--radius-sm); margin: 0; font-size: .98rem;
}
.note .icon { margin-top: 3px; color: var(--green-700); }

/* Locations -------------------------------------------------------------- */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.location { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.map { position: relative; aspect-ratio: 16 / 9; background: var(--green-100); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green-700); font-size: .9rem; }
.location-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.location-body address { font-style: normal; color: var(--ink-soft); margin-bottom: .6em; }
.location-body address strong { display: inline-block; font: 500 1.15rem var(--font-serif); color: var(--green-900); margin-bottom: 2px; }
.location-ref { font-size: .92rem; color: var(--green-700); }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

.online-banner {
  margin-top: 24px; padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(circle at 90% 0%, rgba(217, 189, 140, .18), transparent 45%),
    var(--green-800);
  color: var(--sand-100); border-radius: var(--radius);
}
.online-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.online-head > div { max-width: 600px; }
.online-kicker { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d9bd8c; margin-bottom: .8rem; }
.online-banner h3 { color: var(--white); font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-bottom: .35em; }
.online-head p:not(.online-kicker) { margin: 0; color: rgba(243, 239, 230, .82); font-size: 1.1rem; }
.online-benefits {
  list-style: none; margin: 40px 0 0; padding: 32px 0 0;
  border-top: 1px solid rgba(243, 239, 230, .16);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.online-benefits li { display: flex; flex-direction: column; gap: 6px; }
.online-benefits .icon { width: 28px; height: 28px; color: #d9bd8c; margin-bottom: 8px; }
.online-benefits strong { font: 500 1.15rem var(--font-serif); color: var(--white); }
.online-benefits span { font-size: .95rem; color: rgba(243, 239, 230, .75); line-height: 1.55; }

/* FAQ -------------------------------------------------------------------- */
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 500 1.15rem var(--font-serif); color: var(--green-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding-right: 40px; margin-bottom: 22px; }
.faq details p + ul { margin: -8px 0 18px; padding: 0 40px 0 0; list-style: none; display: grid; gap: 10px; }
.faq details li { position: relative; padding-left: 22px; color: var(--ink-soft); }
.faq details li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.faq details li strong { color: var(--ink); font-weight: 600; }

/* Final CTA -------------------------------------------------------------- */
.cta-final {
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 147, 90, .22), transparent 45%),
    var(--green-900);
  color: var(--sand-100); padding: clamp(64px, 9vw, 104px) 0; text-align: center;
}
.cta-inner { max-width: 760px; }
.cta-final h2 { color: var(--white); }
.cta-final p { font-size: 1.15rem; opacity: .85; margin-bottom: 32px; }

/* Emergency -------------------------------------------------------------- */
.emergency { background: var(--sand-100); border-top: 1px solid var(--line); }
.emergency-inner { display: flex; gap: 14px; align-items: flex-start; padding-top: 22px; padding-bottom: 22px; }
.emergency .icon { color: #a6473a; margin-top: 3px; }
.emergency p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.emergency strong { color: var(--ink); }
.emergency a { font-weight: 600; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--green-900); color: rgba(243, 239, 230, .8); padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer strong { color: var(--white); display: block; margin-bottom: 8px; }
.footer-name { font: 500 1.3rem var(--font-serif); }
.site-footer a { color: var(--sand-100); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; opacity: .7; }

/* Floating WhatsApp ------------------------------------------------------ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: var(--white); text-decoration: none; font-weight: 600;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  box-shadow: 0 10px 28px -8px rgba(31, 168, 85, .6);
  transform: translateY(120px); opacity: 0; transition: transform .35s, opacity .35s, background-color .2s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { background: #17924a; color: var(--white); }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float-extra { display: none; }
@media (max-width: 560px) { .wa-float-extra { display: inline; } }

/* Reveal ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-float { transition: none; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .online-benefits { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand-50); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; box-shadow: 0 16px 24px -16px rgba(0, 0, 0, .2);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-menu li .btn { margin-top: 16px; width: 100%; }

  .cards, .modes, .steps { grid-template-columns: 1fr; }
  .steps { gap: 20px; }
}

@media (max-width: 860px) {
  .hero-media { position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 62vh; }
  .hero-media img {
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 38%);
    mask-image: linear-gradient(to top, transparent 0%, #000 38%);
  }
  .hero-inner { min-height: 0; margin-top: -110px; padding-top: 0; position: relative; }
  .hero-actions { margin-bottom: 40px; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip li, .hero-strip li + li { padding: 16px 0; border-left: 0; border-top: 1px solid rgba(243, 239, 230, .16); }
  .hero-strip li:first-child { border-top: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 8px; }
  .locations { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .credential, .credential:first-child { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .credential:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .faq details p, .faq details p + ul { padding-right: 0; }
  body { font-size: 1rem; }
  .hero-media { max-height: 52vh; }
  .hero-inner { margin-top: -80px; }
  .hero-actions .btn { width: 100%; }
  .online-banner { padding: 28px 24px; }
  .online-banner .btn { width: 100%; }
  .online-benefits { grid-template-columns: 1fr; gap: 22px; }
  .location-actions .btn { flex: 1; }
  .wa-float {
    left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    justify-content: center; gap: 10px;
    padding: 16px 20px; border-radius: 16px;
    font-size: 1.05rem;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
  }
  .wa-float .icon { width: 24px; height: 24px; }
  .footer-legal { padding-bottom: 96px; }
}
