/* ============================================
   THE PEREGRINE PRIZE — Unified Site
   Final Locked Peregrine Palette
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-hero:        #141C24;
  --color-hero-end:    #1C2F38;
  --color-accent:      #8EA8A0;
  --color-light:       #F2EDE4;
  --color-text-dark:   #141C24;
  --color-text-light:  #F2EDE4;
  --color-muted:       #B0ACBA;
  --color-muted-body:  #B0ACBA;
  --color-cere:        #EDBE00;
  --color-dark-1:      #141C24;
  --color-dark-2:      #1C2F38;
  --color-dark-3:      #1B2A4A;
  --color-nav:         #F2EDE4;
  --color-label:       #8EA8A0;

  --color-navy:        #1B2A4A;
  --color-dusty-plum:  #4A3B5C;
  --color-wing-light:  #B0ACBA;
  --color-wing-mid:    #908BA0;
  --color-wing-dark:   #7A7590;
  --color-sage:        #8EA8A0;
  --color-slate:       #5E6B78;
  --color-stone:       #F2EDE4;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Source Sans Pro', sans-serif;

  --nav-height: 72px;
  --container-max: 1140px;
  --container-px: 2rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-dark);
  background: var(--color-light);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease, opacity 0.25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
}

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

/* --- Animations --- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 { transition-delay: 0.15s; }
.anim-delay-2 { transition-delay: 0.3s; }
.anim-delay-3 { transition-delay: 0.45s; }

/* --- Button --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2.25rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  letter-spacing: 0.02em;
}

.btn--cere {
  background: var(--color-cere);
  color: var(--color-dark-1);
}

.btn--cere:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(237, 190, 0, 0.2);
}

.btn--cere:active {
  transform: translateY(0);
}

.btn--sage {
  background: var(--color-sage);
  color: var(--color-dark-1);
}

.btn--sage:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(142, 168, 160, 0.2);
}

.btn--sage:active {
  transform: translateY(0);
}

.hero__buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.hero__btn {
  min-width: 240px;
  text-align: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--color-stone);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.nav.is-scrolled {
  background: var(--color-stone);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav.is-scrolled .nav__title {
  color: var(--color-text-dark);
}

.nav.is-scrolled .nav__tagline {
  color: var(--color-slate);
}

.nav.is-scrolled .nav__links a {
  color: var(--color-slate);
}

.nav.is-scrolled .nav__links a::after {
  background: var(--color-slate);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
}

.nav__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.nav__tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-slate);
  line-height: 1.3;
  margin-top: 1px;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-slate);
  transition: width 0.3s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--color-cere) !important;
  color: var(--color-dark-1) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 5px;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(237, 190, 0, 0.18);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) var(--container-px) 4rem;
  background: linear-gradient(135deg, var(--color-dark-2), var(--color-wing-dark));
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-left: max(calc((100vw - var(--container-max)) / 2), var(--container-px));
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 1rem;
}

.hero__heading-lead {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(176, 172, 186, 0.85);
  margin-bottom: 0.15rem;
  line-height: 1.2;
  white-space: nowrap;
}

.hero__heading {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-wing-light);
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.hero__deadline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--color-cere);
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.hero__footnote {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--color-wing-mid);
  margin-top: 1rem;
  opacity: 0.7;
}

.hero__badge {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-sage);
}

/* Hero bird */
.hero__bird {
  position: absolute;
  right: 9%;
  top: 50%;
  width: 480px;
  z-index: 1;
  pointer-events: none;
}

.hero__bird-img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(80px) scale(0.85);
  animation: birdRise 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes birdRise {
  0% { opacity: 0; transform: translateY(80px) scale(0.85); }
  40% { opacity: 0.85; }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ============================================
   SECTIONS — shared
   ============================================ */
.section {
  padding: 7rem 0;
}

.section--light {
  background: var(--color-light);
}

.section--dark {
  background: var(--color-dark-2);
}

.section--dark-alt {
  background: var(--color-dark-1);
}

.section--muted {
  background: #EBE6DC;
}

.section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.section__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-dark-2);
  margin-bottom: 1rem;
}

.section__rule {
  width: 60px;
  height: 2px;
  background: var(--color-sage);
  margin: 0 auto 1.75rem;
}

.section__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-dark-2);
  margin-bottom: 1.25rem;
}

.section__heading--light {
  color: var(--color-text-light);
}

.section__subtext {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-slate);
  max-width: 720px;
  margin: 0 auto 0.75rem;
}

.section__subtext:last-child {
  margin-bottom: 0;
}

.section__subtext--highlight {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark-1);
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.section__subtext--muted {
  color: var(--color-dark-1);
}

.section__body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-slate);
  max-width: 740px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__body em {
  font-style: italic;
  font-weight: 500;
}

/* ============================================
   PRIZE CALLOUT + USES
   ============================================ */
.prize-callout {
  text-align: center;
  margin-bottom: 2.5rem;
}

.prize-callout__amount {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-dark-1);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.prize-callout__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-sage);
}

.prize-uses {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.prize-use {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.prize-use__icon {
  font-size: 0.5rem;
  color: var(--color-sage);
}

.prize-use__text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark-1);
}

.prize-tagline {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-slate);
  margin-bottom: 0.25rem;
}

@media (max-width: 480px) {
  .prize-uses {
    gap: 1.5rem;
  }
}

/* ============================================
   ELIGIBILITY CARDS + REQUIREMENTS
   ============================================ */
.elig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto 3.5rem;
}

.elig-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 2rem 1.75rem;
}

.elig-card__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-sage);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.elig-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.elig-card__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-wing-light);
}

.section__label--light {
  color: var(--color-stone);
}

.section__subtext--light {
  color: var(--color-wing-light);
}

.elig-reqs {
  max-width: 620px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.elig-reqs__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-sage);
  margin-bottom: 1.25rem;
}

.elig-reqs__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.elig-reqs__list li {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-wing-light);
}

.elig-reqs__list li::before {
  content: '—';
  margin-right: 0.5rem;
  color: var(--color-sage);
}

@media (max-width: 768px) {
  .elig-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================
   APPLICATION STEPS
   ============================================ */
.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step__marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-sage);
}

.step__content {
  padding-top: 0.25rem;
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}

.step__desc {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--color-wing-light);
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-dusty-plum), var(--color-dark-2));
  text-align: center;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band__heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.cta-band__sub {
  font-size: 1.1rem;
  color: var(--color-wing-light);
  margin-bottom: 2rem;
}

/* ============================================
   MISSION + SPONSOR
   ============================================ */
.mission-text {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.mission-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-slate);
  margin-bottom: 1.5rem;
}

.mission-text p:last-child {
  margin-bottom: 0;
}

.mission-text__subheading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-dark-1);
  padding-top: 3rem;
  border-top: 1px solid rgba(142, 168, 160, 0.2);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.sponsor {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(142, 168, 160, 0.2);
  max-width: 600px;
  margin: 0 auto;
}

.sponsor__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-sage);
  margin-bottom: 0.5rem;
}

.sponsor__link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
  position: relative;
}

.sponsor__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-sage);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.sponsor__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.sponsor__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-slate);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark-1);
  padding: 3rem 0;
  border-top: 1px solid var(--color-sage);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.footer__tagline {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-sage);
}

.footer__email {
  font-size: 0.9rem;
  color: var(--color-sage);
}

.footer__email:hover {
  color: var(--color-text-light);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-wing-light);
  opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__bird {
    width: 360px;
    height: 360px;
    right: 2%;
  }

}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --container-px: 1.25rem;
  }

  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-stone);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    border-bottom: 1px solid rgba(142, 168, 160, 0.1);
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__tagline {
    display: none;
  }

  /* Hero mobile */
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero__content {
    margin-left: 0;
    max-width: 100%;
    padding: 0 var(--container-px);
  }

  .hero__heading-lead {
    white-space: normal;
    font-size: 2.5rem;
  }

  .hero__heading {
    font-size: 3.25rem;
    margin-bottom: 2rem;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__btn {
    min-width: 200px;
  }

  .hero__deadline {
    font-size: 0.8rem;
  }

  .hero__footnote {
    font-size: 0.7rem;
  }

  .hero__bird {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 180px;
    height: auto;
    margin: 2rem auto 0;
    opacity: 0.15;
    z-index: 0;
  }

  .hero__bird-img {
    animation-delay: 0.2s;
  }

  /* Cards mobile */
  .prize-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* Hide hard line breaks on mobile so text wraps naturally */
  .hero__subtitle br,
  .section__subtext br,
  .prize-tagline br,
  .section__heading br {
    display: none;
  }

  /* Section padding mobile */
  .section {
    padding: 4rem 0;
  }

  .section__heading {
    font-size: 1.6rem;
  }

  .cta-band {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero__heading-lead {
    font-size: 2rem;
  }

  .hero__heading {
    font-size: 2.75rem;
  }

  .nav__title {
    font-size: 1.05rem;
  }

  .nav__logo {
    width: 40px;
    height: 40px;
  }

  .prize-callout__amount {
    font-size: 4.5rem;
  }

  .prize-callout__label {
    font-size: 1.05rem;
  }

  .prize-card {
    padding: 2rem 1.5rem;
  }

  .elig-card {
    padding: 1.5rem 1.25rem;
  }

  .step {
    gap: 1rem;
  }

  .step__marker {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .mission-text__subheading {
    margin-top: 1.75rem;
    padding-top: 2rem;
  }
}
