/* ================================================================
   49er Rally — Static Site Design System
   Faithfully reproduces the Next.js (Tailwind) live site
   ================================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Oswald:wght@600;700&display=swap');

/* ── CSS Variables (matches globals.css) ── */
:root {
  --background: #0D0D0D;
  --foreground: #FFFFFF;
  --primary: #2090D0;
  --secondary: #1A1A1A;
  --accent: #F7941D;
  --surface: #1F1F1F;
  --muted: #A0A0A0;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Oswald', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--secondary);
}


/* ================================================================
   Animations & Keyframes
   ================================================================ */

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.animate-hero-enter {
  animation: hero-enter 0.8s ease-out both;
}

.animate-bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}

/* Scroll-triggered fade-in (add .in-view via JS IntersectionObserver) */
.fade-in-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-ready.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }
.fade-delay-5 { transition-delay: 0.5s; }
.fade-delay-6 { transition-delay: 0.6s; }

/* Card hover effect */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(32, 144, 208, 0.2);
}


/* ================================================================
   Utility Classes (Tailwind equivalents)
   ================================================================ */

/* ── Layout ── */
.max-w-7xl       { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-4xl       { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-3xl       { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl       { max-width: 42rem; margin-left: auto; margin-right: auto; }

.section-padding  { padding-top: 4rem; padding-bottom: 4rem; }
.container-padding { padding-left: 1rem; padding-right: 1rem; }

@media (min-width: 640px) {
  .container-padding { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .section-padding { padding-top: 6rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .container-padding { padding-left: 2rem; padding-right: 2rem; }
}

.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Flexbox ── */
.flex           { display: flex; }
.inline-flex    { display: inline-flex; }
.flex-col       { flex-direction: column; }
.flex-wrap      { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.shrink-0 { flex-shrink: 0; }

/* ── Grid ── */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-1  { grid-column: span 1 / span 1; }
}

/* ── Spacing ── */
.p-2   { padding: 0.5rem; }
.p-4   { padding: 1rem; }
.p-6   { padding: 1.5rem; }
.p-8   { padding: 2rem; }
.px-4  { padding-left: 1rem; padding-right: 1rem; }
.px-5  { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2  { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-8  { padding-top: 2rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4  { margin-bottom: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

@media (min-width: 768px) {
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:pt-20 { padding-top: 5rem; }
  .md\:flex-row { flex-direction: row; }
}

/* ── Display ── */
.hidden   { display: none; }
.block    { display: block; }
.inline-block { display: inline-block; }

@media (min-width: 768px) {
  .md\:flex   { display: flex; }
  .md\:hidden { display: none; }
  .md\:block  { display: block; }
}
@media (min-width: 1024px) {
  .lg\:flex   { display: flex; }
  .lg\:hidden { display: none; }
}

/* ── Sizing ── */
.w-full  { width: 100%; }
.h-16    { height: 4rem; }
.h-20    { height: 5rem; }
.min-h-screen { min-height: 100vh; }
@media (min-width: 768px) {
  .md\:h-20 { height: 5rem; }
}

/* ── Position ── */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }
.z-50     { z-index: 50; }
.z-10     { z-index: 10; }

/* ── Overflow ── */
.overflow-hidden { overflow: hidden; }

/* ── Text ── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-xs   { font-size: 0.75rem; line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem; line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl  { font-size: 3rem; line-height: 1; }
.text-6xl  { font-size: 3.75rem; line-height: 1; }

@media (min-width: 768px) {
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.uppercase      { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.leading-tight   { line-height: 1.25; }
.leading-none    { line-height: 1; }

/* ── Colors ── */
.bg-background { background-color: var(--background); }
.bg-foreground { background-color: var(--foreground); }
.bg-primary    { background-color: var(--primary); }
.bg-secondary  { background-color: var(--secondary); }
.bg-accent     { background-color: var(--accent); }
.bg-surface    { background-color: var(--surface); }

.bg-background\/90 { background-color: rgba(13, 13, 13, 0.9); }
.bg-primary\/10    { background-color: rgba(32, 144, 208, 0.1); }
.bg-primary\/20    { background-color: rgba(32, 144, 208, 0.2); }
.bg-primary\/30    { background-color: rgba(32, 144, 208, 0.3); }
.bg-accent\/10     { background-color: rgba(247, 148, 29, 0.1); }
.bg-accent\/20     { background-color: rgba(247, 148, 29, 0.2); }
.bg-green-500\/20  { background-color: rgba(34, 197, 94, 0.2); }
.bg-red-500\/20    { background-color: rgba(239, 68, 68, 0.2); }

.text-foreground { color: var(--foreground); }
.text-primary    { color: var(--primary); }
.text-accent     { color: var(--accent); }
.text-muted      { color: var(--muted); }
.text-background { color: var(--background); }
.text-green-400  { color: #4ade80; }
.text-green-500  { color: #22c55e; }
.text-red-400    { color: #f87171; }
.text-red-500    { color: #ef4444; }

.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:text-accent:hover     { color: var(--accent); }
.hover\:text-primary:hover    { color: var(--primary); }
.hover\:bg-primary\/10:hover  { background-color: rgba(32, 144, 208, 0.1); }
.hover\:bg-primary\/20:hover  { background-color: rgba(32, 144, 208, 0.2); }
.hover\:bg-accent\/90:hover   { background-color: rgba(247, 148, 29, 0.9); }
.hover\:scale-105:hover       { transform: scale(1.05); }

.transition-colors { transition-property: color, background-color, border-color; transition-duration: 0.15s; transition-timing-function: ease; }
.transition-all    { transition: all 0.15s ease; }

/* ── Borders ── */
.border      { border-width: 1px; border-style: solid; }
.border-2    { border-width: 2px; border-style: solid; }
.border-b    { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t    { border-top-width: 1px; border-top-style: solid; }
.border-surface    { border-color: var(--surface); }
.border-primary    { border-color: var(--primary); }
.border-primary\/50 { border-color: rgba(32, 144, 208, 0.5); }
.border-muted\/20  { border-color: rgba(160, 160, 160, 0.2); }
.border-transparent { border-color: transparent; }

.hover\:border-primary\/50:hover { border-color: rgba(32, 144, 208, 0.5); }

.rounded      { border-radius: 0.25rem; }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-3xl  { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* ── Effects ── */
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.blur-3xl         { filter: blur(64px); }
.opacity-0   { opacity: 0; }
.opacity-50  { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* ── Object fit ── */
.object-cover  { object-fit: cover; }
.object-top    { object-position: top; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video  { aspect-ratio: 16 / 9; }


/* ================================================================
   Gradient & Decorative Utilities
   ================================================================ */

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-overlay {
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.8) 100%);
}

/* Hero gradient: from-background/60 via-background/40 to-background */
.hero-gradient {
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.6) 0%,
    rgba(13, 13, 13, 0.4) 50%,
    var(--background) 100%
  );
}

/* Decorative blurred circles */
.decorative-blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
}
.decorative-blob-primary {
  background-color: rgba(32, 144, 208, 0.3);
}
.decorative-blob-accent {
  background-color: rgba(247, 148, 29, 0.2);
}


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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(13, 13, 13, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 640px) {
  .header-inner { padding: 0 1.5rem; }
}
@media (min-width: 768px) {
  .header-inner { height: 5rem; }
}
@media (min-width: 1024px) {
  .header-inner { padding: 0 2rem; }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-family: var(--font-heading);
  text-transform: uppercase;
}
.logo-text .logo-49er { color: var(--primary); }
.logo-text .logo-rally { color: var(--accent); }

@media (min-width: 768px) {
  .logo-text { font-size: 1.875rem; }
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-desktop a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-desktop a:hover { color: var(--foreground); }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

/* Header right (auth + CTA) */
.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .header-actions { display: flex; }
}

/* Mobile menu button */
.mobile-toggle {
  display: block;
  padding: 0.625rem;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid rgba(160, 160, 160, 0.2);
  overflow: hidden;
}
.mobile-menu.is-open { display: block; }
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu nav {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu a {
  padding: 0.75rem 1rem;
  color: var(--foreground);
  border-radius: 0.5rem;
  transition: background-color 0.15s ease;
}
.mobile-menu a:hover { background-color: rgba(32, 144, 208, 0.1); }
.mobile-menu .mobile-divider {
  border-top: 1px solid rgba(160, 160, 160, 0.2);
  margin: 0.5rem 0;
}


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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

/* Primary CTA — accent orange */
.btn-primary {
  padding: 0.625rem 1.25rem;
  background-color: var(--accent);
  color: var(--background);
  font-size: 0.875rem;
}
.btn-primary:hover {
  background-color: rgba(247, 148, 29, 0.9);
  transform: scale(1.05);
}

/* Large primary */
.btn-primary-lg {
  padding: 0.875rem 2rem;
  background-color: var(--accent);
  color: var(--background);
  font-size: 1rem;
}
.btn-primary-lg:hover {
  background-color: rgba(247, 148, 29, 0.9);
  transform: scale(1.05);
}

/* Secondary — bordered with primary color */
.btn-secondary {
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--primary);
  font-size: 0.875rem;
}
.btn-secondary:hover {
  background-color: rgba(32, 144, 208, 0.1);
}

/* Large secondary */
.btn-secondary-lg {
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--primary);
  font-size: 1rem;
}
.btn-secondary-lg:hover {
  background-color: rgba(32, 144, 208, 0.1);
}


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

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.6) 0%,
    rgba(13, 13, 13, 0.4) 50%,
    var(--background) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 6rem 1rem 4rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-content { padding: 8rem 2rem 6rem; }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

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

/* Scroll indicator arrow */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  z-index: 10;
}


/* ================================================================
   Section Headers & Layout
   ================================================================ */

.section {
  padding: 4rem 1rem;
}
@media (min-width: 640px) {
  .section { padding: 4rem 1.5rem; }
}
@media (min-width: 768px) {
  .section { padding: 6rem 1.5rem; }
}
@media (min-width: 1024px) {
  .section { padding: 6rem 2rem; }
}

.section-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .section-header { margin-bottom: 4rem; }
}

/* Accent label above section heading */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-header h2 span {
  color: var(--primary);
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Alternate section background */
.section-alt {
  background-color: var(--secondary);
}


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

.card {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: rgba(32, 144, 208, 0.5);
}

/* Card with hover lift */
.card.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(32, 144, 208, 0.2);
  border-color: rgba(32, 144, 208, 0.5);
}

.card-body { padding: 1.5rem; }

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .card-grid {
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}


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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(32, 144, 208, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}
@media (min-width: 768px) {
  .stat-value { font-size: 3rem; }
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}


/* ================================================================
   Registration / Pricing
   ================================================================ */

/* Tab bar */
.reg-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--background);
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.reg-tab {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  color: var(--muted);
  background: var(--background);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  border: none;
  font-family: var(--font-body);
}
.reg-tab:hover { color: var(--foreground); }
.reg-tab.active {
  background: var(--primary);
  color: white;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: border-color 0.3s ease;
}
.pricing-card:hover { border-color: rgba(32, 144, 208, 0.5); }
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(247, 148, 29, 0.06) 0%, var(--surface) 100%);
}
.pricing-card.featured::before {
  content: 'Best Value';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--background);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 1rem;
  border-radius: 1.25rem;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-period {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Features list with check/x icons */
.features-list {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.features-list li .feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.feature-icon.included {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
.feature-icon.excluded {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.features-list li.excluded-item {
  color: rgba(160, 160, 160, 0.5);
  text-decoration: line-through;
}

.pricing-expired { opacity: 0.5; pointer-events: none; }


/* ================================================================
   Committee / Bio Cards
   ================================================================ */

.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .bio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bio-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.bio-card {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.bio-card:hover {
  border-color: rgba(32, 144, 208, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(32, 144, 208, 0.2);
}

.bio-card .bio-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
}

.bio-card .bio-body {
  padding: 1.5rem;
}

.bio-card .bio-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.bio-card .bio-role {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.bio-card .bio-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}


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

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: var(--background);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}
.faq-question:hover { color: var(--primary); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--muted);
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}


/* ================================================================
   Schedule
   ================================================================ */

.day-group { margin-bottom: 3rem; }

.day-label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.day-date {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--font-body);
  text-transform: none;
}

.sched-item {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(31, 31, 31, 0.6);
  align-items: start;
}

.sched-time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.125rem;
}
.sched-title { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.125rem; }
.sched-desc  { font-size: 0.8125rem; color: var(--muted); }
.sched-loc {
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  white-space: nowrap;
}

.sched-cat {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
}
.cat-training      { background: rgba(32, 144, 208, 0.12); color: var(--primary); }
.cat-competition   { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.cat-entertainment { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }
.cat-hospitality   { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.cat-seminar       { background: rgba(247, 148, 29, 0.12); color: var(--accent); }
.cat-other         { background: rgba(160, 160, 160, 0.12); color: var(--muted); }

@media (max-width: 767px) {
  .sched-item { grid-template-columns: 5rem 1fr; }
  .sched-loc  { grid-column: 2; }
}


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

.training-card {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}
.training-card:hover { border-color: rgba(32, 144, 208, 0.5); }
.training-card-body { padding: 2rem; }
.training-card h3 { margin-bottom: 0.25rem; }
.training-card .subtitle { color: var(--accent); font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.training-card p { color: var(--muted); font-size: 0.875rem; margin-bottom: 1rem; }

.training-meta { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.training-meta-item { font-size: 0.8125rem; color: var(--muted); }
.training-meta-item strong { color: var(--foreground); }

.training-list { list-style: none; margin-bottom: 1rem; }
.training-list li {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
}
.training-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6875rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

.instructor {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.625rem;
  margin-top: 1rem;
}
.instructor img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.instructor-name { font-size: 0.875rem; font-weight: 600; }
.instructor-title { font-size: 0.75rem; color: var(--accent); }
.instructor-bio { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }


/* ================================================================
   Gallery
   ================================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
}
.gallery-grid img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.02); opacity: 0.9; }


/* ================================================================
   Sponsors
   ================================================================ */

.sponsor-tier { margin-bottom: 3rem; }
.sponsor-tier-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.sponsor-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s ease;
}
.sponsor-item:hover { border-color: rgba(32, 144, 208, 0.5); }

.sponsor-logo {
  width: 6.25rem;
  height: 6.25rem;
  object-fit: contain;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: #fff;
  padding: 0.5rem;
}
.sponsor-info h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.sponsor-info p { font-size: 0.875rem; color: var(--muted); }


/* ================================================================
   Vendors
   ================================================================ */

.vendor-card {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}
.vendor-card:hover { border-color: rgba(32, 144, 208, 0.5); }
.vendor-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.25rem; }
.vendor-card .vendor-type { color: var(--accent); font-size: 0.8125rem; margin-bottom: 0.5rem; }
.vendor-card p { font-size: 0.875rem; color: var(--muted); }
.vendor-hours { font-size: 0.8125rem; color: var(--muted); margin-top: 0.5rem; }


/* ================================================================
   Location / Map
   ================================================================ */

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .location-grid { grid-template-columns: 1fr 1fr; }
}

.map-embed {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--surface);
  aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

.amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.amenity {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


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

.site-footer {
  background: var(--secondary);
  border-top: 1px solid var(--surface);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
@media (min-width: 640px) {
  .footer-inner { padding: 3rem 1.5rem; }
}
@media (min-width: 768px) {
  .footer-inner { padding: 4rem 1.5rem; }
}
@media (min-width: 1024px) {
  .footer-inner { padding: 4rem 2rem; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 3rem; }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 18.75rem;
  line-height: 1.625;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-social a {
  padding: 0.5rem;
  background: var(--surface);
  border-radius: 0.5rem;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover {
  background-color: rgba(32, 144, 208, 0.2);
  color: var(--primary);
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links ul { list-style: none; }
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--surface);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; text-align: left; }
}
.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-bottom .footer-sub {
  font-size: 0.75rem;
}


/* ================================================================
   Page Hero (inner pages)
   ================================================================ */

.page-hero {
  padding: 6rem 1rem 3.5rem;
  text-align: center;
  background: var(--secondary);
  border-bottom: 1px solid var(--surface);
}
@media (min-width: 768px) {
  .page-hero { padding: 7rem 2rem 4rem; }
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto;
}


/* ================================================================
   Prose / Long-form content
   ================================================================ */

.prose-body { max-width: 48rem; margin: 0 auto; }
.prose-body h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
}
.prose-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent);
}
.prose-body p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.prose-body ul { padding-left: 1.25rem; margin-bottom: 1rem; list-style: disc; }
.prose-body li { color: var(--muted); margin-bottom: 0.375rem; font-size: 0.875rem; }
.prose-body a { color: var(--primary); }
.prose-body a:hover { color: var(--accent); }


/* ================================================================
   Competitions
   ================================================================ */

.comp-card {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}
.comp-card:hover { border-color: rgba(32, 144, 208, 0.5); }
.comp-card h3 { margin-bottom: 0.25rem; }
.comp-card .comp-sub { color: var(--accent); font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }


/* ================================================================
   Hospitality
   ================================================================ */

.hospitality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hospitality-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ================================================================
   Seminars
   ================================================================ */

.seminar-card {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}
.seminar-card:hover { border-color: rgba(32, 144, 208, 0.5); }
.seminar-card h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.seminar-card .speaker { font-size: 0.875rem; color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.seminar-card p { font-size: 0.875rem; color: var(--muted); }
.seminar-card .time-loc { font-size: 0.8125rem; color: var(--muted); margin-top: 0.75rem; }


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

/* Breakpoints: sm 640px, md 768px, lg 1024px */

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md\:gap-8 { gap: 2rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:gap-12 { gap: 3rem; }
}


/* ================================================================
   Print Styles
   ================================================================ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    font-family: 'Inter', Georgia, serif;
  }

  a, a:visited { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  a[href^="#"]::after,
  a[href^="javascript:"]::after { content: ""; }

  .site-header,
  .site-footer,
  .mobile-toggle,
  .mobile-menu,
  .hero-cta,
  .btn,
  .nav-desktop,
  .header-actions,
  .scroll-indicator,
  .decorative-blob,
  .footer-social { display: none !important; }

  .hero { min-height: auto; page-break-after: avoid; }
  .section { padding: 1rem 0; page-break-inside: avoid; }
  .card, .bio-card, .pricing-card, .training-card, .comp-card, .vendor-card, .seminar-card {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }

  img { max-width: 100% !important; }
  h1, h2, h3 { page-break-after: avoid; }

  @page { margin: 2cm; }
}
