/* ===== Dom Chaps — identidade visual (modo escuro + modo claro) =====
   Usado pelo site público e pelo painel. */
:root {
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --wa: #1FA855;
  --wa-hover: #188F48;
  --wa-ink: #ffffff;
  --danger: #E5484D;
  --danger-ink: #ffffff;
  --success: #2FB36B;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- ESCURO (padrão da marca) ---------- */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141C2B;
  --bg-2: #111827;
  --surface: #1B2436;
  --surface-2: #222C40;
  --surface-3: #2B374E;
  --border: #2A3449;
  --border-strong: #3A4762;
  --text: #F0F4FF;
  --text-2: #A7B0C4;
  --text-3: #75809A;
  --gold: #F5A800;
  --gold-hover: #FFBE2E;
  --gold-ink: #0C0C0C;
  --gold-text: #F5A800;
  --gold-soft: rgba(245,168,0,.12);
  --gold-line: rgba(245,168,0,.38);
  --blue: #2255A0;
  --blue-deep: #1A3A6B;
  --blue-text: #8DB8F2;
  --blue-soft: rgba(34,85,160,.26);
  --header-bg: rgba(15,21,33,.9);
  --hero-bg: radial-gradient(ellipse 70% 90% at 85% 40%, rgba(34,85,160,.30), transparent 65%),
             radial-gradient(ellipse 45% 70% at 5% 0%, rgba(245,168,0,.10), transparent 60%),
             linear-gradient(135deg, #1A2335 0%, #141C2B 60%, #111827 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.28);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.5);
  --img-bg: #1A2232;
  --overlay: rgba(8,12,20,.72);
  --footer-bg: #0E1420;
}

/* ---------- CLARO (identidade própria, não invertida) ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F5F8;
  --bg-2: #ECEEF3;
  --surface: #FFFFFF;
  --surface-2: #F2F4F7;
  --surface-3: #E6E9EF;
  --border: #E0E3EA;
  --border-strong: #C9CED8;
  --text: #121620;
  --text-2: #545C6C;
  --text-3: #8A91A0;
  --gold: #F5A800;
  --gold-hover: #E09900;
  --gold-ink: #121620;
  --gold-text: #A86A00;
  --gold-soft: rgba(245,168,0,.14);
  --gold-line: rgba(200,135,0,.45);
  --blue: #1A3A6B;
  --blue-deep: #14305A;
  --blue-text: #1D4A8F;
  --blue-soft: rgba(26,58,107,.08);
  --header-bg: rgba(255,255,255,.9);
  --hero-bg: radial-gradient(ellipse 70% 90% at 90% 30%, rgba(34,85,160,.14), transparent 65%),
             radial-gradient(ellipse 50% 70% at 0% 0%, rgba(245,168,0,.16), transparent 60%),
             linear-gradient(135deg, #FFFFFF 0%, #EEF2F9 100%);
  --shadow: 0 1px 2px rgba(18,22,32,.06), 0 8px 24px rgba(18,22,32,.07);
  --shadow-lg: 0 30px 80px rgba(18,22,32,.22);
  --img-bg: #EEF0F4;
  --overlay: rgba(18,22,32,.5);
  --footer-bg: #0F1B30;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo (cubo Dom Chaps) */
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; flex-shrink: 0;
  background: #1A5DC8; border-radius: 9px;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 6px 18px rgba(26,93,200,.35);
}
.brand-mark svg { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { white-space: nowrap; font-family: var(--font-display); font-size: 27px; letter-spacing: 3.5px; color: var(--gold-text); line-height: .95; }
:root[data-theme="light"] .brand-name { color: var(--blue); }
.brand-tag { font-size: 9.5px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }

/* Botões comuns */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  font-weight: 800; font-size: 14.5px; letter-spacing: .2px; line-height: 1;
  padding: 13px 22px; min-height: 46px; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease), box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn svg { flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 20px rgba(245,168,0,.28); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); }
.btn-soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-soft:hover { background: var(--surface-3); }
.btn-danger { background: var(--danger); color: var(--danger-ink); }
.btn-danger:hover { filter: brightness(.92); }
.btn-block { width: 100%; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; color: var(--text);
  transition: background-color .18s, border-color .18s;
}
.icon-btn:hover { border-color: var(--gold-line); }

/* Alternar tema: mostra o ícone do modo para o qual vai mudar */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
