/* Dr. Gian Carlos Comerlatto · landing page
   Paleta: petróleo profundo #00433F · terracota #B5492A · creme #F7F2EA · sálvia #E3EAD9
   Títulos: Fraunces (serifa com calor humano) · Corpo: Inter */

:root {
  --deep: #00433F;
  --deep-2: #00332F;
  --terra: #B5492A;
  --terra-hover: #963D21;
  --terra-text: #9E3E22;
  --cream: #F7F2EA;
  --paper: #FBF8F3;
  --sage: #E3EAD9;
  --sage-ink: #3F5A44;
  --ink: #2B2B2B;
  --muted: #5B6168;
  --line: #E7DFD0;
  --white: #FFFFFF;

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

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px -28px rgba(0, 67, 63, .45);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 880px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--deep); color: #fff; padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--deep);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: .02em; color: var(--cream); margin-bottom: .6rem; }

.eyebrow {
  text-wrap: balance;
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--terra-text);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--terra); border-radius: 2px;
}

.lead { font-size: 1.14rem; color: var(--muted); max-width: 35rem; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: .4em; }
.section-sub { color: var(--muted); font-size: 1.04rem; margin: 0; max-width: 40rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font: 600 .95rem/1 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 22px -12px rgba(181,73,42,.7); }
.btn-primary:hover { background: var(--terra-hover); color: #fff; }
.btn-ghost { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn-ghost:hover { background: var(--deep); color: #fff; }
.btn-gold { background: var(--cream); color: var(--deep); }
.btn-gold:hover { background: #fff; }
.btn-small { padding: .7rem 1.15rem; font-size: .88rem; }

/* ---------- Faixa CRM ---------- */
.crm-strip {
  text-wrap: balance;
  background: var(--deep);
  color: var(--cream);
  text-align: center;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem 1rem;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 1rem;
}
.brand img { width: 170px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .92rem;
  color: var(--ink);
  position: relative; padding: .25rem 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--terra); border-radius: 2px; transition: width .25s ease;
}
.site-nav a:not(.btn):hover::after { width: 100%; }
.site-nav .btn-primary { color: #fff; }
.label-short { display: none; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: .5rem; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--deep); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.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 {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(55% 60% at 100% 0%, rgba(227, 234, 217, .9) 0%, transparent 65%),
    radial-gradient(45% 50% at 0% 100%, rgba(233, 196, 166, .5) 0%, transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: .6em; }
.hero .lead { margin-bottom: 2.25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem;
  margin: 2.75rem 0 0; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero-facts dt {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra-text); margin-bottom: .25rem;
}
.hero-facts dd { margin: 0; color: var(--ink); font-size: .95rem; }
.hero-facts dd a { text-decoration: none; font-weight: 600; color: var(--deep); }

.hero-panel {
  background: var(--deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 2.75rem);
  box-shadow: 0 30px 60px -30px rgba(0, 67, 63, .6);
  position: relative;
}
.hero-panel::before {
  content: ""; position: absolute; right: -14px; top: -14px;
  width: 90px; height: 90px; border-radius: 22px;
  background: var(--terra); opacity: .9; z-index: -1;
}
.panel-quote {
  font-family: var(--font-display); font-size: clamp(1.45rem, 1.4vw + 0.9rem, 1.8rem); line-height: 1.3;
  color: #fff; margin: 0 0 clamp(1.25rem, 2vw, 2rem);
}
.panel-list { list-style: none; padding: 0; margin: 0 0 clamp(1.5rem, 2.6vw, 2.25rem); display: grid; gap: clamp(.8rem, 1.2vw, 1.1rem); }
.panel-list li {
  position: relative; padding-left: 1.7rem; color: rgba(247,242,234,.9); font-size: clamp(.95rem, .5vw + .75rem, 1.02rem);
}
.panel-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--terra);
  box-shadow: 0 0 0 4px rgba(181,73,42,.25);
}
.panel-reg {
  margin: 0; padding-top: 1.25rem; border-top: 1px solid rgba(247,242,234,.18);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(247,242,234,.7);
}

/* ---------- Seções ---------- */
.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-soft { background: var(--cream); }

/* Tratamentos */
.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem 2.1rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: #D9CDB6; }
.card-num {
  display: inline-block; font-family: var(--font-display); font-size: .95rem;
  color: var(--terra-text); margin-bottom: 1rem; letter-spacing: .05em;
}
.card h3 { margin-bottom: .6rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.note {
  margin: 2.25rem 0 0; padding: 0 0 0 1rem;
  border-left: 2px solid var(--line);
  font-size: .86rem; color: var(--muted); line-height: 1.6;
}
.note strong { color: var(--muted); font-weight: 600; }

/* Quando procurar */
.split {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.split .section-sub { margin-top: .5rem; }
.checklist {
  list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem;
}
.checklist li {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem 1rem 3.2rem;
  color: var(--ink); font-size: .97rem;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage); color: var(--sage-ink);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* Passo a passo */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
  counter-reset: none;
}
.step {
  background: var(--deep); color: var(--cream);
  border-radius: var(--radius); padding: 2.25rem 2rem;
  position: relative; overflow: hidden;
}
.step h3 { color: #fff; margin-bottom: .6rem; }
.step p { margin: 0; color: rgba(247,242,234,.9); font-size: .96rem; }
.step-num {
  display: inline-block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 500;
  color: #E9C4A6; line-height: 1; margin-bottom: 1.25rem;
}

/* Quem atende */
.about-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about-photo { margin: 0; position: relative; max-width: 440px; width: 100%; justify-self: center; }
.about-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--sage); border-radius: 26px; z-index: 0;
}
.about-photo img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  border-radius: 22px; box-shadow: var(--shadow-soft);
}
.about-copy h2 { margin-bottom: .3em; }
.crm-line {
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terra-text); margin: 0 0 1.5rem;
}
.about-copy p { color: var(--muted); font-size: 1.02rem; margin: 0 0 1.1em; }

/* Atendimento */
.locations {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.25rem;
  align-items: stretch;
}
.location {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem 2rem;
  display: flex; flex-direction: column;
}
.location h3 { margin-bottom: 1.25rem; }
.location p { color: var(--muted); margin: 0; font-size: .97rem; }
.location .beclin-logo { margin: 0 0 1.5rem; width: 200px; max-width: 100%; height: auto; border-radius: 14px; }
.location .place { color: var(--ink); }
.location .place strong { color: var(--deep); }
/* Endereço compacto no card Presencial */
.location-presencial .place { font-size: .84rem; line-height: 1.55; }
.location-online { grid-column: 1 / -1; }

.map-frame {
  position: relative; min-height: 320px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  background: #fff;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 1.4rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: #D9CDB6; box-shadow: 0 10px 24px -20px rgba(0,67,63,.5); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600; color: var(--deep); font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); color: var(--terra-text);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 500;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; color: var(--muted); font-size: .96rem; }

/* Chamada final */
.cta {
  background: var(--sage); color: var(--ink); text-align: center;
  padding: clamp(4rem, 7vw, 5.5rem) 0;
}
.cta-inner { max-width: 40rem; }
.cta h2 { color: var(--deep); margin-bottom: .5em; }
.cta p { color: var(--sage-ink); margin: 0 auto 2rem; max-width: 36rem; font-size: 1.05rem; }

/* Rodapé */
.site-footer {
  background: var(--deep); color: rgba(247,242,234,.78);
  padding: 4rem 0 2rem; font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.1fr 1fr 0.8fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(247,242,234,.14);
}
.footer-grid p { margin: 0; line-height: 1.75; }
.footer-logo { width: 200px; height: auto; margin-bottom: 1.25rem; }
.site-footer a { color: #F3DCC9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { padding-top: 1.75rem; }
.footer-legal p { margin: 0 0 .6rem; font-size: .84rem; color: rgba(247,242,234,.76); max-width: 60rem; }

/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--terra); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 28px -12px rgba(181,73,42,.75);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); background: var(--terra-hover); }

/* Linha única (desktop e tablet). Em telas estreitas o texto quebra normalmente. */
@media (min-width: 761px) {
  .one-line { white-space: nowrap; }
}

.ico-link { display: inline-flex; align-items: center; gap: .45rem; }
.ico-link .ico { flex: none; opacity: .9; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .about-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 540px; }
  .about-photo { order: -1; max-width: 360px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
    box-shadow: 0 20px 30px -24px rgba(0,67,63,.5);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .header-inner { min-height: 72px; }
  .brand img { width: 140px; }
  .hero-facts { grid-template-columns: 1fr; }
  .cards, .locations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .crm-strip { font-size: .66rem; letter-spacing: .08em; padding: .55rem .75rem; text-wrap: balance; }
  .whatsapp-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 420px) {
  .cta-row .btn { width: 100%; }
  .container { width: min(100% - 2rem, var(--container)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Alinhamento do card: topo = topo do título; base = base dos botões (desktop) */
@media (min-width: 901px) {
  .hero-grid { align-items: start; }
  .hero-panel { margin-top: var(--hero-h1-offset, 0px); }
}

/* Painel verde: em telas médias de desktop, compacta o espaçamento para caber no trecho título→botões */
@media (min-width: 901px) and (max-width: 1100px) {
  .hero-panel { padding-block: 1.5rem; }
  .panel-quote { font-size: 1.45rem; margin-bottom: 1rem; }
  .panel-list { margin-bottom: 1.25rem; gap: .65rem; }
  .panel-list li { font-size: .95rem; }
  .panel-reg { padding-top: .9rem; }
}
