/* =========================================================
   ATOS CLÍNICA — V3
   Estrutura visual aprovada (V1) + copy humanizado (V2)
   + ícones Font Awesome (sem emoji). Paleta navy/ciano/areia.
   Seções: 1.Tokens 2.Base 3.Utilitários 4.Header 5.Hero
   6.Sobre/Stats 7.Serviços 8.Objeções 9.Depoimentos/Casos
   10.FAQ 11.Estrutura 12.Contato 13.CTA 14.Footer/Float
   15.Reveal 16.Responsivo
   ========================================================= */

/* ============ 1. TOKENS ============ */
:root {
  --navy-900: #0D1B2A;
  --navy-700: #1B2A3D;
  --cyan-400: #5FD3E0;
  --cyan-700: #0E7C8A;
  --sand-100: #F2EDE6;
  --white:    #FFFFFF;
  --line:     #E2DED7;
  --line-navy: rgba(255,255,255,.14);
  --muted:     #5C6B7A;   /* secundário sobre claro (AA) */
  --muted-navy:#9FB0C0;   /* secundário sobre navy */

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1160px;
  --maxw-narrow: 800px;
  --header-h: 74px;
  --t: .3s ease;
}

/* ============ 2. BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); color: var(--navy-900); background: var(--white);
  line-height: 1.7; font-size: 1.02rem; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; font-weight: 700; letter-spacing: -.01em; }
::selection { background: var(--cyan-400); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; }

/* ============ 3. UTILITÁRIOS ============ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--sand { background: var(--sand-100); }

.block-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.kicker {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan-700); margin-bottom: .7rem;
}
.section__title { font-size: clamp(1.7rem, 4.2vw, 2.5rem); font-weight: 700; color: var(--navy-900); }
.section__lead { color: var(--muted); font-size: 1.05rem; margin-top: .9rem; }

.text-cyan { color: var(--cyan-400); }

/* Botões — planos, sem sombra pesada, sem gradiente */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .9rem 1.7rem; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
  min-height: 48px; white-space: nowrap;
}
.btn--cyan { background: var(--cyan-400); color: var(--navy-900); }
.btn--cyan:hover { background: #79dce8; transform: translateY(-2px); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--pill { background: var(--navy-900); color: #fff; border-radius: 100px; padding: .6rem 1.3rem; min-height: 42px; font-size: .92rem; }
.btn--pill:hover { background: var(--navy-700); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.06rem; }

/* ============ 4. HEADER ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center; transition: background var(--t), box-shadow var(--t);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header .logo__mark, .header .logo__sub, .header .nav__link { color: #fff; }
.header .nav__cta { color: #fff; }
.header.is-scrolled { background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(13,27,42,.06); }
.header.is-scrolled .logo__mark { color: var(--navy-900); }
.header.is-scrolled .logo__sub { color: var(--muted); }
.header.is-scrolled .nav__link { color: var(--navy-900); }
.header.is-scrolled .burger span { background: var(--navy-900); }

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__mark { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.logo__mark--light { color: #fff; }
.logo__sub { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav__link { font-family: var(--font-head); font-weight: 500; font-size: .95rem; position: relative; transition: color var(--t); }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--cyan-400); transition: width var(--t); }
.nav__link:hover::after { width: 100%; }
.header.is-scrolled .nav__link:hover { color: var(--cyan-700); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: #fff; transition: transform var(--t), opacity var(--t); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 5. HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; }
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background: url("https://images.unsplash.com/photo-1629909615184-74f495363b67?auto=format&fit=crop&w=1920&q=80") center 30%/cover no-repeat;
}
/* Overlay navy: gradiente sutil esq→dir (mais escuro onde fica o texto) */
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(13,27,42,.9) 0%, rgba(13,27,42,.72) 45%, rgba(13,27,42,.5) 100%); }
.hero__inner { max-width: 760px; padding-top: var(--header-h); }
.hero__eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; color: var(--cyan-400); margin-bottom: 1.1rem; }
.hero__eyebrow i { margin-right: .3rem; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 6.2vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
.hero__sub { color: #e7edf3; font-size: clamp(1.05rem, 2vw, 1.2rem); margin: 1.5rem 0 2.2rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Indicador de scroll: discreto, com "respiração" lenta. */
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  color: rgba(255,255,255,.72); font-size: .6rem; letter-spacing: .38em; text-indent: .38em;
  animation: breathe 2.8s ease-in-out infinite;
}
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0)); }
@keyframes breathe {
  0%, 100% { opacity: .55; transform: translate(-50%, 0); }
  50%      { opacity: 1;   transform: translate(-50%, 6px); }
}
/* Garante distância mínima do botão secundário acima (nunca cola/sobrepõe). */
.hero__inner { padding-bottom: calc(40px + 2rem); }

/* ============ 6. SOBRE / STATS ============ */
.sobre__head { text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.sobre__text { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.8rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.stat__ic { font-size: 1.6rem; color: var(--cyan-700); margin-bottom: .8rem; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--navy-900); line-height: 1.1; }
.stat__label { display: block; color: var(--muted); font-size: .92rem; margin-top: .4rem; }

/* ============ 7. SERVIÇOS ============ */
.serv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.serv { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2rem 1.6rem; display: flex; flex-direction: column; transition: transform var(--t), border-color var(--t); }
.serv:hover { transform: translateY(-6px); border-color: var(--cyan-400); }
.serv__ic { font-size: 2rem; color: var(--cyan-700); margin-bottom: 1.1rem; }
.serv__title { font-size: 1.15rem; color: var(--navy-900); margin-bottom: .6rem; }
.serv__text { color: var(--muted); font-size: .96rem; flex: 1; margin-bottom: 1.1rem; }
.serv__link { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--cyan-700); display: inline-flex; align-items: center; gap: .4rem; transition: gap var(--t); }
.serv__link:hover { gap: .7rem; }

/* ============ 8. VOCÊ PODE ESTAR PENSANDO ============ */
.qa-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.qa__q { font-size: 1.2rem; color: var(--navy-900); margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.qa__q i { color: var(--cyan-700); font-size: 1rem; }
.qa__a { color: var(--muted); }
.qa__a em { color: var(--muted); }

/* ============ 9. DEPOIMENTOS / CASOS ============ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.case__body { padding: 1.3rem; position: relative; }
.case__quoteic { color: var(--cyan-400); font-size: 1.1rem; margin-bottom: .4rem; }
.case__quote { font-family: var(--font-head); font-style: italic; font-size: 1.02rem; color: var(--navy-900); }
.case__name { color: var(--muted); font-size: .88rem; margin-top: .6rem; }

/* Slider antes/depois */
.ba { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: ew-resize; user-select: none; touch-action: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid #fff; }
.ba__before-wrap img { max-width: none; height: 100%; } /* largura px definida via JS */
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); display: grid; place-items: center; }
.ba__handle i { background: #fff; color: var(--navy-900); font-size: .7rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.ba__tag { position: absolute; bottom: 10px; font-family: var(--font-head); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: rgba(13,27,42,.72); padding: 3px 8px; border-radius: 4px; }
.ba__tag--before { left: 10px; }
.ba__tag--after { right: 10px; }

.google-rating { display: inline-flex; align-items: center; gap: .8rem; margin: 2.5rem auto 0; padding: .8rem 1.4rem; border: 1px solid var(--line); border-radius: 100px; background: #fff; font-size: .95rem; color: var(--navy-900); transition: border-color var(--t); }
.depoimentos .google-rating { display: flex; width: fit-content; }
.google-rating:hover { border-color: var(--cyan-400); }
.google-rating__stars { color: var(--cyan-400); letter-spacing: .1em; }
.google-rating strong { font-family: var(--font-head); }

.disclaimer { color: var(--muted); font-size: .8rem; margin-top: 1.4rem; text-align: center; }

/* ============ 10. FAQ ============ */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy-900); padding: 1.3rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc__ic { flex: none; color: var(--cyan-700); font-size: .95rem; transition: transform var(--t); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.acc__a p { color: var(--muted); padding-bottom: 1.3rem; }
.acc__a em { color: var(--muted); }

/* ============ 11. ESTRUTURA ============ */
.estr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.estr img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.estr figcaption { color: var(--muted); font-size: .92rem; margin-top: .7rem; }
.estr figcaption i { color: var(--cyan-700); margin-right: .3rem; }

/* ============ 12. CONTATO ============ */
.contato__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contato__info .kicker, .contato__info .section__title { text-align: left; }
.info-list { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.info-list li { display: flex; align-items: flex-start; gap: 1rem; }
.info-list__ic { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--sand-100); color: var(--cyan-700); display: grid; place-items: center; font-size: 1.2rem; }
.info-list div { display: flex; flex-direction: column; }
.info-list strong { font-family: var(--font-head); color: var(--navy-900); font-size: .95rem; }
.info-list a, .info-list span { color: var(--muted); }
.info-list a:hover { color: var(--cyan-700); }
.info-list em { color: var(--muted); font-size: .85rem; }
.contato__map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.contato__map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ============ 13. CTA FINAL ============ */
.cta { background: var(--navy-900); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; }
.cta__title { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; }
.cta__text { color: var(--muted-navy); font-size: 1.1rem; margin: 1.1rem auto 2rem; max-width: 580px; }

/* ============ 14. FOOTER + FLOAT ============ */
.footer { background: var(--navy-900); color: var(--muted-navy); padding-top: clamp(3rem, 6vw, 4rem); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 2rem; padding-bottom: 2.6rem; }
.footer__col p { margin-top: .9rem; font-size: .93rem; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; font-weight: 600; }
.footer__col a, .footer__col span { display: block; font-size: .92rem; margin-bottom: .6rem; transition: color var(--t); }
.footer__col a i, .footer__col span i { width: 18px; color: var(--cyan-400); margin-right: .2rem; }
.footer__col a:hover { color: #fff; }
.footer__muted { color: #708090; }
.footer__base { border-top: 1px solid var(--line-navy); padding: 1.3rem 0; }
.footer__base-inner { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; font-size: .84rem; color: #708090; }

/* z-index abaixo do header (1000) e acima do conteúdo. */
.wpp-float { position: fixed; right: 20px; bottom: 20px; z-index: 950; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; transition: transform var(--t); box-shadow: 0 6px 18px rgba(13,27,42,.25); }
.wpp-float:hover { transform: scale(1.08); }

/* ============ 15. REVEAL ============ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .serv:hover { transform: none; }
}

/* ============ 16. RESPONSIVO ============ */
@media (max-width: 1024px) {
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cases-grid, .estr-grid { grid-template-columns: 1fr 1fr; }
  .contato__grid { grid-template-columns: 1fr; }
}
/* Mobile: overlay do hero mais forte pra o texto nunca competir com a foto. */
@media (max-width: 768px) {
  .hero__shade { background: linear-gradient(rgba(13,27,42,.84), rgba(13,27,42,.66)); }
}
@media (max-width: 720px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: 0 10px 24px rgba(13,27,42,.1);
    transform: translateY(-120%); transition: transform var(--t);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { color: var(--navy-900) !important; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1rem 1.5rem; text-align: center; color: #fff !important; }
  .stats { grid-template-columns: 1fr; }
  .serv-grid, .cases-grid, .estr-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}
/* Telas pequenas: some com o indicador (evita apertar o hero) e reduz o float. */
@media (max-width: 480px) {
  .hero__scroll { display: none; }
  .hero__inner { padding-bottom: 0; }
  .wpp-float { width: 50px; height: 50px; font-size: 1.5rem; right: 14px; bottom: 14px; }
  .cta__inner { padding-bottom: 1.5rem; } /* área de folga acima do float */
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}
