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

:root {
  --navy: #0c1b35;
  --navy-mid: #162d52;
  --navy-light: #1e3d6e;
  --gold: #c8a951;
  --gold-light: #dfc07a;
  --gold-pale: #f5ecd4;
  --cream: #faf7f2;
  --white: #ffffff;
  --text-dark: #0c1b35;
  --text-mid: #4a5568;
  --text-light: #8896b0;
  --border: rgba(12,27,53,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  background: rgba(12,27,53,0.97);
  backdrop-filter: blur(12px);
  height: 68px;
  display: flex; align-items: center;
  padding: 0 4%;
  border-bottom: 1px solid rgba(200,169,81,0.18);
}
.nav-inner {
  width: 100%; display: flex; align-items: center; gap: 0;
}
.nav-logo { flex-shrink: 0; margin-right: 1.5rem; }
.nav-logo img { height: 48px; filter: brightness(0) invert(1); display: block; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; flex: 1; }
.nav-links a {
  display: block; padding: 0.4rem 0.7rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 3px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links .nav-cta a {
  background: var(--gold); color: var(--navy) !important;
  font-weight: 700; padding: 0.4rem 1rem;
  border-radius: 4px;
}
.nav-links .nav-cta a:hover { background: var(--gold-light); }

/* Portal buttons — separated from main nav */
.nav-portals {
  display: flex; align-items: center; gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.nav-portal-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.48rem 1.1rem;
  background: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  color: var(--navy);
  font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(200,169,81,0.3);
}
.nav-portal-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 3px 14px rgba(200,169,81,0.45);
  transform: translateY(-1px);
}
.nav-staff-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.48rem 1.1rem;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  color: rgba(255,255,255,0.75);
  font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-staff-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.4);
  color: white;
  transform: translateY(-1px);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; margin: 5px 0; transition: all 0.3s; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--navy);
  padding: 120px 6% 60px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 90% 50%, rgba(200,169,81,0.07) 0%, transparent 65%);
}
.page-header-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(200,169,81,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(200,169,81,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-header-content { position: relative; z-index: 2; }
.page-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.page-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: white; font-weight: 600; line-height: 1.2;
}
.page-header p {
  color: rgba(255,255,255,0.55); font-size: 1rem;
  font-weight: 300; line-height: 1.7; margin-top: 0.75rem;
  max-width: 520px;
}

/* ── SECTIONS ── */
.section { padding: 5rem 6%; }
.section-alt { background: white; }
.section-dark { background: var(--navy); }

.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy); font-weight: 600; line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-dark .section-title { color: white; }
.section-sub {
  color: var(--text-mid); font-size: 0.97rem;
  line-height: 1.75; font-weight: 300;
  max-width: 500px; margin-bottom: 3rem;
}
.section-dark .section-sub { color: rgba(255,255,255,0.5); }

/* ── BUTTONS ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--navy);
  padding: 0.85rem 1.9rem; border-radius: 3px;
  font-weight: 600; font-size: 0.92rem;
  text-decoration: none; letter-spacing: 0.02em;
  transition: all 0.2s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(200,169,81,0.28); }
.btn-outline-navy {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--navy); color: var(--navy);
  padding: 0.85rem 1.9rem; border-radius: 3px;
  font-weight: 500; font-size: 0.92rem;
  text-decoration: none; transition: all 0.2s;
}
.btn-outline-navy:hover { background: var(--navy); color: white; }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid rgba(255,255,255,0.35); color: white;
  padding: 0.85rem 1.9rem; border-radius: 3px;
  font-weight: 500; font-size: 0.92rem;
  text-decoration: none; transition: all 0.2s;
}
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(200,169,81,0.15);
  padding: 3.5rem 6% 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand .footer-logo { height: 52px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.85rem; line-height: 1.7; font-weight: 300; max-width: 260px; }
.footer-col h4 {
  color: var(--gold); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a, .footer-col p {
  color: rgba(255,255,255,0.5); font-size: 0.87rem;
  text-decoration: none; font-weight: 300; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-row a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.8rem;
  text-decoration: none; transition: all 0.2s;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-certs { display: flex; gap: 1rem; }
.cert-badge {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--gold); background: rgba(200,169,81,0.1);
  border: 1px solid rgba(200,169,81,0.2);
  padding: 0.25rem 0.6rem; border-radius: 2px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── MOBILE ── */



/* Mobile portal/staff links inside hamburger menu */
.nav-portal-mobile,
.nav-staff-mobile { display: none; }
@media (max-width: 768px) {
  .nav-portal-mobile,
  .nav-staff-mobile { display: block; }
  .nav-portal-mobile a {
    display: block; padding: 0.6rem 0;
    color: var(--gold) !important; font-weight: 600;
    border-top: 1px solid rgba(200,169,81,0.15);
    margin-top: 0.25rem;
  }
  .nav-staff-mobile a {
    display: block; padding: 0.6rem 0;
    color: rgba(255,255,255,0.55) !important; font-weight: 500;
  }
}

@media (max-width: 768px) {
  nav { padding: 0 5%; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1.5rem 5%; gap: 0.25rem; border-bottom: 1px solid rgba(200,169,81,0.15); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  /* Hide portal pills from top nav bar on mobile — they appear in the hamburger menu instead */
  .nav-portals { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 5%; }
  .page-header { padding: 100px 5% 50px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  /* Ensure nav-inner never overflows on very small screens */
  .nav-inner { overflow: hidden; }
}
