/* ==========================================================================
   JC INVITATIONAL GOLF TOURNAMENT - DESIGN SYSTEM & MASTER STYLESHEET
   Aesthetic: Augusta Party / Masters-meets-Festive Dark Mode
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Colors */
  --bg-main: #0a1710;
  --bg-card: rgba(17, 34, 25, 0.85);
  --bg-card-hover: rgba(24, 46, 34, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.04);

  --augusta-green: #06402b;
  --fairway-green: #0e6241;
  --bright-green: #10b981;
  --accent-gold: #f59e0b;
  --bright-gold: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --green-gradient: linear-gradient(135deg, #0e6241 0%, #06402b 100%);

  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #fcd34d;

  --border-color: rgba(245, 158, 11, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-glow: 0 10px 30px -10px rgba(245, 158, 11, 0.3);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Reset & Basic Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(14, 98, 65, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.15) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--bright-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fef08a;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 23, 16, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-light);
  white-space: nowrap;
}

.brand-badge {
  background: var(--gold-gradient);
  color: #000;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bright-gold);
  background: var(--bg-glass);
}

.nav-cta {
  background: var(--gold-gradient);
  color: #0d1a14 !important;
  font-weight: 800 !important;
  padding: 8px 18px !important;
  border-radius: 30px !important;
  box-shadow: var(--shadow-glow);
}

.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--bright-gold);
  font-size: 1.3rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(245, 158, 11, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.birthday-spotlight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--bright-gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 auto 24px;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
  100% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.6); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 auto 16px;
  text-align: center;
  max-width: 900px;
  background: linear-gradient(180deg, #ffffff 0%, var(--text-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

/* Countdown Timer */
.countdown-box {
  display: inline-flex;
  gap: 20px;
  background: var(--bg-card);
  padding: 20px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--bright-gold);
  font-family: var(--font-heading);
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

/* Feature Grid Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 54px;
  height: 54px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--bright-gold);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.card-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.card-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.card-detail-item strong {
  color: var(--bright-gold);
  min-width: 90px;
}

/* Buttons & UI Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0d1a14;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-outline-gold {
  background: transparent;
  color: var(--bright-gold);
  border: 1px solid var(--border-color);
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.15);
}

/* Form Styles (Matching User Survey Image) */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto 60px;
  box-shadow: var(--shadow-card);
}

.form-header-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-light);
}

.form-label .required-star {
  color: #ef4444;
  margin-right: 4px;
}

.form-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Input Fields */
.form-control, select.form-control, textarea.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Radio Option Cards */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}

.radio-label:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--border-color);
}

.radio-label input[type="radio"],
.radio-label input[type="checkbox"] {
  accent-color: var(--bright-gold);
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  cursor: pointer;
}

.radio-label span {
  flex: 1;
  text-align: left;
  line-height: 1.35;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  color: var(--bright-gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
}

/* Alert Toasts */
.toast-msg {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.toast-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #040c07;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-birthday-banner {
  background: linear-gradient(90deg, #0e6241 0%, #d97706 50%, #0e6241 100%);
  color: #fff;
  padding: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-logo {
    font-size: 1.1rem;
  }

  .brand-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    background: #07170f;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1.05rem;
  }

  .nav-cta {
    text-align: center !important;
    display: block !important;
    margin-top: 4px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .countdown-box {
    gap: 12px;
    padding: 16px;
  }
  .countdown-val {
    font-size: 1.6rem;
  }

  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-card {
    padding: 20px 14px !important;
    border-radius: var(--radius-md) !important;
    margin: 0 auto 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-group {
    margin-bottom: 20px !important;
  }

  .form-label {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }

  .radio-label {
    padding: 10px 12px !important;
    font-size: 0.92rem !important;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    font-size: 0.98rem;
    gap: 6px;
  }
  .brand-badge {
    display: none;
  }
}
