/* ═══════════════════════════════════════════════
   The Hudson School Golf Classic 2026 — Design System
   ═══════════════════════════════════════════════ */

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

:root {
  --green: #2F6E3E;
  --green-dark: #1F4F2A;
  --green-deep: #143420;
  --cream: #F5F1E6;
  --black: #000000;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-light: #F0F0F0;
  --gray-muted: #666666;
  --text-dark: #1A1A1A;
  --gold-accent: #C9A24A;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Inter', -apple-system, sans-serif;
  --font-ui: 'Inter', 'DM Sans', -apple-system, sans-serif;
  --nav-height: 48px;
}

html { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── Navigation Bar ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-title .accent {
  color: var(--gold-accent);
}

/* ─── Page Layout ─── */
.page-wrapper {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}

/* ─── Left Panel ─── */
.left-panel {
  width: 50%;
  background: var(--green);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.left-content {
  position: relative;
  z-index: 2;
  padding: 48px 40px 48px 48px;
  overflow-y: auto;
  flex: 1;
  max-width: 64%;
}

/* ─── Decorative GOLF Letters ─── */
.event-deco {
  position: absolute;
  top: -3%;
  right: -6%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.event-deco .letter {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-deep);
  display: block;
  line-height: 0.82;
  font-size: clamp(160px, 20vw, 340px);
  opacity: 0.85;
}

.event-deco .letter-1 { margin-right: -5%; }
.event-deco .letter-2 { margin-left: 10%; }
.event-deco .letter-3 { margin-right: 0; }
.event-deco .letter-4 { margin-left: 10%; }

/* ─── Logo ─── */
.logo {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  margin-bottom: 32px;
  background: var(--white);
  padding: 4px;
}

/* ─── Invite Text ─── */
.invite-intro {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.5;
}

.invite-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
}

.invite-title .year {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.65em;
  color: var(--gold-accent);
  margin-bottom: 6px;
}

.accent-line {
  border: none;
  height: 3px;
  background: var(--gold-accent);
  width: 80px;
  margin: 20px 0;
}

.invite-blurb {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  margin-bottom: 20px;
}

.event-details p {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.55;
}

.event-time {
  margin-top: 12px;
}

.tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}

/* ─── Sponsorship Tiers & Tickets ─── */
.sponsorship-section {
  margin-top: 8px;
}

.sponsorship-section h2,
.ticket-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.tier {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.tier:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.tier-name {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-price {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 700;
  color: var(--gold-accent);
}

.tier-detail {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.2vw, 0.88rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

.tier-detail ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.tier-detail ul li {
  padding-left: 14px;
  position: relative;
}

.tier-detail ul li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--gold-accent);
}

.ticket-section {
  margin-top: 4px;
}

.ticket-option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
}

.ticket-option + .ticket-option {
  border-top: 1px solid rgba(255,255,255,0.15);
}

.ticket-label {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  font-weight: 600;
  color: var(--white);
}

.ticket-price {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  font-weight: 700;
  color: var(--gold-accent);
}

.ticket-note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-top: 10px;
  font-style: italic;
}

/* ─── Right Panel ─── */
.right-panel {
  width: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height));
  position: sticky;
  top: var(--nav-height);
}

.form-header {
  padding: 28px 40px 20px;
  border-bottom: 1px solid var(--gray-light);
}

.form-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-header p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gray-muted);
  line-height: 1.5;
}

.form-container {
  flex: 1;
  padding: 24px 40px 40px;
  overflow-y: auto;
}

.bb-form-wrapper {
  min-height: 500px;
}

.bb-form-wrapper iframe {
  width: 100% !important;
  max-width: 100% !important;
  border: none;
}

.form-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 2px dashed var(--gray-light);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.form-placeholder .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-light);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.form-placeholder p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-muted);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive: Tablet / Stacked ─── */
@media (max-width: 960px) {
  .page-wrapper {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    min-height: auto;
  }

  .left-content {
    max-width: 62%;
    padding: 40px 24px 40px 24px;
  }

  .event-deco {
    right: 2%;
    top: 0;
  }

  .event-deco .letter {
    font-size: clamp(100px, 18vw, 220px);
  }

  .right-panel {
    width: 100%;
    height: auto;
    position: relative;
    top: auto;
  }

  .form-header {
    padding: 32px 24px 20px;
  }

  .form-container {
    padding: 20px 24px 40px;
  }
}

/* ─── Responsive: Small Mobile ─── */
@media (max-width: 600px) {
  .left-content {
    padding: 32px 20px;
    max-width: 58%;
  }

  .event-deco {
    right: 0;
    top: 2%;
  }

  .event-deco .letter {
    font-size: clamp(80px, 22vw, 160px);
  }

  .logo {
    width: 112px;
    height: 112px;
    margin-bottom: 24px;
  }

  .form-header {
    padding: 28px 20px 16px;
  }

  .form-container {
    padding: 16px 20px 32px;
  }
}
