/* ============================================
   UNDERDOG MARKET - underdogmarket37.com
   Royal blue / clean / inviting
   ============================================ */

:root {
  --green-dark: #1B2D5B;
  --green-primary: #2B5EA7;
  --green-light: #3A7BD5;
  --green-pale: #E4EDF8;
  --cream: #F7F9FC;
  --warm-white: #FDFEFF;
  --brown-dark: #1E2A3D;
  --brown-text: #3A4A5C;
  --brown-light: #6B7D8D;
  --red-accent: #C45B3E;
  --gold: #E8793A;
  --border: #CDD5DE;
  --shadow: rgba(27, 45, 91, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--brown-dark);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; color: var(--brown-text); }

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--green-light); }

/* ---- Layout ---- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background: var(--cream);
}

/* ---- Navigation ---- */

nav {
  background: #0F1D3D;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-brand {
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--green-pale);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* ---- Hero ---- */

section.hero {
  background: linear-gradient(135deg, #0F1D3D 0%, #1B2D5B 40%, #2B5EA7 100%);
  color: var(--cream);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--green-pale);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-detail .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-pale);
  opacity: 0.8;
}

.hero-detail .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

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

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: #D4692E;
  border-color: #D4692E;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: var(--green-pale);
}

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

.btn-green {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}

.btn-green:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: #fff;
}

/* ---- About Section ---- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.about-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  color: var(--green-primary);
}

/* ---- Calendar Section ---- */

.calendar-notice {
  background: var(--green-pale);
  border-left: 4px solid var(--green-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 2rem;
}

.calendar-notice p {
  margin: 0;
  color: var(--green-dark);
  font-weight: 500;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.schedule-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.schedule-card h3 {
  color: var(--green-primary);
  margin-bottom: 0.5rem;
}

.schedule-card .hours {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
}

.schedule-card .note {
  font-size: 0.85rem;
  color: var(--brown-light);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ---- Vendor Spots ---- */

.spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.spot-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.spot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green-primary);
}

.spot-badge {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.spot-badge.limited {
  background: #FFF3E0;
  color: var(--red-accent);
}

.spot-badge.food {
  background: #FFF0E6;
  color: #C4612A;
}

.spot-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0.5rem 0;
}

.spot-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--brown-light);
}

.spot-card ul {
  list-style: none;
  margin: 1rem 0;
}

.spot-card li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--brown-text);
  font-size: 0.95rem;
}

.spot-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green-primary);
  font-weight: 700;
}

/* ---- Season Pass ---- */

.season-pass {
  background: linear-gradient(135deg, #0F1D3D 0%, #1B2D5B 40%, #2B5EA7 100%);
  color: #fff;
  border-radius: 12px;
  padding: 3rem;
  margin-top: 2rem;
  text-align: center;
}

.season-pass h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.season-pass p {
  color: #fff;
}

.season-pass .price-compare {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.price-option {
  text-align: center;
}

.price-option .amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.price-option .period {
  font-size: 0.85rem;
  color: var(--gold);
}

.price-option .savings {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.25rem;
}

.price-option.regular {
  opacity: 0.6;
}

.price-option.regular .amount {
  text-decoration: line-through;
}

.season-deadline {
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 1rem;
}

/* ---- Garage Sale CTA ---- */

.garage-sale {
  background: var(--green-pale);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin-top: 2rem;
}

.garage-sale h3 {
  font-size: 1.5rem;
  color: var(--green-dark);
}

.garage-sale p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0.75rem auto 1.5rem;
}

/* ---- FAQ ---- */

.faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  color: var(--green-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin: 0;
  color: var(--brown-text);
}

/* ---- Location ---- */

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.location-info h3 {
  color: var(--green-primary);
}

.location-info address {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--brown-text);
}

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

/* ---- Footer ---- */

footer {
  background: #0F1D3D;
  color: var(--green-pale);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

footer p {
  color: var(--green-pale);
  margin: 0.25rem 0;
}

footer a {
  color: #fff;
}

/* ---- Apply Page ---- */

section.apply-hero {
  background: linear-gradient(135deg, #0F1D3D 0%, #1B2D5B 40%, #2B5EA7 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.apply-hero h1 {
  color: #fff;
  font-size: 2rem;
}

.apply-hero p {
  color: var(--green-pale);
}

.form-container {
  max-width: 650px;
  margin: -2rem auto 3rem;
  background: var(--warm-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px var(--shadow);
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.form-group .optional {
  font-weight: 400;
  color: var(--brown-light);
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--brown-dark);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--brown-light);
  margin-top: 0.25rem;
}

/* Honeypot */
.form-group.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

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

.form-success h2 {
  color: var(--green-primary);
}

.form-error {
  background: #FFF3F0;
  border: 1px solid var(--red-accent);
  color: var(--red-accent);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
}

/* ---- Hamburger Menu ---- */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- FAQ (collapsible) ---- */

details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}

details.faq-item summary {
  color: var(--green-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 1.25rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--brown-light);
  flex-shrink: 0;
  margin-left: 1rem;
}

details.faq-item[open] summary::after {
  content: '\2212';
}

details.faq-item p {
  margin: 0 0 1.25rem;
  color: var(--brown-text);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  section { padding: 3rem 0; }

  .hero { padding: 3rem 0; }

  .hero-details { gap: 1rem; }

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

  .season-pass { padding: 2rem 1.5rem; }

  .price-compare { flex-direction: column; gap: 1rem; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.95rem;
  }

  .form-container { margin: -1rem 1rem 2rem; padding: 1.5rem; }
}

@media (max-width: 480px) {
  .nav-brand { font-size: 1.1rem; }
  .nav-links a { font-size: 0.9rem; }
  h1 { font-size: 1.8rem; }
}
