/* ============================================
   AERODYNAMIC STRUCTURALISM DESIGN SYSTEM
   Bicycle Maintenance & Customization
   ============================================ */

:root {
  /* Color Palette - Anodized Stealth & Performance */
  --color-stealth: #121212;
  --color-hydraulic-red: #FE0101;
  --color-titanium-frost: #E5E4E2;
  --color-drivetrain-gold: #D4AF37;
  --color-carbon-dark: #1a1a1a;
  --color-carbon-light: #2a2a2a;
  --color-text-primary: #E5E4E2;
  --color-text-secondary: #B0B0B0;
  --color-overlay-dark: rgba(18, 18, 18, 0.85);
  --color-overlay-light: rgba(229, 228, 226, 0.1);
  
  /* Typography */
  --font-headline: 'Exo', sans-serif;
  --font-technical: 'Quantico', sans-serif;
  --font-base: 'Poppins', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-red: 0 0 20px rgba(254, 1, 1, 0.3);
  --shadow-glow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

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

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

html {
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-stealth);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.technical-text {
  font-family: var(--font-technical);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-drivetrain-gold);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-overlay-dark);
  backdrop-filter: blur(10px);
  z-index: 10000;
  border-bottom: 1px solid var(--color-overlay-light);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 700;
  color: var(--color-text-primary);
  transition: var(--transition-base);
}

.brand-name:hover {
  color: var(--color-hydraulic-red);
  text-shadow: var(--shadow-glow-red);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-md);
  position: relative;
  transition: var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-hydraulic-red);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--color-hydraulic-red);
}

.burger-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: 10001;
  background: transparent;
  border: 1px solid var(--color-overlay-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}

.burger-button:hover {
  border-color: var(--color-hydraulic-red);
  box-shadow: var(--shadow-glow-red);
}

.burger-line {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition-base);
}

.burger-button.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-button.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-button.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-overlay-dark);
  backdrop-filter: blur(20px);
  z-index: 9999;
  padding: var(--space-xxl) var(--space-lg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  pointer-events: none;
}

.mobile-nav.active {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  text-align: center;
}

.mobile-nav-link {
  overflow-y: auto;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-md);
  display: block;
  transition: var(--transition-base);
}

.mobile-nav-link:hover {
  color: var(--color-hydraulic-red);
  transform: scale(1.05);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
  min-height: calc(100vh - 200px);
}

/* ============================================
   HERO BANNERS (Full-Width)
   ============================================ */

.hero-banner {
  position: relative;
  width: 100vw;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(18, 18, 18, 0.9) 0%,
    rgba(18, 18, 18, 0.7) 50%,
    rgba(18, 18, 18, 0.9) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   SECTIONS
   ============================================ */

.content-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-hydraulic-red),
    transparent
  );
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.grid-item {
  background: var(--color-carbon-light);
  border: 1px solid var(--color-overlay-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-base);
  overflow: hidden;
  position: relative;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-overlay-light),
    transparent
  );
  transition: var(--transition-slow);
}

.grid-item:hover::before {
  left: 100%;
}

.grid-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-hydraulic-red);
  box-shadow: var(--shadow-glow-red);
}

.grid-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.grid-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-drivetrain-gold);
}

.grid-text {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.column-image {
  width: 100%;
  height: 350px;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-overlay-light);
}

.column-content {
  padding: var(--space-lg);
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-technical);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--color-hydraulic-red);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-hydraulic-red);
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-hydraulic-red);
  transition: var(--transition-base);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: var(--color-stealth);
  box-shadow: var(--shadow-glow-red);
}

.btn-gold {
  border-color: var(--color-drivetrain-gold);
  color: var(--color-drivetrain-gold);
}

.btn-gold::before {
  background: var(--color-drivetrain-gold);
}

.btn-gold:hover {
  color: var(--color-stealth);
  box-shadow: var(--shadow-glow-gold);
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
  max-width: 600px;
  margin: var(--space-xl) auto;
  background: var(--color-carbon-light);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-overlay-light);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-technical);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-drivetrain-gold);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-stealth);
  border: 1px solid var(--color-overlay-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-base);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-hydraulic-red);
  box-shadow: 0 0 0 3px rgba(254, 1, 1, 0.1);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkbox-input {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

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

.product-card {
  background: var(--color-carbon-light);
  border: 1px solid var(--color-overlay-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
}

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

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  max-width: 100%;
}

.product-info {
  padding: var(--space-lg);
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-drivetrain-gold);
}

.product-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.product-price {
  font-family: var(--font-technical);
  font-size: 1.25rem;
  color: var(--color-hydraulic-red);
  font-weight: 700;
}

/* ============================================
   MAP CONTAINER
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-overlay-light);
  margin-top: var(--space-xl);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

.site-footer {
  background: var(--color-carbon-dark);
  border-top: 1px solid var(--color-overlay-light);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

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

.footer-title {
  font-family: var(--font-technical);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-drivetrain-gold);
  margin-bottom: var(--space-sm);
}

.footer-link {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-base);
  padding: var(--space-xs) 0;
}

.footer-link:hover {
  color: var(--color-hydraulic-red);
  padding-left: var(--space-sm);
}

.footer-text {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-overlay-light);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   PRIVACY POPUP
   ============================================ */

.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.privacy-popup.active {
  display: flex;
}

.popup-content {
  background: var(--color-carbon-light);
  border: 1px solid var(--color-overlay-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: var(--transition-base);
}

.popup-close:hover {
  color: var(--color-hydraulic-red);
}

.popup-title {
  margin-bottom: var(--space-lg);
  color: var(--color-drivetrain-gold);
}

.popup-text {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.popup-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1023px) {
  .nav-menu {
    display: none;
  }
  
  .burger-button {
    display: flex;
  }
  
  .site-header {
    position: relative;
    z-index: 1000;
  }
  
  .burger-button {
    position: relative;
    z-index: 100001;
  }
  
  .mobile-nav {
    z-index: 9999;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
  }
  
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: var(--space-md);
  }
  
  .content-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-content {
    padding: var(--space-lg);
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-banner {
    min-height: 40vh;
  }
  
  .form-container {
    padding: var(--space-lg);
  }
  
  .popup-content {
    padding: var(--space-lg);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px;
  }
  
  .site-header {
    padding: var(--space-sm);
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

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

.fade-in {
  animation: slideIn 0.6s ease-out;
}

