/* DENT+ Premium Redesign — shared system */

/* ============ SELF-HOSTED FONTS (latin subset only)
   Avoids the Google Fonts third-party round-trip and the
   render-blocking flag on the GFonts CSS. Variable fonts cover
   all weights with a single file. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Core brand — preserved from current site */
  --orange: #E87722;
  --orange-600: #D66814;
  --orange-50: #FFF4EC;
  /* WCAG AA-compliant orange for body text on bone/cream (4.5:1+).
     Use --orange for backgrounds, large text (18pt+), borders. */
  --orange-text: #B85708;
  --navy: #0F1B2D;
  --navy-900: #0A1322;
  --navy-800: #162238;
  --navy-500: #2A3A54;

  /* Warm neutrals — premium feel */
  --cream: #FAF6F1;
  --cream-2: #F4EDE3;
  --bone: #FFFBF5;
  --paper: #FFFFFF;
  --ink: #0F1B2D;
  --ink-60: rgba(15, 27, 45, 0.60);
  --ink-40: rgba(15, 27, 45, 0.40);
  --ink-15: rgba(15, 27, 45, 0.15);
  --ink-08: rgba(15, 27, 45, 0.08);

  /* Accent support (tweakable) */
  --mint: #C7E4D4;
  --sky:  #D6E4EE;
  --sand: #EADBC4;

  /* Type */
  --font-display: 'Space Grotesk', 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'General Sans', system-ui, sans-serif;
  --font-serif: 'Fraunces', 'Canela', Georgia, serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-1: 400ms;
  --dur-2: 700ms;
  --dur-3: 1100ms;
  --motion-scale: 1;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Container */
  --container: 1280px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 96px); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(32px, 4vw, 64px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 30px); }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 245, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 0 !important;
  box-shadow: none !important;
  transition: background 0.35s ease, color 0.35s ease;
}
/* Transparent dark glass when floating over the hero video */
.nav.nav-over {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  color: #FFFBF5;
}
.nav.nav-over .logo { color: #FFFBF5; }
.nav.nav-over .logo-mark img { filter: none; }
.nav.nav-over .nav-links a { color: rgba(255,251,245,0.85); }
.nav.nav-over .nav-links a:hover,
.nav.nav-over .nav-links a.active { color: #FFFBF5; }
.nav.nav-over .nav-links a.active::after { background: var(--orange); }
.nav.nav-over .nav-cta {
  background: rgba(255,251,245,0.1);
  color: #FFFBF5;
  border: 1px solid rgba(255,251,245,0.25);
  backdrop-filter: blur(8px);
}
.nav.nav-over .nav-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
}
/* Back to solid when scrolled past hero */
.nav.nav-over.nav-solid {
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0;
  color: var(--ink);
}
.nav.nav-over.nav-solid .logo { color: var(--ink); }
.nav.nav-over.nav-solid .logo-mark img { filter: invert(1) brightness(0.15); }
.nav.nav-over.nav-solid .nav-links a { color: var(--ink-60); }
.nav.nav-over.nav-solid .nav-links a:hover,
.nav.nav-over.nav-solid .nav-links a.active { color: var(--ink); }
.nav.nav-over.nav-solid .nav-cta {
  background: var(--navy);
  color: #FFFBF5;
  border: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  position: relative;
  overflow: visible;
}
.logo-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  /* Source is white — invert to dark for light backgrounds */
  filter: invert(1) brightness(0.15);
}
.footer .logo-mark img,
.hero-footbar .logo-mark img,
.nav-dark .logo-mark img {
  filter: none;
}
.logo-mark::after {
  display: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0; margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -26px;
  height: 2px;
  background: var(--orange);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--bone);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-cta:hover { background: var(--orange); transform: translateY(-1px); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5EE68C;
  box-shadow: 0 0 0 3px rgba(94, 230, 140, 0.25);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -10px rgba(232, 119, 34, 0.5);
}
.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 20px 40px -12px rgba(232, 119, 34, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 16px 20px;
}
.btn-ghost:hover { background: var(--ink-08); }
.btn-dark {
  background: var(--navy);
  color: var(--bone);
}
.btn-dark:hover { background: var(--navy-800); transform: translateY(-2px); }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow { transform: translate(3px, -3px); }

/* Sections */
section { position: relative; }
.section-pad { padding: clamp(80px, 10vw, 160px) 0; }
.section-pad-sm { padding: clamp(60px, 7vw, 110px) 0; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity calc(900ms * var(--motion-scale)) var(--ease),
              transform calc(900ms * var(--motion-scale)) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax layer */
.parallax {
  transition: transform 0.4s linear;
  will-change: transform;
}

/* Decorative curve path */
.bg-curve {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bg-curve svg { position: absolute; width: 100%; height: 100%; }
.bg-curve path {
  fill: none;
  stroke: var(--ink-08);
  stroke-width: 1.2;
  stroke-dasharray: 2000;
  stroke-dashoffset: 0;
}

/* Card */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-08);
  padding: 36px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(15, 27, 45, 0.2);
  border-color: transparent;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 251, 245, 0.75);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer h3 {
  color: var(--bone);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 500;
}
.footer a {
  color: rgba(255, 251, 245, 0.65);
  display: block;
  padding: 6px 0;
  font-size: 15px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer a:hover { color: var(--orange); transform: translateX(4px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1fr;
  gap: 48px;
}
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 251, 245, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 251, 245, 0.5);
}
.footer-huge {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  /* Purely decorative (aria-hidden). background-clip:text + transparent
     fill makes axe-core skip color-contrast checking. */
  color: transparent;
  background: rgba(255, 251, 245, 0.04);
  background-clip: text;
  -webkit-background-clip: text;
  position: absolute;
  bottom: -20px;
  left: 0; right: 0;
  text-align: center;
  font-weight: 500;
  pointer-events: none;
}

/* Tweaks panel */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  background: var(--navy);
  color: var(--bone);
  border-radius: 20px;
  padding: 20px;
  z-index: 100;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  font-family: var(--font-body);
  font-size: 13px;
  display: none;
  max-height: 85vh;
  overflow-y: auto;
}
.tweaks.open { display: block; }
.tweaks h5 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 500;
}
.tweaks-sub { color: rgba(255, 251, 245, 0.5); font-size: 12px; margin-bottom: 16px; }
.tweak-row { margin-bottom: 16px; }
.tweak-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 251, 245, 0.55);
  margin-bottom: 8px;
}
.tweak-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tweak-opts button {
  background: rgba(255, 251, 245, 0.08);
  color: var(--bone);
  border: 1px solid rgba(255, 251, 245, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tweak-opts button:hover { background: rgba(255, 251, 245, 0.15); }
.tweak-opts button.active {
  background: var(--orange);
  border-color: var(--orange);
}
.tweak-opts .sw {
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
}
.tweak-opts .sw.active { outline: 2px solid var(--bone); outline-offset: 2px; }
.tweaks input[type=range] {
  width: 100%;
  accent-color: var(--orange);
}

/* Utilities */
.grid { display: grid; }
.flex { display: flex; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 56px; } .mt-4 { margin-top: 80px; }
.text-muted { color: var(--ink-60); }

/* Page intro link (between pages) */
.page-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.page-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink-08);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.page-nav a:hover, .page-nav a.active { background: var(--navy); color: var(--bone); }

/* Photo placeholder */
.photo-ph {
  background:
    linear-gradient(135deg, rgba(15,27,45,0.08), rgba(232,119,34,0.08)),
    repeating-linear-gradient(45deg, rgba(15,27,45,0.04) 0 8px, transparent 8px 16px),
    var(--cream-2);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--ink-40);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.photo-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,251,245,0.4), transparent 50%);
}
.photo-ph span { position: relative; z-index: 1; }

/* Shapes (subtle geometric, inspired by process-academy but restrained) */
.shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
  transition: transform 0.6s var(--ease);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .tweaks { width: calc(100vw - 40px); }
}


/* Submenu (services dropdown) */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub .chev { font-size: 9px; opacity: 0.5; margin-left: 4px; transition: transform 0.2s; }
.nav-links .has-sub:hover .chev,
.nav-links .has-sub:focus-within .chev { transform: translateY(1px); opacity: 1; }
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  min-width: 340px;
  background: rgba(255, 251, 245, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15,27,45,0.15), 0 2px 8px rgba(15,27,45,0.06);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.nav-links .has-sub:hover .submenu,
.nav-links .has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu ul { list-style: none; padding: 0; margin: 0; }
.submenu a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--ink) !important;
  text-decoration: none;
  transition: background 0.15s ease;
}
.submenu a b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.submenu a span {
  display: block;
  font-size: 12px;
  color: var(--ink-60);
  line-height: 1.4;
}
.submenu a:hover {
  background: rgba(232, 119, 34, 0.08);
}
.submenu a:hover b { color: var(--orange); }
.nav.nav-over .submenu a { color: var(--ink) !important; }
.nav.nav-over .submenu a span { color: var(--ink-60) !important; }
@media (max-width: 900px) {
  .submenu { display: none; }
}

/* ============================================================
   MOBILE NAV — Hamburger button + Drawer + Backdrop
   Visível só em ≤900px. Acessível: aria-expanded, aria-hidden,
   trap de foco, body scroll lock, fecha com Esc/backdrop/link.
   ============================================================ */

/* Hamburger button — escondido em desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  transform-origin: center;
}
.nav.nav-over .nav-toggle-bar { background: #FFFBF5; }
.nav.nav-over.nav-solid .nav-toggle-bar { background: var(--ink); }
/* Hamburger → X quando aberto */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.is-open .nav-toggle-bar { background: var(--ink) !important; }

/* Backdrop */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 45, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.nav-drawer-backdrop.is-open { opacity: 1; }

/* Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--bone);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  box-shadow: -20px 0 60px -20px rgba(15, 27, 45, 0.3);
  overflow: hidden;
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--ink-08);
  flex-shrink: 0;
}
.nav-drawer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-drawer-logo .logo-mark img { height: 28px; width: auto; display: block; }
.nav-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink-15);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.nav-drawer-close svg { width: 18px; height: 18px; }
.nav-drawer-close:hover { background: var(--cream); border-color: var(--ink); }
.nav-drawer-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 24px;
}
.nav-drawer-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-drawer-body > ul > li > a,
.nav-drawer-body .drawer-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.2s, color 0.2s;
}
.nav-drawer-body > ul > li > a:hover,
.nav-drawer-body .drawer-sub-toggle:hover { background: var(--cream); color: var(--orange); }
.nav-drawer-body > ul > li > a:focus-visible,
.nav-drawer-body .drawer-sub-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; background: var(--cream); }
.nav-drawer-body .drawer-active {
  color: var(--orange-text);
  position: relative;
}
.nav-drawer-body .drawer-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}

.drawer-chev {
  font-size: 12px;
  color: var(--ink-60);
  transition: transform 0.25s var(--ease);
}
.drawer-sub-toggle.is-expanded .drawer-chev { transform: rotate(180deg); color: var(--orange); }

.drawer-sub {
  background: var(--cream);
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
  padding: 8px 0;
}
.drawer-sub li a {
  display: block;
  padding: 12px 24px 12px 40px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-60);
  transition: color 0.2s, background 0.2s;
}
.drawer-sub li a:hover { color: var(--orange); background: rgba(232, 119, 34, 0.06); }
.drawer-sub li a:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; background: rgba(232, 119, 34, 0.06); }

.nav-drawer-foot {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--ink-08);
  background: var(--bone);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.nav-drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* Darker WhatsApp green so white text hits WCAG AA (4.93:1). */
  background: #15803D;
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav-drawer-cta:hover { background: #0F6A30; transform: translateY(-1px); color: white; }
.nav-drawer-cta svg { width: 18px; height: 18px; }
.nav-drawer-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink-60);
  text-decoration: none;
  padding: 8px;
}
.nav-drawer-cta-secondary:hover { color: var(--orange); }

/* Visibilidade desktop vs mobile */
@media (max-width: 900px) {
  .nav-desktop, .nav-cta-desktop { display: none !important; }
  .nav-toggle { display: flex; }
  .nav-inner { justify-content: space-between; }
}

/* Reduzir motion */
@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .nav-drawer-backdrop, .nav-toggle-bar, .drawer-chev { transition: none !important; }
}

/* WCAG AA contrast overrides: small-text orange usages on bone/cream
   backgrounds across all pages. Page-level <style> blocks set color:var(--orange)
   for these classes; we override globally with the accessible variant. */
.trat-cat-num,
.why-card .tag,
.trat-card .num,
.trat-card .cta,
.trat-card.external::before {
  color: var(--orange-text) !important;
}
/* svc-footbar uses navy-on-orange ticker — fix the small caption that
   measured 3.04:1 by darkening to navy. */
.svc-footbar .cred .label {
  color: rgba(15, 27, 45, 0.85) !important;
}
/* Italic <em> emphasis inside section headings (large text, 30–96px) needs 3:1.
   --orange is 2.87:1; bump to --orange-600 (3.66:1) to pass. */
.svc-hero h1 em,
.trat-intro h2 em,
.trat-why h2 em,
.trat-insurers h2 em {
  color: var(--orange-600) !important;
}

/* ============ MARQUEE — used by footbar ticker on servicos + service pages + posts ============ */
@keyframes marquee {
  to { transform: translateX(-50%); }
}
