/* ============================================
   INDUSTRIAL FUTURISM - CARBON FIBER AESTHETIC
   Garage & Workshop Systemization
   ============================================ */

:root {
  /* Color Palette */
  --color-primary: #1B1E23;
  --color-accent-orange: #FF6B00;
  --color-accent-cobalt: #007AFF;
  --color-contrast: #F8F9FA;
  --color-text-primary: #F8F9FA;
  --color-text-secondary: #B8BCC0;
  --color-bg-dark: #0F1114;
  --color-bg-medium: #1B1E23;
  --color-bg-light: #25282D;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Space Grotesk', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --border-thin: 1px solid rgba(248, 249, 250, 0.1);
  --border-medium: 2px solid rgba(248, 249, 250, 0.15);
  
  /* 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-orange: 0 0 20px rgba(255, 107, 0, 0.3);
  --shadow-glow-cobalt: 0 0 20px rgba(0, 122, 255, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;
}

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

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern - Blueprint Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 122, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

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

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

a {
  color: var(--color-accent-cobalt);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-orange);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgba(27, 30, 35, 0.95) 0%, rgba(15, 17, 20, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-thin);
  z-index: 1000;
  padding: var(--space-md) 0;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand-text {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

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

.nav-menu li a {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-menu li a:hover {
  color: var(--color-accent-orange);
  border-bottom-color: var(--color-accent-orange);
}

/* Burger Menu Button - Visible only up to 1023px */
.burger-toggle {
  display: none;
  background: transparent;
  border: var(--border-medium);
  border-color: var(--color-accent-orange);
  color: var(--color-accent-orange);
  width: 48px;
  height: 48px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  z-index: 10001;
  transition: all var(--transition-fast);
  margin-left: var(--space-md);
}

.burger-toggle:hover {
  background: rgba(255, 107, 0, 0.1);
  box-shadow: var(--shadow-glow-orange);
}

.burger-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--color-accent-orange);
  transition: all var(--transition-fast);
}

.burger-toggle span:nth-child(1) {
  top: 14px;
}

.burger-toggle span:nth-child(2) {
  top: 23px;
}

.burger-toggle span:nth-child(3) {
  top: 32px;
}

.burger-toggle.active span:nth-child(1) {
  top: 23px;
  transform: translateX(-50%) rotate(45deg);
}

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

.burger-toggle.active span:nth-child(3) {
  top: 23px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Navigation - Opens separately from header */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, rgba(27, 30, 35, 0.98) 0%, rgba(15, 17, 20, 0.98) 100%);
  backdrop-filter: blur(20px);
  padding: var(--space-xxl) var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav ul li a {
  display: block;
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm);
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.mobile-nav ul li a:hover {
  color: var(--color-accent-orange);
  border-left-color: var(--color-accent-orange);
  padding-left: var(--space-md);
}

/* Responsive Header */
@media (max-width: 1023px) {
  .nav-menu {
    display: none;
  }
  
  .burger-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 var(--space-sm);
  }
  
  .brand-text {
    font-size: 1.125rem;
  }
}

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

main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
  position: relative;
}

/* ============================================
   HERO BANNERS - FULL WIDTH
   ============================================ */

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

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

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

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-primary);
}

.hero-image-below {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: var(--space-xl) auto 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: var(--border-thin);
  display: block;
}

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

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-orange) 0%, #FF8533 100%);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-glow-orange);
}

.btn-primary:hover {
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent-cobalt);
  border: 2px solid var(--color-accent-cobalt);
}

.btn-secondary:hover {
  background: var(--color-accent-cobalt);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-glow-cobalt);
}

/* ============================================
   CARDS & GRIDS
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  justify-items: center;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: linear-gradient(135deg, var(--color-bg-medium) 0%, var(--color-bg-light) 100%);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-orange), var(--color-accent-cobalt));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-orange);
}

.card:hover::before {
  transform: scaleX(1);
}

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

.card h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

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

.feature-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-medium) 50%, var(--color-bg-dark) 100%);
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: var(--border-thin);
  justify-self: center;
}

.feature-text h2 {
  margin-bottom: var(--space-md);
}

.feature-text p {
  margin-bottom: var(--space-md);
}

/* ============================================
   PORTFOLIO GALLERY
   ============================================ */

.gallery-container {
  margin-top: var(--space-xl);
}

.gallery-item {
  position: relative;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-thin);
}

.gallery-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  padding: var(--space-lg);
  color: var(--color-text-primary);
}

.gallery-overlay h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-accent-orange);
}

.specs-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.specs-list li {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 107, 0, 0.1);
  border-left: 3px solid var(--color-accent-orange);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ============================================
   CALCULATOR WIDGET
   ============================================ */

.calculator-widget {
  background: linear-gradient(135deg, var(--color-bg-medium) 0%, var(--color-bg-light) 100%);
  border: var(--border-medium);
  border-color: var(--color-accent-cobalt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-glow-cobalt);
}

.calculator-widget h3 {
  color: var(--color-accent-cobalt);
  margin-bottom: var(--space-lg);
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: var(--space-sm);
  background: var(--color-bg-dark);
  border: var(--border-thin);
  border-color: var(--color-accent-cobalt);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--color-accent-orange);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

.calculator-result {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(0, 122, 255, 0.1);
  border: 2px solid var(--color-accent-cobalt);
  border-radius: var(--radius-md);
  text-align: center;
}

.calculator-result h4 {
  color: var(--color-accent-cobalt);
  margin-bottom: var(--space-sm);
}

.calculator-result p {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
  max-width: 600px;
  margin: var(--space-xl) auto;
  background: linear-gradient(135deg, var(--color-bg-medium) 0%, var(--color-bg-light) 100%);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.contact-form .form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  background: var(--color-bg-dark);
  border: var(--border-thin);
  border-color: var(--color-accent-cobalt);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  min-height: 150px;
  resize: vertical;
  transition: all var(--transition-fast);
}

.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-orange);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

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

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-accent-orange);
}

.checkbox-group label {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.map-container {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-thin);
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ============================================
   PRODUCTS
   ============================================ */

.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: linear-gradient(135deg, var(--color-bg-medium) 0%, var(--color-bg-light) 100%);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-orange);
}

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

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-orange);
  margin: var(--space-md) 0;
  font-family: var(--font-secondary);
}

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

.site-footer {
  background: linear-gradient(180deg, var(--color-bg-medium) 0%, var(--color-bg-dark) 100%);
  border-top: var(--border-medium);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xxl);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.footer-nav a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-accent-orange);
}

.footer-info {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  padding-top: var(--space-md);
  border-top: var(--border-thin);
}

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

.privacy-popup {
  display: none;
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  max-width: 400px;
  background: linear-gradient(135deg, var(--color-bg-medium) 0%, var(--color-bg-light) 100%);
  border: var(--border-medium);
  border-color: var(--color-accent-cobalt);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
}

.privacy-popup.active {
  display: block;
  animation: slideUp 0.3s ease;
}

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

.privacy-popup p {
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-sm);
}

.privacy-popup-buttons .btn {
  flex: 1;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
}

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

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

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

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

.date {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-style: italic;
}

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

@media (max-width: 1024px) {
  .feature-content {
    grid-template-columns: 1fr;
  }
  
  .feature-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-xxl: 4rem;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .calculator-widget {
    padding: var(--space-lg);
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
  
  .privacy-popup {
    max-width: calc(100% - 2rem);
    right: var(--space-sm);
    bottom: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .card,
  .product-card {
    padding: var(--space-md);
  }
  
  .gallery-image {
    height: 300px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
  }
}

