/* ---------------------------------------------------------------------------
   Souvenir Program Committee -- base styles
   Palette: navy #002E5D, orange #ED772E, white #FFFFFF, light bg #F7F8FA, black #000000
--------------------------------------------------------------------------- */

:root {
  --navy: #002E5D;
  --navy-dark: #001d3d;
  --orange: #ED772E;
  --orange-dark: #d1631f;
  --white: #FFFFFF;
  --bg-light: #F7F8FA;
  --black: #000000;
  --text-muted: #5b6b7c;
  --border: #e1e5ea;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 46, 93, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: var(--navy);
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  text-align: center;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--narrow {
  max-width: 640px;
}

.section {
  padding: 4rem 0;
  scroll-margin-top: 84px;
}

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

.section--dark h2 {
  color: var(--white);
}

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

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
}

.btn--ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
  padding: 0.6rem 1.25rem;
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__logo {
  height: 44px;
  width: auto;
}

.brand__name {
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */

.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  text-align: center;
  color: var(--white);
  background-image: linear-gradient(180deg, rgba(0, 46, 93, 0.8), rgba(0, 46, 93, 0.6)), url('../img/spc-vest-scenic.jpg');
  background-size: cover;
  background-position: center 72%;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.hero .wrap {
  width: 100%;
}

.hero h1 {
  color: var(--white);
}

.hero__tagline {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------------------------------------------------------------------------
   Card grids
--------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--navy);
}

/* ---------------------------------------------------------------------------
   Why us / callouts
--------------------------------------------------------------------------- */

.section--dark p {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.callout {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--orange);
  text-align: center;
  margin: 1.5rem 0 0.5rem;
}

.fine-print {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.section--dark .fine-print {
  color: #b9c6d6;
}

/* ---------------------------------------------------------------------------
   Badging
--------------------------------------------------------------------------- */

.card--badge {
  text-align: center;
}

.badge-tier {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-tier__sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.badge-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.card--badge .btn {
  margin-top: 1rem;
}

/* ---------------------------------------------------------------------------
   Joining steps
--------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.step__label {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* ---------------------------------------------------------------------------
   Prospect form
--------------------------------------------------------------------------- */

.form-row {
  margin-bottom: 1.25rem;
}

.form-submit {
  text-align: center;
  margin-top: 0.5rem;
}

.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.req {
  color: var(--orange);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--black);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.form-message--hide {
  opacity: 0;
}

.form-message--success {
  background: #e6f4ea;
  color: #1e5c30;
  border: 1px solid #b8e0c2;
}

.form-message--error {
  background: #fbe9e7;
  color: #8a2a1d;
  border: 1px solid #f3c1b8;
}

/* ---------------------------------------------------------------------------
   reCAPTCHA badge
--------------------------------------------------------------------------- */

/* Google injects this badge with an inline `bottom` style; !important is
   required to override it so the badge doesn't overlap the footer credit. */
.grecaptcha-badge {
  bottom: 84px !important;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 2rem 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  color: #b9c6d6;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #b9c6d6;
}

.footer-credit:hover {
  color: var(--white);
}

.footer-credit__logo {
  height: 20px;
  width: auto;
  /* Dark footer background -- solid white. Swap to #000000 if reused on a light background. */
  color: #FFFFFF;
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */

@media (max-width: 800px) {
  .card-grid--3,
  .card-grid--2,
  .steps {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 3rem 0;
  }

  .site-footer__inner {
    justify-content: center;
    text-align: center;
  }

  .hero {
    /* background-attachment: fixed is unreliable/janky on touch devices */
    background-attachment: scroll;
  }
}
