/* ============================================================
   PIP SHARED STYLES
   Variables · Reset · Nav · Buttons · Sections · Footer
   ============================================================ */

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

:root {
  --navy:        #002B5B;
  --navy-light:  #0A4AA3;
  --ice:         #56C7F2;
  --lime:        #B8FF2C;
  --lime-glow:   #D4FF72;
  --bg:          #F7FAFD;
  --surface:     #FFFFFF;
  --border:      #DDE6F2;
  --text:        #1B2430;
  --muted:       #5B6678;
  --error:       #DC2626;
  --success:     #17A34A;
  --radius-btn:  15px;
  --radius-card: 16px;
  --max-w:       1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 36px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}

.nav-links a:hover { color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.nav-back:hover { color: var(--navy); }
.nav-back svg { width: 16px; height: 16px; }

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(184,255,44,.12);
  border: 1px solid rgba(184,255,44,.3);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #3a7d00;
}

.nav-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover { background: rgba(86,199,242,.1); }

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: var(--lime-glow); }

/* ── SECTION UTILITIES ────────────────────────────────────── */
section { padding: 100px 48px; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--navy-light);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ice);
  border-radius: 2px;
}

.section-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 48px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand img { height: 40px; width: auto; display: block; margin-bottom: 12px; }
.footer-brand p   { font-size: .8rem; line-height: 1.65; max-width: 240px; }

.footer-minority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lime);
}

.footer-links-col { display: flex; flex-direction: column; gap: 12px; }

.footer-links-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}

.footer-links-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}

/* ── MOBILE NAV HAMBURGER ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background .15s;
}

.nav-hamburger:hover { background: rgba(0,43,91,.07); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV MENU ──────────────────────────────────────── */
.nav-mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  transition: max-height .3s cubic-bezier(.4,0,.2,1);
}

.nav-mobile-menu.open { max-height: 420px; }

.nav-mobile-menu a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
  min-height: 52px;
}

.nav-mobile-menu a:hover { background: var(--bg); color: var(--navy); }

.nav-mobile-cta {
  padding: 16px 24px 20px;
}

.nav-mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ── RESPONSIVE SHARED ────────────────────────────────────── */
@media (max-width: 768px) {
  nav .nav-links  { display: none; }
  nav .nav-actions { display: none; }
  .nav-hamburger  { display: flex; }
  .nav-mobile-menu { display: block; }
  .nav-inner      { padding: 0 20px; }
  footer          { padding: 32px 20px; }
  section         { padding-left: 20px; padding-right: 20px; }
  .footer-inner   { flex-direction: column; }
  .footer-bottom  { flex-direction: column; gap: 8px; text-align: center; }

  /* Minimum 48px touch target on all buttons */
  .btn { min-height: 48px; }
}

@media (max-width: 480px) {
  /* Hide the decorative badge so nav-back text has room */
  .nav-badge  { display: none; }
  .nav-inner  { height: 56px; padding: 0 16px; }
}
