/* ==========================================================================
   Together Ahead - site styles
   Brand: Montserrat, Midnight Blue, Light Blue, Warm Gold
   ========================================================================== */

:root {
  /* Palette */
  --light-blue: hsl(193, 61%, 50%);
  --light-blue-dark: hsl(193, 61%, 42%);
  --light-blue-soft: hsl(193, 61%, 95%);
  --midnight: #0B1F4D;
  --midnight-70: rgba(11, 31, 77, 0.7);
  --gold: #D9A441;
  --gold-dark: #c08f31;

  --ink: #10203f;
  --body: #43506b;
  --muted: #6b7794;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 77, 0.06);
  --shadow-md: 0 14px 40px rgba(11, 31, 77, 0.12);
  --shadow-lg: 0 30px 70px rgba(11, 31, 77, 0.18);

  --maxw: 1160px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------- */
/* Reset / base                                                               */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--light-blue-dark); text-decoration: none; }
a:hover { color: var(--midnight); }

h1, h2, h3, h4 {
  font-family: "Montserrat", sans-serif;
  color: var(--midnight);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.3px; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--midnight { background: var(--midnight); color: #d5def1; }
.section--midnight h2,
.section--midnight h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--light-blue-dark);
  margin-bottom: 14px;
}
.section--midnight .eyebrow { color: var(--gold); }

.lead { font-size: 1.18rem; color: var(--body); max-width: 62ch; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s ease, color 0.2s ease;
}

/* Primary: light blue with white text (as requested) */
.btn--primary {
  background: var(--light-blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(28, 154, 214, 0.35);
}
.btn--primary:hover {
  background: var(--light-blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(28, 154, 214, 0.42);
}

.btn--gold {
  background: var(--gold);
  color: var(--midnight);
  box-shadow: 0 10px 24px rgba(217, 164, 65, 0.35);
}
.btn--gold:hover { background: var(--gold-dark); color: var(--midnight); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--light-blue-dark);
  border-color: var(--light-blue);
}
.btn--outline:hover { background: var(--light-blue); color: #fff; transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* -------------------------------------------------------------------------- */
/* Header / nav                                                                */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 44px; width: auto; }

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--midnight);
  font-weight: 600;
  font-size: 0.96rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__links a:hover { background: var(--light-blue-soft); color: var(--light-blue-dark); }
.nav__links a.active { color: var(--light-blue-dark); }
.nav__links a.active::after {
  content: "";
  display: block;
  height: 3px;
  width: 22px;
  margin: 3px auto 0;
  border-radius: 3px;
  background: var(--gold);
}

.nav__cta { margin-left: 8px; }
.nav__cta .btn { padding: 11px 24px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--midnight);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
    display: flex;
  }
  .nav__menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav__links a.active::after { margin: 6px 0 0; }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* -------------------------------------------------------------------------- */
/* Hero (home)                                                                 */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Light, left-anchored gradient so the photo shows its natural colors while the
     text on the left stays readable. The right side of the image is untinted. */
  background: linear-gradient(90deg, rgba(11, 31, 77, 0.5) 0%, rgba(11, 31, 77, 0.18) 42%, rgba(11, 31, 77, 0) 72%);
}
.hero__inner { padding: 90px 0; max-width: 720px; }
.hero__inner .eyebrow { color: var(--gold); text-shadow: 0 2px 10px rgba(11, 31, 77, 0.6); }
.hero h1 { color: #fff; margin-bottom: 0.3em; text-shadow: 0 2px 16px rgba(11, 31, 77, 0.55); }
.hero__sub {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: #eaf1fb;
  margin-bottom: 32px;
  max-width: 34ch;
  text-shadow: 0 2px 12px rgba(11, 31, 77, 0.6);
}
.hero .btn-row { margin-top: 8px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hero__fact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
}
.hero__fact svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* -------------------------------------------------------------------------- */
/* Page hero (interior pages)                                                  */
/* -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: clamp(70px, 12vw, 140px) 0 clamp(56px, 9vw, 96px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--midnight) 0%, #123170 55%, var(--light-blue-dark) 130%);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.28), transparent 65%);
  pointer-events: none;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #dbe6f8; font-size: 1.15rem; max-width: 60ch; margin-bottom: 0; }

/* Image-backed page hero (About) */
.page-hero--image {
  background: var(--midnight);
  /* Taller hero so more of the photo shows and the text can sit up in the
     window area above the people's heads. */
  min-height: 86vh;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(44px, 6vw, 80px);
}
.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor to the top of the image so the tall windows stay in view. */
  object-position: center top;
  z-index: 0;
  opacity: 1;
}
.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Darken the top band where the text sits; leave the people area natural. */
  background: linear-gradient(180deg, rgba(11, 31, 77, 0.62) 0%, rgba(11, 31, 77, 0.28) 30%, rgba(11, 31, 77, 0.04) 55%, rgba(11, 31, 77, 0) 100%);
}
.page-hero--image .container { position: relative; z-index: 2; align-self: flex-start; }
.page-hero--image h1 { text-shadow: 0 2px 16px rgba(11, 31, 77, 0.65); }
.page-hero--image .eyebrow,
.page-hero--image p { text-shadow: 0 2px 12px rgba(11, 31, 77, 0.65); }

/* -------------------------------------------------------------------------- */
/* Generic layout helpers                                                      */
/* -------------------------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--light-blue-soft);
  color: var(--light-blue-dark);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.98rem; }

/* Subject pills */
.subjects { display: flex; flex-wrap: wrap; gap: 12px; }
.subject {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--midnight);
  box-shadow: var(--shadow-sm);
}
.subject svg { width: 18px; height: 18px; color: var(--light-blue-dark); }

/* Split media + text */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.split__media { position: relative; }
.split__badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--gold);
  color: var(--midnight);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  line-height: 1.2;
}
.split__badge span { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
@media (max-width: 620px) { .split__badge { left: 12px; bottom: -18px; } }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  counter-increment: step;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--midnight);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 0; font-size: 0.98rem; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; gap: 32px; } }
.stat__num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat__label { margin-top: 8px; font-weight: 500; color: #cdd8ec; }

/* Info list (schedule etc.) */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; color: var(--light-blue-dark); flex: none; margin-top: 2px; }
.info-list strong { color: var(--midnight); display: block; }

/* Callout */
.callout {
  background: linear-gradient(135deg, var(--light-blue-soft), #fff);
  border: 1px solid var(--line);
  border-left: 5px solid var(--light-blue);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.callout h3 { margin-bottom: 8px; }
.callout a.email { font-weight: 700; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--midnight), #123170);
  color: #fff;
  border-radius: 22px;
  padding: clamp(40px, 6vw, 68px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 154, 214, 0.4), transparent 65%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #d5def1; max-width: 52ch; margin: 0 auto 26px; position: relative; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* -------------------------------------------------------------------------- */
/* Form                                                                        */
/* -------------------------------------------------------------------------- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--midnight); font-size: 0.95rem; }
.field .req { color: var(--light-blue-dark); }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--light-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 154, 214, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 18px 0 0; }
.form-status { margin-top: 16px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #1c8a4a; }
.form-status.err { color: #c0392b; }

/* -------------------------------------------------------------------------- */
/* Photos gallery                                                              */
/* -------------------------------------------------------------------------- */
.gallery {
  columns: 3 260px;
  column-gap: 18px;
}
.gallery figure {
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery img { width: 100%; height: auto; display: block; }

.gallery-empty {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 60px 30px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-alt);
}
.gallery-empty svg { width: 46px; height: 46px; color: var(--light-blue); margin-bottom: 12px; }

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.site-footer {
  background: var(--midnight);
  color: #b9c5de;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.site-footer img.footer-logo { height: 46px; margin-bottom: 16px; }
.site-footer p { color: #b9c5de; max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #b9c5de; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #8a99b8;
}

/* -------------------------------------------------------------------------- */
/* Scroll-in animation                                                         */
/* -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
