/* ──────────────────────────────────────────────────────────────
   site.css — base partilhada trafegopago.pt
   Extraído do index.html (v2). NÃO alterar tokens sem alinhar
   com a identidade visual do site principal.
   ────────────────────────────────────────────────────────────── */

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

:root {
  --bg:         #06060D;
  --bg-2:       #0A0A16;
  --bg-3:       #0F0F1E;
  --lime:       #00c853;
  --lime-dim:   rgba(0,200,83,0.08);
  --lime-border:rgba(0,200,83,0.18);
  --green:      #00C853;
  --green-d:    #00A846;
  --white:      #EAE8DC;
  --gray:       #6B697A;
  --gray-l:     #9896A8;
  --border:     rgba(255,255,255,0.06);
  --radius:     14px;
  --max-w:      1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NOISE GRAIN ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.4;
}

/* ─── HELPERS ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
section { padding: 112px 0; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--lime);
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--lime);
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: var(--white);
  margin-bottom: 18px;
}
.section-title em { color: var(--lime); font-style: normal; }

.section-sub {
  font-size: 18px; color: var(--gray-l);
  max-width: 520px; line-height: 1.75; font-weight: 300;
}

/* ─── NAV ───
   Seletor por #id (e não por elemento) para não afetar outros <nav>
   da página, como o breadcrumb dos artigos. */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: rgba(6,6,13,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
#main-nav.scrolled { padding: 14px 40px; }
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: var(--gray-l); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.is-active { color: var(--lime); }
.nav-cta {
  background: var(--green); color: #000;
  padding: 10px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nav-cta:hover {
  background: var(--green-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,200,83,0.28);
}

/* ─── BOTÕES ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #000;
  padding: 15px 30px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--green-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,200,83,0.32);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--white);
  padding: 15px 30px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1px solid var(--border);
  transition: all .2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-partners { max-height: 100px; width: auto; max-width: min(320px, 80%); border-radius: 8px; display: block; }
footer .footer-copy { font-size: 13px; color: var(--gray); text-align: center; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.215,.61,.355,1),
              transform .65s cubic-bezier(.215,.61,.355,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #main-nav { padding: 16px 20px; }
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .container { padding: 0 20px; }
  footer { padding: 28px 20px; }
}
