:root {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --green-dark: #1a4731;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --gold: #c9a84c;
  --gold-light: #f0d078;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --radius: 0.75rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 60%, #3a7a5a 100%);
  color: var(--white);
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(201,168,76,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-date {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  margin: 0 0 0.4rem;
  opacity: 0.95;
}

.hero-location {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.85;
  margin: 0 0 2.5rem;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover, .btn:focus-visible {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ── Details section ── */
.details {
  padding: 4rem 1.5rem 5rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 2.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-top: 4px solid var(--green-light);
}

.detail-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.detail-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

.detail-card p {
  margin: 0.2rem 0;
  font-size: 1rem;
  color: var(--text);
}

/* ── Hole-in-One challenge banner ── */
.challenge-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,71,49,0.2);
}

.challenge-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin: 0 0 0.5rem;
}

.challenge-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.challenge-sponsor {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--white);
  border-top: 1px solid #e5e7eb;
}

/* ── Sponsors page ── */

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.sponsors-section {
  padding: 4rem 1.5rem 5rem;
}

.sponsors-section--alt {
  background: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin: -1.5rem 0 2.5rem;
}

.container--narrow {
  max-width: 640px;
  margin: 0 auto;
}

/* ── Tier cards ── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.tier-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-top: 4px solid var(--green-light);
  display: flex;
  flex-direction: column;
}

.tier-card--title {
  border-top-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}

.tier-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}

.tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-mid);
  margin-bottom: 1.25rem;
}

.tier-card--title .tier-price {
  color: var(--gold);
}

.tier-benefits {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.tier-benefits li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.tier-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}

.tier-benefits li:last-child {
  border-bottom: none;
}

.tier-cta {
  display: block;
  text-align: center;
  background: var(--green-mid);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  margin-top: auto;
}

.tier-cta:hover, .tier-cta:focus-visible {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.tier-card--title .tier-cta {
  background: var(--gold);
  color: var(--green-dark);
}

.tier-card--title .tier-cta:hover, .tier-card--title .tier-cta:focus-visible {
  background: var(--gold-light);
}

/* ── Sponsor registration form ── */
.sponsor-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.required {
  color: #dc2626;
}

.field-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.form-group input,
.form-group select {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}

/* ── File input ── */
.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px dashed #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--off-white);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.file-input-wrapper:hover .file-input-label,
.file-input-wrapper:focus-within .file-input-label {
  border-color: var(--green-mid);
  color: var(--text);
}

.file-input-icon {
  font-size: 1.2rem;
}

/* ── Form feedback ── */
.form-error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success-icon {
  font-size: 3rem;
  color: var(--green-mid);
  background: #d1fae5;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.form-success h3 {
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  margin: 0;
}

.btn--submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
}

.btn--submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Approved sponsors grid ── */
.approved-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.sponsor-logo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sponsor-logo-img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
}

.sponsor-logo-placeholder {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.sponsor-logo-tier {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.sponsors-loading,
.sponsors-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.sponsors-empty a {
  color: var(--green-mid);
  font-weight: 600;
}

.site-footer a {
  color: var(--text-muted);
}

/* ── Responsive tweaks ── */
@media (max-width: 480px) {
  .hero {
    padding: 3rem 1.25rem 4rem;
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tiers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
