/* NextOne Fellowship — shared styles for every page.
   Page-specific styles live in each page's <style> block. */

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

:root {
  --bg: #f9f8f6;
  --text: #1a1a2a;
  --text-muted: #52526a;
  --accent: #1a3d8f;
  --accent-hover: #2451b5;
  --accent-active: #122a63;
  --accent-light: #e8edf8;
  --panel: #f0eeeb;
  --border: #e2dfd9;
  --white: #ffffff;
  --shadow-sm: 0 1px 4px rgba(26, 29, 55, 0.07);
  --shadow-md: 0 4px 18px rgba(26, 29, 55, 0.11);
  --shadow-lg: 0 10px 36px rgba(26, 29, 55, 0.16);
  --nav-h: 72px;
  --max-w: 1200px;
  --section-py: 100px;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  line-height: 1.12;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

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

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26, 61, 143, 0.32);
}
.btn-primary:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
  transform: translateY(0);
  box-shadow: none;
}

.btn-white {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.btn-white:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ─── NAV ─────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* .scrolled is toggled by site.js on the home page; .solid is always on for inner pages */
#nav.scrolled,
#nav.solid {
  background: rgba(249, 248, 246, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
#nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.025em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo em {
  color: var(--accent);
  font-style: normal;
}
.nav-logo-mark {
  height: 26px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─────────────────────────────── */
#mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 999;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0.38s;
}
#mobile-menu.open {
  max-height: 420px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
#mobile-menu ul {
  list-style: none;
  padding: 8px 24px;
}
#mobile-menu ul li {
  border-bottom: 1px solid var(--border);
}
#mobile-menu ul li:last-child { border-bottom: none; }
#mobile-menu ul li a {
  display: block;
  padding: 15px 0;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.mobile-cta {
  padding: 16px 24px 24px;
}
.mobile-cta .btn { width: 100%; }

/* ─── FOOTER ──────────────────────────────────── */
#footer {
  position: relative;
  z-index: 1;
  background: #14141f;
  color: rgba(255, 255, 255, 0.8);
  padding: 68px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.footer-logo-mark {
  height: 24px;
  width: auto;
  border-radius: 5px;
  background: var(--white);
  padding: 3px;
}
.footer-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 18px;
}

.footer-right {
  display: flex;
  gap: 56px;
}
.footer-col-title {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
  display: block;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--white); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.social-btn svg { width: 16px; height: 16px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .container { padding: 0 32px; }
  .footer-right { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-py: 60px; }
  .container { padding: 0 20px; }

  /* clip (not hidden) avoids creating a scroll container, which keeps the sticky hero working */
  body { overflow-x: clip; }

  .nav-links, .nav-right > .btn { display: none; }
  .hamburger { display: flex; }

  .footer-top { grid-template-columns: 1fr; gap: 44px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .footer-links a { display: block; padding: 6px 0; }
  .footer-links li { margin-bottom: 2px; }
  .social-btn { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .footer-right { flex-direction: column; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
