/* ═══════════════════════════════════════════════════
   IPLIA.TECH — Shared Stylesheet v1.0
   Aplicado em: index, sobre, programa, contato,
                assessment, blog, privacidade
═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────── */
:root {
  --navy-deep:  #0A1530;
  --navy:       #0F1B3D;
  --navy-mid:   #132244;
  --navy-light: #1A2D55;
  --gold:       #D4AF37;
  --gold-dim:   rgba(212, 175, 55, 0.15);
  --gold-glow:  rgba(212, 175, 55, 0.25);
  --ice:        #E6F2FF;
  --ice-dim:    rgba(230, 242, 255, 0.75);
  --ice-faint:  rgba(230, 242, 255, 0.08);
  --white:      #FFFFFF;
  --gray:       #8899AA;
  --green:      #6BCB77;
  --red:        #FF6B6B;
  --font-mono:  'JetBrains Mono', monospace;
  --font-sans:  'Inter', sans-serif;
}

/* ─────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy-deep);
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────────────
   GRID OVERLAY (plano de fundo global)
───────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(90deg, rgba(212,175,55,0.03) 1px, transparent 1px),
    linear-gradient(rgba(212,175,55,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

section, header, footer { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 21, 48, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-dim);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}
.nav-logo .ipl { color: var(--gold); }
.nav-logo .sep { color: var(--gray); font-weight: 300; margin: 0 1px; }
.nav-logo .ia  { color: var(--ice); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); opacity: 1; }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 3px;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--navy-deep) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
  font-family: var(--font-mono);
}

/* ─────────────────────────────────────────────────
   DIVIDER
───────────────────────────────────────────────── */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* ─────────────────────────────────────────────────
   PAGE HERO (páginas internas)
───────────────────────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-mid) 100%);
}
.page-hero .section-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-hero h1 {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--ice);
  margin-bottom: 16px;
}
.page-hero .lead {
  font-size: 17px;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.8;
}

/* ─────────────────────────────────────────────────
   SEÇÃO BASE
───────────────────────────────────────────────── */
.section { padding: 100px 0; }

.section-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--ice);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ─────────────────────────────────────────────────
   BOTÕES
───────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--gold); }

/* ─────────────────────────────────────────────────
   BLINK CURSOR
───────────────────────────────────────────────── */
.cursor { color: var(--gold); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--gold-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}
.footer-logo .ipl { color: var(--gold); }
.footer-logo .sep { color: var(--gray); font-weight: 300; }
.footer-logo .ia  { color: var(--ice); }

.footer-info {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  text-align: right;
}

/* ─────────────────────────────────────────────────
   WHATSAPP FLUTUANTE
───────────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.08); opacity: 1; }
.whatsapp-btn svg { width: 28px; height: 28px; fill: white; }

/* ─────────────────────────────────────────────────
   RESPONSIVO — BREAKPOINTS COMPARTILHADOS
───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 22px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero { padding: 120px 0 60px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10, 21, 48, 0.97);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gold-dim);
  }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-info { text-align: center; }
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 11px; }
}

/* ─────────────────────────────────────────────────
   FOOTER LINKS (Política de Privacidade, etc.)
───────────────────────────────────────────────── */
.footer-links {
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 12px 0 0;
  margin-top: 16px;
  text-align: center;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: .5px;
  opacity: .6;
  transition: opacity .2s, color .2s;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }

/* ─────────────────────────────────────────────────
   BANNER LGPD — Consentimento de Cookies
   Posição: fixed bottom, z-index alto
   Oculto por padrão; exibido via JS se sem consent
───────────────────────────────────────────────── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy-deep, #0A1530);
  border-top: 1px solid var(--gold, #D4AF37);
  padding: 18px 24px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  box-shadow: 0 -4px 32px rgba(0,0,0,.5);
}
#cookie-banner.visible {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#cookie-banner .cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray, #8899bb);
}
#cookie-banner .cookie-text strong {
  color: var(--gold, #D4AF37);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  letter-spacing: .5px;
}
#cookie-banner .cookie-text a {
  color: var(--gold, #D4AF37);
  text-decoration: underline;
  opacity: .85;
}
#cookie-banner .cookie-text a:hover { opacity: 1; }
#cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
#cookie-banner .btn-cookie-accept {
  background: var(--gold, #D4AF37);
  color: var(--navy-deep, #0A1530);
  border: none;
  padding: 9px 22px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: opacity .2s;
}
#cookie-banner .btn-cookie-accept:hover { opacity: .85; }
#cookie-banner .btn-cookie-reject {
  background: transparent;
  color: var(--gray, #8899bb);
  border: 1px solid rgba(136,153,187,.3);
  padding: 9px 16px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
#cookie-banner .btn-cookie-reject:hover {
  border-color: var(--gold, #D4AF37);
  color: var(--ice, #E6F2FF);
}
@media (max-width: 640px) {
  #cookie-banner.visible { flex-direction: column; align-items: flex-start; }
  #cookie-banner .cookie-actions { width: 100%; }
  #cookie-banner .btn-cookie-accept,
  #cookie-banner .btn-cookie-reject { flex: 1; text-align: center; }
}
