/* GDS — reset, typography, layout primitives, header, footer */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
p  { text-wrap: pretty; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(var(--s-7), 6vw, var(--s-9)); }
.section--tight { padding-block: clamp(var(--s-6), 4vw, var(--s-7)); }
.section--alt { background: var(--bg-alt); }
.section--band { background: var(--band-bg); color: var(--band-text); }
.section--band h2, .section--band h3 { color: #fff; }
.section--band p { color: var(--band-muted); }
.section--band a { color: var(--cyan-300); }

.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }

.section-head { max-width: 640px; margin-bottom: var(--s-6); }
.section-head p { color: var(--text-muted); margin-top: var(--s-3); font-size: 1.0625rem; }
.section--band .section-head p { color: var(--band-muted); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
  display: block;
}
.section--band .eyebrow { color: var(--cyan-400); }

.lead { font-size: 1.125rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: .9375rem; }
.tiny { font-size: .8125rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--on-accent);
  padding: var(--s-3) var(--s-4); border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy-900);
  border-bottom: 1px solid var(--band-border);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; border-radius: 9px; }
.brand__name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.0625rem;
  line-height: 1.1; color: #fff; letter-spacing: -.015em;
}
.brand__tag {
  display: block; font-family: var(--font-head); font-size: .625rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-400); margin-top: 2px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  color: #cfe0f7; text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: #fff; background: rgba(3,198,250,.13); }
.nav .btn { margin-left: var(--s-2); }

.nav-toggle {
  display: none; margin-left: auto; background: transparent;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm);
  color: #fff; padding: 9px 11px; cursor: pointer; line-height: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Ang buong desktop nav (brand + 5 link + button) ay ~1111px ang kailangan; sa ilalim
   nito, lumalampas ito sa header. Kaya 1120px ang hamburger breakpoint (dati 900px). */
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--band-border);
    padding: var(--s-3) var(--s-5) var(--s-5);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--s-3) var(--s-2); border-radius: var(--r-sm); font-size: 1rem; }
  .nav .btn { margin: var(--s-3) 0 0; justify-content: center; }
  .site-header__inner { position: relative; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: var(--band-muted);
  padding-block: var(--s-8) var(--s-5); margin-top: auto;
  border-top: 1px solid var(--band-border);
}
.site-footer h4 {
  color: #fff; font-size: .8125rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: var(--s-4);
}
.site-footer a { color: #b9cdea; text-decoration: none; }
.site-footer a:hover { color: var(--cyan-300); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: var(--s-2); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-4);
  border-top: 1px solid var(--band-border);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5);
  justify-content: space-between; font-size: .875rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
