/* ── Self-hosted fonts ── */
@font-face {
  font-family: 'Bebas Neue';
  src: url('/assets/fonts/bebas-neue-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-v51-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-v51-latin-300italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-v51-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* ── Tokens ── */
:root {
  --cream: #f5f0e8;
  --navy: #1a1a2e;
  --amber: #c8892a;
  --maroon: #7a2535;
  --nav-apply-bg: #7a2e3f;
  --white: #ffffff;
  --divider: #E0DDD6;
  --page-margin: 6.25rem; /* 100px — adjust here to change all page margins at once */
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --heading-size: 60px;
  --text-heading: #38332B;
  --amber-warm: #C5783A;
  --blue: #2d4f8f;
  --blue-dark: #243f72;
  --tab-inactive: #E5DFD2;
  --tab-inactive-text: #958B75;
  --text-dim: #908C7E;
  --maroon-dark: #641e2c;
  --text-muted-warm: #555450;
  --text-footer: #6b6560;
  --border-warm: #ddd6c9;
  --submit-hover: #ede8dc;
  --navy-dark: #111120;
  --tab-inactive-hover: #D9D2C4;
  --text-maroon-soft: #d7d6d2;
  --text-maroon-accent: #d095a2;
  --bubble-bg: #fbf7ee;
  --bubble-text: #454034;
  --bubble-border: #cbc4b7;
  --success-green: #2d6a2d;
  --error-red: #c0392b;
  --error-red-soft: #f5a3a3;
}

/* ── Base ── */
html {
  background-color: var(--cream);
  overflow-x: hidden; /* needed so 100vw lines don't create horizontal scroll */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--cream);
  color: var(--navy);
  max-width: 1440px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-heading);
}

/* Blue accent for a key phrase inside a heading */
.heading-accent { color: var(--blue); }

/* ── Nav ── */
nav {
  background-color: var(--cream);
  width: 100%;
  padding: 1.25rem var(--page-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}


/* Full-viewport-width cream fill — prevents colored sections bleeding past the 1440px body cap */
nav::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--cream);
  z-index: -1;
  pointer-events: none;
}

/* Full-viewport-width border — extends beyond the 1440px body cap */
nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: rgba(26, 26, 46, 0.12);
  pointer-events: none;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  display: block;
  height: 25px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem; /* 28px — matches Figma */
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-links a.link-dim {
  color: var(--text-dim);
}

.nav-links a:hover {
  opacity: 0.65;
}

.nav-mobile-right {
  display: none; /* shown ≤767px */
}

.nav-mobile-apply {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-mobile-apply:hover { opacity: 0.6; }
.nav-mobile-right:has(.nav-hamburger.open) .nav-mobile-apply { display: none; }

.nav-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  outline: none;
}
.nav-hamburger-line {
  display: block;
  height: 1.5px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.nav-hamburger-line:first-child { width: 20px; }
.nav-hamburger-line:last-child  { width: 13px; }
.nav-hamburger.open .nav-hamburger-line { width: 20px; }
.nav-hamburger.open .nav-hamburger-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-hamburger.open .nav-hamburger-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  z-index: 99;
}
.nav-mobile-menu.open {
  max-height: 300px;
  border-bottom: 1px solid rgba(26, 26, 46, 0.12);
}
.nav-mobile-menu-inner {
  padding: 1.5rem 1.5rem 2rem;
}
.nav-mobile-menu a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  display: block;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .nav-hamburger-line,
  .nav-mobile-menu { transition: none; }
}

/* ── Hero ── */
.hero {
  background-color: var(--cream);
}

.hero-top {
  padding: 3rem var(--page-margin) 2.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

/* Divider between wordmark section and headline section — full viewport width */
.hero-divider {
  position: relative;
  height: 1px;
  border: none;
}

.hero-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--divider);
  pointer-events: none;
}

/* SC|AF wordmark — SVG image, at least half page width */
.wordmark-large {
  display: block;
  width: 62%;
  height: auto;
  flex-shrink: 0;
}

/* ── Values ──
   Vertical position: adjust padding-top (10.5rem = 168px, 1rem ≈ 16px)
*/
.values-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 10.5rem;
}

.values-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
}

/* "over" is completely static — never animates */
.val-over {
  color: var(--amber);
  font-weight: 400;
}

/* The two animated word slots */
.val-word {
  display: inline-block; /* required for transform */
  font-family: var(--font-body);
  color: var(--navy);
  font-weight: 300;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  text-decoration-color: var(--amber);
}

@keyframes val-exit {
  to { opacity: 0; transform: translateY(-12px); }
}

@keyframes val-enter {
  from { opacity: 0; transform: translateY(12px); }
}

.val-word.exiting {
  animation: val-exit 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

.val-word.entering {
  animation: val-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .val-word.exiting,
  .val-word.entering { animation: none; }
}

/* ── Hero bottom ── */
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8rem;
  padding: 3rem var(--page-margin) 4rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  font-weight: 400;
  color: var(--text-heading);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.01em;
  flex: 0 0 52%;
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.75rem;
  flex: 1;
}

.hero-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(26, 26, 46, 0.75);
  line-height: 1.7;
  letter-spacing: -0.01em;
  text-align: right;
}

.cta-btn {
  display: inline-block;
  background-color: var(--maroon);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-end;
  transition: background-color 0.2s;
}

.cta-btn:hover {
  background-color: var(--maroon-dark);
}

.apply-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.apply-cta-btn svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.apply-cta-btn:hover { opacity: 0.85; }
.apply-cta-btn:hover svg { transform: translateX(4px); }

/* ── Shared form components ─────────────────────────────────────────── */
.scaf-form-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 400;
  color: rgba(26, 26, 46, 0.4);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.scaf-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.scaf-field {
  display: flex;
  flex-direction: column;
}
.scaf-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 26, 46, 0.5);
  display: block;
  margin-bottom: 0.5rem;
}
.scaf-input {
  width: 100%;
  background: rgba(26, 26, 46, 0.04);
  border: 1px solid rgba(26, 26, 46, 0.15);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}
textarea.scaf-input {
  min-height: 120px;
  resize: vertical;
}
.scaf-input:focus {
  border-color: var(--amber-warm);
  background: rgba(26, 26, 46, 0.07);
}
.scaf-input::placeholder {
  color: rgba(26, 26, 46, 0.3);
}
.scaf-submit {
  width: 100%;
  margin-top: 0.5rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}
.scaf-submit:hover { background: var(--navy-dark); }
.scaf-submit svg { transition: transform 0.2s ease; flex-shrink: 0; }
.scaf-submit:hover svg { transform: translateX(4px); }
.scaf-submit--blue { background: var(--blue); }
.scaf-submit--blue:hover { background: var(--blue-dark); }

/* Submit-button loading spinner. currentColor adapts to each button's text
   colour, so it stays visible on navy, blue and cream buttons alike. */
.scaf-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.scaf-req { color: var(--error-red); }
.scaf-input--error { border-color: var(--error-red); }
.scaf-field-error {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--error-red);
  margin-top: 0.4rem;
}

/* ── Image strip — inset by page margin, does not span full width ── */
.image-strip {
  position: relative;
  background-image: url('/assets/img/nyc-climate-week-hero.webp');
  background-size: cover;
  background-position: center;
  margin: 0 var(--page-margin);
  padding: 3.5rem 3rem;
  min-height: 420px;
}

.image-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.53);
}

.image-strip > * {
  position: relative;
  z-index: 1;
}

/* "No joking," sits left; "BYO lanyard." + divider below it sit right */
.strip-top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.strip-heading-prefix {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.strip-heading-group {
  min-width: 0;
}

.strip-heading {
  font-family: var(--font-heading);
  font-size: var(--heading-size);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.strip-heading strong {
  font-weight: 700;
}

/* 2px divider below "BYO lanyard." — spans the full right portion */
.strip-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--divider);
  border: none;
  margin-top: 0.75rem;
}

.strip-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3.375rem; /* 54px — matches Figma */
  margin-top: 2rem;
}

.strip-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Divider centered in the gap between columns */
.strip-col + .strip-col::before {
  content: '';
  position: absolute;
  left: -1.6875rem; /* half of 3.375rem gap */
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--divider);
}

.strip-col .icon {
  display: block;
}

.strip-col-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin-top: 0.75rem;
  letter-spacing: -0.01em;
}

.strip-col-sub {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.3rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* ── Tablet: ≤ 1024px ── */
@media (max-width: 1024px) {
  :root {
    --page-margin: 2.5rem; /* 40px */
  }

  .wordmark-large {
    width: 56%;
  }

  .values-block {
    padding-top: 5rem;
  }

  .hero-bottom {
    gap: 4rem;
  }

  .hero-headline {
    flex: 0 0 50%;
  }

  .strip-columns {
    gap: 2rem;
  }

  /* Re-center vertical dividers for the smaller gap */
  .strip-col + .strip-col::before {
    left: -1rem;
  }
}

/* ── Mobile: ≤ 767px ── */
@media (max-width: 767px) {
  :root {
    --page-margin: 1.5rem; /* 24px */
  }

  /* Nav */
  nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .nav-logo {
    height: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-mobile-menu {
    display: block;
  }

  /* Hero top: wordmark fills full width, values drop below */
  .hero-top {
    flex-direction: column;
    padding: 2rem var(--page-margin) 1.5rem;
    gap: 1.25rem;
    align-items: stretch;
  }

  .wordmark-large {
    width: 100%;
  }

  .values-block {
    padding-top: 0;
    align-items: flex-start; /* left-align when below wordmark */
  }

  /* Hero bottom: single column, left-aligned body */
  .hero-bottom {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem var(--page-margin) 3rem;
  }

  .hero-headline {
    flex: none;
  }

  .hero-body {
    align-items: flex-start;
  }

  .hero-body p {
    text-align: left;
  }

  .cta-btn {
    align-self: flex-start;
  }

  /* Image strip: full-bleed on mobile */
  .image-strip {
    margin: 0;
    min-height: auto;
    padding: 2.5rem var(--page-margin);
  }

  /* Strip heading: centered on mobile */
  .strip-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .strip-heading-prefix,
  .strip-heading {
    white-space: normal;
    font-size: var(--heading-size);
  }

  .strip-heading-group {
    width: 100%;
  }

  /* Strip columns: single column, gap handles spacing */
  .strip-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .strip-col {
    padding: 0;
  }

  .strip-col:first-child {
    padding-top: 0;
  }

  /* Hide vertical dividers — spacing handles separation */
  .strip-col + .strip-col::before {
    display: none;
  }

  .strip-col .icon {
    width: 28px;
    height: 28px;
  }
}

/* ── Footer ── */
.footer-divider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 1px;
  background: rgba(26, 26, 46, 0.08);
  pointer-events: none;
}

.page-footer {
  background: var(--cream);
  padding: 3rem var(--page-margin) 10rem;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  height: 52px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--text-muted-warm);
  margin-top: 0.75rem;
  max-width: 480px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.footer-links-col a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--text-footer);
  text-decoration: none;
  display: block;
  line-height: 1.6;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--navy);
}

.footer-wordmark {
  position: absolute;
  bottom: 0;
  left: var(--page-margin);
  right: var(--page-margin);
  transform: translateY(50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
}

.footer-wordmark img {
  width: 100%;
  display: block;
}

.footer-bottom {
  margin-top: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-copyright,
.footer-location {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--text-footer);
  line-height: 1.6;
}

.footer-copyright {
  padding-top: 1rem;
}

.footer-location {
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .page-footer {
    padding-bottom: 5rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-links-col {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1.25rem;
    align-items: flex-start;
    text-align: left;
    margin-top: 2.5rem;
  }
}
