/* ================================================================
   Backpacks of Hope Golf Scramble — stylesheet
   Brand palette: BoH red #b93c2f, charcoal #5a595c, white.
   Type: P22 Underground (display) + Nunito Sans (body, Avenir-style).
   ================================================================ */

:root {
  /* BoH brand palette (mapped to legacy var names so the rest of the file inherits) */
  --brand-red: #b93c2f;
  --brand-red-dark: #8e2b21;
  --brand-red-soft: #d96456;
  --charcoal-900: #2c2b2d;
  --charcoal-800: #3f3e41;
  --charcoal-700: #5a595c;
  --charcoal-500: #7d7c80;
  --charcoal-300: #b6b5b8;

  /* legacy aliases — keep names so existing rules map cleanly */
  --forest-900: var(--charcoal-900);
  --forest-800: var(--charcoal-800);
  --forest-700: var(--charcoal-700);
  --forest-500: var(--charcoal-500);
  --forest-300: var(--charcoal-300);
  --cream-50: #f4ede2;
  --cream-100: #ede4d2;
  --cream-200: #e2d6bb;
  --sand-100: #ede4d2;
  --sand-200: #d6c9a8;
  --gold: var(--brand-red);
  --gold-dark: var(--brand-red-dark);
  --ink-900: #1f1e20;
  --ink-700: #3a393b;
  --ink-500: #65646a;
  --line: rgba(44, 43, 45, 0.14);
  --line-light: rgba(244, 237, 226, 0.2);

  /* type */
  --display: "Cabin", "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Nunito Sans", "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --wrap: 1160px;
  --wrap-narrow: 880px;
  --radius: 6px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--cream-50);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--gold-dark);
}

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.6rem;
  background: rgba(248, 243, 231, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--forest-800);
}
.nav__logo,
.nav__logo-img {
  width: 56px;
  height: auto;
  flex-shrink: 0;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__brand-line1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--forest-800);
}
.nav__brand-line2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 4px;
}
.nav__host {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.9rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.nav__host-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-500);
  line-height: 1;
}
.nav__host img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__links a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__links a:hover {
  color: var(--forest-800);
}
.nav__cta {
  background: var(--forest-800);
  color: var(--cream-50) !important;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem !important;
}
.nav__cta:hover {
  background: var(--forest-700);
  color: var(--cream-50) !important;
}

@media (max-width: 720px) {
  .nav {
    padding: 0.7rem 1rem;
  }
  .nav__links a:not(.nav__cta) {
    display: none;
  }
  .nav__brand-line2 {
    display: none;
  }
  .nav__host-label {
    display: none;
  }
  .nav__host {
    margin-left: 0.5rem;
    padding-left: 0.55rem;
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, #2c2b2d 0%, #3f3e41 55%, #5a595c 100%);
  color: var(--cream-50);
  overflow: hidden;
  padding: 6rem 1.6rem 7rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 18% 28%,
      rgba(185, 60, 47, 0.22) 0%,
      transparent 48%
    ),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  pointer-events: none;
}
.hero__halo {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: min(900px, 90vw);
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}
.hero__halo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  z-index: 2;
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 2rem;
  color: #fff;
  text-transform: uppercase;
}
.hero__title em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--brand-red-soft);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.05em;
  margin-top: 0.2rem;
}
.hero__ord {
  font-size: 0.55em;
  vertical-align: super;
  font-weight: 500;
  color: var(--brand-red-soft);
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.4rem;
}
.eyebrow--dark {
  color: var(--forest-700);
}
.eyebrow--light {
  color: var(--gold);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 2rem;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 243, 231, 0.65);
}
.hero__meta-value {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--cream-50);
}
@media (max-width: 720px) {
  .hero__meta {
    grid-template-columns: 1fr;
  }
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.hero__tag {
  margin-top: 2.4rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sand-200);
}

.hero__ornament {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  color: var(--cream-50);
  line-height: 0;
}
.hero__ornament svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--brand-red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-red-dark);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--cream-50);
  border: 1.5px solid rgba(248, 243, 231, 0.6);
}
.btn--ghost:hover {
  border-color: var(--cream-50);
  color: var(--cream-50);
}
.btn--ghost-light {
  opacity: 0.85;
}

/* ================================================================
   SECTION BASE
   ================================================================ */
.section {
  padding: 6rem 1.6rem;
}
.section--cream {
  background: var(--cream-50);
  color: var(--ink-900);
}
.section--sand {
  background: var(--sand-100);
  color: var(--ink-900);
}
.section--forest {
  background: var(--forest-800);
  color: var(--cream-50);
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}
.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0.4rem 0 1.8rem;
  color: var(--charcoal-900);
  text-transform: uppercase;
}
.section__title--light {
  color: var(--cream-50);
}
.section__lead {
  font-size: 1.05rem;
  max-width: 640px;
  color: var(--ink-700);
  margin: 0 0 2.5rem;
}
.section__lead--light {
  color: rgba(248, 243, 231, 0.85);
}

/* ================================================================
   MISSION
   ================================================================ */
.mission__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.mission__body p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.1rem;
  color: var(--ink-700);
}
.mission__body strong {
  color: var(--forest-800);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
}
.stat__value {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--forest-800);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.stat__label {
  margin-top: 0.5rem;
  font-size: 0.83rem;
  color: var(--ink-500);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .mission__grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   MEMORY
   ================================================================ */
.memory {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.memory__text p {
  font-size: 1.03rem;
  line-height: 1.75;
  color: rgba(248, 243, 231, 0.85);
}
.memory__text em {
  color: var(--sand-200);
  font-style: italic;
}
.memory__date {
  margin-top: 1.2rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
}
.memory__photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
@media (max-width: 860px) {
  .memory {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   EVENT DETAIL CARDS
   ================================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
}
.detail-card--host {
  position: relative;
  padding-top: 2.2rem;
}
.detail-card__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.6rem;
  background: transparent;
}
.detail-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.7rem;
  color: var(--forest-800);
}
.detail-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-700);
  line-height: 1.6;
}
@media (max-width: 920px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   SPONSORS
   ================================================================ */
.tier {
  margin: 3rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(21, 39, 31, 0.12);
}
.tier:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.tier__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.tier__title {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  color: var(--forest-800);
}
.tier__price {
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: var(--gold-dark);
}
.tier__name {
  font-size: 1.15rem;
  font-weight: 500;
}

.sponsor-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.sponsor-grid--lg {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.sponsor-grid--md {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.sponsor-grid--sm {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.sponsor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sponsor:hover {
  border-color: var(--forest-500);
  transform: translateY(-2px);
}
.sponsor img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.sponsor--name {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--forest-800);
  text-align: center;
}

.tier--open {
  margin-top: 4rem;
  background: var(--forest-800);
  color: var(--cream-50);
  padding: 2rem 2rem;
  border-radius: var(--radius-lg);
  border-top: none;
}
.tier__title--open {
  color: var(--gold) !important;
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}
.tier--open p {
  margin: 0;
  color: rgba(248, 243, 231, 0.85);
}
.tier--open strong {
  color: var(--cream-50);
}

/* ================================================================
   REGISTER
   ================================================================ */
.register-wrap {
  margin-top: 2rem;
}
.register-iframe-wrap {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  height: 760px;
  margin-bottom: 1.6rem;
}
.register-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.register-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.register-actions--top {
  margin-top: 0;
  margin-bottom: 1.1rem;
}
.register-hint {
  color: rgba(248, 243, 231, 0.78);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.register-hint a {
  color: var(--cream-50);
  text-decoration: underline;
}
#payment-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.7;
}
.register-note {
  color: rgba(248, 243, 231, 0.75);
  font-size: 0.95rem;
  max-width: 640px;
}
.register-note strong {
  color: var(--cream-50);
}

@media (max-width: 720px) {
  .register-iframe-wrap {
    height: 900px;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--forest-900);
  color: rgba(248, 243, 231, 0.75);
  padding: 4rem 1.6rem 2.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--cream-50);
}
.footer__logo,
.footer__logo-img {
  width: 72px;
  height: auto;
  flex: 0 0 72px;
}
.footer__brand-name {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--cream-50);
}
.footer__brand-sub {
  font-size: 0.88rem;
  margin-top: 4px;
  color: rgba(248, 243, 231, 0.6);
}
.footer__host {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-light);
  color: rgba(248, 243, 231, 0.8);
  font-size: 0.82rem;
}
.footer__host img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: transparent;
}
.footer__col h4 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.8rem;
}
.footer__col p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}
.footer__col a {
  color: var(--cream-50);
}
.footer__credit {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-light);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(248, 243, 231, 0.5);
}
@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
