/*
  HNAUB - Base Styles
  Responsive, accessible, and clean layout for a static site
*/

:root {
  --brand: #0a3d62;
  --brand-2: #1e3799;
  --accent: #f39c12;
  --text: #222;
  --muted: #555;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --maxw: 1200px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.3px;
}

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text);
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--bg-alt);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.lang-switch {
  margin-left: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e6eaf2;
  background: var(--bg);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--text);
  margin: 7px 8px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, rgba(10,61,98,0.08), rgba(10,61,98,0));
  padding: 56px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: var(--brand);
}

.hero p {
  color: var(--muted);
  margin: 0 0 22px 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
}

/* Sections */
section {
  padding: 40px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid #e6eaf2;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--brand);
}

/* Programs list */
.program-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.program-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

/* Footer */
footer {
  background: var(--bg-alt);
  margin-top: 40px;
  border-top: 1px solid #e6eaf2;
}

.footer-inner {
  padding: 24px 0;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

/* Utilities */
h2.section-title {
  margin: 0 0 12px 0;
  font-size: 24px;
  color: var(--brand);
}

.lead {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    right: 12px;
    background: var(--bg);
    padding: 12px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .cards,
  .program-list,
  .stats {
    grid-template-columns: 1fr;
  }
}

