/* =========================================================================
   Spaço Oral & Saúde - Grajaú/MA
   Sistema: CSS nativo com custom properties. Sem framework, sem build.

   Paleta: monocromia verde-pinho + off-white.
   Motivo: praticamente toda clinica odontologica brasileira usa o mesmo
   azul-ciano com dente branco. O verde afasta do clichê sem perder o
   sinal de saude, e conversa com o unico canal que a clinica ja usa
   (WhatsApp), sem virar verde de WhatsApp.

   Raio de canto (regra unica do projeto):
     - superficies e midia: var(--r)      = 18px
     - botoes e pills:      var(--r-pill) = 999px
   Nada mais.
   ========================================================================= */

:root {
  --bg:        #f5f6f3;
  --surface:   #fbfcfa;
  --surface-2: #eceee8;
  --ink:       #10201b;
  --ink-2:     #4d5c56;
  --line:      rgba(16, 32, 27, 0.13);
  --line-soft: rgba(16, 32, 27, 0.07);

  --brand:     #0e3b31;   /* blocos de cor escuros */
  --brand-ink: #d7ece2;   /* texto sobre o bloco escuro */
  --accent:    #17705a;   /* unico acento do projeto */
  --accent-ink:#ffffff;
  --accent-soft: rgba(23, 112, 90, 0.10);

  --r: 18px;
  --r-pill: 999px;

  --shadow: 0 1px 2px rgba(16, 32, 27, .04), 0 12px 32px -12px rgba(16, 32, 27, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --wrap: 1240px;
  --font-display: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

/*
  O tema nao mora numa media query. Quem carimba data-theme no <html> e o
  script inline do <head>, que roda antes da primeira pintura: le a escolha
  salva e, na falta dela, cai no prefers-color-scheme do sistema.

  Foi feito assim para nao duplicar a lista de fichas em dois lugares (media
  query + atributo), que e o jeito classico de uma ficha mudar num lugar e
  esquecer no outro. O preco: sem JS a pagina fica sempre no claro, que e o
  modo principal da marca de qualquer forma.
*/
:root { color-scheme: light; }

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #0b1512;
  --surface:   #111e19;
  --surface-2: #16261f;
  --ink:       #e9f0ec;
  --ink-2:     #9db0a8;
  --line:      rgba(233, 240, 236, 0.14);
  --line-soft: rgba(233, 240, 236, 0.08);

  --brand:     #0d2f28;
  --brand-ink: #cfe6db;
  --accent:    #3fbf96;
  --accent-ink:#07130f;
  --accent-soft: rgba(63, 191, 150, 0.13);

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 40px -14px rgba(0, 0, 0, .6);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip:focus { left: 0; }

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

/* ---------- botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .12s var(--ease);
}
.btn i { font-size: 18px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--accent) 86%, black); }
.btn--primary:active { transform: scale(.98); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.btn--ghost:active { transform: scale(.98); }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.link:hover { border-bottom-color: currentColor; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.nav__inner {
  height: 72px;
  display: flex; align-items: center; gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
  border-radius: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
}
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand__amp { color: var(--accent); }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

.nav__cta { flex-shrink: 0; }

/* botao de tema: no desktop fica ao lado do CTA, no celular vira linha do menu */
.theme-toggle {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2); font-size: 19px; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease), transform .12s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.theme-toggle:active { transform: scale(.94); }

.nav__mobile-tema {
  display: flex; align-items: center; gap: 12px;
  width: 100%; margin-top: 6px; padding: 14px 0 12px;
  background: none; border: 0; border-top: 1px solid var(--line-soft);
  color: var(--ink); cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 17px; font-weight: 500;
}
.nav__mobile-tema i { font-size: 21px; color: var(--accent); }
.nav__toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--r-pill);
  width: 42px; height: 42px; color: var(--ink); font-size: 20px; cursor: pointer;
  align-items: center; justify-content: center;
}

.nav__mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 20px 22px;
  border-top: 1px solid var(--line-soft);
}
.nav__mobile a { text-decoration: none; padding: 12px 0; font-size: 17px; font-weight: 500; }
.nav__mobile .btn { margin-top: 10px; }
.nav__mobile:not([hidden]) { display: flex; }

@media (max-width: 900px) {
  .nav__links, .nav__cta, .theme-toggle { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* escala pensada junto com a imagem: o titulo cabe em 2 linhas ate 1440px */
.hero__title {
  font-size: clamp(2.35rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  font-weight: 800;
  max-width: 20ch;
}
.hero__sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 46ch;
}
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { margin: 0; }
.hero__media img {
  width: 100%; height: clamp(360px, 52vw, 560px); object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__title { max-width: none; }
  .hero__media { order: -1; }
  /* imagem menor no celular para o CTA nao sair da primeira dobra */
  .hero__media img { height: 240px; }
  .hero__sub { margin-top: 16px; }
  .hero__actions { margin-top: 24px; }
}
@media (max-width: 400px) {
  .hero__media img { height: 200px; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- faixa de confianca ---------- */
.trust { padding-bottom: clamp(40px, 6vw, 72px); }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__item {
  padding: 26px 24px 26px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.trust__item + .trust__item { border-left: 1px solid var(--line-soft); padding-left: 24px; }
.trust__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.trust__value i { font-size: .8em; color: var(--accent); }
.trust__label { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }

@media (max-width: 760px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item { padding: 20px 16px 20px 0; }
  .trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(even) { border-left: 1px solid var(--line-soft); padding-left: 20px; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ---------- estrutura de secao ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }

.section__head { max-width: 62ch; margin-bottom: clamp(36px, 4vw, 56px); }
.section__head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1;
}
.section__head p { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- bento de tratamentos ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento__cell {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.bento__cell:hover { transform: translateY(-3px); border-color: var(--line); }

/* 5 tratamentos, 5 celulas, zero buraco:
   linha 1 = 4 + (2 que desce)  |  linha 2 = 2 + 2  |  linha 3 = 6 deitada */
.bento__cell--wide { grid-column: span 4; }
.bento__cell--tall { grid-column: span 2; grid-row: span 2; }
.bento__cell--full { grid-column: span 6; flex-direction: row; align-items: stretch; }
.bento__cell--full .bento__img { width: 40%; height: auto; min-height: 220px; }
.bento__cell--full .bento__body { justify-content: center; padding: 32px 36px; }
.bento__cell--full h3 { font-size: 1.35rem; }
.bento__cell--full p { max-width: 52ch; }

.bento__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bento__icon {
  font-size: 26px; color: var(--accent);
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--accent-soft); border-radius: var(--r-pill);
  margin-bottom: 6px;
}
.bento__cell h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.bento__cell p { color: var(--ink-2); font-size: 15.5px; }
.bento__note { padding-top: 10px; border-top: 1px solid var(--line-soft); margin-top: auto; }

.bento__img { width: 100%; height: 190px; object-fit: cover; }

/* celula de marca: cor cheia, quebra a monotonia branco-sobre-branco */
.bento__cell--brand { background: var(--brand); border-color: transparent; }
.bento__cell--brand h3 { color: #fff; }
.bento__cell--brand p { color: var(--brand-ink); }
.bento__cell--brand .bento__icon { background: rgba(255,255,255,.12); color: #8fd9bd; }
.bento__cell--brand .bento__note { border-top-color: rgba(255,255,255,.16); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell,
  .bento__cell--wide,
  .bento__cell--tall { grid-column: span 1; grid-row: auto; }
  .bento__cell--full { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--full { grid-column: span 1; flex-direction: column; }
  .bento__cell--full .bento__img { width: 100%; height: 190px; min-height: 0; }
  .bento__cell--full .bento__body { padding: 22px; }
  .bento__body { padding: 22px; }
}

/* ---------- tecnologia (bloco de cor) ---------- */
.tech {
  background: var(--brand);
  color: var(--brand-ink);
  padding: clamp(64px, 9vw, 116px) 0;
}
.tech__inner {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.tech__media { margin: 0; }
.tech__media img {
  width: 100%; height: clamp(300px, 38vw, 440px); object-fit: cover;
  border-radius: var(--r);
}
.tech__copy h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; }
.tech__lead { margin-top: 18px; font-size: 1.08rem; max-width: 50ch; }

.tech__list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.tech__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.tech__list i { color: #8fd9bd; font-size: 21px; flex-shrink: 0; margin-top: 1px; }

.tech__quote {
  margin: 32px 0 0; padding-left: 20px;
  border-left: 2px solid rgba(255,255,255,.28);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  line-height: 1.5; color: #fff;
}
.tech__quote cite {
  display: block; margin-top: 12px; font-family: var(--font-body);
  font-size: 14px; font-style: normal; font-weight: 500; color: var(--brand-ink);
}

@media (max-width: 860px) {
  .tech__inner { grid-template-columns: 1fr; }
  .tech__media img { height: 260px; }
}

/* ---------- a clinica ---------- */
.about__inner {
  display: grid; grid-template-columns: 1.05fr 0.8fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.about__copy h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.12; max-width: 17ch; }
.about__copy p { margin-top: 20px; color: var(--ink-2); max-width: 54ch; }
.about__copy strong { color: var(--ink); font-weight: 600; }

.about__quote {
  margin: 30px 0 0; padding: 22px 24px;
  background: var(--accent-soft); border-radius: var(--r);
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  line-height: 1.5;
}
.about__quote cite {
  display: block; margin-top: 12px; font-family: var(--font-body);
  font-size: 14px; font-style: normal; color: var(--ink-2);
}

.about__media { margin: 0; }
.about__media img {
  width: 100%; height: clamp(340px, 44vw, 500px); object-fit: cover;
  border-radius: var(--r); box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__copy h2 { max-width: none; }
  .about__media img { height: 300px; }
}

/* ---------- timeline da primeira consulta ---------- */
.steps { background: var(--surface-2); }

.timeline { max-width: 720px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 26px; top: 26px; bottom: 26px;
  width: 1px; background: var(--line);
}
.timeline__item {
  position: relative; display: flex; gap: 24px; align-items: flex-start;
  padding-bottom: 36px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__icon {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 53px; height: 53px; display: grid; place-items: center;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 24px;
}
.timeline__item h3 { font-size: 1.2rem; margin-top: 12px; }
.timeline__item p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

@media (max-width: 620px) {
  .timeline::before { left: 21px; }
  .timeline__item { gap: 16px; }
  .timeline__icon { width: 43px; height: 43px; font-size: 20px; }
  .timeline__item h3 { margin-top: 7px; }
}

/* ---------- resultados ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery__item { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.gallery__item img {
  width: 100%; height: clamp(240px, 26vw, 340px); object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

.rating {
  margin-top: 32px; padding: 22px 26px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.rating__stars { color: var(--accent); font-size: 19px; display: inline-flex; gap: 2px; }
.rating__text { color: var(--ink-2); }
.rating__text strong { color: var(--ink); font-weight: 600; }
.rating .link { margin-left: auto; }
@media (max-width: 560px) { .rating .link { margin-left: 0; } }

/* depoimentos reais (bloco fica escondido ate existirem textos verdadeiros) */
.quotes { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
  margin: 0; padding: 26px; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r);
}
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.quote figcaption { margin-top: 16px; font-weight: 600; font-size: 14.5px; }
.quote figcaption span { display: block; font-weight: 400; color: var(--ink-2); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq__inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.section__head--left { margin-bottom: 0; position: sticky; top: 108px; }
@media (max-width: 900px) {
  .faq__inner { grid-template-columns: 1fr; }
  .section__head--left { position: static; margin-bottom: 32px; }
}

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  transition: color .2s var(--ease);
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary:hover { color: var(--accent); }
.acc__item summary i {
  flex-shrink: 0; font-size: 20px; color: var(--accent);
  transition: transform .3s var(--ease);
}
.acc__item[open] summary i { transform: rotate(180deg); }
.acc__body { padding: 0 0 24px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.acc__body ul { display: flex; flex-direction: column; gap: 9px; }
.acc__body li { padding-left: 20px; position: relative; }
.acc__body li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .acc__item[open] .acc__body { animation: accIn .35s var(--ease); }
  @keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- local ---------- */
.local { background: var(--surface-2); }
.local__inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 4vw, 60px); align-items: center;
}
.local__info h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
.local__list { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 20px; }
.local__list li { display: flex; gap: 15px; align-items: flex-start; }
.local__list i { font-size: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.local__list strong { display: block; font-weight: 600; font-size: 16.5px; }
.local__list span { display: block; color: var(--ink-2); font-size: 15px; }

.local__map {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--surface);
}
.local__map iframe { width: 100%; height: clamp(320px, 40vw, 440px); border: 0; }

@media (max-width: 860px) { .local__inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--brand); color: var(--brand-ink); padding: 56px 0 28px; }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr auto;
  gap: 36px; align-items: start;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.13);
}
.footer .brand__name { color: #fff; }
.footer .brand__mark { background: rgba(255,255,255,.12); color: #8fd9bd; }
.footer .brand__amp { color: #8fd9bd; }
.footer__brand p { margin-top: 14px; font-size: 15px; max-width: 38ch; }

.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { text-decoration: none; font-size: 15px; opacity: .82; transition: opacity .2s var(--ease); }
.footer__nav a:hover { opacity: 1; }

.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill);
  font-size: 21px; color: #fff;
  transition: background-color .25s var(--ease);
}
.footer__social a:hover { background: rgba(255,255,255,.12); }

.footer__legal {
  padding-top: 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap;
  font-size: 13.5px;
}
.footer__legal-info { opacity: .72; }

/* credito de autoria: presente e legivel, sem competir com a marca do cliente */
.footer__credit {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; opacity: .65; /* abaixo disso o contraste cai do AA */
  transition: opacity .25s var(--ease);
}
.footer__credit:hover { opacity: .9; }
.footer__credit span { font-weight: 600; }
.footer__credit a {
  display: inline-flex; align-items: center; gap: 6px;
  padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .22);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.footer__credit a i { font-size: 14px; }
.footer__credit a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 780px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- whatsapp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-pill); font-size: 28px;
  box-shadow: 0 10px 28px -8px rgba(16, 32, 27, .5);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float:active { transform: scale(.95); }

/* No rodape o botao flutuante cobre o canto do credito de autoria e rouba o
   clique dele. Como o rodape ja tem o icone do WhatsApp e o CTA fica logo
   acima, ele recolhe quando o rodape entra em cena. */
.wa-float { transition: transform .3s var(--ease), opacity .3s var(--ease); }
.wa-float.is-hidden {
  opacity: 0; transform: translateY(90px) scale(.9); pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}

/* ---------- reveal no scroll (IntersectionObserver, ver main.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); }
  .js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
}
