/* ============================================================
   NOVA DENTAL, modelo dentista-5 (portfólio Lins Web)
   Implantodontia e odontologia digital, estética high-tech.
   TODO o esquema de cores deriva de --primary e --secondary
   (trocáveis ao vivo pelo picker.js via :root inline styles).
   ============================================================ */

:root {
  /* cores de marca (o picker sobrescreve estas quatro) */
  --primary: #1d4ed8;
  --secondary: #22d3ee;
  --on-primary: #ffffff;
  --on-secondary: #101418;

  /* neutros */
  --bg: #fafbfd;
  --surface: #ffffff;
  --on-dark: #ffffff;

  /* tokens derivados: SEMPRE via color-mix a partir das 2 variáveis */
  --ink: color-mix(in oklab, var(--primary), black 80%);
  --muted: color-mix(in oklab, var(--ink), white 32%);
  --line: color-mix(in oklab, var(--primary), white 86%);
  --line-strong: color-mix(in oklab, var(--primary), white 62%);
  --tint: color-mix(in oklab, var(--primary), white 90%);
  --soft: color-mix(in oklab, var(--primary), white 94%);
  --softer: color-mix(in oklab, var(--primary), white 97%);
  --sec-tint: color-mix(in oklab, var(--secondary), white 86%);
  --sec-ghost: color-mix(in oklab, var(--secondary), transparent 45%);

  --dark: color-mix(in oklab, var(--primary), black 72%);
  --dark-2: color-mix(in oklab, var(--primary), black 80%);
  --dark-raise: color-mix(in oklab, var(--dark), white 5%);
  --dark-line: color-mix(in oklab, var(--dark), white 14%);
  --dark-text: color-mix(in oklab, white, var(--dark) 26%);

  --primary-strong: color-mix(in oklab, var(--primary), black 16%);
  --glass: color-mix(in srgb, var(--surface) 86%, transparent);
  --glass-dark: color-mix(in srgb, var(--dark) 92%, transparent);
  --map-line: color-mix(in oklab, var(--primary), transparent 84%);
  --shadow: 0 12px 34px color-mix(in oklab, var(--primary), transparent 88%);

  --grad: linear-gradient(135deg, var(--primary), var(--secondary));

  /* motivo de cantos recortados a 45° (top-left + bottom-right) */
  --cut: 16px;
  --clip: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));

  --font-d: "Chakra Petch", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, sans-serif;
}

/* ------------------------------------------------------------ base */

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--primary); }

::selection { background: var(--secondary); color: var(--on-secondary); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}
.section--dark :focus-visible,
.footer :focus-visible,
.ctabar :focus-visible {
  outline-color: var(--secondary);
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 18px;
  font: 600 0.9rem var(--font-d);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus-visible { top: 12px; }

/* ------------------------------------------------------------ tipografia */

h1, h2, h3 {
  font-family: var(--font-d);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 5.2vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 0.78rem var(--font-d);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--grad);
  --cut: 4px;
  clip-path: var(--clip);
}
.section--dark .eyebrow { color: var(--secondary); }

.shead { max-width: 660px; margin-bottom: clamp(36px, 5vw, 54px); }
.shead p { color: var(--muted); margin-top: 12px; max-width: 56ch; }
.shead--c { margin-inline: auto; text-align: center; }
.shead--c .eyebrow { justify-content: center; }
.shead--c p { margin-inline: auto; }
.section--dark .shead p { color: var(--dark-text); }

/* palavra destacada: barra gradiente sob o texto (contraste AA mantido) */
.mark {
  background-image: var(--grad);
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  background-position: 0 94%;
  padding: 0 0.05em;
}

/* ------------------------------------------------------------ seções */

.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--soft { background: var(--softer); }
.section--tint { background: var(--soft); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--deep { background: var(--dark-2); color: var(--on-dark); }
section[id] { scroll-margin-top: 92px; }

/* ------------------------------------------------------------ botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font: 600 0.95rem var(--font-d);
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  --cut: 12px;
  clip-path: var(--clip);
  transition: background 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--primary); color: var(--on-primary); }
.btn--solid:hover { background: var(--primary-strong); }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.btn--ghost:hover { background: var(--tint); }
/* clip-path corta outline: foco visível via anel interno */
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px currentColor, inset 0 0 0 6px var(--sec-ghost);
}

/* ------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.logo {
  font: 700 1.02rem var(--font-d);
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo b { color: var(--primary); font-weight: 700; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; }
.nav a {
  font: 500 0.92rem var(--font-b);
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--primary); border-color: var(--secondary); }

.topbar__cta { padding: 11px 20px; font-size: 0.88rem; }

.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  --cut: 8px;
  clip-path: var(--clip);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 999px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  body.nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .nav a {
    display: block;
    padding: 13px clamp(20px, 5vw, 32px);
    border-bottom: 0;
    font-size: 1rem;
  }
  .burger { display: flex; }
}
@media (max-width: 639px) {
  .topbar__cta { display: none; }
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 100px);
  background:
    radial-gradient(680px 420px at 12% 0%, var(--soft), transparent 70%),
    radial-gradient(560px 380px at 96% 90%, var(--sec-tint), transparent 72%),
    var(--bg);
}
.hero__in {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero__copy .eyebrow { margin-bottom: 18px; }
.hero__sub {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.06rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* chips de dado com ponto pulsante */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 500 0.82rem var(--font-b);
  color: var(--ink);
  --cut: 8px;
  clip-path: var(--clip);
}
.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 0 var(--sec-ghost);
}
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.2s ease-out infinite; }
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* moldura com cantos recortados + camada gradiente deslocada */
.frame { position: relative; --cut: 26px; }
.frame::before {
  content: "";
  position: absolute;
  inset: 20px -18px -18px 20px;
  background: var(--grad);
  clip-path: var(--clip);
  opacity: 0.85;
}
.frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: var(--clip);
}
.frame__badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--dark);
  color: var(--on-dark);
  font: 600 0.8rem var(--font-d);
  letter-spacing: 0.04em;
  --cut: 9px;
  clip-path: var(--clip);
}

@media (max-width: 899px) {
  .hero__in { grid-template-columns: 1fr; }
  .frame { margin-right: 18px; }
  .frame__badge { left: 12px; }
}

/* ------------------------------------------------------------ faixa de números */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(26px, 4vw, 44px);
}
.stat { text-align: center; }
.stat__n {
  display: block;
  font: 700 clamp(2rem, 4vw, 2.7rem) var(--font-d);
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
  line-height: 1.1;
}
.stat__bar {
  display: block;
  width: 44px;
  height: 3px;
  margin: 12px auto 10px;
  background: var(--grad);
}
.stat__l {
  display: block;
  font-size: 0.86rem;
  color: var(--dark-text);
  max-width: 22ch;
  margin-inline: auto;
}
@media (max-width: 759px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------ timeline (assinatura) */

.tl {
  list-style: none;
  display: grid;
  gap: 38px;
  margin-top: clamp(40px, 5vw, 56px);
  position: relative;
}
.tl__step { position: relative; padding-left: 78px; }
.tl__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--on-primary);
  font: 700 1.25rem var(--font-d);
  font-variant-numeric: tabular-nums;
  --cut: 14px;
  clip-path: var(--clip);
}
/* linha conectora vertical (mobile) */
.tl__step::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 58px;
  bottom: -42px;
  width: 2px;
  background: var(--primary);
}
.tl__step:last-child::before { display: none; }
.tl__step h3 { margin-bottom: 8px; }
.tl__step p { color: var(--muted); font-size: 0.94rem; max-width: 46ch; }
.tl__tag {
  display: inline-block;
  font: 600 0.7rem var(--font-d);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

/* linha conectora horizontal (desktop) */
@media (min-width: 900px) {
  .tl { grid-template-columns: repeat(4, 1fr); gap: 30px; }
  .tl__step { padding-left: 0; padding-top: 78px; }
  .tl__num { top: 0; left: 0; }
  .tl__step::before {
    top: 26px;
    left: 66px;
    right: -30px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .tl__step p { max-width: none; }
}

/* ------------------------------------------------------------ tecnologia */

.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(232px, auto);
  gap: 20px;
}
.tgrid figure {
  height: 100%;
  min-height: 232px;
  overflow: hidden;
  --cut: 18px;
  clip-path: var(--clip);
}
.tgrid figure img { width: 100%; height: 100%; object-fit: cover; }
.tg--wide { grid-column: span 2; }
.tcard {
  background: var(--dark-raise);
  border: 1px solid var(--dark-line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  --cut: 18px;
  clip-path: var(--clip);
}
.tcard__ic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--on-primary);
  --cut: 12px;
  clip-path: var(--clip);
}
.tcard__ic svg { width: 24px; height: 24px; }
.tcard h3 { color: var(--on-dark); }
.tcard p { color: var(--dark-text); font-size: 0.92rem; }

@media (max-width: 899px) {
  .tgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 619px) {
  .tgrid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tg--wide { grid-column: auto; }
  .tgrid figure { min-height: 0; }
  .tgrid figure img { aspect-ratio: 16 / 10; height: auto; }
}

/* ------------------------------------------------------------ especialidades */

.cards4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 24px;
  --cut: 16px;
  clip-path: var(--clip);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card__ic {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--primary);
  margin-bottom: 16px;
  --cut: 13px;
  clip-path: var(--clip);
}
.card__ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 999px) { .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .cards4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ equipe */

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: clamp(28px, 4vw, 48px);
}
.member { text-align: center; }
.member figure {
  --cut: 22px;
  clip-path: var(--clip);
  margin-bottom: 18px;
}
.member img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.member h3 { font-size: 1.15rem; }
.member .cro {
  display: block;
  font: 600 0.74rem var(--font-d);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 6px 0 8px;
}
.member p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin-inline: auto; }

@media (max-width: 679px) {
  .team { grid-template-columns: minmax(0, 400px); }
}

/* ------------------------------------------------------------ diferenciais */

.whys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
}
.why { display: flex; gap: 16px; align-items: flex-start; }
.why__ic { flex: none; width: 28px; height: 28px; color: var(--secondary); margin-top: 2px; }
.why__ic svg { width: 28px; height: 28px; }
.why h3 { color: var(--on-dark); margin-bottom: 6px; }
.why p { color: var(--dark-text); font-size: 0.93rem; }

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

/* ------------------------------------------------------------ depoimentos */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  --cut: 16px;
  clip-path: var(--clip);
}
.quote__mark {
  font: 700 2.2rem/0.6 var(--font-d);
  color: var(--primary);
}
.quote blockquote { font-size: 0.95rem; color: var(--ink); }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-primary);
  font: 700 0.82rem var(--font-d);
}
.quote cite { font-style: normal; font-weight: 600; font-size: 0.9rem; display: block; }
.quote .meta { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 899px) { .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ------------------------------------------------------------ FAQ */

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  --cut: 12px;
  clip-path: var(--clip);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: 600 1rem var(--font-d);
  color: var(--ink);
}
.faq__q:hover { color: var(--primary); }
.faq__q:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--primary); }
.faq__ic { position: relative; flex: none; width: 18px; height: 18px; }
.faq__ic::before,
.faq__ic::after {
  content: "";
  position: absolute;
  inset: 8px 0;
  background: var(--primary);
  transition: transform 0.25s ease;
}
.faq__ic::after { transform: rotate(90deg); }
.faq__item.open .faq__ic::after { transform: rotate(0deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 20px 20px; color: var(--muted); font-size: 0.94rem; max-width: 68ch; }

/* ------------------------------------------------------------ contato */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.cinfo { display: grid; gap: 22px; margin-top: 8px; }
.crow { display: flex; gap: 16px; align-items: flex-start; }
.crow__ic {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--primary);
  --cut: 12px;
  clip-path: var(--clip);
}
.crow__ic svg { width: 22px; height: 22px; }
.crow h3 { font-size: 0.98rem; margin-bottom: 3px; }
.crow p, .crow address { color: var(--muted); font-size: 0.93rem; font-style: normal; }
.crow a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cnote {
  margin-top: 26px;
  padding: 16px 18px;
  background: var(--soft);
  border-left: 3px solid var(--secondary);
  font-size: 0.88rem;
  color: var(--muted);
}

.map {
  position: relative;
  min-height: 340px;
  height: 100%;
  display: grid;
  place-items: center;
  --cut: 22px;
  clip-path: var(--clip);
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, var(--map-line) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, var(--map-line) 46px 47px),
    linear-gradient(135deg, var(--tint), var(--sec-tint));
}
.map__pin { text-align: center; padding: 20px; }
.map__pin svg { width: 52px; height: 52px; color: var(--primary); margin-inline: auto; }
.map__label {
  margin-top: 12px;
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 15px;
  font: 500 0.82rem var(--font-b);
  color: var(--ink);
  --cut: 8px;
  clip-path: var(--clip);
}

@media (max-width: 859px) {
  .contact { grid-template-columns: 1fr; }
  .map { min-height: 280px; }
}

/* ------------------------------------------------------------ footer */

.footer { padding-top: clamp(52px, 7vw, 72px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding-bottom: 44px;
}
.footer .logo { color: var(--on-dark); }
.footer .logo b { color: var(--secondary); }
.footer__about { margin-top: 14px; color: var(--dark-text); font-size: 0.9rem; max-width: 36ch; }
.footer h3 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--dark-text); text-decoration: none; font-size: 0.9rem; }
.footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer address { font-style: normal; color: var(--dark-text); font-size: 0.9rem; display: grid; gap: 9px; }
.footer__bottom {
  border-top: 1px solid var(--dark-line);
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--dark-text);
}
.footer__bottom a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; font-size: 0.8rem; }

/* ------------------------------------------------------------ barra CTA sticky (só mobile) */

.ctabar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--dark-line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
}
.ctabar .btn { width: 100%; }
@media (max-width: 819px) {
  .ctabar { display: block; }
  body.bar-on .ctabar { transform: none; visibility: visible; }
  /* empurra o widget de cores do portfólio para cima da barra */
  body.bar-on .lwp { bottom: 88px; }
}

/* ------------------------------------------------------------ reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
