@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── TOKENS ── */
:root {
  --ink:     #0d0d14;
  --ink2:    #1e1e2e;
  --ink3:    #2e2e42;
  --paper:   #f7f6f2;
  --paper2:  #f0efe9;
  --paper3:  #e8e7df;
  --muted:   #7b7a8e;
  --muted2:  #a8a7bb;
  --accent:  #4f46e5;
  --accent-h:#3730a3;
  --accent-l:#eef2ff;
  --green:   #059669;
  --green-l: #ecfdf5;
  --red:     #dc2626;
  --red-l:   #fef2f2;
  --amber:   #d97706;
  --amber-l: #fffbeb;
  --blue:    #0284c7;
  --blue-l:  #f0f9ff;
  --border:  #e2e1d8;
  --border2: #d0cfc5;
  --shadow:  0 1px 3px rgba(13,13,20,0.08), 0 1px 2px rgba(13,13,20,0.06);
  --shadow-md: 0 4px 16px rgba(13,13,20,0.1), 0 2px 6px rgba(13,13,20,0.06);
  --shadow-lg: 0 20px 48px rgba(13,13,20,0.14), 0 8px 16px rgba(13,13,20,0.08);
  --r:     10px;
  --r-lg:  16px;
  --r-xl:  24px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
.display { font-family:'Fraunces',serif; font-weight:900; line-height:1.0; letter-spacing:-0.03em; }
.heading  { font-family:'Fraunces',serif; font-weight:700; line-height:1.15; letter-spacing:-0.02em; }
.label    { font-size:0.72rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; }

/* ── NAV ── */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index:999;
  height: 115px;
  background: rgba(247,246,242,0.96);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items:center; justify-content:space-between;
  padding: 0 2.5rem;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 100%;
  padding: 0;
  flex-shrink: 0;
  transition: opacity .18s;
}
.nav-logo:hover { opacity: .82; }
.nav-logo-icon {
  height: 46px;
  width: 46px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-logo-name {
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  white-space: nowrap;
}
.nav-logo-name-word {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;
  color: #0d2420;
  letter-spacing: -0.6px;
  line-height: 1;
}
.nav-logo-name-icon {
  height: 22px;
  width: 22px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  margin: 0 3px;
}
.nav-logo-tagline {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #0f958c;
  margin-top: 5px;
  line-height: 1;
  width: 100%;
  text-align: justify;
  text-align-last: justify;
}
/* Full SVG logo in nav */
.nav-logo-full-svg {
  height: 96px !important;
  width: auto !important;
  min-width: 200px;
  object-fit: contain;
  display: block !important;
  flex-shrink: 0;
}
@media(max-width:1200px) {
  .nav-logo-full-svg { height: 80px; }
}
@media(max-width:1100px) {
  .nav-logo-full-svg { height: 72px; }
}
@media(max-width:900px) {
  .nav-logo-tagline { display: none; }
  .nav-logo-icon { height: 38px; width: 38px; }
  .nav-logo-name-word { font-size: 20px; }
  .nav-logo-name-icon { height: 18px; width: 18px; }
  .nav-logo-full-svg { height: 60px; }
}
@media(max-width:768px) {
  .nav-logo-name-word { font-size: 18px; }
  .nav-logo-full-svg { height: 48px; }
}
.nav-center { display:flex; gap:0.25rem; align-items:center; }
.nav-link {
  font-size:0.875rem; font-weight:600; color:var(--muted);
  text-decoration:none; padding:0.4rem 0.85rem; border-radius:7px;
  transition:color 0.15s, background 0.15s;
}
.nav-link:hover { color:var(--ink); background:var(--paper2); }
.nav-link.active { color:var(--accent); background:var(--accent-l); }
.nav-end { display:flex; align-items:center; gap:0.6rem; }

/* ── NAV DROPDOWN ── */
.nav-item { position:relative; }
.nav-item:hover .nav-dropdown { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); pointer-events:all; }
.nav-dropdown {
  position:absolute; top:calc(100% + 12px); left:50%;
  transform:translateX(-50%) translateY(-8px);
  background:#fff; border:1px solid var(--border); border-radius:18px;
  box-shadow:0 24px 64px rgba(13,13,20,.16), 0 4px 16px rgba(13,13,20,.08);
  padding:1.1rem; width:660px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .22s ease, transform .22s ease, visibility .22s;
  z-index:1000;
}
/* prevent gap between trigger and dropdown */
.nav-dropdown::before {
  content:''; position:absolute; top:-12px; left:0; right:0; height:12px;
}
/* arrow */
.nav-dropdown::after {
  content:''; position:absolute; top:-5px; left:50%; transform:translateX(-50%) rotate(45deg);
  width:10px; height:10px; background:#fff;
  border-top:1px solid var(--border); border-left:1px solid var(--border);
}
.nd-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:.2rem .4rem .65rem; border-bottom:1px solid var(--border); margin-bottom:.75rem;
}
.nd-title { font-size:.68rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted2); }
.nd-all { font-size:.76rem; font-weight:700; color:var(--accent); text-decoration:none; }
.nd-all:hover { text-decoration:underline; }
.nd-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:.35rem; }
.nd-card {
  display:flex; align-items:center; gap:.6rem;
  padding:.6rem .65rem; border-radius:9px; text-decoration:none;
  transition:background .13s; border:1px solid transparent;
}
.nd-card:hover { background:var(--accent-l); border-color:#c7d2fe; }
.nd-icon { width:30px; height:30px; border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:.95rem; flex-shrink:0; }
.nd-name { font-size:.78rem; font-weight:700; color:var(--ink); line-height:1.2; }
.nd-cat { font-size:.64rem; color:var(--muted); margin-top:.06rem; font-weight:500; }
.nd-loading { text-align:center; padding:1.2rem; color:var(--muted); font-size:.82rem; grid-column:1/-1; }
.nd-cats { border-top:1px solid var(--border); margin-top:.8rem; padding-top:.75rem; display:flex; gap:.4rem; flex-wrap:wrap; }
.nd-cat-pill { display:inline-flex; align-items:center; padding:.22rem .65rem; border-radius:6px; font-size:.69rem; font-weight:700; text-decoration:none; border:1px solid transparent; transition:opacity .14s; }
.nd-cat-pill:hover { opacity:.8; }

/* ── CHEVRON on Programs link ── */
.nav-chevron { font-size:.52rem; transition:transform .2s; display:inline-block; margin-left:.2rem; color:var(--muted2); }
.nav-item:hover .nav-chevron { transform:rotate(180deg); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items:center; justify-content:center; gap:0.45rem;
  font-family:'Plus Jakarta Sans',sans-serif; font-weight:700;
  border:none; cursor:pointer; text-decoration:none;
  transition: all 0.18s ease; white-space:nowrap;
}
.btn-sm  { font-size:0.8rem;  padding:0.45rem 1rem;  border-radius:8px; }
.btn-md  { font-size:0.875rem;padding:0.6rem 1.4rem; border-radius:9px; }
.btn-lg  { font-size:1rem;    padding:0.8rem 2rem;   border-radius:10px; }
.btn-xl  { font-size:1.05rem; padding:1rem 2.4rem;   border-radius:12px; }

.btn-primary {
  background: var(--accent); color:#fff;
  box-shadow: 0 2px 8px rgba(79,70,229,0.35);
}
.btn-primary:hover { background:var(--accent-h); box-shadow:0 4px 16px rgba(79,70,229,0.45); transform:translateY(-1px); }

.btn-outline {
  background: transparent; color:var(--ink);
  border: 1.5px solid var(--border2);
}
.btn-outline:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-l); }

.btn-ghost {
  background: transparent; color:var(--muted);
}
.btn-ghost:hover { color:var(--ink); background:var(--paper2); }

.btn-ink {
  background: var(--ink); color:var(--paper);
  box-shadow: var(--shadow-md);
}
.btn-ink:hover { background:var(--ink2); transform:translateY(-1px); box-shadow:var(--shadow-lg); }

/* ── BADGE / PILL ── */
.badge {
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size:0.72rem; font-weight:700; letter-spacing:0.05em;
  padding:0.3rem 0.8rem; border-radius:100px;
}
.badge-accent { background:var(--accent-l); color:var(--accent); border:1px solid #c7d2fe; }
.badge-green  { background:var(--green-l);  color:var(--green);  border:1px solid #a7f3d0; }
.badge-red    { background:var(--red-l);    color:var(--red);    border:1px solid #fecaca; }
.badge-amber  { background:var(--amber-l);  color:var(--amber);  border:1px solid #fde68a; }
.badge-blue   { background:var(--blue-l);   color:var(--blue);   border:1px solid #bae6fd; }
.badge-dot::before { content:''; width:6px;height:6px;border-radius:50%;background:currentColor;animation:bdot 1.6s ease-in-out infinite; }
@keyframes bdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.4)} }

/* ── CARDS ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--border2);
}
.card-p { padding: 1.75rem; }

/* ── FORM ── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display:block; font-size:0.8rem; font-weight:700; color:var(--ink2); margin-bottom:0.4rem; }
.form-input {
  width:100%; padding:0.7rem 1rem;
  background:#fff; border:1.5px solid var(--border);
  border-radius:9px; font-size:0.9rem; color:var(--ink);
  font-family:'Plus Jakarta Sans',sans-serif;
  transition:border-color 0.18s, box-shadow 0.18s; outline:none;
}
.form-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(79,70,229,0.12); }
.form-input::placeholder { color:var(--muted2); }

/* ── ALERT ── */
.alert {
  display:none; padding:0.75rem 1rem; border-radius:9px;
  font-size:0.84rem; font-weight:600; margin-bottom:1rem;
}
.alert.show { display:flex; align-items:center; gap:0.5rem; }
.alert-success { background:var(--green-l); color:var(--green); border:1px solid #a7f3d0; }
.alert-error   { background:var(--red-l);   color:var(--red);   border:1px solid #fecaca; }

/* ── DIVIDER ── */
.divider { display:flex; align-items:center; gap:1rem; margin:1.2rem 0; color:var(--muted2); font-size:0.78rem; font-weight:600; }
.divider::before,.divider::after { content:'';flex:1;height:1px;background:var(--border); }

/* ── TAG ── */
.tag { display:inline-block; padding:0.25rem 0.7rem; border-radius:6px; font-size:0.7rem; font-weight:700; letter-spacing:0.04em; }

/* ── SKILL CHIP ── */
.chip { display:inline-flex; align-items:center; padding:0.22rem 0.65rem; background:var(--paper2); border:1px solid var(--border); border-radius:5px; font-size:0.72rem; font-weight:600; color:var(--muted); }

/* ── SECTION ── */
.section { padding:5rem 2.5rem; }
.section.bg-paper2 { background:var(--paper2); }
.section.bg-ink    { background:var(--ink); color:var(--paper); }
.container { max-width:1180px; margin:0 auto; }

/* ── GRID ── */
.grid-2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:1.5rem; }
.grid-3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:1.5rem; }
.grid-4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1.2rem; }

/* ── REVEAL ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity:1; transform:none; }

/* ── TOAST ── */
.toast-container { position:fixed; bottom:1.5rem; right:1.5rem; z-index:9999; display:flex; flex-direction:column; gap:0.5rem; }
.toast {
  padding:0.85rem 1.3rem; border-radius:10px; font-size:0.85rem; font-weight:600;
  box-shadow:var(--shadow-lg); animation:toastIn 0.3s ease;
  display:flex; align-items:center; gap:0.6rem;
  max-width: 320px;
}
.toast-success { background:#fff; border:1px solid #a7f3d0; color:var(--green); }
.toast-error   { background:#fff; border:1px solid #fecaca; color:var(--red); }
@keyframes toastIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }

/* ── MARQUEE ── */
.marquee-wrap { overflow:hidden; background:var(--ink); padding:1rem 0; border-top:1px solid var(--ink3); border-bottom:1px solid var(--ink3); }
.marquee-track { display:flex; gap:2.5rem; width:max-content; animation:mqroll 24s linear infinite; }
@keyframes mqroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.mq-item { white-space:nowrap; font-size:0.8rem; font-weight:700; color:rgba(247,246,242,0.4); letter-spacing:0.06em; text-transform:uppercase; display:flex; align-items:center; gap:0.7rem; }
.mq-sep { color:var(--accent); opacity:0.7; }

/* ── STAT ── */
.stat-block .num { font-family:'Fraunces',serif; font-size:2.8rem; font-weight:900; line-height:1; letter-spacing:-0.04em; }
.stat-block .lbl { font-size:0.8rem; font-weight:600; color:var(--muted); margin-top:0.3rem; }

/* ── PROGRESS ── */
.progress-track { background:var(--paper2); border-radius:99px; height:6px; overflow:hidden; }
.progress-fill  { background:linear-gradient(90deg,var(--accent),#818cf8); height:100%; border-radius:99px; transition:width 0.6s ease; }

/* ── FOOTER ── */
footer {
  background:var(--ink); color:rgba(247,246,242,0.7);
  padding:3.5rem 2.5rem 0;
}
footer .container { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; padding-bottom:3rem; border-bottom:1px solid var(--ink3); }
.footer-brand .fn { font-family:'Fraunces',serif; font-weight:900; font-size:1.3rem; color:var(--paper); letter-spacing:-0.03em; text-decoration:none; display:block; margin-bottom:0.7rem; }
.footer-brand p { font-size:0.83rem; line-height:1.7; max-width:240px; }
.footer-logo-link {
  display:inline-flex; align-items:center; gap:.55rem;
  text-decoration:none; margin-bottom:.75rem;
}
.footer-logo-text {
  font-family:'Fraunces',serif; font-weight:900;
  font-size:1.45rem; letter-spacing:-.03em; line-height:1;
}
footer h4 { font-size:0.78rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--paper); margin-bottom:1rem; }
footer a { display:block; font-size:0.84rem; color:rgba(247,246,242,0.55); text-decoration:none; margin-bottom:0.55rem; transition:color 0.15s; }
footer a:hover { color:var(--paper); }
.footer-bottom { text-align:center; padding:1.2rem; font-size:0.78rem; color:rgba(247,246,242,0.3); }

/* ── PAGE TOP SPACER ── */
.pt-nav { padding-top: 115px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--paper2); }
::-webkit-scrollbar-thumb { background:var(--border2); border-radius:3px; }

/* ── MOBILE HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: .4rem; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .2s;
}
.nav-mobile-menu {
  display: none; position: fixed; inset: 64px 0 0 0;
  background: rgba(247,246,242,.97); backdrop-filter: blur(20px);
  z-index: 998; flex-direction: column; padding: 1.5rem;
  border-top: 1px solid var(--border); overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nmm-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem; border-radius: 10px; font-size: .95rem;
  font-weight: 700; color: var(--ink); text-decoration: none;
  transition: background .15s; border: none; background: none;
  width: 100%; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
}
.nmm-link:hover { background: var(--paper2); }
.nmm-link.active { color: var(--accent); background: var(--accent-l); }
.nmm-divider { height: 1px; background: var(--border); margin: .6rem 0; }
.nmm-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  padding: .5rem 1rem 1rem;
}
.nmm-prog {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .85rem; border-radius: 9px; font-size: .82rem;
  font-weight: 700; color: var(--ink); text-decoration: none;
  background: var(--paper2); border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
  overflow: hidden;
}
.nmm-prog:hover { background: var(--accent-l); border-color: #c7d2fe; color: var(--accent); }
.nmm-prog span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── IMAGE FALLBACKS ── */
img { display: block; }
img[src=""], img:not([src]), img[src="#"] {
  min-height: 20px;
  background: var(--paper2);
}
.nav-logo img { max-height: 42px; width: auto; }

/* ── RESPONSIVE ── */
@media(max-width:1100px){
  .nd-grid { grid-template-columns: repeat(3,1fr); }
  .nav-dropdown { width: 520px; }
}

@media(max-width:900px){
  .navbar { padding: 0 1.25rem; }
  .nav-center { display: none; }
  .nav-end .btn-outline, .nav-end .btn-primary { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 3.5rem 1.25rem; }
  .container { padding: 0 1.25rem; }
  footer .container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav-end { gap: .3rem; }
  /* Keep Sign In visible on tablets */
  .nav-end [data-auth="hide"].btn-outline { display: inline-flex; font-size: .75rem; padding: .38rem .8rem; }
}

@media(max-width:600px){
  footer .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar { padding: 0 1rem; }
  .section { padding: 2.5rem 1rem; }
  .container { padding: 0 1rem; }
  /* Buttons */
  .btn-xl { font-size: .9rem; padding: .8rem 1.6rem; }
  .btn-lg { font-size: .85rem; padding: .7rem 1.4rem; }
  /* Footer */
  .footer-bottom { font-size: .72rem; padding: 1rem; }
  /* Stats band */
  .stats-inner { grid-template-columns: 1fr 1fr !important; }
  /* Recognition banner */
  .rec-item { min-width: 200px; padding: 0 1.8rem; }
  /* Marquee */
  .mq-item { font-size: .72rem; padding: .65rem 1.4rem; }
  /* Mobile menu programs: single column on very small screens */
  .nmm-cats { grid-template-columns: 1fr; }
}
