/* 
  Calautti Muffler and Exhaust Repair Services
  Theme CSS - Industrial Orange & Charcoal Design
  Modern Sleek High-Contrast Style
*/

/* ===== CSS VARIABLES ===== */
:root {
  /* Primary Color Palette */
  --electric-orange: #ff6b35;
  --charcoal-dark: #1a1a1a;
  --charcoal-medium: #2d2d2d;
  --charcoal-light: #404040;
  --sky-blue: #87ceeb;
  --steel-gray: #8892b0;
  
  /* Gradients */
  --gradient-uv: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffab65 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%);
  --gradient-exhaust: linear-gradient(90deg, #ff6b35 0%, #ff8c42 25%, #87ceeb 75%, #ff6b35 100%);
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-headings: 'Exo 2', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Shadows */
  --shadow-orange: 0 4px 20px rgba(255, 107, 53, 0.3);
  --shadow-dark: 0 8px 32px rgba(26, 26, 26, 0.4);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--charcoal-dark);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal-dark);
  margin-bottom: var(--spacing-sm);
}

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

p {
  margin-bottom: var(--spacing-sm);
  color: var(--charcoal-medium);
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--electric-orange);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 1001;
  font-weight: 600;
  transition: var(--transition-normal);
}

.skip-link:focus {
  top: 6px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ===== COOKIE CONSENT BANNER (IDENTICAL ON ALL PAGES) ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: var(--charcoal-dark);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  z-index: 1000;
  border: 2px solid var(--electric-orange);
  font-family: var(--font-primary);
}

.cookie-consent-banner h3 {
  color: var(--electric-orange);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.cookie-consent-banner p {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-banner .consent-buttons {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.cookie-consent-banner button {
  padding: var(--spacing-xs) var(--spacing-sm);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  min-width: 80px;
}

.cookie-consent-banner .accept-all {
  background: var(--electric-orange);
  color: white;
}

.cookie-consent-banner .decline-all {
  background: transparent;
  color: var(--steel-gray);
  border: 1px solid var(--steel-gray);
}

.cookie-consent-banner .consent-details {
  margin-top: var(--spacing-sm);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== HEADER STYLES (IDENTICAL ON ALL PAGES) ===== */
.main-header {
  background: var(--charcoal-dark);
  color: white;
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-dark);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
  color: white;
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-uv);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--electric-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.2rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-lg);
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-xs) 0;
  position: relative;
  transition: var(--transition-normal);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--electric-orange);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--electric-orange);
  transition: var(--transition-normal);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal-dark);
  padding: var(--spacing-sm);
  box-shadow: var(--shadow-dark);
}

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

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  margin-bottom: var(--spacing-xs);
}

.mobile-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.mobile-nav a:hover {
  background: var(--electric-orange);
  color: white;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 70vh;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-sm);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  background: var(--gradient-uv);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(255, 107, 53, 0.1) 100%);
  z-index: 1;
}

/* ===== EXHAUST GLOW ANIMATION ===== */
@keyframes exhaustGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 10px #ff6b35) brightness(1);
  }
  50% { 
    filter: drop-shadow(0 0 20px #ff8c42) brightness(1.2);
  }
}

.exhaust-effect {
  animation: exhaustGlow 3s ease-in-out infinite;
}

/* ===== SPEED STRIPES ANIMATION ===== */
@keyframes speedStripes {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.speed-stripes {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 107, 53, 0.1) 20%, 
    rgba(255, 107, 53, 0.3) 50%, 
    rgba(255, 107, 53, 0.1) 80%, 
    transparent 100%);
  animation: speedStripes 8s linear infinite;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--electric-orange);
  color: white;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--charcoal-dark);
}

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

.btn-outline:hover {
  background: var(--electric-orange);
  color: white;
}

/* ===== SECTION LAYOUTS ===== */
.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xl);
  color: var(--charcoal-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--steel-gray);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== CARD COMPONENTS ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-orange);
}

.card-header {
  margin-bottom: var(--spacing-md);
}

.card-title {
  color: var(--charcoal-dark);
  margin-bottom: var(--spacing-xs);
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--electric-orange);
  margin-bottom: var(--spacing-sm);
}

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

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--electric-orange);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== METALLIC TEXTURES ===== */
.metallic-texture {
  background: linear-gradient(135deg, 
    #404040 0%, 
    #8892b0 25%, 
    #404040 50%, 
    #8892b0 75%, 
    #404040 100%);
  background-size: 200% 200%;
  animation: metallicShine 4s ease-in-out infinite;
}

@keyframes metallicShine {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--charcoal-dark);
  margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid #e1e5e9;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-normal);
  background: white;
  color: var(--charcoal-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--electric-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: var(--charcoal-dark);
  color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  position: relative;
  border-left: 4px solid var(--electric-orange);
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
  font-weight: 600;
  color: var(--electric-orange);
}

.testimonial-stars {
  color: #ffc107;
  margin-bottom: var(--spacing-xs);
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--charcoal-dark);
  color: white;
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

.footer-section h3 {
  color: var(--electric-orange);
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: var(--spacing-xs);
  transition: var(--transition-normal);
}

.footer-section a:hover {
  color: var(--electric-orange);
}

.footer-bottom {
  border-top: 1px solid var(--charcoal-light);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-orange { color: var(--electric-orange); }
.text-white { color: white; }
.text-dark { color: var(--charcoal-dark); }
.text-light { color: var(--steel-gray); }

.bg-white { background: white; }
.bg-dark { background: var(--charcoal-dark); }
.bg-orange { background: var(--electric-orange); }
.bg-light { background: #f8f9fa; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* ===== RESPONSIVE DESIGN (MOBILE-FIRST) ===== */

/* Large mobile devices (576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-content {
    padding: var(--spacing-xxl) var(--spacing-lg);
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header-container {
    padding: 0 var(--spacing-lg);
  }
}

/* Large desktop (1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

/* ===== MOBILE OPTIMIZATION ===== */

/* Hide desktop navigation on mobile */
@media (max-width: 767px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cookie-consent-banner {
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .cookie-consent-banner .consent-buttons {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Extra small devices (max 400px) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .card {
    padding: var(--spacing-md);
  }
}

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

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

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

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid var(--electric-orange);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION SUPPORT (NO !IMPORTANT) ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  *:not(html) {
    scroll-behavior: auto;
  }
/* ===== MISSING CRITICAL CLASSES ===== */

/* Navigation active state */
.main-nav a.active {
  color: var(--electric-orange);
}

.main-nav a.active::after {
  width: 100%;
}

/* Form validation states */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ff6b35;
  background-color: #fff5f5;
}

.error-message {
  color: #ff6b35;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Form success states */
.form-success-message {
  background: #1a1a1a;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 1rem;
  border: 2px solid #ff6b35;
}

.form-success-message h3 {
  color: #ff6b35;
  margin-bottom: 1rem;
}

.form-success-message p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

/* Mobile responsive improvements */
@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .hero-section {
    min-height: 60vh;
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    min-width: auto;
  }
  
  .card {
    padding: var(--spacing-md);
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Extra small devices optimization */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .card {
    padding: var(--spacing-sm);
  }
  
  .btn {
    padding: var(--spacing-sm);
    font-size: 0.9rem;
  }
}
}