/* ============================================
   GREEN RUSH RACING EXPERIENCES
   Modern dark design with lime accent
   ============================================ */

:root {
  /* Brand colors */
  --color-lime: #a4d233;
  --color-lime-bright: #b8e054;
  --color-lime-dark: #8cbd1f;
  
  /* Surface ladder - near-black with green tint */
  --surface-00: #05070c;
  --surface-01: #0a0d12;
  --surface-02: #0f131c;
  --surface-03: #161d2b;
  --surface-04: #1e2636;
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  
  /* Spacing */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2rem);
  --space-xl: clamp(2rem, 4vw, 3rem);
  --space-2xl: clamp(3rem, 6vw, 5rem);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-full: 50%;
  
  /* Typography */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.9vw, 0.875rem);
  --text-sm: clamp(0.875rem, 1vw, 1rem);
  --text-base: clamp(1rem, 1.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.8vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 2.5vw, 2rem);
  --text-3xl: clamp(2rem, 3.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 5vw, 4rem);
  --text-5xl: clamp(3rem, 7vw, 5.5rem);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(164, 210, 51, 0.2);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-00);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: min(100% - var(--space-lg) * 2, 1280px);
  margin-inline: auto;
}

section {
  padding-block: var(--space-2xl);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface-01);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(164, 210, 51, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 13, 18, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
}

.nav-brand {
  display: block;
}

.nav-logo {
  height: clamp(32px, 5vw, 48px);
  width: auto;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav-menu a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--color-lime);
}

.btn-nav {
  padding: var(--space-xs) var(--space-md);
  background: var(--color-lime);
  color: var(--surface-00);
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  background: var(--color-lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(164, 210, 51, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface-01);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(164, 210, 51, 0.1);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .hamburger {
    display: flex;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-lime);
  color: var(--surface-00);
}

.btn-primary:hover {
  background: var(--color-lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(164, 210, 51, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--surface-02);
  border-color: var(--color-lime);
  color: var(--color-lime);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: 64px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 12, 0.7) 0%,
    rgba(5, 7, 12, 0.85) 50%,
    rgba(5, 7, 12, 0.95) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: var(--space-xl);
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  max-width: clamp(280px, 50vw, 480px);
  margin: 0 auto var(--space-lg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.hero-tagline {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-lime);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-inline: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--color-lime));
  border-radius: var(--radius-pill);
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.6;
}

.accent-line {
  width: 80px;
  height: 4px;
  background: var(--color-lime);
  margin: var(--space-lg) auto 0;
  border-radius: var(--radius-pill);
}

/* ============================================
   STRUCTURE SECTION
   ============================================ */

.structure {
  background: var(--surface-01);
}

.structure-diagram {
  display: grid;
  gap: var(--space-xl);
}

.structure-center {
  text-align: center;
  padding: var(--space-lg);
}

.structure-brand {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface-03);
  border: 2px solid var(--color-lime);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.structure-brand strong {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-lime);
  letter-spacing: 0.05em;
}

.structure-brand span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.structure-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.structure-column {
  padding: var(--space-xl);
  background: var(--surface-02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(164, 210, 51, 0.1);
}

.structure-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: grid;
  place-items: center;
  background: var(--surface-03);
  border-radius: var(--radius-full);
  color: var(--color-lime);
}

.structure-column h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xs);
  color: var(--color-lime);
}

.structure-subtitle-small {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.structure-items {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.structure-item {
  padding: var(--space-md);
  background: var(--surface-03);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-lime);
}

.structure-item strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.structure-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.structure-use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.structure-use-cases span {
  padding: var(--space-xs) var(--space-sm);
  background: var(--surface-04);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  border: 1px solid rgba(164, 210, 51, 0.2);
}

.structure-partnership {
  margin-top: var(--space-xl);
}

.structure-partner-box {
  padding: var(--space-xl);
  background: var(--surface-02);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-lime);
}

.partner-label {
  display: block;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-lime);
  margin-bottom: var(--space-lg);
}

.partner-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.partner-item {
  padding: var(--space-md);
  background: var(--surface-03);
  border-radius: var(--radius-md);
}

.partner-item strong {
  display: block;
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  color: var(--color-lime);
}

.partner-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.partner-divider {
  font-size: var(--text-2xl);
  color: var(--color-lime);
}

.structure-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-style: italic;
}

@media (max-width: 768px) {
  .partner-content {
    grid-template-columns: 1fr;
  }
  
  .partner-divider {
    transform: rotate(90deg);
  }
}

/* ============================================
   WHERE SECTION
   ============================================ */

.where {
  background: var(--surface-00);
}

.where-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.where-card {
  background: var(--surface-02);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(164, 210, 51, 0.1);
  transition: all 0.3s ease;
}

.where-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-lime);
  box-shadow: var(--shadow-glow);
}

.where-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.where-card h3 {
  padding: var(--space-lg) var(--space-lg) var(--space-xs);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-lime);
}

.where-card p {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   WHY SECTION
   ============================================ */

.why {
  background: var(--surface-01);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.why-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--surface-02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(164, 210, 51, 0.1);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-lime);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: grid;
  place-items: center;
  background: var(--surface-03);
  border-radius: var(--radius-full);
  color: var(--color-lime);
}

.why-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.why-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   VEHICLES SECTION
   ============================================ */

.vehicles {
  background: var(--surface-00);
}

.simrc-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-lime);
  color: var(--surface-00);
  border-radius: var(--radius-pill);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-left: var(--space-sm);
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.vehicle-card {
  background: var(--surface-02);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(164, 210, 51, 0.1);
  transition: all 0.3s ease;
}

.vehicle-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-lime);
  box-shadow: var(--shadow-glow);
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vehicle-card h3 {
  padding: var(--space-lg) var(--space-lg) var(--space-xs);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-lime);
}

.vehicle-card p {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

.vehicles-footer {
  text-align: center;
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-style: italic;
}

/* ============================================
   LOCATIONS SECTION
   ============================================ */

.locations {
  background: var(--surface-01);
}

.locations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto var(--space-lg);
}

.location-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface-02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(164, 210, 51, 0.1);
  transition: all 0.3s ease;
}

.location-item:hover {
  border-color: var(--color-lime);
  transform: translateX(4px);
}

.location-pin {
  font-size: var(--text-xl);
}

.location-name {
  font-size: var(--text-base);
  font-weight: 600;
}

.locations-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-style: italic;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background: var(--surface-00);
}

.contact-intro {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-inline: auto;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl);
  background: var(--surface-02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(164, 210, 51, 0.1);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-03);
  border: 1px solid rgba(164, 210, 51, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-base);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(164, 210, 51, 0.1);
}

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

.form-buttons {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

.contact-direct {
  text-align: center;
  padding: var(--space-xl);
  background: var(--surface-02);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 0 auto;
}

.contact-direct p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.contact-direct p:last-child {
  margin-bottom: 0;
}

.contact-direct a {
  color: var(--color-lime);
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-direct a:hover {
  color: var(--color-lime-bright);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--surface-01);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid rgba(164, 210, 51, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  max-width: 200px;
}

.footer-tagline {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-lime);
}

.footer-links,
.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links h4,
.footer-info h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-lime);
}

.footer-links a,
.footer-info a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-info a:hover {
  color: var(--color-lime);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(164, 210, 51, 0.1);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-bottom a {
  color: var(--color-lime);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--color-lime-bright);
}

/* Clickable vehicle cards */
a.vehicle-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

a.vehicle-card:hover h3 {
  color: var(--color-lime-bright);
}
