/* ============================================================
   ATLAS — Centro de Reabilitação do Idoso
   Landing Page • Identidade: marrom taupe + areia/creme
   Tipografia: Playfair Display (títulos) + Montserrat (corpo)
   Acessibilidade: fonte generosa e alto contraste (público idoso)
   ============================================================ */

:root {
  /* Paleta da marca */
  --brown: #786956;          /* primária — marca, botões, destaques */
  --brown-deep: #5c5040;     /* títulos */
  --brown-dark: #423a30;     /* texto forte */
  --sand: #e8dcce;           /* areia */
  --sand-soft: #f2ebe1;      /* blocos suaves */
  --cream: #faf9f7;          /* fundo base */
  --cream-neg: #fff8ef;      /* texto sobre fundos escuros */
  --sage: #a0aa8f;           /* verde sálvia — somente detalhes */

  /* Cores derivadas (controladas pelo painel de personalização) */
  --primary: var(--brown);
  --secondary: var(--sage);

  /* Texto */
  --text: #4a4035;
  --text-soft: #6e6354;
  --heading: var(--brown-deep);

  /* Superfícies */
  --bg: var(--cream);
  --bg-alt: var(--sand-soft);
  --surface: #ffffff;
  --border: #e4d9c9;

  /* Efeitos (intensidade controlável) */
  --fx: 1;
  --shadow-sm: 0 2px 10px rgba(74, 64, 53, calc(0.06 * var(--fx)));
  --shadow-md: 0 12px 34px rgba(74, 64, 53, calc(0.12 * var(--fx)));
  --shadow-lg: 0 26px 60px rgba(74, 64, 53, calc(0.18 * var(--fx)));
  --radius: 22px;
  --radius-lg: 30px;

  --maxw: 1200px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --text: #ece3d6;
  --text-soft: #c4b8a6;
  --heading: #f4ece0;
  --bg: #2a251f;
  --bg-alt: #332d25;
  --surface: #38312a;
  --border: #4a4136;
  --cream: #2a251f;
  --shadow-sm: 0 2px 10px rgba(0,0,0, calc(0.25 * var(--fx)));
  --shadow-md: 0 12px 34px rgba(0,0,0, calc(0.34 * var(--fx)));
  --shadow-lg: 0 26px 60px rgba(0,0,0, calc(0.46 * var(--fx)));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 18px;              /* base generosa p/ acessibilidade */
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--heading); line-height: 1.15; font-weight: 600; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.section__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.section__lead { font-size: 1.15rem; color: var(--text-soft); max-width: 720px; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem;
  padding: 16px 30px; border-radius: 100px; cursor: pointer;
  border: 2px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  line-height: 1;
}
.btn--primary {
  background: var(--primary); color: var(--cream-neg);
  box-shadow: 0 12px 28px rgba(120,105,86, calc(0.32 * var(--fx)));
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(120,105,86, calc(0.42 * var(--fx))); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: var(--cream-neg); transform: translateY(-3px); }
.btn--lg { padding: 19px 38px; font-size: 1.1rem; }
.btn__wa { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .4s ease;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--cream); }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .14em; color: var(--heading); }
.nav__brand-sub { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); }
.nav__links { display: flex; gap: 30px; align-items: center; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--text-soft); transition: color .2s; }
.nav__links a:hover { color: var(--primary); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--heading); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% 8%, color-mix(in srgb, var(--secondary) 26%, transparent), transparent 60%),
    linear-gradient(160deg, var(--cream) 0%, var(--sand) 100%);
  opacity: calc(0.55 + 0.45 * var(--fx)); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px; font-size: .82rem; font-weight: 600; color: var(--primary);
  margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero__sub { font-size: 1.22rem; color: var(--text-soft); margin-bottom: 18px; max-width: 560px; }
.hero__support { font-size: 1rem; color: var(--text-soft); margin-bottom: 32px; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.hero__micro { font-size: .88rem; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }
.hero__stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.hero__stat .num { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 700; color: var(--primary); }
.hero__stat .lbl { font-size: .85rem; color: var(--text-soft); }

.hero__visual { position: relative; }
.hero__photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 8px solid var(--surface); aspect-ratio: 4/5;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute; background: var(--surface); border-radius: 18px; padding: 16px 20px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border); display: flex; gap: 12px; align-items: center;
}
.hero__chip--tl { top: 26px; left: -26px; }
.hero__chip--br { bottom: 26px; right: -22px; }
.hero__chip .ic { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--secondary) 30%, var(--surface)); display: grid; place-items: center; font-size: 1.3rem; }
.hero__chip .t { font-weight: 700; font-size: 1rem; color: var(--heading); }
.hero__chip .s { font-size: .78rem; color: var(--text-soft); }

/* ---------- Posicionamento ---------- */
.pos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 10px; }
.pos__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.pos__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pos__card .tag { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--secondary); }
.pos__card h3 { font-size: 1.4rem; margin: 12px 0 12px; }
.pos__card p { color: var(--text-soft); font-size: 1rem; }

/* ---------- Dores (checklist) ---------- */
.pain { background: var(--bg-alt); }
.pain__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.pain__list { display: grid; gap: 14px; }
.pain__item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-sm); }
.pain__check { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--secondary) 28%, var(--surface)); color: var(--brown-deep); display: grid; place-items: center; font-weight: 700; }
.pain__item p { font-size: 1.05rem; color: var(--text); font-weight: 500; }
.pain__note { margin-top: 26px; font-size: 1.05rem; color: var(--text-soft); border-left: 3px solid var(--secondary); padding-left: 18px; }

/* ---------- Argumentos / Benefícios ---------- */
.args__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.arg {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.arg:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.arg__ic { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 16%, var(--surface)), color-mix(in srgb, var(--secondary) 22%, var(--surface))); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 20px; }
.arg h3 { font-size: 1.3rem; margin-bottom: 8px; }
.arg__benefit { font-weight: 600; color: var(--primary); font-size: .98rem; margin-bottom: 10px; }
.arg p { color: var(--text-soft); font-size: .98rem; }
.arg__num { position: absolute; top: 20px; right: 24px; font-family: var(--font-serif); font-size: 2.4rem; color: color-mix(in srgb, var(--secondary) 40%, transparent); font-weight: 700; }

/* ---------- Faixa de impacto ---------- */
.impact { background: linear-gradient(135deg, var(--brown) 0%, var(--brown-deep) 100%); color: var(--cream-neg); text-align: center; }
.impact h2 { color: var(--cream-neg); font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 920px; margin: 0 auto; }
.impact p { color: color-mix(in srgb, var(--cream-neg) 80%, transparent); margin-top: 18px; font-size: 1.15rem; }

/* ---------- Por que agora ---------- */
.now__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.now__card { text-align: center; padding: 36px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.now__num { font-family: var(--font-serif); font-size: 2.6rem; color: var(--primary); font-weight: 700; }
.now__card h3 { font-size: 1.25rem; margin: 8px 0 10px; }
.now__card p { color: var(--text-soft); font-size: .98rem; }

/* ---------- Antes x Depois ---------- */
.ba__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.ba__col { border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-sm); }
.ba__col--before { background: var(--surface); border: 1px solid var(--border); }
.ba__col--after { background: linear-gradient(160deg, color-mix(in srgb, var(--secondary) 22%, var(--surface)), var(--surface)); border: 2px solid var(--secondary); }
.ba__label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.ba__col--before .ba__label { color: var(--text-soft); }
.ba__col--after .ba__label { color: var(--primary); }
.ba__col h3 { font-size: 1.5rem; margin-bottom: 18px; }
.ba__li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 13px; color: var(--text); font-size: 1rem; }
.ba__li .mk { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.ba__col--before .mk { background: #e9e0d4; color: #9a8c78; }
.ba__col--after .mk { background: var(--primary); color: var(--cream-neg); }
.ba__arrow { display: grid; place-items: center; font-size: 2rem; color: var(--primary); }

/* ---------- Serviço / Oferta ---------- */
.serv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.serv__list { display: grid; gap: 16px; }
.serv__li { display: flex; gap: 14px; align-items: flex-start; }
.serv__li .ck { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: var(--cream-neg); display: grid; place-items: center; font-weight: 700; }
.serv__li b { color: var(--heading); }
.serv__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.serv__card h3 { font-size: 1.55rem; margin-bottom: 8px; }
.serv__card .sc-sub { color: var(--text-soft); margin-bottom: 24px; }
.serv__incl { display: grid; gap: 13px; margin-bottom: 28px; }
.serv__incl div { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.serv__incl .ck { width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--secondary) 30%, var(--surface)); color: var(--brown-deep); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }

/* ---------- Processo / Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.tl__step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm); }
.tl__num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--cream-neg); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 18px; }
.tl__step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.tl__step p { color: var(--text-soft); font-size: .95rem; margin-bottom: 14px; }
.tl__deliv { font-size: .82rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; background: var(--bg-alt); padding: 6px 12px; border-radius: 100px; }

/* ---------- Dashboard ilustrativo ---------- */
.dash { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.dash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.dash__head h3 { font-size: 1.3rem; }
.dash__pill { font-size: .76rem; font-weight: 700; color: var(--primary); background: var(--bg-alt); padding: 6px 14px; border-radius: 100px; }
.dash__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.metric { background: var(--bg-alt); border-radius: 16px; padding: 20px; }
.metric .mv { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--primary); }
.metric .ml { font-size: .82rem; color: var(--text-soft); }
.metric .mt { font-size: .76rem; color: var(--secondary); font-weight: 700; }

/* Gráfico comparativo (barras) */
.chart { background: var(--bg-alt); border-radius: 18px; padding: 26px; }
.chart__title { font-size: .9rem; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.chart__sub { font-size: .78rem; color: var(--text-soft); margin-bottom: 22px; }
.chart__bars { display: flex; align-items: flex-end; gap: 16px; height: 180px; }
.chart__group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart__bar { width: 70%; border-radius: 10px 10px 4px 4px; position: relative; transition: height 1s cubic-bezier(.2,.8,.2,1); }
.chart__bar--before { background: #d9cdbb; }
.chart__bar--after { background: linear-gradient(180deg, var(--primary), var(--brown-deep)); }
.chart__bar span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .78rem; font-weight: 700; color: var(--heading); }
.chart__xlbl { font-size: .76rem; color: var(--text-soft); text-align: center; }
.chart__legend { display: flex; gap: 20px; margin-top: 18px; justify-content: center; }
.chart__legend span { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--text-soft); }
.chart__legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ---------- Galeria / Prova social ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery figure { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: .82rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(40,33,25,.78)); }
.gallery .span2 { grid-column: span 2; }
.gallery .row2 { grid-row: span 2; }

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 30px; max-width: 720px; }
.team__card { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.team__card img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 3px solid var(--bg-alt); }
.team__card h4 { font-size: 1.15rem; }
.team__card span { font-size: .9rem; color: var(--text-soft); }

.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.testi__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.testi__stars { color: #d8a44e; margin-bottom: 12px; letter-spacing: 2px; }
.testi__card p { color: var(--text); font-style: italic; margin-bottom: 18px; }
.testi__who { display: flex; align-items: center; gap: 12px; }
.testi__av { width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--secondary) 35%, var(--surface)); display: grid; place-items: center; font-weight: 700; color: var(--brown-deep); }
.testi__who b { display: block; font-size: .95rem; color: var(--heading); }
.testi__who span { font-size: .82rem; color: var(--text-soft); }
.testi__note { margin-top: 22px; font-size: .85rem; color: var(--text-soft); text-align: center; }

/* ---------- Cobertura / cidades ---------- */
.cities { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cities span { background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 9px 18px; font-size: .9rem; font-weight: 500; color: var(--text); box-shadow: var(--shadow-sm); }
.cities span:first-child { background: var(--primary); color: var(--cream-neg); border-color: var(--primary); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 26px; font-family: var(--font-sans); font-size: 1.08rem; font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q .ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); color: var(--primary); display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s; }
.faq__item.open .faq__q .ic { transform: rotate(45deg); background: var(--primary); color: var(--cream-neg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 26px; }
.faq__item.open .faq__a { max-height: 320px; padding: 0 26px 24px; }
.faq__a p { color: var(--text-soft); }

/* ---------- CTA final ---------- */
.cta-final { background: linear-gradient(150deg, var(--brown) 0%, var(--brown-deep) 100%); color: var(--cream-neg); text-align: center; border-radius: var(--radius-lg); padding: 70px 40px; box-shadow: var(--shadow-lg); }
.cta-final h2 { color: var(--cream-neg); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.cta-final p { color: color-mix(in srgb, var(--cream-neg) 85%, transparent); font-size: 1.18rem; max-width: 620px; margin: 0 auto 32px; }
.cta-final .btn--primary { background: var(--cream-neg); color: var(--brown-deep); }
.cta-final .btn--primary:hover { background: #fff; }
.cta-final .micro { margin-top: 16px; font-size: .9rem; color: color-mix(in srgb, var(--cream-neg) 78%, transparent); }

/* ---------- Fechamento ---------- */
.closing { text-align: center; }
.closing__lines p { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--heading); line-height: 1.5; }
.closing__lines p + p { margin-top: 4px; }
.closing__body { color: var(--text-soft); max-width: 640px; margin: 24px auto 0; font-size: 1.1rem; }

/* ---------- Rodapé ---------- */
.footer { background: var(--brown-deep); color: color-mix(in srgb, var(--cream-neg) 82%, transparent); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--cream); }
.footer__brand b { font-family: var(--font-serif); font-size: 1.4rem; letter-spacing: .12em; color: var(--cream-neg); }
.footer p { font-size: .95rem; line-height: 1.7; }
.footer h4 { color: var(--cream-neg); font-family: var(--font-sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links a, .footer__contact div { display: block; font-size: .95rem; margin-bottom: 12px; color: color-mix(in srgb, var(--cream-neg) 80%, transparent); transition: color .2s; }
.footer__links a:hover { color: var(--cream-neg); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.5);
  animation: waPulse 2.4s infinite; transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
@keyframes waPulse { 0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,.5); } 50% { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 14px rgba(37,211,102,.12); } }

/* ---------- Painel de personalização ---------- */
.fx-panel { position: fixed; left: 22px; bottom: 22px; z-index: 60; }
.fx-toggle { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--primary); font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow-md); display: grid; place-items: center; }
.fx-body { position: absolute; bottom: 66px; left: 0; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); }
.fx-body h4 { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; }
.fx-row { margin-bottom: 18px; }
.fx-row label { display: block; font-size: .82rem; font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.fx-swatches { display: flex; gap: 10px; }
.fx-swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.fx-swatches button.active { border-color: var(--heading); transform: scale(1.12); }
.fx-row input[type="range"] { width: 100%; accent-color: var(--primary); }
.fx-theme { display: flex; gap: 8px; }
.fx-theme button { flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt); cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.fx-theme button.active { background: var(--primary); color: var(--cream-neg); border-color: var(--primary); }

/* ---------- Mapa de cobertura (Leaflet) ---------- */
.map {
  height: 460px; width: 100%; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border);
  margin-bottom: 24px; z-index: 1;
}
.map .leaflet-container { font-family: var(--font-sans); background: var(--bg-alt); }
.map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-md); }
.map .leaflet-popup-content { font-size: .9rem; color: var(--text); line-height: 1.5; }
.map .leaflet-popup-content b { color: var(--heading); }
.map .leaflet-popup-content a { color: var(--primary); font-weight: 600; }
.map-pin--city {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--secondary); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(74,64,53,.4); cursor: pointer;
}
.map-pin--clinic {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff; color: var(--cream-neg);
  display: grid; place-items: center; font-size: 1rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(120,105,86,.55);
}

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

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
  .pos__grid, .args__grid, .now__grid, .dash__metrics { grid-template-columns: 1fr 1fr; }
  .pain__grid, .serv__grid { grid-template-columns: 1fr; gap: 36px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .ba__grid { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .testi { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta .btn { display: none; }
  .pos__grid, .args__grid, .now__grid, .dash__metrics, .timeline, .gallery { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .hero__chip--tl { left: 8px; }
  .hero__chip--br { right: 8px; }
  .cta-final { padding: 50px 24px; }
  .fx-body { width: 240px; }
  .map { height: 360px; }
}
