/* =========================================================
   Adonai Odontologia — styles.css (v3)
   Seções alternadas: escuro (#051D43) / claro (#F8F6F1)
   Dourado #D4BE88 · fontes do sistema · mobile-first · sem CDN
   ========================================================= */

:root {
  /* escuro */
  --navy: #051D43;
  --navy-deep: #041430;
  --navy-2: #0A2756;
  --gold: #D4BE88;
  --gold-hi: #F1E4BE;
  --gold-lo: #B89A5A;
  --gold-ink: #7A5F22;          /* dourado escuro p/ texto em fundo claro (contraste AA) */
  --on-dark: #F5F5F7;
  --on-dark-muted: rgba(245, 245, 247, .68);
  --line-dark: rgba(212, 190, 136, .18);

  /* claro */
  --cream: #F8F6F1;
  --white: #FFFFFF;
  --ink: #0B1B36;
  --ink-muted: #4B5568;
  --line-light: #E5DFD1;

  --error-dark: #FF8A80;
  --error-light: #B3261E;
  --ok-light: #1E6B3A;

  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 56px;
  --sec-y: 64px;                /* espaçamento vertical padrão das seções */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --beat: 2.6s;
  --champagne: #FFF3C8;          /* ponto de luz dourado-champanhe */                 /* ciclo do batimento da logo: tum-tum... pausa */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  background: var(--navy);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--on-dark);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
address { font-style: normal; }
button, input, select { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.light :focus-visible { outline-color: var(--gold-ink); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.kicker {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.kicker-dark { color: var(--gold-ink); }

.display {
  font-size: clamp(2rem, 7.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #FFFFFF;
  text-wrap: balance;
}
.headline {
  font-size: clamp(1.7rem, 5.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.dark .headline, .journey .headline { color: #FFFFFF; }
.light .headline { color: var(--ink); }

.lead {
  margin-top: 12px;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.55;
  max-width: 52ch;
}
.dark .lead { color: var(--on-dark-muted); }
.light .lead { color: var(--ink-muted); }

.gold-text {
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Botões ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 1.03rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s var(--ease);
}
.pill-gold { background: var(--gold); color: var(--navy); }
.pill-gold:hover {
  background: var(--gold-hi);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 30px rgba(212, 190, 136, .32);
}
.pill-gold:active { transform: scale(.98); }
.light .pill-gold { box-shadow: 0 8px 22px rgba(184, 154, 90, .28); }
.pill-sm { min-height: 36px; padding: 8px 18px; font-size: .92rem; }
.pill-block { width: 100%; min-height: 54px; font-size: 1.1rem; }
.pill-block .icon { width: 1.25em; height: 1.25em; }
.pill[disabled] { opacity: .65; cursor: progress; transform: none; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.light .link-more { color: var(--gold-ink); }
.link-more .icon { width: .85em; height: .85em; transition: transform .3s var(--ease-out); }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more:hover .icon { transform: translateX(3px); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 29, 67, .88);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(5, 29, 67, .7);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
  }
}
.site-header.is-scrolled {
  background: rgba(5, 29, 67, .9);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 24px rgba(4, 20, 48, .25);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 1rem; font-weight: 650; letter-spacing: .28em; color: #FFFFFF; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: transparent;
  padding: calc(var(--header-h) + 20px) 0 22px;
  text-align: center;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 8px; align-items: center; justify-items: center; }

/* Logo com halo dourado */
.hero-logo {
  position: relative;
  width: clamp(150px, 42vw, 190px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-logo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  /* a logo tem fundo #051D43 igual ao da seção; a máscara apaga as bordas do quadrado */
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 52%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 46%, #000 52%, transparent 70%);
  --ls: 1.28;                     /* amplia o símbolo, que ocupa só o centro do arquivo */
  transform: scale(var(--ls));
  mix-blend-mode: lighten;        /* o fundo azul da logo deixa o halo dourado aparecer por trás */
  animation: heartbeat var(--beat) ease-in-out infinite;
}
.halo {
  position: absolute;
  z-index: 1;
  inset: -2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 190, 136, .30) 0%, rgba(212, 190, 136, .10) 42%, transparent 68%);
  filter: blur(8px);
  animation: halo-beat var(--beat) ease-in-out infinite;
}
.halo-ring {
  position: absolute;
  z-index: 3;
  inset: 2%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 243, 200, .85);
  box-shadow: 0 0 18px 2px rgba(212, 190, 136, .5), inset 0 0 14px rgba(255, 243, 200, .25);
  opacity: 0;
  pointer-events: none;
  animation: halo-wave var(--beat) cubic-bezier(.2, .6, .3, 1) infinite;
}

.hero-copy { max-width: 640px; }
.hero-sub {
  margin: 14px auto 0;
  max-width: 44ch;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--on-dark-muted);
}
.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
}

/* Halo que irradia para fora a cada batida (sem giro) */
.hero-logo::before,
.hero-logo::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 2%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
/* 2ª onda: acompanha o 2º "tum" do batimento */
.hero-logo::before {
  border: 1px solid rgba(212, 190, 136, .8);
  box-shadow: 0 0 14px 1px rgba(212, 190, 136, .4);
  animation: halo-wave-2 var(--beat) cubic-bezier(.2, .6, .3, 1) infinite;
}
/* faixa de luz champanhe que se expande junto com a 1ª onda */
.hero-logo::after {
  background: radial-gradient(circle,
    transparent 56%,
    rgba(255, 243, 200, .32) 66%,
    rgba(212, 190, 136, .16) 72%,
    transparent 79%);
  animation: halo-wave var(--beat) cubic-bezier(.2, .6, .3, 1) infinite;
}

/* Barra de credenciais */
.creds {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.creds li {
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .03);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gold);
  text-align: center;
  white-space: nowrap;
}

/* Entrada do hero (CSS puro) */
.hero-in { animation: fade-up .9s var(--ease-out) both; }
.hero-in-logo { animation: fade-scale 1.1s var(--ease-out) both; }
.hero-in-1 { animation-delay: .1s; }
.hero-in-2 { animation-delay: .18s; }
.hero-in-3 { animation-delay: .28s; }
.hero-in-4 { animation-delay: .38s; }
.hero-in-5 { animation-delay: .5s; }

/* ---------- Primeira tela: Hero + 4 etapas, um só fundo azul contínuo ---------- */
.first-screen {
  position: relative;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(10, 39, 86, .45) 0%, transparent 100%),
    var(--navy);
}

/* ---------- Seções ---------- */
.section { padding: var(--sec-y) 0; }
.dark { background: var(--navy); color: var(--on-dark); }
.light { background: var(--cream); color: var(--ink); }
.white { background: #FFFFFF; }
/* cards em tom creme sobre o branco: contorno bem definido e bom contraste */
.white .t-card { background: var(--cream); border-color: #E2DACA; }
.white .t-card:hover,
.white .t-card:focus-visible { background: #FFFFFF; border-color: var(--gold); }
.white .t-featured .t-card { background: var(--navy); border-color: var(--navy); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .lead { margin-inline: auto; }
.section-cta { margin-top: 28px; text-align: center; }

/* ---------- Jornada (4 cards) ---------- */
.journey {
  background: transparent;
  padding: 26px 0 var(--sec-y);
}
.j-grid { display: grid; gap: 12px; }
.j-card {
  position: relative;
  padding: 20px 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 39, 86, .6), rgba(5, 29, 67, .6));
  border: 1px solid var(--line-dark);
  transition: transform .45s var(--ease-out), border-color .35s var(--ease);
}
.j-card:hover { transform: translateY(-4px); border-color: rgba(212, 190, 136, .45); }
.j-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.j-num { font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); }
.j-icon { width: 26px; height: 26px; color: var(--gold); }
.j-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: #FFFFFF; }
.j-text { margin-top: 6px; color: var(--on-dark-muted); font-size: .98rem; }

/* ---------- Tratamentos (claro) ---------- */
.t-grid { display: grid; gap: 12px; }
.t-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon text"
    "icon cta";
  column-gap: 14px;
  row-gap: 3px;
  height: 100%;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 0 1px 2px rgba(11, 27, 54, .04);
  text-decoration: none;
  color: var(--ink);
  transition: transform .4s var(--ease-out), border-color .3s var(--ease), box-shadow .4s var(--ease-out);
}
.t-card:hover,
.t-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(11, 27, 54, .1);
}
.t-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
}
.t-title { grid-area: title; font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.t-text { grid-area: text; color: var(--ink-muted); font-size: .95rem; }
.t-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-size: .92rem;
  font-weight: 650;
  color: var(--gold-ink);
}
.t-cta .icon { width: .8em; height: .8em; transition: transform .35s var(--ease-out); }
.t-card:hover .t-cta .icon { transform: translateX(4px); }

/* Card de destaque (Avaliação): ocupa a linha inteira, assim os outros 12
   fecham certinho em 4, 3, 2 ou 1 coluna, sem card sobrando */
.t-featured { grid-column: 1 / -1; }
.t-featured .t-card { background: var(--navy); border-color: var(--navy); }
.t-featured .t-icon { background: rgba(212, 190, 136, .14); }
.t-featured .t-title { color: #FFFFFF; }
.t-featured .t-text { color: var(--on-dark-muted); }
.t-featured .t-cta { color: var(--gold); }
.t-featured .t-card:hover,
.t-featured .t-card:focus-visible { border-color: var(--gold); }

/* ---------- Sobre (escuro, 2 colunas) ---------- */
.about-grid { display: grid; gap: 28px; align-items: center; }
/* Equipe: 3 cards lado a lado (abaixo do texto + foto) */
.team { display: grid; gap: 12px; }
.team-card {
  display: flex;               /* coluna: o link do Instagram vai para o rodapé do card */
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, .05);
  transition: background-color .3s var(--ease), transform .4s var(--ease-out);
}
.team-card:hover { background: rgba(255, 255, 255, .08); }
.team-role { font-size: .74rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.team-name { font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: #FFFFFF; }
.team-text { color: var(--on-dark-muted); font-size: .95rem; }
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;            /* links dos 3 cards alinhados na mesma altura */
  padding-top: 10px;
  width: fit-content;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.team-link .icon { width: 1.1em; height: 1.1em; }
.team-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.about-photo img {
  width: 100%;
  /* enquadramento fechado nos rostos, sem cortar ninguém nas laterais */
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  object-position: 50% 33%;
}

/* ---------- Agendar (claro) ---------- */
.booking { border-top: 1px solid var(--line-light); }
.booking-grid { display: grid; gap: 28px; }

.form {
  margin-top: 22px;
  padding: 22px 18px;
  display: grid;
  gap: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 0 20px 50px rgba(11, 27, 54, .08);
}
.field { display: grid; gap: 6px; }
.field label { font-size: .95rem; font-weight: 650; color: var(--ink); }

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 1.0625rem; /* evita zoom no iPhone */
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line-light);
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field input::placeholder { color: #8A90A0; }
.field input:hover,
.field select:hover { border-color: #CFC4A8; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-lo);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(212, 190, 136, .3);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--error-light);
  box-shadow: 0 0 0 4px rgba(179, 38, 30, .1);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select { padding-right: 46px; cursor: pointer; }
.select-wrap.is-prefilled select { animation: prefill 1.6s var(--ease) 1; }

.field-error { font-size: .88rem; font-weight: 650; color: var(--error-light); }
.field-error:empty { display: none; }

.form-status { font-size: .95rem; font-weight: 650; color: var(--ok-light); text-align: center; }
.form-status:empty { display: none; }
.form-status a { color: var(--navy); }

.form-privacy { font-size: .82rem; line-height: 1.5; color: var(--ink-muted); text-align: center; }
.form-noscript { font-size: .9rem; color: var(--error-light); }
.form-noscript a { color: var(--navy); }

/* Informações de contato */
.booking-info { display: grid; gap: 12px; align-content: start; }
.info {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-light);
}
.info-icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  flex-shrink: 0;
}
.info-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.info address { color: var(--ink-muted); margin-bottom: 4px; font-size: .97rem; }
.info .link-more { color: var(--gold-ink); }
.info-strong { color: var(--navy); font-size: 1.05rem; font-weight: 650; text-decoration: none; }
.info-strong:hover { color: var(--gold-ink); text-decoration: underline; }
.info-email { font-size: .97rem; overflow-wrap: anywhere; }
.footer-email { overflow-wrap: anywhere; }
.hours { display: grid; gap: 2px; color: var(--ink-muted); font-size: .97rem; }
.hours-row { display: grid; grid-template-columns: 1fr; }
.hours dt { color: var(--ink); font-weight: 650; }
@media (min-width: 400px) { .hours-row { grid-template-columns: 7.2rem 1fr; gap: 10px; } }

/* ---------- Rodapé (escuro) ---------- */
.site-footer {
  background: var(--navy); /* mesma cor do fundo da logo */
  color: var(--on-dark-muted);
  font-size: .92rem;
  padding: 36px 0 24px;
}
.footer-grid { display: grid; gap: 22px; }
.footer-brand img { width: 120px; height: 120px; margin-left: -14px; }
.footer-title { font-size: .95rem; font-weight: 650; color: var(--gold); margin-bottom: 8px; }
.footer-links { display: grid; gap: 6px; }
.footer-links a,
.footer-bottom a { text-decoration: none; color: var(--on-dark-muted); transition: color .2s var(--ease); }
.footer-links a:hover,
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: .82rem;
  color: rgba(245, 245, 247, .5);
}

/* ---------- Canvas do glitter dourado (criado pelo app.js) ---------- */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 101;               /* acima do cabeçalho, para o glitter do botão "Agendar" aparecer */
  pointer-events: none;       /* nunca bloqueia cliques */
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }
.js .wa-float { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.js .wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Revelar ao rolar (cascata) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .9s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .j-grid .j-card:nth-child(2) { transition-delay: .12s; }
.js .j-grid .j-card:nth-child(3) { transition-delay: .24s; }
.js .j-grid .j-card:nth-child(4) { transition-delay: .36s; }
.js .j-grid .j-card.is-visible:hover { transition-delay: 0s; }
.js .t-grid li:nth-child(3n+2) { transition-delay: .07s; }
.js .t-grid li:nth-child(3n) { transition-delay: .14s; }
.js .about-photo { transition-delay: .12s; }
.js .team .team-card:nth-child(2) { transition-delay: .1s; }
.js .team .team-card:nth-child(3) { transition-delay: .2s; }

/* ---------- Brilho dourado pulsante nas interações de conversão ----------
   Mesmo ritmo do batimento da logo (--beat). O pulso só liga no card/botão
   que está sob o mouse, com foco do teclado ou sendo tocado no celular. */

/* Base do reflexo metálico (cards e botões dourados).
   isolation + z-index:-1 => o reflexo passa POR CIMA do fundo e POR BAIXO do texto */
.t-card,
.pill-gold {
  isolation: isolate;
  overflow: hidden;
}
.pill-gold { position: relative; }
.t-card::after,
.pill-gold::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 55%;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(212, 190, 136, 0) 20%,
    rgba(212, 190, 136, .45) 40%,
    rgba(255, 243, 200, .95) 50%,
    rgba(212, 190, 136, .45) 60%,
    rgba(212, 190, 136, 0) 80%,
    transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  opacity: 0;
}
.pill-gold::after { width: 45%; }

/* Cards de tratamento */
.t-card:focus-visible,
.t-card:active {
  border-color: var(--gold);
  transform: translateY(-4px);
  animation: card-glow var(--beat) ease-in-out infinite;
}
@media (hover: hover) {
  .t-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    animation: card-glow var(--beat) ease-in-out infinite;
  }
  .t-card:hover::after { animation: sheen var(--beat) ease-in-out infinite; }
}
.t-card:focus-visible::after,
.t-card:active::after { animation: sheen var(--beat) ease-in-out infinite; }
.t-featured .t-card:focus-visible,
.t-featured .t-card:active { animation-name: card-glow-dark; }
@media (hover: hover) {
  .t-featured .t-card:hover { animation-name: card-glow-dark; }
}

/* Botões dourados: Agendar, Agendar avaliação, Comece pela avaliação, Enviar pelo WhatsApp */
.pill-gold:focus-visible,
.pill-gold:active {
  animation: btn-glow var(--beat) ease-in-out infinite;
}
@media (hover: hover) {
  .pill-gold:hover { animation: btn-glow var(--beat) ease-in-out infinite; }
  .pill-gold:hover::after { animation: sheen var(--beat) ease-in-out infinite; }
}
.pill-gold:focus-visible::after,
.pill-gold:active::after { animation: sheen var(--beat) ease-in-out infinite; }
.pill-gold[disabled],
.pill-gold[disabled]::after { animation: none; }

/* ---------- Keyframes ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade-scale { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
/* Batimento: 1 -> 1.045 -> 1 -> 1.03 -> 1 e pausa (só transform: não empurra o layout) */
@keyframes heartbeat {
  0%        { transform: scale(var(--ls)); }
  8%        { transform: scale(calc(var(--ls) * 1.045)); }
  16%       { transform: scale(var(--ls)); }
  24%       { transform: scale(calc(var(--ls) * 1.03)); }
  34%, 100% { transform: scale(var(--ls)); }
}
/* brilho em volta do card (só box-shadow: o conteúdo não treme) */
@keyframes card-glow {
  0%, 34%, 100% { box-shadow: 0 0 0 1px #D4BE88, 0 16px 36px rgba(11, 27, 54, .12), 0 0 18px 2px rgba(212, 190, 136, .45), 0 0 0 0 rgba(255, 243, 200, 0); }
  8%            { box-shadow: 0 0 0 1px #FFF3C8, 0 16px 36px rgba(11, 27, 54, .12), 0 0 34px 7px rgba(212, 190, 136, .75), 0 0 70px 12px rgba(255, 243, 200, .35); }
  16%           { box-shadow: 0 0 0 1px #D4BE88, 0 16px 36px rgba(11, 27, 54, .12), 0 0 20px 3px rgba(212, 190, 136, .5),  0 0 36px 4px rgba(255, 243, 200, .12); }
  24%           { box-shadow: 0 0 0 1px #FFF3C8, 0 16px 36px rgba(11, 27, 54, .12), 0 0 28px 5px rgba(212, 190, 136, .65), 0 0 56px 9px rgba(255, 243, 200, .25); }
}
/* versão para o card azul de destaque (brilho um pouco mais forte sobre o branco) */
@keyframes card-glow-dark {
  0%, 34%, 100% { box-shadow: 0 0 0 1px #D4BE88, 0 18px 40px rgba(5, 29, 67, .25), 0 0 20px 3px rgba(212, 190, 136, .5),  0 0 0 0 rgba(255, 243, 200, 0); }
  8%            { box-shadow: 0 0 0 1px #FFF3C8, 0 18px 40px rgba(5, 29, 67, .25), 0 0 38px 8px rgba(212, 190, 136, .8),  0 0 80px 14px rgba(255, 243, 200, .35); }
  16%           { box-shadow: 0 0 0 1px #D4BE88, 0 18px 40px rgba(5, 29, 67, .25), 0 0 22px 3px rgba(212, 190, 136, .55), 0 0 40px 5px rgba(255, 243, 200, .12); }
  24%           { box-shadow: 0 0 0 1px #FFF3C8, 0 18px 40px rgba(5, 29, 67, .25), 0 0 32px 6px rgba(212, 190, 136, .7),  0 0 64px 10px rgba(255, 243, 200, .25); }
}
/* botões: anel de brilho + leve escala */
@keyframes btn-glow {
  0%, 34%, 100% { transform: scale(1.02);  box-shadow: 0 0 0 1px rgba(255, 243, 200, .6), 0 0 18px 3px rgba(212, 190, 136, .5),  0 0 0 0 rgba(255, 243, 200, 0); }
  8%            { transform: scale(1.045); box-shadow: 0 0 0 1px #FFF3C8,                0 0 30px 7px rgba(212, 190, 136, .8),  0 0 56px 12px rgba(255, 243, 200, .4); }
  16%           { transform: scale(1.02);  box-shadow: 0 0 0 1px rgba(255, 243, 200, .7), 0 0 20px 4px rgba(212, 190, 136, .55), 0 0 30px 4px rgba(255, 243, 200, .14); }
  24%           { transform: scale(1.035); box-shadow: 0 0 0 1px #FFF3C8,                0 0 26px 6px rgba(212, 190, 136, .7),  0 0 46px 9px rgba(255, 243, 200, .3); }
}
/* reflexo metálico atravessando (no início de cada ciclo, depois pausa) */
@keyframes sheen {
  0%        { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  4%        { opacity: 1; }
  30%       { transform: translateX(260%) skewX(-18deg); opacity: 1; }
  34%, 100% { transform: translateX(260%) skewX(-18deg); opacity: 0; }
}
@keyframes halo-beat {
  0%        { opacity: .7;  transform: scale(.97); }
  8%        { opacity: 1;   transform: scale(1.05); }
  16%       { opacity: .8;  transform: scale(.99); }
  24%       { opacity: .95; transform: scale(1.03); }
  34%, 100% { opacity: .7;  transform: scale(.97); }
}
/* ondas de halo: nascem no pulso e se expandem para fora sumindo devagar */
@keyframes halo-wave {
  0%        { transform: scale(.94); opacity: 0; }
  7%        { transform: scale(.99); opacity: .95; }
  42%       { transform: scale(1.34); opacity: 0; }
  100%      { transform: scale(1.34); opacity: 0; }
}
@keyframes halo-wave-2 {
  0%, 20%   { transform: scale(.94); opacity: 0; }
  26%       { transform: scale(.99); opacity: .6; }
  58%       { transform: scale(1.26); opacity: 0; }
  100%      { transform: scale(1.26); opacity: 0; }
}
@keyframes prefill {
  0% { box-shadow: 0 0 0 0 rgba(212, 190, 136, 0); }
  25% { box-shadow: 0 0 0 6px rgba(212, 190, 136, .45); border-color: var(--gold-lo); }
  100% { box-shadow: 0 0 0 0 rgba(212, 190, 136, 0); border-color: var(--gold-lo); }
}

/* =========================================================
   Telas maiores
   ========================================================= */
@media (min-width: 560px) {
  .creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .creds li { padding: 8px 16px; }
  .j-grid { grid-template-columns: repeat(2, 1fr); }
  .t-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  :root { --header-h: 60px; --sec-y: 76px; }
  .wrap { padding-inline: 32px; }
  .t-card {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "title" "text" "cta";
    padding: 22px;
    row-gap: 4px;
  }
  .t-icon { margin-bottom: 10px; }
  .t-cta { margin-top: auto; padding-top: 10px; }
  .t-featured .t-card {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon title cta"
      "icon text  cta";
    column-gap: 18px;
    align-items: center;
  }
  .t-featured .t-icon { margin-bottom: 0; width: 52px; height: 52px; padding: 12px; }
  .t-featured .t-title { font-size: 1.25rem; }
  .t-featured .t-cta {
    margin-top: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
  }
  .form { padding: 28px; }
  .footer-grid { grid-template-columns: auto 1fr 1fr; gap: 48px; align-items: start; }
}

@media (min-width: 760px) {
  .team { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  :root { --sec-y: 88px; }

  /* Primeira tela: no mínimo a altura da tela; o branco só aparece depois de rolar */
  .first-screen {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + clamp(16px, 3vh, 40px)) 0 clamp(24px, 4vh, 56px);
  }
  .first-screen .hero { padding: 0; }
  .first-screen .journey { padding: clamp(28px, 4vh, 56px) 0 0; }
  .journey .section-head { margin-bottom: clamp(14px, 2.2vh, 28px); }
  .journey .section-cta { margin-top: clamp(14px, 2.2vh, 28px); }
  .journey .headline { font-size: clamp(1.7rem, 3.6vh, 2.5rem); }
  .journey .kicker { margin-bottom: 6px; }
  .j-card { padding: clamp(14px, 2vh, 20px) 18px clamp(16px, 2.2vh, 22px); }
  .j-top { margin-bottom: clamp(6px, 1.2vh, 12px); }
  .j-text { font-size: .95rem; }
  .first-screen .hero-logo { width: clamp(220px, 30vh, 320px); }
  .first-screen .creds { margin-top: clamp(16px, 2.6vh, 30px); padding-top: clamp(12px, 1.6vh, 16px); }

  /* Hero: texto à esquerda, logo à direita */
  .hero { text-align: left; }
  .hero-grid { grid-template-columns: 1.35fr .65fr; gap: 48px; justify-items: stretch; }
  .hero-logo { order: 2; width: 320px; justify-self: center; }
  .hero-copy { max-width: none; }
  .hero-sub { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .creds { justify-content: flex-start; margin-top: 30px; }

  .j-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .t-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px 56px; }
  .team { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .about-photo img { aspect-ratio: 4 / 3.4; }

  .booking-grid { grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; }
}

@media (min-width: 1200px) {
  .t-grid { grid-template-columns: repeat(4, 1fr); }
  .js .t-grid li:nth-child(n) { transition-delay: 0s; }
  .js .t-grid li:nth-child(4n+2) { transition-delay: .06s; }
  .js .t-grid li:nth-child(4n+3) { transition-delay: .12s; }
  .js .t-grid li:nth-child(4n) { transition-delay: .18s; }
}

/* Celulares pequenos (ex.: iPhone SE): hero continua cabendo numa tela */
@media (max-width: 559px) and (max-height: 700px) {
  .hero { padding-top: calc(var(--header-h) + 10px); }
  .hero-logo { width: 128px; }
  .display { font-size: 1.85rem; }
  .hero-sub { margin-top: 10px; font-size: .98rem; }
  .hero-actions { margin-top: 16px; gap: 10px 20px; }
  .creds { margin-top: 18px; padding-top: 12px; gap: 6px; }
  .creds li { padding: 7px 8px; font-size: .8rem; }
}

/* Notebooks com tela mais baixa (ex.: 1536×864): conteúdo da 1ª tela cabe inteiro */
@media (min-width: 960px) and (max-height: 900px) {
  .display { font-size: 3.1rem; }
  .hero-sub { margin-top: 10px; }
  .hero-actions { margin-top: 18px; }
}

/* Telas baixas (notebook 768px de altura) */
@media (min-width: 960px) and (max-height: 760px) {
  .display { font-size: 3rem; }
}

/* =========================================================
   Acessibilidade: menos movimento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-logo img,
  .halo,
  .halo-ring,
  .t-card,
  .pill-gold { animation: none !important; }
  .hero-logo::before,
  .hero-logo::after,
  .t-card::after,
  .pill-gold::after { animation: none !important; display: none; }
  .fx-canvas { display: none !important; }
}
