/* ═══════════════════════════════════════════════════════
   Horn Bridge Institute — Design System
   Production CSS | GitHub + Cloudflare Pages
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --green-900: #063d30;
  --green-800: #0a5240;
  --green-700: #0F6E56;
  --green-600: #1D9E75;
  --green-400: #5DCAA5;
  --green-200: #A8E3CD;
  --green-100: #D4F0E6;
  --green-50:  #F0FAF6;

  --amber-500: #EF9F27;
  --amber-300: #F7CC82;
  --amber-100: #FEF3DC;

  --ink-900: #0D1B13;
  --ink-700: #1E3328;
  --ink-500: #3D5C4A;
  --ink-300: #7A9485;
  --ink-100: #C8D9D0;
  --ink-50:  #EEF4F1;

  --white: #FFFFFF;
  --off-white: #F9FBFA;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(6,61,48,0.08);
  --shadow-md: 0 4px 16px rgba(6,61,48,0.10);
  --shadow-lg: 0 12px 40px rgba(6,61,48,0.14);
  --shadow-xl: 0 24px 64px rgba(6,61,48,0.18);

  --nav-height: 72px;
  --max-width: 1200px;
  --section-pad: clamp(64px, 8vw, 120px);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { font-size: clamp(0.95rem, 1.5vw, 1.05rem); color: var(--ink-500); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.75; color: var(--ink-500); }

/* ── Layout ────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--green-50); }
.section--dark { background: var(--ink-900); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--green-200); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img { height: 44px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-500);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__link:hover { color: var(--green-700); background: var(--green-50); }
.nav__link.active { color: var(--green-700); font-weight: 600; }
.nav__cta {
  background: var(--green-700);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.nav__cta:hover { background: var(--green-800); transform: translateY(-1px); }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--ink-700); border-radius: 2px; transition: all 0.3s; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(15,110,86,0.3);
}
.btn--primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,110,86,0.35); }
.btn--secondary {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-700);
}
.btn--secondary:hover { background: var(--green-700); color: var(--white); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--ghost:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.6); }
.btn--amber { background: var(--amber-500); color: var(--ink-900); }
.btn--amber:hover { background: #d68e1f; transform: translateY(-2px); }
.btn--sm { font-size: 0.85rem; padding: 10px 20px; }
.btn--lg { font-size: 1.05rem; padding: 16px 36px; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--green { background: var(--green-700); color: var(--white); border-color: transparent; }
.card--green h3, .card--green h4 { color: var(--white); }
.card--green p { color: var(--green-200); }
.card--dark { background: var(--ink-900); border-color: transparent; }
.card--dark h3, .card--dark h4 { color: var(--white); }
.card--dark p { color: var(--green-200); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--green-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card--green .card__icon, .card--dark .card__icon { background: rgba(255,255,255,0.12); }

/* ── Section Labels ─────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 16px;
}
.label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
}
.section--dark .label { color: var(--green-400); }

/* ── Section Headings ───────────────────────────────────── */
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .label { justify-content: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { max-width: 620px; }
.section-head--center .lead { margin: 0 auto; }

/* ── Stats ──────────────────────────────────────────────── */
.stat { }
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label { font-size: 0.9rem; color: var(--ink-300); font-weight: 500; }

/* ── Badges / Pills ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.badge--green { background: var(--green-100); color: var(--green-800); }
.badge--amber { background: var(--amber-100); color: #8a5c0a; }
.badge--ink { background: var(--ink-50); color: var(--ink-700); }

/* ── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--ink-100); border: none; margin: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--ink-900);
  color: var(--green-200);
  padding: 72px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand { }
.footer__logo { margin-bottom: 20px; filter: brightness(0) invert(1) opacity(0.9); }
.footer__tagline { font-size: 0.9rem; color: var(--ink-300); line-height: 1.6; max-width: 280px; }
.footer__col h5 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__link { font-size: 0.9rem; color: var(--ink-300); transition: color 0.2s; }
.footer__link:hover { color: var(--green-400); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy { font-size: 0.82rem; color: var(--ink-300); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { font-size: 0.82rem; color: var(--ink-300); transition: color 0.2s; }
.footer__legal a:hover { color: var(--green-400); }
.footer__au-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--green-200);
  margin-top: 16px;
  max-width: fit-content;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-fade-up { animation: fadeUp 0.7s ease both; }
.animate-fade-up--d1 { animation-delay: 0.1s; }
.animate-fade-up--d2 { animation-delay: 0.2s; }
.animate-fade-up--d3 { animation-delay: 0.3s; }
.animate-fade-up--d4 { animation-delay: 0.4s; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-700);
  background: var(--white);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-green { color: var(--green-700); }
.text-amber { color: var(--amber-500); }
.text-muted { color: var(--ink-300); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.flex-wrap { flex-wrap: wrap; }

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 72px;
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--green-900) 60%, var(--green-800) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .label { color: var(--green-400); }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: var(--green-200); max-width: 640px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--ink-100);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .btn--lg { padding: 14px 24px; font-size: 0.95rem; }
}
