/* ============================================================
   Ad Lucem — landing.css
   Estilos base da landing page (raiz do projeto). O grosso do
   layout de cada seção fica em estilo inline no próprio
   index.html (era assim no design original); aqui só vão os
   tokens de cor, o reset global e as animações compartilhadas.
============================================================ */

:root {
  --bg:      #081534;
  --gold:    #FFD700;
  --border:  #6B9BD1;
  --text:    #e7ecf7;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffe873; }

::selection { background: rgba(255, 215, 0, 0.28); }

input:focus-visible, textarea:focus-visible, button:focus-visible,
a:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── ANIMAÇÕES ──────────────────────────────────────────── */
@keyframes al-spin     { to { transform: rotate(360deg); } }
@keyframes al-spin-rev { to { transform: rotate(-360deg); } }
@keyframes al-breathe  { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.06); } }
@keyframes al-float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── ÍCONES (injetados via data-icon, ver landing.js) ──────
   Reaproveita a mesma marcação de ICONS/LANDING_ICONS
   (icons.js): SVG com stroke="currentColor", então cor e
   tamanho continuam controlados pelo style inline de cada
   elemento (color + font-size), como no design original. ── */
.l-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.l-icon svg { width: 1em; height: 1em; }

/* ── LOGO (injetada via data-logo, ver landing.js) ─────────
   logoSVG() já define width/height em px; nas camadas do
   empilhamento do hero (data-logo-fill) o svg é esticado para
   100% do container via CSS, sobrescrevendo os atributos. ── */
.l-logo svg { display: block; }
.l-logo[data-logo-fill] svg { width: 100%; height: 100%; }

/* ── LINKS COM HOVER (substituem o style-hover do bundle) ── */
.l-hover-fg:hover   { color: var(--text); }
.l-hover-gold:hover { color: var(--gold) !important; }
.l-cta-primary:hover {
  background: rgba(255, 215, 0, 0.13);
  box-shadow: 0 0 26px rgba(255, 215, 0, 0.2);
}
.l-cta-ghost:hover { border-color: var(--border) !important; color: var(--text) !important; }
.l-nav-cta:hover { background: rgba(255, 215, 0, 0.12); }
.l-card:hover { border-color: rgba(255, 215, 0, 0.4); }
.l-card-gold:hover { border-color: rgba(255, 215, 0, 0.45); }

/* ── RESPONSIVO (o design original era só desktop) ─────────── */
@media (max-width: 860px) {
  .l-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 56px 24px 64px !important;
  }
  .l-hero-panel { min-height: 320px !important; }
  header.l-header { padding: 14px 20px !important; }
  header.l-header nav { gap: 16px !important; font-size: 12.5px !important; }
  section, footer { padding-left: 20px !important; padding-right: 20px !important; }
  .l-grid-2 { grid-template-columns: minmax(0, 1fr) !important; }
  .l-grid-3 { grid-template-columns: minmax(0, 1fr) !important; }
  .l-demo-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .l-form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .l-form-grid label[style*="span 2"] { grid-column: auto !important; }
  .l-footer-inner { flex-direction: column !important; }
}
