/* ============================================================
   Taurus Seguranças — Design System
   Tokens, componentes e utilitários visuais
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/inter-latin-400-normal.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-display: swap;
  font-weight: 500;
  src: url("../fonts/inter-latin-500-normal.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-display: swap;
  font-weight: 600;
  src: url("../fonts/inter-latin-600-normal.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-display: swap;
  font-weight: 700;
  src: url("../fonts/inter-latin-700-normal.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-display: swap;
  font-weight: 800;
  src: url("../fonts/inter-latin-800-normal.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-display: swap;
  font-weight: 900;
  src: url("../fonts/inter-latin-900-normal.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 {
  color-scheme: dark;

  /* Cores base (preto quente do cartão) */
  --ink-950: #0b0a09;
  --ink-900: #121110;
  --ink-850: #171614;
  --ink-800: #1e1c19;
  --ink-700: #2a2723;

  /* Dourado (marca) */
  --gold-300: #ffd84d;
  --gold-400: #f2c200;
  --gold-500: #d9a900;
  --gold-600: #a87a00;

  /* Neutros quentes */
  --steel-300: #d6d3cc;
  --steel-400: #a8a49c;
  --steel-500: #7a756c;
  --steel-600: #55514a;

  /* Off-white do cartão */
  --cream-50: #faf7f0;
  --cream-100: #f5f2ea;
  --cream-200: #e8e3d6;

  /* WhatsApp */
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;

  /* Texto e superfícies */
  --text: #f5f2ea;
  --muted: var(--steel-400);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Layout */
  --header-h: 72px;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Sombras */
  --shadow-gold: 0 10px 32px rgba(242, 194, 0, 0.2);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.26);

  /* Tokens semânticos de tema */
  --page-bg: var(--ink-900);
  --surface-1: rgba(30, 28, 25, 0.92);
  --surface-2: rgba(23, 22, 20, 0.72);
  --surface-3: rgba(11, 10, 9, 0.7);
  --surface-4: rgba(11, 10, 9, 0.8);
  --surface-5: rgba(11, 10, 9, 0.9);
  --surface-raised: rgba(30, 28, 25, 0.9);
  --surface-hover: var(--ink-700);
  --header-bg: rgba(18, 17, 16, 0.9);
  --header-bg-scrolled: rgba(11, 10, 9, 0.97);
  --mobile-menu-bg: rgba(11, 10, 9, 0.98);
  --mobile-bar-bg: rgba(11, 10, 9, 0.97);
  --input-bg: rgba(11, 10, 9, 0.9);
  --backdrop: rgba(11, 10, 9, 0.88);
  --overlay-0: rgba(255, 255, 255, 0.02);
  --overlay-1: rgba(255, 255, 255, 0.05);
  --overlay-2: rgba(255, 255, 255, 0.1);
  --text-strong: #ffffff;
  --text-body: var(--steel-300);
  --text-muted: var(--steel-400);
  --text-subtle: var(--steel-500);
  --accent-text: var(--gold-400);
  --accent-text-strong: var(--gold-300);
  --accent-fill: var(--gold-500);
  --accent-fill-border: var(--gold-400);
  --accent-fill-text: var(--ink-950);
  --accent-soft-bg: rgba(242, 194, 0, 0.12);
  --accent-soft-bg-subtle: rgba(242, 194, 0, 0.04);
  --accent-soft-border: rgba(242, 194, 0, 0.5);
  --shadow-modal: 0 30px 80px rgba(0, 0, 0, 0.5);
  --success-text: var(--emerald-400);
  --danger-text: #fca5a5;
  --focus-ring: var(--gold-400);
  --focus-ring-soft: rgba(242, 194, 0, 0.18);
  --grid-line: rgba(168, 164, 156, 0.05);

  /* Tipografia */
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

:root[data-theme="light"] {
  color-scheme: light;
  --page-bg: #faf7f0;
  --surface-1: #fffdf8;
  --surface-2: #f7f3ea;
  --surface-3: #fffdf8;
  --surface-4: #ffffff;
  --surface-5: #ffffff;
  --surface-raised: #ffffff;
  --surface-hover: #f0ebe0;
  --header-bg: rgba(250, 247, 240, 0.92);
  --header-bg-scrolled: rgba(250, 247, 240, 0.98);
  --mobile-menu-bg: rgba(250, 247, 240, 0.98);
  --mobile-bar-bg: rgba(250, 247, 240, 0.97);
  --input-bg: #ffffff;
  --backdrop: rgba(18, 17, 16, 0.55);
  --overlay-0: rgba(18, 17, 16, 0.02);
  --overlay-1: rgba(18, 17, 16, 0.05);
  --overlay-2: rgba(18, 17, 16, 0.09);
  --text: #1e1c19;
  --text-strong: #121110;
  --text-body: #2a2723;
  --text-muted: #55514a;
  --text-subtle: #6b665c;
  --accent-text: #7a5a00;
  --accent-text-strong: #6b4f00;
  --accent-fill: #8a6400;
  --accent-fill-border: #8a6400;
  --accent-fill-text: #ffffff;
  --accent-soft-bg: rgba(138, 100, 0, 0.08);
  --accent-soft-bg-subtle: rgba(138, 100, 0, 0.05);
  --accent-soft-border: rgba(138, 100, 0, 0.4);
  --shadow-modal: 0 30px 80px rgba(18, 17, 16, 0.22);
  --success-text: #047857;
  --danger-text: #b91c1c;
  --focus-ring: #7a5a00;
  --focus-ring-soft: rgba(122, 90, 0, 0.2);
  --border: rgba(18, 17, 16, 0.1);
  --border-strong: rgba(18, 17, 16, 0.16);
  --grid-line: rgba(18, 17, 16, 0.06);
  --shadow-card: 0 18px 44px rgba(18, 17, 16, 0.12);
  --shadow-soft: 0 10px 30px rgba(18, 17, 16, 0.08);
}

@media (min-width: 640px) {
  :root {
    --header-h: 80px;
  }
}

/* ============================================================
   Base
   ============================================================ */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--accent-fill) var(--page-bg);
  scrollbar-width: thin;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--page-bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--page-bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-fill);
  border: 2px solid var(--page-bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-text);
}

::-webkit-scrollbar-corner {
  background-color: var(--page-bg);
}

body {
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold-400);
  color: var(--ink-950);
}

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

img,
svg {
  max-width: 100%;
}

/* ============================================================
   Acessibilidade
   ============================================================ */

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--gold-400);
  color: var(--ink-950);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Âncoras não ficam atrás do header fixo */
section[id],
main[id],
#contato {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ============================================================
   Tipografia fluida
   ============================================================ */

.hero-title {
  font-size: clamp(1.9rem, 6.2vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.section-title {
  font-size: clamp(1.65rem, 4.6vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.card-title {
  font-size: clamp(1.125rem, 3.2vw, 1.3rem);
  line-height: 1.32;
  overflow-wrap: break-word;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.text-gradient-gold {
  background: linear-gradient(100deg, var(--gold-300), var(--gold-400) 45%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Fundos e superfícies
   ============================================================ */

.bg-tactical-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

.glass-panel {
  background: linear-gradient(160deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.card {
  background: linear-gradient(160deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.card-hover {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 194, 0, 0.4);
  box-shadow: var(--shadow-card);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.divider {
  border-top: 1px solid var(--border);
}

/* ============================================================
   Botões
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 52px;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--ink-950);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
}

.btn-secondary {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--focus-ring);
}

.btn-whatsapp {
  background: var(--emerald-700);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.22);
}

.btn-whatsapp:hover {
  background: var(--emerald-800);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--overlay-1);
  color: var(--text-body);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--overlay-2);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
  .btn-block-sm-auto {
    width: auto;
  }
}

/* ============================================================
   Badges e ícones
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.badge-gold {
  color: var(--accent-text);
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
}

.badge-steel {
  color: var(--text-body);
  background: var(--overlay-1);
  border: 1px solid var(--border-strong);
}

.badge-live {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6875rem;
  color: var(--accent-text);
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  transition: transform 0.25s ease;
}

.icon-tile--gold {
  color: var(--accent-text);
  background: linear-gradient(150deg, var(--accent-soft-bg), var(--overlay-0));
  border-color: var(--accent-soft-border);
}

.icon-tile--steel {
  color: var(--text-muted);
  background: linear-gradient(150deg, var(--overlay-2), var(--overlay-0));
  border-color: var(--border-strong);
}

.group:hover .icon-tile {
  transform: scale(1.08);
}

/* ============================================================
   Header e navegação
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: header-drop-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes header-drop-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: var(--shadow-soft);
}

.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(242, 194, 0, 0.2), var(--ink-800));
  border: 1px solid rgba(242, 194, 0, 0.45);
  box-shadow: var(--shadow-gold);
  transition: transform 0.3s ease;
  overflow: hidden;
  padding: 0.25rem;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.brand-mark:hover {
  transform: scale(1.05);
}

.brand-mark:hover img {
  transform: scale(1.06);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--accent-text);
}

.menu-toggle,
.theme-toggle {
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  color: var(--text-body);
  background: var(--overlay-1);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.theme-toggle {
  display: inline-flex;
}

.menu-toggle:hover,
.theme-toggle:hover {
  color: var(--text);
  background: var(--overlay-2);
}

.menu-toggle:active,
.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 998;
  max-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--mobile-menu-bg);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-24px);
  transform-origin: top;
  transition:
    max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.24s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.24s ease;
}

.mobile-menu[data-open="true"] {
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active,
.mobile-nav-link[aria-current="location"] {
  color: var(--accent-text);
  background: var(--overlay-1);
}

.mobile-nav-link[aria-current="location"] {
  background: rgba(242, 194, 0, 0.08);
}

/* ============================================================
   Formulário
   ============================================================ */

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:hover {
  border-color: var(--border-strong);
}

.input:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

.input[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.segment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pill-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-4);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pill-option:hover {
  border-color: var(--accent-soft-border);
}

.segment-input:focus-visible + .pill-option {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.segment-input:checked + .pill-option {
  background: var(--accent-fill);
  border-color: var(--accent-fill-border);
  color: var(--accent-fill-text);
}

.check-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.check-card:hover {
  border-color: var(--accent-soft-border);
}

.check-card:has(input:checked) {
  background: var(--accent-soft-bg);
  border-color: var(--accent-soft-border);
  color: var(--text);
}

.check-card input {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--accent-fill);
  cursor: pointer;
}

.summary-row {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  font-weight: 600;
  color: var(--text-body);
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .summary-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }
}

/* ============================================================
   Consentimento LGPD
   ============================================================ */

.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.consent-card:hover {
  border-color: var(--accent-soft-border);
}

.consent-card:has(input:checked) {
  background: var(--accent-soft-bg);
  border-color: var(--accent-soft-border);
}

.consent-card input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  accent-color: var(--accent-fill);
  cursor: pointer;
}

.consent-card input[aria-invalid="true"] {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.consent-card a {
  position: relative;
  z-index: 1;
}

#quote-confirmation:focus,
#quote-confirmation:focus-visible {
  outline: none;
}

/* ============================================================
   Como funciona e FAQ
   ============================================================ */

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft-border);
  background: var(--accent-soft-bg);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-3);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--accent-soft-border);
}

.faq-item[open] {
  border-color: var(--accent-soft-border);
  background: var(--accent-soft-bg-subtle);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.125rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--accent-soft-bg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.faq-answer {
  padding: 0 1.125rem 1.125rem;
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  overflow-wrap: anywhere;
}

/* ============================================================
   Modal
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-modal);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal[data-open="true"] .modal-panel {
  transform: translateY(0) scale(1);
}

@media (min-width: 640px) {
  .modal-panel {
    padding: 2rem;
  }
}

/* ============================================================
   WhatsApp flutuante
   ============================================================ */

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 52px;
  min-height: 52px;
  padding: 0.875rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald-700);
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 18px 40px rgba(2, 44, 34, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  background: var(--emerald-800);
  transform: scale(1.05);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@media (min-width: 640px) {
  .whatsapp-float {
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0.875rem 1rem;
  }
}

.back-to-top {
  position: fixed;
  left: 1rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 39;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-fill-border);
  border-radius: 999px;
  color: var(--accent-fill-text);
  background: var(--accent-fill);
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.94);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease,
    background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--accent-fill-border);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .back-to-top {
    left: 1.5rem;
    bottom: 1.5rem;
  }
}

/* ============================================================
   Barra fixa de contato (mobile)
   ============================================================ */

.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom));
  background: var(--mobile-bar-bg);
  border-top: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.mobile-cta-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.mobile-cta-bar__btn:active {
  transform: scale(0.98);
}

.mobile-cta-bar__btn--call {
  color: var(--text);
  background: var(--overlay-1);
  border: 1px solid var(--border-strong);
}

.mobile-cta-bar__btn--wa {
  color: #ffffff;
  background: var(--emerald-700);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

@media (max-width: 1023px) {
  .has-mobile-cta .whatsapp-float {
    display: none;
  }

  .menu-open .mobile-cta-bar {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-cta-bar {
    display: none;
  }
}

/* ============================================================
   Animações e revelação dinâmica
   ============================================================ */

/* Barra de progresso de rolagem */
.scroll-progress-bar {
  position: fixed;
  top: calc(var(--header-h) - 3px);
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #d4a017, #f2c200, #ffe169);
  z-index: 9999;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(242, 194, 0, 0.7);
  pointer-events: none;
}

/* Levitação suave */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Respiração tática das luzes de fundo (ambient glow) */
@keyframes ambient-glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.85;
  }
}

.animate-ambient {
  animation: ambient-glow 7s ease-in-out infinite;
}

.animate-ambient-delay {
  animation: ambient-glow 9s ease-in-out infinite 3.5s;
}

/* Radar pulse tático (telemetria ao vivo) */
@keyframes radar-pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(242, 194, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 9px rgba(242, 194, 0, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(242, 194, 0, 0);
  }
}

@keyframes radar-pulse-green {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 9px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.radar-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-400);
  animation: radar-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.radar-dot--green {
  background-color: #10b981;
  animation: radar-pulse-green 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Revelação suave ao rolar a página com curvas aprimoradas */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-down {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-down.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variações direcionais de revelação */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Cascata escalonada (Stagger) automática em grids de cards */
.grid > .reveal:nth-child(1),
.grid > .reveal-down:nth-child(1),
.grid > .reveal-left:nth-child(1),
.grid > .reveal-right:nth-child(1),
.grid > .reveal-scale:nth-child(1) { transition-delay: 0.05s; }
.grid > .reveal:nth-child(2),
.grid > .reveal-down:nth-child(2),
.grid > .reveal-left:nth-child(2),
.grid > .reveal-right:nth-child(2),
.grid > .reveal-scale:nth-child(2) { transition-delay: 0.12s; }
.grid > .reveal:nth-child(3),
.grid > .reveal-down:nth-child(3),
.grid > .reveal-left:nth-child(3),
.grid > .reveal-right:nth-child(3),
.grid > .reveal-scale:nth-child(3) { transition-delay: 0.19s; }
.grid > .reveal:nth-child(4),
.grid > .reveal-down:nth-child(4),
.grid > .reveal-left:nth-child(4),
.grid > .reveal-right:nth-child(4),
.grid > .reveal-scale:nth-child(4) { transition-delay: 0.26s; }
.grid > .reveal:nth-child(5),
.grid > .reveal-down:nth-child(5),
.grid > .reveal-left:nth-child(5),
.grid > .reveal-right:nth-child(5),
.grid > .reveal-scale:nth-child(5) { transition-delay: 0.33s; }
.grid > .reveal:nth-child(6),
.grid > .reveal-down:nth-child(6),
.grid > .reveal-left:nth-child(6),
.grid > .reveal-right:nth-child(6),
.grid > .reveal-scale:nth-child(6) { transition-delay: 0.40s; }

/* Micro-interações nos cards */
.card-hover:hover .icon-tile {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 24px rgba(242, 194, 0, 0.28);
}

.icon-tile {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

/* Garante que o hover dos cards continue funcionando após a revelação */
.reveal.is-visible.card-hover,
.reveal-down.is-visible.card-hover,
.reveal-left.is-visible.card-hover,
.reveal-right.is-visible.card-hover,
.reveal-scale.is-visible.card-hover {
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.reveal.is-visible.card-hover:hover,
.reveal-down.is-visible.card-hover:hover,
.reveal-left.is-visible.card-hover:hover,
.reveal-right.is-visible.card-hover:hover,
.reveal-scale.is-visible.card-hover:hover {
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  transform: translateY(-6px);
  border-color: rgba(242, 194, 0, 0.45);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.75), 0 0 22px rgba(242, 194, 0, 0.14);
}

/* Animação expansiva do FAQ */
@keyframes faq-expand {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item[open] .faq-answer {
  animation: faq-expand 0.28s ease-out forwards;
}

/* Shimmer tático e feedback tátil em botões */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 200%;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Tema claro
   ============================================================ */

[data-theme="light"] body {
  background-color: var(--page-bg);
  color: var(--text);
}

[data-theme="light"] .brand-mark {
  background: linear-gradient(150deg, rgba(242, 194, 0, 0.16), rgba(255, 255, 255, 0.95));
  border-color: rgba(212, 160, 23, 0.45);
}

[data-theme="light"] .brand-mark img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

[data-theme="light"] .brand-mark [class~="text-gold-400"] {
  color: var(--gold-400);
}

[data-theme="light"] .card-hover:hover {
  border-color: var(--accent-soft-border);
}

[data-theme="light"] .btn-primary {
  border: 1px solid rgba(18, 17, 16, 0.16);
}

[data-theme="light"] .text-gradient-gold {
  background-image: linear-gradient(100deg, #7a5a00, #8a6400 45%, #6b4f00);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] [class~="bg-ink-900"] {
  background-color: var(--page-bg);
}

[data-theme="light"] [class~="bg-ink-950"] {
  background-color: #f5f2ea;
}

[data-theme="light"] [class~="bg-ink-950/60"] {
  background-color: #f7f3ea;
}

[data-theme="light"] [class~="bg-ink-950/70"] {
  background-color: #fffdf8;
}

[data-theme="light"] [class~="bg-ink-950/80"] {
  background-color: #f5f2ea;
}

[data-theme="light"] [class~="bg-ink-950/90"] {
  background-color: #fffdf8;
}

[data-theme="light"] [class~="bg-ink-800/90"] {
  background-color: #fffdf8;
}

[data-theme="light"] [class~="bg-white/5"] {
  background-color: var(--overlay-1);
}

[data-theme="light"] [class~="bg-white/[0.02]"] {
  background-color: var(--overlay-0);
}

[data-theme="light"] [class~="hover:bg-white/10"]:hover {
  background-color: var(--overlay-2);
}

[data-theme="light"] [class~="hover:bg-white/[0.04]"]:hover {
  background-color: var(--overlay-1);
}

[data-theme="light"] [class~="border-white/5"],
[data-theme="light"] [class~="border-white/10"] {
  border-color: var(--border);
}

[data-theme="light"] [class~="border-white/15"] {
  border-color: var(--border-strong);
}

[data-theme="light"] [class~="border-gold-500/20"] {
  border-color: rgba(138, 100, 0, 0.24);
}

[data-theme="light"] [class~="border-gold-500/30"] {
  border-color: rgba(138, 100, 0, 0.34);
}

[data-theme="light"] [class~="border-emerald-500/40"] {
  border-color: rgba(4, 120, 87, 0.35);
}

[data-theme="light"] [class~="border-red-500/30"] {
  border-color: rgba(185, 28, 28, 0.3);
}

[data-theme="light"] [class~="hover:border-gold-500/40"]:hover {
  border-color: rgba(138, 100, 0, 0.4);
}

[data-theme="light"] [class~="hover:border-emerald-500/40"]:hover {
  border-color: rgba(4, 120, 87, 0.4);
}

[data-theme="light"] [class~="text-white"] {
  color: var(--text-strong);
}

[data-theme="light"] [class~="text-cream-100"] {
  color: var(--text-strong);
}

[data-theme="light"] [class~="text-steel-300"] {
  color: var(--text-body);
}

[data-theme="light"] [class~="text-steel-400"] {
  color: var(--text-muted);
}

[data-theme="light"] [class~="text-steel-500"] {
  color: var(--text-subtle);
}

[data-theme="light"] [class~="text-gold-400"] {
  color: var(--accent-text);
}

[data-theme="light"] [class~="text-emerald-400"] {
  color: var(--success-text);
}

[data-theme="light"] [class~="text-red-300"] {
  color: var(--danger-text);
}

[data-theme="light"] [class~="hover:text-white"]:hover {
  color: var(--text-strong);
}

[data-theme="light"] [class~="hover:text-steel-300"]:hover {
  color: var(--text-body);
}

[data-theme="light"] [class~="hover:text-gold-300"]:hover,
[data-theme="light"] [class~="hover:text-gold-400"]:hover {
  color: var(--accent-text-strong);
}

[data-theme="light"] .group:hover [class~="group-hover:text-gold-400"] {
  color: var(--accent-text);
}

[data-theme="light"] .group:hover [class~="group-hover:text-steel-300"] {
  color: var(--text-body);
}

[data-theme="light"] [class~="from-ink-800"] {
  --tw-gradient-from: #fffdf8;
}

[data-theme="light"] [class~="via-ink-850"] {
  --tw-gradient-stops: var(--tw-gradient-from), #f7f3ea 50%, var(--tw-gradient-to);
}

[data-theme="light"] [class~="to-ink-950"] {
  --tw-gradient-to: #faf7f0;
}

[data-theme="light"] [class~="from-gold-600/25"] {
  --tw-gradient-from: rgba(138, 100, 0, 0.16);
}

[data-theme="light"] [class~="from-steel-600/30"] {
  --tw-gradient-from: rgba(85, 81, 74, 0.1);
}

[data-theme="light"] [class~="shadow-xl"],
[data-theme="light"] [class~="shadow-2xl"] {
  box-shadow: var(--shadow-card);
}
