
/* ============================================================
   FoodCultureKE — Vibrant & Cultural Design System
   Kenyan-inspired: Terracotta · Saffron · Deep Green · Ivory
   ============================================================ */

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

:root {
  /* Palette */
  --terracotta: #C1440E;
  --terracotta-light: #E8622A;
  --terracotta-dark: #8B2500;
  --saffron: #F5A623;
  --saffron-light: #FBBF47;
  --deep-green: #1B4332;
  --forest: #2D6A4F;
  --forest-light: #40916C;
  --ivory: #FDF6EC;
  --ivory-dark: #F5E8D0;
  --charcoal: #1C1410;
  --charcoal-soft: #2E2016;
  --text: #3D2B1F;
  --text-muted: #7A5C47;
  --text-light: #A08060;
  --surface: rgba(255,252,245,0.92);
  --surface-alt: rgba(253,246,236,0.85);
  --border: rgba(193,68,14,0.14);
  --border-green: rgba(27,67,50,0.18);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(3rem, 6vw, 5rem);
  --container-max: 1200px;

  /* Animation */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   Base
   ============================================================ */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
button, a, input, textarea, select { font: inherit; }

/* Decorative background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(245,166,35,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(193,68,14,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(27,67,50,0.06) 0%, transparent 70%);
}

.pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.028;
  background-image:
    repeating-linear-gradient(45deg, var(--terracotta) 0, var(--terracotta) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, var(--saffron) 0, var(--saffron) 1px, transparent 0, transparent 50%);
  background-size: 28px 28px;
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: min(var(--container-max), 92%);
  margin: 0 auto;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 { color: var(--charcoal); font-family: var(--font-serif); line-height: 1.15; }

h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-sans);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  flex-shrink: 0;
}

.description {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--terracotta), var(--saffron), var(--terracotta-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
  color: #fff;
  box-shadow: 0 6px 22px rgba(193,68,14,0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(193,68,14,0.45);
  background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta));
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(193,68,14,0.14);
}

.btn-green {
  background: linear-gradient(135deg, var(--deep-green), var(--forest));
  color: #fff;
  box-shadow: 0 6px 22px rgba(27,67,50,0.30);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(27,67,50,0.42);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ============================================================
   Navigation / Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(253,246,236,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  overflow-x: hidden;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--charcoal);
  flex-shrink: 0;
}

.logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.logo-text span {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: color 0.22s, background 0.22s;
  position: relative;
}

.nav-link:hover {
  color: var(--terracotta);
  background: rgba(193,68,14,0.07);
}

.nav-link.active {
  color: var(--terracotta);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--terracotta);
  border-radius: 999px;
}

.btn-nav {
  background: linear-gradient(135deg, var(--terracotta), var(--saffron));
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(193,68,14,0.28);
  transition: transform 0.22s, box-shadow 0.22s;
  margin-left: 0.5rem;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(193,68,14,0.38);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  z-index: 1001;
  position: relative;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: 0.28s var(--ease-out);
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  padding: 7rem 0 5rem;
}

.hero-small {
  min-height: 72vh;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 7rem 0 4rem;
}

.hero-copy { max-width: 660px; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   Glass / Visual Cards
   ============================================================ */

.glass-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,252,245,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245,166,35,0.22);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.7);
  overflow: hidden;
}

.glass-detail {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero food grid */
.food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.food-item {
  border-radius: 18px;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.food-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

.food-item:nth-child(1) { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light)); }
.food-item:nth-child(2) { background: linear-gradient(135deg, var(--deep-green), var(--forest-light)); }
.food-item:nth-child(3) { background: linear-gradient(135deg, var(--saffron), #F0740A); }
.food-item:nth-child(4) { background: linear-gradient(135deg, var(--charcoal), var(--text)); }

.food-item .icon { font-size: 2rem; display: block; margin-bottom: 0.3rem; }

/* ============================================================
   Stats Strip
   ============================================================ */

.stats-strip {
  display: flex;
  gap: 0.1rem;
  margin-top: 2.5rem;
  background: rgba(255,252,245,0.85);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 1.4rem 1rem;
  border-right: 1px solid var(--border);
  transition: background 0.22s;
}

.stat-item:last-child { border-right: none; }

.stat-item:hover { background: rgba(193,68,14,0.05); }

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.25rem;
  min-width: 120px;
  text-align: center;
}

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

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: var(--section-pad) 0;
}

.section-green {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--forest) 100%);
  color: #fff;
}

.section-green h2,
.section-green h3,
.section-green .eyebrow { color: #fff; }

.section-green .eyebrow::before { background: var(--saffron); }
.section-green .eyebrow { color: var(--saffron); }

.section-green p { color: rgba(255,255,255,0.95); }

.section-green .card {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.section-green .card h3 {
  color: #fff;
}

.section-green .card p {
  color: rgba(255,255,255,0.9);
}

.section-warm {
  background: var(--ivory-dark);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.section-intro {
  margin-bottom: 2.5rem;
}

/* ============================================================
   Cards
   ============================================================ */

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-5 { grid-template-columns: repeat(5, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Base card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s, border-color 0.28s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
  border-color: rgba(193,68,14,0.28);
}

.card p { color: var(--text-muted); line-height: 1.8; }

/* Icon card */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.card-icon-terra { background: rgba(193,68,14,0.12); }
.card-icon-green { background: rgba(27,67,50,0.12); }
.card-icon-saffron { background: rgba(245,166,35,0.15); }

/* Timeline card */
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s;
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}

.timeline-card p { color: var(--text-muted); line-height: 1.8; }

.timeline-step {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(193,68,14,0.1);
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

/* Feature card (legacy alias) */
.feature-card,
.story-block,
.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s, border-color 0.28s;
}

.feature-card:hover,
.story-block:hover,
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
  border-color: rgba(193,68,14,0.28);
}

.feature-card p,
.story-block p,
.program-card p { color: var(--text-muted); line-height: 1.8; }

/* Package / sponsor card */
.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s, border-color 0.28s;
  position: relative;
  overflow: hidden;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 55px rgba(0,0,0,0.11);
}

.package-card p { color: var(--text-muted); line-height: 1.8; }

.package-card.featured {
  border-color: var(--saffron);
  box-shadow: 0 12px 40px rgba(245,166,35,0.18);
}

.package-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--saffron);
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.tier-gold { background: rgba(245,166,35,0.15); color: #B8850A; }
.tier-silver { background: rgba(120,120,140,0.12); color: #5A5A72; }
.tier-bronze { background: rgba(193,68,14,0.10); color: var(--terracotta-dark); }
.tier-community { background: rgba(27,67,50,0.10); color: var(--forest); }

.package-benefits {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.package-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.package-benefits li::before {
  content: '✓';
  color: var(--forest-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Highlight CTA card */
.highlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 50%, var(--saffron) 100%);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(193,68,14,0.28);
  color: #fff;
}

.highlight-card h2,
.highlight-card p,
.highlight-card .eyebrow { color: #fff; }

.highlight-card .eyebrow::before { background: rgba(255,255,255,0.6); }
.highlight-card .eyebrow { color: rgba(255,255,255,0.85); letter-spacing: 0.2em; }
.highlight-card p { color: rgba(255,255,255,0.82); margin-bottom: 0; }

.btn-white {
  background: #fff;
  color: var(--terracotta);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  transition: transform 0.22s, box-shadow 0.22s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

/* ============================================================
   FAQ Accordion
   ============================================================ */

.faq-list { display: grid; gap: 0.85rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.22s;
}

.faq-item.open { border-color: var(--terracotta); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.22s;
}

.faq-question:hover { color: var(--terracotta); }

.faq-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(193,68,14,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease-out), background 0.22s;
  color: var(--terracotta);
  font-size: 0.75rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--terracotta);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding 0.28s;
}

.faq-answer-inner {
  padding: 0 1.6rem 1.4rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.97rem;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ============================================================
   Contact Form
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.4rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.input-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

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

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  padding: 0.85rem 1rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
  appearance: none;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(193,68,14,0.12);
}

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

/* Sponsor Form Compact Styles */
#sponsorForm .form-section {
  margin-bottom: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

#sponsorForm .form-section h3 {
  font-size: 1.1rem !important;
  margin-bottom: 1rem !important;
}

#sponsorForm .input-group {
  margin-bottom: 0.7rem !important;
}

#sponsorForm .input-group label {
  font-size: 0.85rem !important;
}

#sponsorForm .input-group input,
#sponsorForm .input-group textarea,
#sponsorForm .input-group select {
  padding: 0.65rem 0.85rem !important;
  font-size: 0.9rem !important;
}

#sponsorForm .input-group textarea {
  min-height: 60px !important;
}

#sponsorForm .checkbox-group {
  font-size: 0.85rem !important;
  gap: 0.5rem !important;
}

#sponsorForm .checkbox-group label {
  font-size: 0.85rem !important;
}

#sponsorForm .checkbox-group input[type="checkbox"],
#sponsorForm .checkbox-group input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1 !important;
  accent-color: var(--terracotta);
}

#sponsorForm .checkbox-group label {
  pointer-events: auto !important;
  position: relative !important;
}

#sponsorForm .glass-card {
  padding: 1.5rem !important;
}

/* Sponsor form section - wider container on desktop */
#sponsorForm.glass-card,
form#sponsorForm .glass-card,
.glass-card:has(#sponsorForm) {
  max-width: 100% !important;
  width: 100% !important;
}

@media (min-width: 1024px) {
  #sponsorForm .glass-card {
    padding: 2rem 3rem !important;
  }
  
  #sponsorForm .accordion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    align-items: start;
  }

  #sponsorForm .accordion-content .input-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
  }

  #sponsorForm .accordion-content .input-group {
    grid-column: span 1;
    margin-bottom: 0.5rem !important;
  }

  #sponsorForm .accordion-content .checkbox-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #sponsorForm .accordion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
  }

  #sponsorForm .accordion-content .input-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
  }

  #sponsorForm .accordion-content .input-group {
    grid-column: span 1;
  }

  #sponsorForm .accordion-content .checkbox-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  #sponsorForm .input-row {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  #sponsorForm .checkbox-group {
    grid-template-columns: 1fr !important;
  }

  #sponsorForm .glass-card {
    padding: 1rem !important;
  }
}

.info-panel { display: grid; gap: 1rem; }

.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.info-block:hover {
  border-color: var(--terracotta);
  box-shadow: 0 6px 22px rgba(193,68,14,0.08);
}

.info-block .info-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: block;
}

.info-block h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.info-block p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

/* ============================================================
   Countdown Timer
   ============================================================ */

.countdown-banner {
  background: linear-gradient(135deg, var(--deep-green), var(--forest));
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
}

.countdown-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--saffron);
  margin-bottom: 1.2rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  min-width: 3ch;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.countdown-sep {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.3);
  align-self: flex-start;
  margin-top: 0.2rem;
  line-height: 1;
}

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand .logo-icon {
  background: linear-gradient(135deg, var(--terracotta), var(--saffron));
}

.footer-brand .logo-text strong,
.footer-brand .logo-text span {
  color: rgba(255,255,255,0.9);
}

.footer-brand .logo-text span { color: rgba(255,255,255,0.45); }

.footer-tagline {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--saffron);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.22s;
}

.footer-col ul li a:hover { color: var(--saffron); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.85rem; }

.socials {
  display: flex;
  gap: 0.85rem;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.22s, color 0.22s, transform 0.22s;
}

.socials a:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   Grids (legacy aliases for sub-pages)
   ============================================================ */

.section-grid,
.feature-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   Quick-links (homepage section)
   ============================================================ */

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s, border-color 0.28s;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.10);
  border-color: var(--terracotta);
}

.link-card .link-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  display: block;
}

.link-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}

.link-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1040px) {
  .section-grid,
  .feature-grid,
  .story-grid,
  .timeline-grid,
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .links-grid { grid-template-columns: repeat(2, 1fr); }

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

  .hero,
  .hero-small {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy { margin: 0 auto; }
  .hero-visual { justify-self: center; }

  .actions { justify-content: center; }
  .stats-strip { flex-wrap: wrap; max-width: 100%; margin-left: auto; margin-right: auto; }

  .highlight-card {
    flex-direction: column;
    text-align: center;
  }

  .section-head { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253,246,236,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 0 1.5rem;
    gap: 0.3rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s var(--ease-out), padding 0.28s;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    opacity: 0;
  }

  .site-nav.open {
    max-height: 500px;
    padding: 1rem 1.5rem 1.5rem;
    opacity: 1;
  }

  .nav-link {
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    text-align: left;
  }

  .btn-nav {
    margin: 0.6rem 0 0;
    padding: 0.9rem 1rem;
    text-align: center;
    border-radius: 10px;
    font-size: 1rem;
  }

  .menu-toggle { display: flex; }
}

/* Sponsor form wider section */
.section-form {
  --container-max: 1400px;
}

/* Vendor form checkbox styling */
#vendorForm input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  cursor: pointer !important;
  accent-color: var(--terracotta);
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1 !important;
}

#vendorForm input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
  accent-color: var(--terracotta);
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1 !important;
}

#vendorForm label[for="terms"] {
  cursor: pointer !important;
}

#vendorForm .checkbox-group label {
  pointer-events: auto !important;
  position: relative !important;
}

/* Attendee form checkbox/radio styling */
#attendeeForm input[type="checkbox"],
#attendeeForm input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
  accent-color: var(--terracotta);
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1 !important;
}

#attendeeForm .checkbox-group label {
  pointer-events: auto !important;
  position: relative !important;
}

#attendeeForm .checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  #attendeeForm .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  #attendeeForm .checkbox-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1.5rem;
  }
}

/* Vendor form checkbox group responsive */
#vendorForm .checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  #vendorForm .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  #vendorForm .checkbox-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-form .container {
    max-width: 1200px;
  }
}

@media (max-width: 640px) {
  .container { width: min(100%, 94%); }

  .nav-container { padding: 0.85rem 0.5rem; }

  .logo { gap: 0.4rem; }
  .logo-icon { width: 48px; height: 48px; }
  .logo-text strong { font-size: 0.75rem; }
  .logo-text span { display: none; }

  main { padding-top: 70px; }

  .hero { padding: 6rem 0 4rem; }
  .hero-small { padding: 6rem 0 3rem; }

  .glass-card { padding: 1.5rem; max-width: 100%; }
  .food-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .food-item { padding: 0.8rem 0.5rem; font-size: 0.75rem; }
  .food-item .icon { font-size: 1.5rem; }

  .countdown-banner { padding: 1.5rem 0.75rem; }
  .countdown-title { font-size: 0.7rem; }
  .countdown-grid { gap: 0.3rem; }
  .countdown-unit { min-width: 45px; }
  .countdown-number { font-size: 1.3rem; }
  .countdown-label { font-size: 0.55rem; }
  .countdown-sep { font-size: 1.3rem; }

  .hero-title { font-size: 2rem; }
  .description { font-size: 0.95rem; }
  .actions { flex-direction: column; gap: 0.6rem; }
  .btn { width: 100%; justify-content: center; }

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

  .section-grid,
  .feature-grid,
  .story-grid,
  .timeline-grid,
  .program-grid,
  .cards-grid-3,
  .cards-grid-5,
  .cards-grid-4,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .links-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

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

  .highlight-card { padding: 2rem 1.5rem; }

  .countdown-sep { display: none; }

  .countdown-grid { gap: 1.5rem; }
}
