/* ===== Golf'N Karts — styles ===== */
:root {
  --ink: #14181f;
  --ink-soft: #475063;
  --paper: #ffffff;
  --bg: #f5f6f8;
  --brand: #e8332a;        /* racing red */
  --brand-dark: #b8231c;
  --accent: #1fae5a;       /* golf green */
  --accent-dark: #168a46;
  --line: #e2e5ea;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 24, 31, 0.08);
  --shadow-lg: 0 14px 40px rgba(20, 24, 31, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 600px; }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(20,24,31,0.82), rgba(20,24,31,0.55)),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 45%, var(--accent-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
}
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.3px; }
.nav-cta {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.6);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: rgba(255,255,255,0.15); }

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(3.5rem, 13vw, 7.5rem);
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.subtitle {
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 500;
  margin: 12px 0 0;
}
.subtitle .amp { opacity: 0.7; padding: 0 4px; }
.date-line {
  display: inline-block;
  margin: 24px 0 28px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
  padding: 11px 22px;
}
.btn-ghost:hover { background: rgba(31,174,90,0.08); }
.btn-block { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 36px;
}
.blurb { background: var(--paper); }
.blurb p {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.card-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.3rem; }
.card-time {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 12px;
}
.card-list { margin: 14px 0 0; padding-left: 0; list-style: none; }
.card-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Location ===== */
.location { background: var(--paper); }
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.loc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.loc-card h3 { font-size: 1.25rem; }
.tips { background: linear-gradient(160deg, #f0fff6, #f5f6f8); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }

/* ===== RSVP form ===== */
.rsvp { background: var(--bg); }
.rsvp-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
fieldset.field {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}
.req { color: var(--brand); }
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,174,90,0.15);
}
textarea { resize: vertical; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  margin-bottom: 10px;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status {
  margin: 14px 0 0;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}
.form-status.error { color: var(--brand-dark); }
.form-status.ok { color: var(--accent-dark); }

/* Thank-you state */
.thank-you {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.ty-emoji { font-size: 3rem; margin-bottom: 8px; }
.thank-you h3 { font-size: 1.6rem; }
.thank-you p { color: var(--ink-soft); max-width: 420px; margin: 0 auto; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 36px 0;
}
.footer p { margin: 4px 0; }
.footer .muted { color: rgba(255,255,255,0.6); }

/* ===== Responsive tweaks ===== */
@media (max-width: 520px) {
  .section { padding: 48px 0; }
  .hero-inner { padding: 44px 20px 60px; }
  .rsvp-form { padding: 24px; }
}
