/* ============== RESET & BASE ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f1c2e;
  background: #fbfaf7;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul, ol { list-style: none; }

:root {
  --navy: #0a2e5c;
  --navy-dark: #061b3a;
  --gold: #d4a017;
  --gold-warm: #b8860b;
  --cream: #fbfaf7;
  --paper: #ffffff;
  --ink: #0f1c2e;
  --ink-soft: #4a5568;
  --line: #e2e3df;
  --rust: #b8390e;
  --leaf: #1a5d3a;
  --maxw: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 6px rgba(10, 46, 92, .06);
  --shadow-md: 0 12px 32px rgba(10, 46, 92, .10);
  --shadow-lg: 0 24px 64px rgba(10, 46, 92, .14);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.35rem; font-weight: 700; }

.kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-warm);
  padding-bottom: 8px;
  position: relative;
}
.kicker::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2px;
  background: var(--gold);
}
.kicker.light { color: var(--gold); }
.kicker.light::after { background: var(--gold); }

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin-top: 16px;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .88em;
  background: rgba(10, 46, 92, .07);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--navy);
}

/* ============== NAVIGATION ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-seal { display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.brand-text em { font-size: .72rem; color: var(--ink-soft); font-style: normal; letter-spacing: .04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--navy); }
.cta-btn {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.cta-btn:hover { background: var(--navy-dark); color: #fff !important; }

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold-warm) !important;
  background: rgba(212, 160, 23, .06);
  transition: all .2s ease;
}
.pdf-btn:hover {
  background: var(--gold);
  color: var(--navy) !important;
}
.pdf-btn svg { stroke-width: 2.4; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: all .25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #e7b022;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(212, 160, 23, .35);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .7);
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-image { position: absolute; inset: 0; z-index: 0; }
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.7) saturate(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 46, 92, .85) 0%, rgba(10, 46, 92, .55) 50%, rgba(6, 27, 58, .85) 100%),
    radial-gradient(ellipse at top left, rgba(212, 160, 23, .15), transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 28px 80px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-flag {
  width: 30px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.hero h1 {
  color: #fff;
  max-width: 900px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold) 0%, #f1c540 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.18rem;
  margin: 28px 0 40px;
  max-width: 640px;
  color: rgba(255, 255, 255, .9);
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  max-width: 600px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stats span {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-top: 6px;
}

/* ============== SECTION COMMON ============== */
section { padding: 100px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 12px; }

/* ============== ABOUT ============== */
.about { background: var(--paper); border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.fact-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--line);
}
.fact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.fact-figure {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
.fact-card h3 {
  padding: 24px 24px 8px;
  color: var(--navy);
}
.fact-card dl {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  font-size: .92rem;
}
.fact-card dt {
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.fact-card dd { color: var(--ink); font-weight: 500; }

.brgy-list {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: .9rem;
}
.brgy-list li {
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--ink);
}
.brgy-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============== SYSTEMS ============== */
.systems {
  background: linear-gradient(180deg, var(--cream) 0%, #f4f1ea 100%);
}
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.system-card {
  background: var(--paper);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.system-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--navy));
  background: var(--data-color, var(--navy));
}
.system-card[data-color="#0a2e5c"]::before { background: #0a2e5c; }
.system-card[data-color="#1a5d3a"]::before { background: #1a5d3a; }
.system-card[data-color="#b8390e"]::before { background: #b8390e; }
.system-card[data-color="#5b2a86"]::before { background: #5b2a86; }
.system-card[data-color="#0f7490"]::before { background: #0f7490; }
.system-card[data-color="#a0522d"]::before { background: #a0522d; }
.system-card[data-color="#c92a4e"]::before { background: #c92a4e; }
.system-card[data-color="#185a4a"]::before { background: #185a4a; }
.system-card[data-color="#c47d00"]::before { background: #c47d00; }
.system-card[data-color="#2c5282"]::before { background: #2c5282; }
.system-card[data-color="#2c7873"]::before { background: #2c7873; }
.system-card[data-color="#7c3aed"]::before { background: #7c3aed; }

.system-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.sys-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(10, 46, 92, .08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.system-card[data-color="#0a2e5c"] .sys-icon { background: rgba(10,46,92,.10); color: #0a2e5c; }
.system-card[data-color="#1a5d3a"] .sys-icon { background: rgba(26,93,58,.10); color: #1a5d3a; }
.system-card[data-color="#b8390e"] .sys-icon { background: rgba(184,57,14,.10); color: #b8390e; }
.system-card[data-color="#5b2a86"] .sys-icon { background: rgba(91,42,134,.10); color: #5b2a86; }
.system-card[data-color="#0f7490"] .sys-icon { background: rgba(15,116,144,.10); color: #0f7490; }
.system-card[data-color="#a0522d"] .sys-icon { background: rgba(160,82,45,.12); color: #a0522d; }
.system-card[data-color="#c92a4e"] .sys-icon { background: rgba(201,42,78,.10); color: #c92a4e; }
.system-card[data-color="#185a4a"] .sys-icon { background: rgba(24,90,74,.10); color: #185a4a; }
.system-card[data-color="#c47d00"] .sys-icon { background: rgba(196,125,0,.12); color: #c47d00; }
.system-card[data-color="#2c5282"] .sys-icon { background: rgba(44,82,130,.10); color: #2c5282; }
.system-card[data-color="#2c7873"] .sys-icon { background: rgba(44,120,115,.10); color: #2c7873; }
.system-card[data-color="#7c3aed"] .sys-icon { background: rgba(124,58,237,.10); color: #7c3aed; }

.system-card.priority {
  box-shadow: 0 16px 36px rgba(212, 160, 23, .18);
  border-color: rgba(212, 160, 23, .45);
  border-width: 1.5px;
}
.system-card.priority:hover {
  box-shadow: 0 24px 56px rgba(212, 160, 23, .28);
}
.priority-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #d4a017 0%, #f1c540 100%);
  color: #0a2e5c;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 6px 14px rgba(212, 160, 23, .4);
  z-index: 2;
}

.system-card h3 { color: var(--navy); margin-bottom: 4px; }
.sys-tag {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.sys-desc {
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.65;
}
.sys-feat {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.sys-feat li {
  font-size: .88rem;
  color: var(--ink-soft);
  padding: 6px 0 6px 22px;
  position: relative;
}
.sys-feat li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 2px;
  background: var(--gold);
}
.sys-link {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #5b2a86;
  background: rgba(91, 42, 134, .08);
  border-radius: 999px;
  transition: all .2s ease;
}
.sys-link:hover {
  background: #5b2a86;
  color: #fff;
}

/* ============== CITIZEN CALLOUT ============== */
.citizen-callout { background: var(--navy); color: #fff; padding: 80px 0; }
.callout-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.callout-text h2 { color: #fff; margin: 12px 0 20px; }
.callout-text p { color: rgba(255, 255, 255, .82); font-size: 1.05rem; margin-bottom: 28px; }
.callout-text code {
  background: rgba(212, 160, 23, .15);
  color: var(--gold);
}
.callout-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.callout-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============== TRACK RECORD ============== */
.track { background: linear-gradient(180deg, #f4f1ea 0%, var(--cream) 100%); }
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.track-card {
  background: var(--paper);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.track-card.featured {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border: none;
}
.track-card.featured.highlight {
  background:
    linear-gradient(135deg, #1a5d3a 0%, #0e3d24 100%);
  box-shadow: 0 16px 40px rgba(26, 93, 58, .25);
}
.track-card.featured h3 { color: #fff; }
.track-card.featured code {
  background: rgba(212, 160, 23, .2);
  color: var(--gold);
}
.track-card.featured.highlight code {
  background: rgba(212, 160, 23, .25);
  color: #ffd152;
}
.track-card.featured li { color: rgba(255, 255, 255, .88); }
.track-card.featured .track-meta { color: var(--gold); }
.track-card.featured em { color: rgba(255, 255, 255, .95); font-style: italic; }
.track-badge.accent {
  background: #ffd152;
  color: #0e3d24;
}
.track-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.track-card h3 { color: var(--navy); margin-bottom: 6px; }
.track-meta {
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 18px;
}
.track-card ul li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: .92rem;
  line-height: 1.55;
}
.track-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  color: var(--gold);
  font-weight: 700;
}
.track-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.track-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.track-image figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  padding: 60px 24px 20px;
  font-size: .9rem;
  font-style: italic;
}

/* ============== NEXT STEPS ============== */
.next { background: var(--cream); }
.next-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--navy);
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.next-text { padding: 64px 56px; }
.next-text h2 { color: #fff; margin: 14px 0 22px; }
.next-text p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; margin-bottom: 32px; }
.next-steps-list {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
  padding-left: 4px;
}
.next-steps-list > div {
  color: rgba(255, 255, 255, .9);
  font-size: .98rem;
}
.next-steps-list strong { color: var(--gold); margin-right: 10px; }
.next-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.next-image { height: 100%; }
.next-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 480px;
}

/* ============== FOOTER ============== */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .65);
  padding: 40px 0;
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { color: #fff; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer-meta a { color: var(--gold); }
.footer-meta a:hover { text-decoration: underline; }

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .nav-links a:not(.cta-btn) { display: none; }
  .callout-card,
  .next-card,
  .track-grid { grid-template-columns: 1fr; }
  .next-text { padding: 40px 32px; }
  .next-image img { min-height: 280px; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-stats { gap: 32px; }
  .hero-stats strong { font-size: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 520px) {
  section { padding: 64px 0; }
  .container, .nav-inner, .hero-content { padding-left: 20px; padding-right: 20px; }
  .hero-content { padding-top: 60px; padding-bottom: 60px; }
  .next-text { padding: 32px 24px; }
  .brand-text em { display: none; }
}
