:root {
  --navy: #082552;
  --navy-dark: #031a3d;
  --blue: #164d91;
  --gold: #bd892c;
  --gold-dark: #966719;
  --gold-pale: #fbf3df;
  --paper: #fffaf0;
  --white: #ffffff;
  --ink: #14213b;
  --muted: #5d6678;
  --line: rgba(8, 37, 82, 0.13);
  --shadow: 0 12px 34px rgba(8, 37, 82, 0.11);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #d6ad55;
  -webkit-mask: url("../images/youth-activities-watermark.png") center top / 920px 920px repeat;
  mask: url("../images/youth-activities-watermark.png") center top / 920px 920px repeat;
  opacity: 0.035;
}

img {
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #e2ad46;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.header-inner,
.footer-inner,
.footer-bottom {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(8, 37, 82, 0.05);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(190px, 270px) 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 270px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 34px);
}

.primary-nav a {
  position: relative;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 650;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 23px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(8, 37, 82, 0.18);
}

.button-primary:hover {
  background: var(--blue);
  box-shadow: 0 11px 25px rgba(8, 37, 82, 0.22);
}

.button-secondary,
.button-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.button-secondary:hover,
.button-outline:hover {
  color: #fff;
  background: var(--navy);
}

.button-gold {
  color: var(--navy-dark);
  background: #e3b552;
}

.hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 92px 86px;
  text-align: center;
}

.eyebrow,
.section-label,
.pathway-label {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.referral h2 {
  font-family: "Playfair Display", Georgia, serif;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.7rem, 6.3vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 span {
  color: var(--gold-dark);
  font-style: italic;
}

.hero-copy {
  max-width: 730px;
  margin: 28px auto 0;
  color: #3e4b62;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.journey,
.partner {
  padding-block: 78px;
}

.journey {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 750px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-heading > p:last-child {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 18px;
  align-items: start;
  width: 100%;
  padding: 16px 8px 30px;
}

.timeline-stage {
  position: relative;
  min-width: 0;
  margin-block: 0;
  z-index: 1;
  transition: z-index 0s;
}

.timeline-stage img {
  display: block;
  width: 110%;
  height: auto;
  margin-left: -5%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  border: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 4px #fff, var(--shadow);
  transform-origin: center;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.timeline-stage:hover,
.timeline-stage:focus-within {
  z-index: 10;
}

.timeline-stage:hover img {
  transform: translateY(-4px) scale(1.3);
  box-shadow: 0 0 0 4px #fff, 0 18px 38px rgba(8, 37, 82, 0.17);
}

.stage-1 { grid-column: 1 / 3; grid-row: 1; }
.stage-2 { grid-column: 3 / 5; grid-row: 1; }
.stage-3 { grid-column: 5 / 7; grid-row: 1; }
.stage-4 { grid-column: 7 / 9; grid-row: 1; }
.stage-5 { grid-column: 2 / 4; grid-row: 2; }
.stage-6 { grid-column: 4 / 6; grid-row: 2; }
.stage-7 { grid-column: 6 / 8; grid-row: 2; }

@media (hover: none) {
  .timeline-stage:hover img {
    transform: none;
  }
}

.partner {
  border-top: 1px solid var(--line);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.pathway-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.video-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  background: var(--navy);
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 26, 61, 0.34));
}

.video-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 350ms ease;
}

.video-card:hover img {
  transform: scale(1.035);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(8, 37, 82, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
}

.play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  transform: translate(-50%, -50%);
}

.pathway-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 285px;
  padding: 28px;
}

.pathway-content h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.25;
}

.pathway-content > p:not(.pathway-label) {
  margin: 13px 0 24px;
  color: var(--muted);
}

.gateway-button {
  width: 100%;
  margin-top: auto;
}

.directories {
  padding-block: 82px;
  background: rgba(255, 255, 255, 0.56);
  border-block: 1px solid var(--line);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.directory-card {
  position: relative;
  min-height: 365px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 37, 82, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.directory-card:hover {
  border-color: rgba(189, 137, 44, 0.65);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.directory-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
}

.directory-copy {
  display: block;
  text-align: center;
}

.directory-copy strong,
.directory-copy span,
.directory-copy small {
  display: block;
}

.directory-copy strong {
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
}

.directory-copy span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.directory-copy small {
  margin-top: 10px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.directory-art {
  align-self: end;
  width: auto;
  max-width: 85%;
  max-height: 115px;
  margin-top: 20px;
  object-fit: contain;
}

.card-arrow {
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: var(--gold-dark);
  font-size: 1.45rem;
}

.referral {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 54px;
  margin-block: 82px;
  padding: 50px 56px;
  border: 1px solid rgba(189, 137, 44, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fff 0%, #fff8e8 100%);
  box-shadow: var(--shadow);
}

.referral h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
}

.referral-copy > p:not(.section-label) {
  margin: 19px 0 0;
  color: var(--muted);
}

.referral-copy > strong {
  display: block;
  margin-top: 15px;
  color: var(--gold-dark);
  font-size: 0.93rem;
}

.text-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 24px;
  color: var(--navy);
  font-weight: 750;
}

.text-link:hover {
  color: var(--gold-dark);
}

.gift-visual {
  display: grid;
  place-items: center;
}

.gift-visual img {
  display: block;
  width: 100%;
  max-height: 270px;
  object-fit: contain;
}

.site-footer {
  padding: 72px 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-top: 4px solid var(--gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
}

.footer-brand img {
  width: 240px;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.footer-brand p,
.footer-column p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: #edc469;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column > a:not(.button) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.footer-column > a:not(.button):hover {
  color: #fff;
}

.footer-access .button {
  min-width: 135px;
  margin-top: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.footer-bottom div {
  display: flex;
  gap: 22px;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding: 0 0 14px;
  }

  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .stage-1, .stage-2, .stage-3, .stage-4, .stage-5, .stage-6, .stage-7 {
    margin: 0;
  }

  .stage-1 { grid-column: 1 / 3; grid-row: 1; }
  .stage-2 { grid-column: 3 / 5; grid-row: 1; }
  .stage-3 { grid-column: 1 / 3; grid-row: 2; }
  .stage-4 { grid-column: 3 / 5; grid-row: 2; }
  .stage-5 { grid-column: 1 / 3; grid-row: 3; }
  .stage-6 { grid-column: 3 / 5; grid-row: 3; }
  .stage-7 { grid-column: 2 / 4; grid-row: 4; }

  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
  }

  .referral {
    gap: 28px;
    padding: 40px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .section-shell,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .brand img {
    width: min(225px, 58vw);
  }

  .header-signin {
    min-height: 42px;
    padding: 8px 15px;
  }

  .primary-nav {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .primary-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 470px;
    padding-block: 72px 66px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .journey,
  .partner,
  .directories {
    padding-block: 62px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .video-grid,
  .directory-grid,
  .referral {
    grid-template-columns: 1fr;
  }

  .pathway-content {
    min-height: 0;
  }

  .directory-card,
  .directory-card:last-child {
    width: 100%;
    grid-column: auto;
  }

  .referral {
    margin-block: 62px;
    padding: 34px 26px;
    text-align: center;
  }

  .gift-visual {
    order: -1;
  }

  .gift-visual img {
    max-height: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .primary-nav {
    gap: 18px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-inline: 10px;
  }

  .timeline-stage {
    width: 100%;
  }

  .timeline-stage img {
    aspect-ratio: 1.42 / 1;
  }

  .pathway-content {
    padding: 23px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-column {
    grid-column: auto;
  }

  .footer-bottom div {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
