/* =============================================================================
   UNA – Grow Your World Campaign
   CSS Design System
   Fonts: Noto Serif (headings) · Work Sans (body/UI)
   Brand: UNA Purple #592B8A · UNA Gold #FFB92A · White
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Custom Properties
   ----------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-purple:        #592B8A;
  --color-purple-dark:   #4B2A7F;
  --color-purple-deeper: #2D1952;
  --color-purple-mid:    #5e3396;
  --color-purple-light:  #7f61b3;
  --color-gold:          #FFB92A;
  --color-gold-light:    #FFD275;
  --color-white:         #ffffff;

  /* Testimonial gradient (from old GYW page) */
  --color-testimonial-a: rgb(88, 44, 137);
  --color-testimonial-b: rgb(151, 103, 192);

  /* Typography */
  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-sans:  'Work Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max:    1240px;
  --container-wide:   1520px;
  --header-height:    106px;
  --section-pad-y:    clamp(3.5rem, 7vw, 6.5rem);

  /* Two-level margin system
     --margin-wide    : page-edge gutter used by full-bleed sections & the header/footer shell
     --margin-content : inner inset for readable text columns (narrower, more conservative) */
  --margin-wide:      clamp(1.5rem, 5vw, 4rem);
  --margin-content:   clamp(1.25rem, 3vw, 2rem);

  /* Keep --section-pad-x as an alias so nothing breaks mid-refactor */
  --section-pad-x:    var(--margin-content);

  /* Motion */
  --ease:       0.25s ease;
  --ease-slide:  0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders */
  --border-bot:       0 0 40px 40px;
  --border-all:       40px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.12;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

blockquote { margin: 0; }

/* -----------------------------------------------------------------------------
   Skip Link (Accessibility)
   ----------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -200%;
  left: 1rem;
  padding: 0.625rem 1.25rem;
  background: var(--color-gold);
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* -----------------------------------------------------------------------------
   Containers — two-level system
   .container       : standard content column  (1240px, --margin-content gutter)
   .container--wide : wider layout shell        (1520px, --margin-wide gutter)
   ----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-content);
}

.container--wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--margin-wide);
}

/* -----------------------------------------------------------------------------
   Button System
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.8rem 1.875rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

/* Gold / primary */
.btn--gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #1a1a1a;
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

/* Gold outline, white text */
.btn--outline-white {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-white);
}
.btn--outline-white:hover,
.btn--outline-white:focus-visible {
  background: rgba(255, 185, 42, 0.15);
}

/* Small variant */
.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}

/* Global focus */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* -----------------------------------------------------------------------------
   Eyebrow / label
   ----------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: 0.75rem;
}
.eyebrow--purple { color: var(--color-purple); }

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  padding-inline: var(--margin-wide);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo { height: clamp(58px, 8.5vw, 100px); width: auto; aspect-ratio: 2160 / 728; }
.header-logo-link:focus-visible { border-radius: 4px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-ctas {
  display: flex;
  gap: 0.625rem;
}

/* Mobile: stack CTAs vertically in the header row — no hamburger */
@media (max-width: 680px) {
  .header-logo { height: 58px; }

  .header-ctas {
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;
  }

  /* Compact pill buttons sized to fit the header row */
  .header-ctas .btn {
    padding: 0.42rem 0.875rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    border-radius: 5px;
    justify-content: center;
    white-space: nowrap;
  }
}

/* Hamburger button */
.nav-trigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: var(--color-gold);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--ease);
  flex-shrink: 0;
}
.nav-trigger:hover,
.nav-trigger:focus-visible { background: var(--color-gold-light); outline: none; }

.nav-trigger__bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-trigger[aria-expanded="true"] .nav-trigger__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-trigger[aria-expanded="true"] .nav-trigger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-trigger[aria-expanded="true"] .nav-trigger__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =============================================================================
   NAV DIALOG OVERLAY
   ============================================================================= */
.nav-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
}
.nav-dialog[hidden] { display: none; }

.nav-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.nav-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  margin-left: auto;
  background: var(--color-purple-dark);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: slideInRight var(--ease-slide);
}
@media (prefers-reduced-motion: reduce) {
  .nav-dialog__panel { animation: none; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* Dialog header */
.nav-dialog__header {
  padding: 1.5rem 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--ease);
}
.nav-close:hover,
.nav-close:focus-visible { color: var(--color-gold); outline: none; }

.nav-dialog__logo { margin-left: auto; }
.nav-dialog__logo img { height: 44px; width: auto; aspect-ratio: 2160 / 728; }

/* Utility links (top of panel) */
.nav-utility__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  width: 100%;
  padding-top: 0.5rem;
}

.nav-utility__list li a {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--color-gold);
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.8125rem;
  border-radius: 4px;
  transition: background var(--ease);
}
.nav-utility__list li a:hover { background: var(--color-gold-light); }

/* Main nav links — large serif */
.nav-main {
  padding: 2.5rem 2rem 2rem;
  flex: 1;
}

.nav-main__list { display: flex; flex-direction: column; gap: 0.125rem; }

.nav-main__list a {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-white);
  padding: 0.1em 0;
  line-height: 1.2;
  transition: color var(--ease);
}
.nav-main__list a:hover { color: var(--color-gold); }

/* Dialog footer — bottom bar */
.nav-dialog__footer {
  background: var(--color-purple-deeper);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-secondary__list,
.nav-portal__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.nav-secondary__list a,
.nav-portal__list a {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  transition: color var(--ease);
}
.nav-secondary__list a:hover,
.nav-portal__list a:hover { color: var(--color-gold); }

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero {
  position: relative;
  min-height: 95svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--border-bot);
}

/* Background video + overlay */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

/* Hero content — centered column */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  gap: 2rem;
}

.hero__gyw-logo {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero__gyw-logo-img {
  width: clamp(320px, 70vw, 800px);
  height: auto;
  aspect-ratio: 6 / 1;
  shape-rendering: geometricPrecision;
}

/* Watch The Film button */
.btn--watch-film {
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 0.875rem 1.75rem;
  gap: 0.75em;
}
.btn--watch-film:active { transform: scale(0.98); }

/* Inline SVG play icon — shape-rendering smooths the circle */
.btn__play-icon {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  shape-rendering: geometricPrecision;
}

/* SVG smoothing for the GYW hero logo */
.hero__gyw-logo {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero__subtext {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--color-white);
  max-width: 56ch;
  text-align: center;
  line-height: 1.72;
  margin: 0;
}

/* =============================================================================
   RFI FORM SECTION
   ============================================================================= */
.rfi-form {
  background: var(--color-white);
  padding-block: var(--section-pad-y);
}


.rfi-form__wrapper {
  max-width: 1100px;
}

.rfi-form__heading {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 3vw, 4rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.rfi-form__inner {
  display: flex;
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.rfi-form__form-col {
  flex: 2 1 66.666%;
  min-width: 0;
}

.rfi-form__image-col {
  flex: 100%;
  min-width: 0;
}

.rfi-form__image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--border-all);
  object-fit: cover;
}

@media (max-width: 768px) {
  .rfi-form__inner {
    flex-direction: column;
  }

  .rfi-form__image-col {
    width: 100%;
    height: 280px;
  }
}

/* =============================================================================
   WATCH FILM SECTION
   ============================================================================= */
.watch-film {
  background: linear-gradient(180deg, var(--color-purple), var(--color-purple-dark));
  padding-block: var(--section-pad-y);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}


.watch-film__inner {
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.watch-film__heading {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 3vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.watch-film__cols {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.watch-film__blurb {
  flex: 1 1 55%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.watch-film__blurb p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.75;
  margin: 0;
}

.watch-film__image-col {
  flex: 1 1 42%;
  min-width: 0;
}

.watch-film__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-all);
  object-fit: cover;
}

@media (max-width: 768px) {
  .watch-film__cols {
    flex-direction: column;
  }

  .watch-film__blurb,
  .watch-film__image-col {
    flex: none;
    width: 100%;
  }

  .watch-film__image-col {
    order: -1;
  }
}

/* =============================================================================
   BRAND INTRO SECTION
   ============================================================================= */
.brand-intro {
  padding-block: var(--section-pad-y);
  background: linear-gradient(180deg, var(--color-purple-light), var(--color-purple));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: -2px;
}

.brand-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "heading icon"
    "text    icon";
  gap: clamp(1.5rem, 3vw, 3rem) clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Tablet: stack vertically — heading, icon centered, then text+button */
@media (max-width: 960px) {
  .brand-intro__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "heading"
      "icon"
      "text";
    gap: 1.75rem;
  }
}

.brand-intro__heading {
  grid-area: heading;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  align-self: end;
}

/* Gold inline text highlight (from UNA homepage design pattern) */
.text-highlight {
  background-color: var(--color-gold);
  padding: 0.05em 0.3em;
  display: inline;
}

.brand-intro__text {
  grid-area: text;
  align-self: start;
}

.brand-intro__text p {
  font-size: 1.1rem;
  color: var(--color-white);
  line-height: 1.72;
  margin-bottom: 2rem;
}

.brand-intro__icon {
  grid-area: icon;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
}

@media (max-width: 960px) {
  .brand-intro__icon { padding-block: 0.5rem; }
}

.brand-intro__una-icon {
  width: clamp(140px, 18vw, 240px);
  height: auto;
  aspect-ratio: 3 / 4;
}

/* =============================================================================
   ABOUT UNA SECTION
   ============================================================================= */
.about-una {
  background: var(--color-white);
  padding-block: var(--section-pad-y);
}

/* Shared noise overlay — purple-background sections */
.stats::after,
.brand-intro::after,
.una-online::after,
.watch-film::after,
.footer-bottom-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.30;
  mix-blend-mode: overlay;
}

/* Footer noise fades with the purple gradient — masked so it disappears as the photo reveals */
.footer-main::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.30;
  mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(to bottom, var(--color-purple-deeper) 0%, var(--color-purple-deeper) 15%, transparent 60%);
  mask-image: linear-gradient(to bottom, var(--color-purple-deeper) 0%, var(--color-purple-deeper) 15%, transparent 60%);
}

.about-una__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;   /* sits above the ::after noise layer */
}
@media (max-width: 800px) {
  .about-una__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about-una__map {
  display: flex;
  justify-content: center;
}

.about-una__map img {
  width: clamp(260px, 42vw, 460px);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.about-una__content h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
}

.about-una__content p {
  font-size: 1.05rem;
  color: #1a1a1a;
  line-height: 1.75;
}

/* =============================================================================
   STATS SECTION
   ============================================================================= */
.stats {
  background: linear-gradient(180deg, var(--color-purple), var(--color-purple-dark));
  padding-block: var(--section-pad-y);
  margin-block-start: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--border-all);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.stats {
  position: relative;
  z-index: 1;
}

.stats__heading {
  font-size: clamp(1.75rem, 3vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  text-transform: capitalize;
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  align-items: baseline;
}
@media (max-width: 860px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media (max-width: 480px) {
  .stats__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Divider lines between stats */
.stat--divided {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 860px) {
  /* 2-col layout: items 3 & 4 are the second row — both need border-top */
  .stat--divided:nth-child(3) {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2.5rem;
  }
  .stat--divided:nth-child(4) {
    position: relative;
    border-top: none;
    padding-top: 2.5rem;
  }
  /* Pseudo-element starts the top line after the border-left, gap = grid gap */
  .stat--divided:nth-child(4)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2.5rem;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
  }
}
@media (max-width: 480px) {
  .stat--divided {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2.5rem;
  }
  /* Undo the tablet offset — single column needs a full-width border-top */
  .stat--divided:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .stat--divided:nth-child(4)::before {
    content: none;
  }
}

.stat__number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.625rem;
}

.stat__count  { font-size: clamp(3rem, 5.5vw, 5rem); }
.stat__prefix { font-size: clamp(2rem, 4vw, 3.5rem); }
.stat__suffix { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.stat__label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 22ch;
  margin-inline: auto;
}

.stats__badges {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.5rem, 1vw, 1rem);
  align-items: center;
  justify-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 860px) {
  .stats__badges { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .stats__badges { grid-template-columns: repeat(2, 1fr); }
}

.stats__badges img {
  width: 100%;
  max-width: 120px;
  height: auto;
}

.stats__ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* =============================================================================
   TESTIMONIALS SECTION — slider layout
   ============================================================================= */
.testimonials {
  padding-block: var(--section-pad-y);
  background: var(--color-white);
}

.section-heading {
  font-size: clamp(2.5rem, 3vw, 4rem);
  margin-bottom: clamp(2.5rem, 4rem, 7.5rem);
  text-align: center;
  text-transform: capitalize;
}
.section-heading--light { color: var(--color-white); }

/* Slider track clipping */
/* Viewport: clips off-screen slides; border-radius rounds the card */
.tslider__viewport {
  overflow: hidden;
  border-radius: 16px;
}

.tslider__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Slide: square photo left, text right — both columns stretch to full row height */
.tslide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: stretch;
}

/* Left: square inset photo */
.tslide__photo {
  padding: 2rem 0 2rem 2rem;
  display: flex;
  align-items: center;
}
.tslide__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border-radius: var(--border-all);
}

/* Right: card — simple padding now that the slider lives inside .container */
.tslide__card {
  background: var(--color-white);
  padding: 2.5rem clamp(1.5rem, 3vw, 2.5rem) 2.5rem clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

/* Mobile: stack photo above card */
@media (max-width: 680px) {
  .tslide {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-self: stretch;
  }
  .tslide__photo {
    padding: 1.25rem 1.25rem 0;
    align-items: flex-start;
  }
  .tslide__photo img {
    aspect-ratio: 4 / 3;
    width: 100%;
  }
  .tslide__card {
    padding: 1.5rem 1.5rem 2rem;
    overflow: hidden;
  }
  .tslide__quote p {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }
}

/* Quote absorbs all leftover height so the footer always sits at the same position */
.tslide__quote {
  flex: 1;
  display: flex;
  align-items: center;
}

.tslide__quote p {
  font-size: clamp(1.3rem, 1.7vw, 2rem);
  color: #1a1a1a;
  line-height: 1.42;
  margin: 0;
}

.tslide__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tslide__avatar {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--color-gold);
  flex-shrink: 0;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@media (max-width: 680px) {
  .tslide__avatar {
    width: 5rem;
    height: 5rem;
  }
}

.tslide__name {
  font-size: 1.75rem;
  font-weight: 800;
  font-style: normal;
  color: #1a1a1a;
  display: block;
}

.tslide__footer .eyebrow {
  margin-bottom: 0;
}

/* Controls: dots + next arrow — inside container */
.tslider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.tslider__dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tslider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0c5e0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.tslider__dot.is-active {
  background: var(--color-purple);
  transform: scale(1.3);
}

.tslider__prev,
.tslider__next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-purple);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: background var(--ease);
  flex-shrink: 0;
}
.tslider__prev:hover,
.tslider__prev:focus-visible,
.tslider__next:hover,
.tslider__next:focus-visible {
  background: var(--color-purple-dark);
  outline: none;
}

/* =============================================================================
   UNA ONLINE SECTION
   ============================================================================= */
.una-online {
  padding-block: var(--section-pad-y);
  background: linear-gradient(180deg, var(--color-purple), var(--color-purple-dark));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: -2px;
}

.una-online__inner {
  display: grid;
  grid-template-columns: 1fr 42%;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) {
  .una-online__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Content — container handles outer padding; gap handles spacing to the image */
.una-online__content {
  padding-right: 0;
}

/* Inset photo on the right — natural aspect ratio, stretches to match content height */
.una-online__image {
  order: 1;
  padding: 2rem 2rem 2rem 0;
  align-self: stretch;
  display: flex;
}
.una-online__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
}

@media (max-width: 800px) {
  .una-online__image {
    order: 0;
    padding: 1.25rem 1.25rem 0;
    align-self: auto;
  }
  .una-online__image img {
    height: auto;
  }
}

.una-online__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  margin-top: 1rem;
}
.una-online__content p {
  font-size: 1.1rem;
  color: var(--color-white);
  line-height: 1.72;
  margin-bottom: 2rem;
}

/* Photo-left variant: flip column widths so image is on the left */
.una-online__inner--photo-left {
  grid-template-columns: 42% 1fr;
}
.una-online__inner--photo-left .una-online__image {
  order: 0;
  padding: 2rem 0 2rem 2rem;
}
@media (max-width: 800px) {
  /* Must match --photo-left specificity (0,2,0) to override the desktop column rule */
  .una-online__inner--photo-left {
    grid-template-columns: 1fr;
  }
  .una-online__inner--photo-left .una-online__image {
    padding: 1.25rem 1.25rem 0;
  }
}

/* Divider between the two sub-sections */
.una-online__divider {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-content);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-block: clamp(1.5rem, 4vw, 3rem);
}

/* =============================================================================
   LOCAL PARTNERS SECTION
   ============================================================================= */
.local-partners {
  background: linear-gradient(to bottom, var(--color-purple-dark) 0%, var(--color-purple-deeper) 100%);
  position: relative;
  overflow: hidden;
  padding-block: var(--section-pad-y);
  isolation: isolate;
  margin-bottom: -2px;
}

.local-partners::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.30;
  mix-blend-mode: overlay;
}

/* Rails sit behind everything, filling the full section */
.local-partners__rails {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  pointer-events: none;
}

/* Edges fade to transparent so the foreground text reads cleanly */
.rails-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 25%, transparent 75%, black 100%);
  mask-image: linear-gradient(to right, black 0%, transparent 25%, transparent 75%, black 100%);
}

/* Rasterized strip rows — background-image tiles infinitely, no img element needed */
.rails-row {
  height: 260px;
  opacity: 0.85;
  will-change: background-position-x;
}

.rails-row--fwd {
  background-image: url('../images/local/rolling strip-raster/Rails.webp');
  background-size: auto 100%;
  background-repeat: repeat-x;
  animation: railsFwd 28s linear infinite;
}

.rails-row--rev {
  background-image: url('../images/local/rolling strip-raster/rails-row-2.webp');
  background-size: auto 100%;
  background-repeat: repeat-x;
  animation: railsRev 32s linear infinite;
}

@keyframes railsFwd {
  from { background-position-x: 0; }
  to   { background-position-x: -2045px; }
}

@keyframes railsRev {
  from { background-position-x: 0; }
  to   { background-position-x: 2045px; }
}

@media (prefers-reduced-motion: reduce) {
  .rails-row--fwd,
  .rails-row--rev { animation: none; }
}

/* Foreground text — sits above rails */
.local-partners__intro {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.local-partners__logo {
  height: 100px;
  width: auto;
  margin-bottom: 1.75rem;
  opacity: 0.9;
}

.local-partners__intro h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  text-transform: capitalize;
}

.local-partners__intro p {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.75;
  max-width: 60ch;
}

.local-partners__intro .btn {
  margin-top: 1.25rem;
}

/* Rails scroll is driven by requestAnimationFrame in main.js.
   will-change keeps the tracks on their own GPU compositing layer. */

/* Hide rails on mobile, show mobile slider */
@media (max-width: 800px) {
  .local-partners__rails { display: none; }
  .local-partners__intro { position: static; }
}
@media (min-width: 801px) {
  .lp-slider { display: none; }
}

/* Mobile photo slider */
.lp-slider {
  margin-top: 2rem;
}

.lp-slider__viewport {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1 / 1;
}
@media (min-width: 801px) {
  .lp-slider__viewport { aspect-ratio: auto; }
}

.lp-slider__track {
  display: flex;
  height: 100%;
  transition: transform var(--ease-slide);
}

.lp-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.lp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.lp-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.lp-slider__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--ease);
}
.lp-slider__arrow:hover,
.lp-slider__arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.lp-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lp-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.lp-slider__dot.is-active {
  background: var(--color-gold);
  transform: scale(1.25);
}

/* =============================================================================
   CAMPUS VISIT SECTION
   ============================================================================= */
.campus-visit {
  position: relative;
  padding-block: clamp(5rem, 12vw, 11rem);
  background-image: url('../images/backgrounds/footer_bg.jpg');
  background-size: cover;
  background-position: center 40%;
}
@media (max-width: 768px) {
  .campus-visit { background-attachment: scroll; }
}

.campus-visit__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(45, 25, 82, 0.90) 0%,
    rgba(75, 42, 127, 0.75) 55%,
    rgba(75, 42, 127, 0.45) 100%
  );
}

.campus-visit__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.campus-visit__content h2 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}
.campus-visit__content p {
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.72;
  margin-bottom: 2.25rem;
}

/* =============================================================================
   SITE FOOTER
   ============================================================================= */
.site-footer {
  color: var(--color-white);
  display: flex;
  flex-direction: column;
}

/* footer-main contains the bg image and all content above the copyright bar */
.footer-main {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-purple-deeper);
}

@media (max-width:768px) {
  .footer-main {
    min-height: 40vh;
  }
}

/* Fade from Local Partners purple into the footer background image */
.footer-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--color-purple-deeper) 10%, var(--color-purple-deeper) 20%, transparent 100%);
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/backgrounds/footer_bg.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .footer-bg {
    background-image: url('../images/backgrounds/footer_bg_mobile.png');
    background-position: center bottom;
  }
}

.footer-inner {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 5rem) var(--margin-wide);
}

@media (max-width: 640px) {
  .footer-inner {
    padding: 2rem var(--margin-wide);
  }
}
@media (max-width: 480px) {
  .footer-inner {
    padding-bottom: 5rem;
  }
}

.footer-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .footer-top-row {
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
}

.footer-logo-link { display: inline-block; }
.footer-logo { height: 6rem; width: auto; aspect-ratio: 2160 / 728; }

@media (max-width: 640px) {
  .footer-logo { height: 5rem; }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: nowrap;
}
@media (max-width: 640px) {
  .footer-social { gap: 2.5rem; }
}
.footer-social a {
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ease), transform 0.3s ease;
}
.footer-social a:hover {
  color: var(--color-white);
  transform: scale(1.15);
}
.footer-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-separator {
  border: none;
  height: 2px;
  background: var(--color-gold);
  margin: 3rem 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 1024px) { .footer-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .footer-links { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-white);
  margin-bottom: 0.875rem;
}
.footer-col a {
  display: block;
  padding: 0.2rem 0;
  font-weight: 400;
  font-size: 1;
  color: var(--color-white);
  transition: color var(--ease);
  line-height: 2em;
}
.footer-col a:hover { color: var(--color-gold); }

.footer-bottom-bar {
  position: relative;
  z-index: 2;
  background: #221137;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem) var(--section-pad-x);
  isolation: isolate;
  overflow: hidden;
}
.footer-bottom-bar p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-white);
  margin: 2em 0;
  line-height: 1.6;
}

/* =============================================================================
   UTILITY
   ============================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   VIDEO LIGHTBOX
   ============================================================================= */

.film-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-in-out;
}

/* [hidden] collapses it entirely when closed; JS removes hidden + triggers reflow before adding --open */
.film-lightbox[hidden] { display: none; }

.film-lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

/* Close button — top-right corner */
.film-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: var(--color-white);
  font-size: 3rem;
  line-height: 1;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  font-family: sans-serif;
  cursor: pointer;
  z-index: 1;
  transition: color var(--ease);
}
.film-lightbox__close:hover { color: var(--color-gold); }

/* Video frame — scales up when lightbox opens */
.film-lightbox__frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.film-lightbox--open .film-lightbox__frame {
  transform: scale(1);
}

.film-lightbox__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

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