/* ============================================
   DESIGN TOKENS — change these to re-theme the
   entire site once you have the foundation's
   real brand colors, fonts, and logo.
   ============================================ */
:root {
  --navy: #16233F;
  --navy-light: #223258;
  --gold: #B8912F;
  --gold-light: #D4AF5A;
  --cream: #F7F5F0;
  --ink: #1D1F23;
  --slate: #5C6470;
  --border: #E3DFD5;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, sans-serif;

  --max-width: 1120px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============ HERO ============ */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 640px;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.hero p {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 52ch;
}

/* ============ FOCUS AREAS (asymmetric grid, not identical cards) ============ */
.focus-areas {
  padding: var(--space-6) 0;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: var(--space-4);
  max-width: 30ch;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-4);
}

.focus-primary {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
}

.focus-primary h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: var(--space-2);
}

.focus-secondary {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.focus-card {
  border-top: 2px solid var(--gold);
  padding-top: var(--space-2);
}

.focus-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: var(--space-1);
}

.focus-card p, .focus-primary p {
  color: var(--slate);
  font-size: 0.98rem;
}

.focus-primary p { color: rgba(247,245,240,0.8); }

/* ============ IMPACT NUMBERS ============ */
.impact {
  background: var(--navy-light);
  color: var(--cream);
  padding: var(--space-6) 0;
}

.impact .section-heading { color: var(--cream); }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-4);
}

.impact-stat .number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-light);
  line-height: 1;
}

.impact-stat .label {
  margin-top: var(--space-1);
  color: rgba(247,245,240,0.75);
  font-size: 0.95rem;
}

/* ============ NEWS ============ */
.news {
  padding: var(--space-6) 0;
}

.news-list {
  border-top: 1px solid var(--border);
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.news-item time {
  color: var(--slate);
  font-size: 0.9rem;
}

.news-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.news-item a { color: var(--navy); }
.news-item a:hover { color: var(--gold); }

/* ============ TIMELINE (real sequence, so dates are justified) ============ */
.timeline {
  padding: var(--space-6) 0;
  background: var(--navy);
  color: var(--cream);
}

.timeline .section-heading { color: var(--cream); }

.timeline-track {
  display: flex;
  overflow-x: auto;
  gap: var(--space-4);
  padding-bottom: var(--space-2);
}

.timeline-entry {
  min-width: 220px;
  border-left: 2px solid var(--gold);
  padding-left: var(--space-2);
}

.timeline-entry .year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
}

.timeline-entry p {
  color: rgba(247,245,240,0.8);
  font-size: 0.92rem;
  margin-top: var(--space-1);
}

/* ============ FOOTER ============ */
.site-footer {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--slate);
}

/* ============ CONTACT FORM ============ */
.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  padding: var(--space-2);
  border: 1px solid var(--border);
  background: white;
  border-radius: 2px;
}

.contact-form button {
  align-self: flex-start;
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover { background: var(--gold); }

/* ============ ACCESSIBILITY ============ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .focus-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .news-item { grid-template-columns: 1fr; gap: var(--space-1); }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-top: 1px solid var(--border); width: 100%; }
  .nav-links a { display: block; padding: var(--space-2) var(--space-3); }

  .nav-toggle { display: block; }
}

/* ============ PROJECTS PAGE ============ */
.projects { padding: var(--space-5) 0 0; }
.project { padding: var(--space-5) 0; border-bottom: 1px solid var(--border); }
.project:last-child { border-bottom: none; }
.project-head { display: flex; gap: var(--space-3); align-items: baseline; margin-bottom: var(--space-3); }
.project-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.project-head h2 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; color: var(--navy); max-width: 36ch; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-2); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; background: var(--border); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-2); margin-top: var(--space-2); }
.video-grid video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }

.more-projects { padding-bottom: var(--space-6); }
.more-list { list-style: none; border-top: 1px solid var(--border); }
.more-list li { display: flex; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.more-list .project-num { font-size: 1.1rem; min-width: 2ch; }

.lightbox { position: fixed; inset: 0; background: rgba(10,16,30,0.92); display: none; align-items: center; justify-content: center; z-index: 200; cursor: zoom-out; padding: var(--space-3); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ============ HOME: values + link ============ */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-4); }
.text-link { color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--gold); }

/* ============ HERO SLIDESHOW ============ */
.hero-media { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; background: var(--navy); overflow: hidden; border-bottom: none; padding: var(--space-6) 0; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease-out; }
.hero-slide.active img { transform: scale(1); }
.hero-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(22,35,63,0.9) 0%, rgba(22,35,63,0.62) 55%, rgba(22,35,63,0.28) 100%); }
.hero-media .container { position: relative; z-index: 2; width: 100%; }
.hero-media h1 { color: var(--cream); }
.hero-media .hero-content p { color: rgba(247,245,240,0.88); }
.hero-media .eyebrow { color: var(--gold-light); }
.hero-controls { position: absolute; left: var(--space-3); bottom: calc(-1 * var(--space-5)); display: flex; align-items: center; gap: var(--space-3); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 32px; height: 4px; border: none; padding: 0; cursor: pointer; background: rgba(247,245,240,0.4); }
.hero-dots button.active { background: var(--gold-light); }
.hero-pause { background: none; border: none; color: rgba(247,245,240,0.85); font-family: var(--font-body); font-size: 0.85rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide img { transition: none; transform: none; } }

/* ============ DESIGN PASS: depth, warmth, motion ============ */
:root { --sand: #EFE8D8; --gold-soft: #F4EAC9; }

/* logo mark + nav underline */
.logo::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-right: 10px; }
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.25s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }

/* hero: never flat, even with no photos; decorative ring */
.hero-media {
  background:
    radial-gradient(circle at 85% 15%, rgba(212,175,90,0.38), transparent 42%),
    radial-gradient(circle at 8% 95%, rgba(52,78,140,0.55), transparent 50%),
    linear-gradient(135deg, #16233F, #223258);
}
.hero-media::before { content: ''; position: absolute; z-index: 1; right: -140px; top: 50%; width: 520px; height: 520px; border-radius: 50%; border: 2px solid rgba(212,175,90,0.28); transform: translateY(-50%); box-shadow: inset 0 0 0 36px rgba(212,175,90,0.05); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero-media .hero-content { max-width: 680px; }

/* headings get a gold accent bar */
.section-heading::after { content: ''; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: var(--space-2); }

/* focus cards: lifted, warm */
.focus-card { background: #fff; border-top: 3px solid var(--gold); padding: var(--space-3); box-shadow: 0 6px 24px rgba(22,35,63,0.07); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.focus-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(22,35,63,0.12); }
.focus-primary { background: linear-gradient(160deg, var(--navy-light), var(--navy)); border-bottom: 4px solid var(--gold); }

/* warm alternating sections */
.focus-areas + .focus-areas { background: var(--sand); }
.news { background: var(--gold-soft); text-align: center; }
.news .section-heading::after { margin-left: auto; margin-right: auto; }
.news .section-heading { max-width: none; font-size: 2.2rem; }
.text-link { font-size: 1.1rem; }

/* impact + values: richer navy */
.impact { background: radial-gradient(circle at 90% 0%, rgba(212,175,90,0.22), transparent 45%), linear-gradient(135deg, var(--navy-light), var(--navy)); }
.impact-stat .number { font-size: clamp(2.8rem, 5vw, 3.8rem); text-shadow: 0 0 28px rgba(212,175,90,0.35); }
.timeline.values { background: linear-gradient(180deg, var(--navy), #0F1A31); }
.timeline-entry { background: rgba(255,255,255,0.04); padding: var(--space-3); border-left: 3px solid var(--gold); }

/* footer */
.site-footer { background: var(--navy); color: rgba(247,245,240,0.8); border-top: 3px solid var(--gold); }
.site-footer .container { color: inherit; }
.site-footer a:hover { color: var(--gold-light); }

/* scroll reveal (class added by JS, so nothing hides without JS) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ TEMPLATE LOOK: split rows, tinted cards, slide-up ============ */
:root { --font-display: 'Poppins', system-ui, sans-serif; --font-body: 'Poppins', system-ui, sans-serif; --ink-navy: #0B1B4D; --tint: #E8F1FE; --tint-border: #C3D7F5; --blue: #2F6FDE; --max-width: 1040px; }
body { background: #fff; font-weight: 400; }
h1, h2, h3, .logo { letter-spacing: -0.02em; }
.hero-media h1 { font-weight: 600; }
.section-heading { font-weight: 400; color: var(--ink-navy); letter-spacing: -0.03em; font-size: clamp(2rem, 4vw, 2.7rem); max-width: none; margin-bottom: var(--space-4); }
.section-heading::after { display: none; }
.section-heading.center { text-align: center; }
.block { padding: var(--space-5) 0; }
.lead { max-width: 760px; margin: 0 auto var(--space-4); text-align: center; color: #26304f; font-size: 1.05rem; line-height: 1.7; }
.focus-areas + .focus-areas { background: none; }

.page-banner { padding: 72px 0; text-align: center; color: #fff; border: none; min-height: 0; display: block; background: linear-gradient(rgba(11,27,77,0.72), rgba(11,27,77,0.72)), url('../images/stock/hero-1.webp') center / cover, #16233F; }
.page-banner .hero-content { max-width: 760px; margin: 0 auto; }
.page-banner h1 { color: #fff; font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.1rem); }
.page-banner p { color: rgba(255,255,255,0.88); margin: 12px auto 0; font-size: 1rem; }
.page-banner .eyebrow, .page-banner::before, .page-banner::after { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: var(--space-4) 0; }
.split.flip .split-media { order: -1; }
.split-text h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 400; letter-spacing: -0.03em; color: var(--ink-navy); margin-bottom: var(--space-2); }
.split-text p { color: #26304f; font-size: 0.97rem; line-height: 1.75; }
.split-media { border-radius: 12px; overflow: hidden; border: 1px solid var(--tint-border); aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--tint), #cfe0fa); }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.area-card { display: flex; gap: 18px; align-items: flex-start; background: var(--tint); border: 1px solid var(--tint-border); border-radius: 10px; padding: 22px; }
.area-icon { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #d4e4fb; display: grid; place-items: center; color: var(--blue); }
.area-icon svg { width: 28px; height: 28px; }
.area-initials { font-weight: 600; font-size: 1.1rem; }
.area-card h3 { font-weight: 500; font-size: 1.05rem; color: var(--ink-navy); margin-bottom: 6px; line-height: 1.3; }
.area-card p { font-size: 0.86rem; color: #26304f; line-height: 1.65; }

.impact { background: var(--tint); color: var(--ink-navy); }
.impact .section-heading { color: var(--ink-navy); }
.impact-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); text-align: center; }
.impact-stat .number { color: var(--blue); text-shadow: none; font-weight: 600; }
.impact-stat .label { color: #3c4868; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.proj-card { display: block; }
.proj-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--tint); transition: transform 0.3s ease; }
.proj-card:hover img { transform: translateY(-4px); }
.tag { display: inline-block; background: var(--tint); color: var(--blue); font-size: 0.72rem; padding: 3px 10px; border-radius: 99px; margin: 14px 0 8px; }
.proj-card h3 { font-size: 0.97rem; font-weight: 600; color: var(--ink-navy); line-height: 1.45; }
.center-link { text-align: center; margin-top: var(--space-4); }

.reveal { transform: translateY(40px); transition: opacity 0.9s cubic-bezier(.22,.8,.3,1), transform 0.9s cubic-bezier(.22,.8,.3,1); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: var(--space-3); } .split.flip .split-media { order: 0; } }

/* ============ MIXED PORTRAIT / LANDSCAPE MEDIA ============ */
.gallery { display: block; columns: 240px; column-gap: var(--space-2); }
.gallery img { display: block; width: 100%; height: auto; min-height: 140px; aspect-ratio: auto; object-fit: initial; margin-bottom: var(--space-2); break-inside: avoid; border-radius: 8px; background: var(--tint); }
.video-grid { align-items: start; }
.video-grid video { height: auto; aspect-ratio: auto; max-height: 72vh; object-fit: contain; border-radius: 8px; }

.impact-stat .label a { border-bottom: 1px solid currentColor; }
.impact-stat .label a:hover { color: var(--blue); }
