/*
 * Premium Automotive Service CSS Architecture
 * Developer: Creative Designer (Experimental Style)
 * Client: Autohaus of Boston - Tony Ferrari
 * Visual Identity: Executive Gray with Luxury Automotive Aesthetics
 * Target: Ferrari/Lamborghini owners in New England
 * Created: 2025-08-24
 */

/* Link Text Styling - Only Keywords Linked */
.link-text {
  text-decoration: underline;
  color: inherit;
}

.action-button .link-text {
  text-decoration: underline;
  color: inherit;
}

/* Service Action Styling */
.service-action {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-align: center;
  margin-top: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-action:hover {
  background: var(--color-secondary);
  box-shadow: var(--shadow-lg);
}

/* === CSS Custom Properties - Executive Gray Luxury System === */
:root {
  /* Executive Gray Brand Colors - Premium Automotive */
  --color-primary: #1A202C;      /* Deep Charcoal - Ferrari Black */
  --color-secondary: #2D3748;    /* Steel Gray - Professional Depth */
  --color-accent: #4A5568;       /* Silver Accent - Metallic Touch */
  --color-neutral-50: #F7FAFC;   /* Pure White - Clean Highlights */
  --color-neutral-100: #EDF2F7;  /* Light Gray - Subtle Backgrounds */
  --color-neutral-200: #E2E8F0;  /* Border Gray - Elegant Separation */
  --color-neutral-300: #CBD5E0;  /* Medium Gray - Text Secondary */
  --color-neutral-600: #718096;  /* Text Gray - Readable Content */
  --color-neutral-700: #4A5568;  /* Text Primary - Strong Readability */
  --color-neutral-800: #2D3748;  /* Dark Text - Maximum Contrast */
  --color-neutral-900: #1A202C;  /* Black Text - Premium Typography */
  
  /* Luxury Automotive Enhancement Colors */
  --color-gold: #D69E2E;         /* Ferrari Gold - Premium Accents */
  --color-red: #E53E3E;          /* Ferrari Red - Brand Connection */
  --color-success: #38A169;      /* Success Green - Positive Actions */
  --color-warning: #D69E2E;      /* Warning Gold - Attention Elements */
  --color-error: #E53E3E;        /* Error Red - Critical Messages */
  
  /* Premium Typography Scale - Inter + Merriweather */
  --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'JetBrains Mono', monospace;
  
  /* Sophisticated Spacing System */
  --space-xs: 0.25rem;    /* 4px - Micro spacing */
  --space-sm: 0.5rem;     /* 8px - Small elements */
  --space-md: 1rem;       /* 16px - Standard spacing */
  --space-lg: 1.5rem;     /* 24px - Section spacing */
  --space-xl: 2rem;       /* 32px - Large spacing */
  --space-2xl: 3rem;      /* 48px - Major sections */
  --space-3xl: 4rem;      /* 64px - Hero spacing */
  --space-4xl: 6rem;      /* 96px - Page sections */
  --space-5xl: 8rem;      /* 128px - Major divisions */
  
  /* Premium Border Radius System */
  --radius-sm: 0.25rem;   /* 4px - Subtle curves */
  --radius-md: 0.5rem;    /* 8px - Standard curves */
  --radius-lg: 0.75rem;   /* 12px - Prominent curves */
  --radius-xl: 1rem;      /* 16px - Card curves */
  --radius-2xl: 1.5rem;   /* 24px - Hero curves */
  
  /* Luxury Shadow System - Layered Depth */
  --shadow-sm: 0 1px 2px 0 rgba(26, 32, 44, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(26, 32, 44, 0.1), 0 2px 4px -1px rgba(26, 32, 44, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(26, 32, 44, 0.1), 0 4px 6px -2px rgba(26, 32, 44, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(26, 32, 44, 0.1), 0 10px 10px -5px rgba(26, 32, 44, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(26, 32, 44, 0.25);
  
  /* Creative Designer Breakpoints */
  --breakpoint-mobile: 575px;
  --breakpoint-tablet: 850px; 
  --breakpoint-desktop: 1050px;
  --breakpoint-wide: 1300px;
  
  /* Premium Animation System */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-luxury: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* === Modern CSS Reset - Professional Foundation === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-neutral-800);
  background: linear-gradient(135deg, var(--color-neutral-50) 0%, #ffffff 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

/* === Premium Typography System === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

h1 { 
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(26, 32, 44, 0.1);
}

h2 { 
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
}

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

h4 { 
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 600;
}

h5 { 
  font-size: 1.25rem;
  font-weight: 500;
}

h6 { 
  font-size: 1.125rem;
  font-weight: 500;
}

p {
  margin-bottom: var(--space-lg);
  max-width: 70ch;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* === Luxury Link System === */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition-medium);
  position: relative;
}

a:hover {
  color: var(--color-gold);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* === Premium Header & Mega Menu Navigation === */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px) saturate(180%);
  border-bottom: 1px solid var(--color-neutral-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  background: rgba(26, 32, 44, 0.95);
  border-bottom-color: var(--color-neutral-700);
}

.header.scrolled .logo {
  color: var(--color-gold);
}

.header.scrolled .nav-link {
  color: var(--color-neutral-100);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-2xl);
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: all var(--transition-medium);
}

.logo:hover {
  color: var(--color-gold);
  transform: scale(1.05);
}

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

.nav-link {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-neutral-700);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-medium);
  position: relative;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-neutral-100);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--color-gold);
  background: linear-gradient(135deg, var(--color-neutral-100), var(--color-neutral-50));
}

/* === Hero Section - Premium Automotive Identity === */
.header-main {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  color: white;
  padding: var(--space-5xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(214, 158, 46, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(229, 62, 62, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.header-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, rgba(26, 32, 44, 0.1));
}

.header-main-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.header-main h1 {
  color: white;
  margin-bottom: var(--space-2xl);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.header-main p {
  font-size: 1.375rem;
  margin-bottom: var(--space-3xl);
  opacity: 0.95;
  max-width: none;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* === Premium Button System === */
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-2xl);
  background: linear-gradient(135deg, var(--color-gold) 0%, #E6A522 100%);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-luxury);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.action-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  background: linear-gradient(135deg, #E6A522 0%, var(--color-gold) 100%);
}

.action-button:active {
  transform: translateY(-1px) scale(1.01);
}

.action-button:focus-visible {
  outline: 3px solid rgba(214, 158, 46, 0.5);
  outline-offset: 3px;
}

.primary-cta {
  background: linear-gradient(135deg, var(--color-red) 0%, #C53030 100%);
}

.primary-cta:hover {
  background: linear-gradient(135deg, #C53030 0%, var(--color-red) 100%);
}

/* === Sophisticated Section Layouts === */
.content-section {
  padding: var(--space-4xl) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.content-section-title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: var(--color-primary);
  position: relative;
  font-family: var(--font-heading);
}

.content-section-title::after {
  content: '';
  position: absolute;
  bottom: -var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-red) 100%);
  border-radius: var(--radius-xl);
}

/* === Advanced Grid Systems - Professional Layout === */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

/* === Premium Card Components - Luxury Service Cards === */
.info-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-luxury);
  border: 1px solid var(--color-neutral-200);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

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

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-gold);
}

.info-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.info-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-medium);
}

.info-card:hover img {
  transform: scale(1.05);
}

/* === Services Grid - Automotive Service Specialization === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

.service-card {
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-luxury);
  background: linear-gradient(135deg, white 0%, var(--color-neutral-50) 100%);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(214, 158, 46, 0.05) 0%, rgba(229, 62, 62, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  border-color: var(--color-gold);
  background: white;
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  font-size: 3.5rem;
  color: var(--color-gold);
  margin-bottom: var(--space-xl);
  display: block;
  transition: all var(--transition-medium);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--color-red);
}

/* === Portfolio Gallery - Automotive Excellence Showcase === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--color-neutral-900);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-luxury);
}

.portfolio-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  margin-bottom: 0;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 32, 44, 0.9));
  color: white;
  padding: var(--space-2xl);
  transform: translateY(100%);
  transition: transform var(--transition-luxury);
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
}

/* === Premium Form Styling - Professional Contact Forms === */
.form-container {
  background: white;
  padding: var(--space-3xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-neutral-200);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-md);
  font-weight: 600;
  color: var(--color-neutral-800);
  font-size: 1rem;
  font-family: var(--font-heading);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-lg);
  border: 2px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-family: var(--font-body);
  transition: all var(--transition-medium);
  background-color: var(--color-neutral-50);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
  background-color: white;
}

.form-button {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--space-lg) var(--space-2xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-luxury);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-button:hover {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* === Testimonials Slider - Premium Social Proof === */
.testimonials-slider {
  background: linear-gradient(135deg, var(--color-neutral-50) 0%, white 100%);
  padding: var(--space-4xl) var(--space-2xl);
  border-radius: var(--radius-2xl);
  margin: var(--space-3xl) 0;
}

.testimonial-card {
  background: white;
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-gold);
  margin-bottom: var(--space-xl);
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
}

.testimonial-info h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  font-size: 1.125rem;
}

.testimonial-info p {
  color: var(--color-neutral-600);
  font-size: 1rem;
  margin-bottom: 0;
}

/* === Live Chat Widget Integration === */
.chat-widget {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  background: linear-gradient(135deg, var(--color-gold) 0%, #E6A522 100%);
  color: white;
  padding: var(--space-lg);
  border-radius: 50px;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: all var(--transition-medium);
  z-index: 1000;
  border: none;
  font-weight: 600;
}

.chat-widget:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-2xl);
}

/* === Video Background Support === */
.video-background {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
}

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

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 32, 44, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: var(--space-2xl);
}

/* === Professional Footer === */
.footer {
  background: linear-gradient(135deg, var(--color-neutral-900) 0%, var(--color-primary) 100%);
  color: var(--color-neutral-100);
  padding: var(--space-4xl) var(--space-2xl) var(--space-2xl);
  margin-top: var(--space-5xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-section h4 {
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
  font-family: var(--font-heading);
}

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

.footer-link {
  color: var(--color-neutral-300);
  opacity: 0.9;
  transition: all var(--transition-fast);
  padding: var(--space-sm) 0;
  text-decoration: none;
}

.footer-link:hover {
  opacity: 1;
  color: var(--color-gold);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid var(--color-neutral-700);
  padding-top: var(--space-xl);
  text-align: center;
  color: var(--color-neutral-400);
}

/* === Sidebar Layout Support === */
.sidebar-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2xl);
}

.sidebar {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  height: fit-content;
  position: sticky;
  top: calc(var(--space-4xl) + 80px);
}

.main-content {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* === Responsive Design - Mobile First Approach === */
@media (max-width: 575px) {
  .header-main {
    padding: var(--space-3xl) var(--space-lg);
    min-height: 60vh;
  }
  
  .content-section {
    padding: var(--space-3xl) var(--space-lg);
  }
  
  .nav {
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }
  
  .nav-menu {
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .sidebar-layout {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
  }
  
  .sidebar {
    order: 2;
    position: static;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (min-width: 576px) and (max-width: 850px) {
  .header-main {
    padding: var(--space-4xl) var(--space-xl);
  }
  
  .content-section {
    padding: var(--space-4xl) var(--space-xl);
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .sidebar-layout {
    grid-template-columns: 250px 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (min-width: 851px) and (max-width: 1050px) {
  .header-main {
    padding: var(--space-5xl) var(--space-xl);
  }
  
  .content-section {
    padding: var(--space-5xl) var(--space-xl);
  }
  
  .nav-menu {
    gap: var(--space-xl);
  }
  
  .sidebar-layout {
    grid-template-columns: 280px 1fr;
  }
}

@media (min-width: 1051px) {
  .header-main {
    padding: 8rem var(--space-2xl);
  }
  
  .content-section {
    padding: 8rem var(--space-2xl);
  }
  
  .nav-menu {
    gap: var(--space-3xl);
  }
}

/* === Accessibility Enhancements === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  /* Dark mode variables could be added here for future enhancement */
}

/* === High Contrast Mode Support === */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #1a1a1a;
    --color-accent: #333333;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  }
}

/* === Print Styles - Professional Documentation === */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .header, .footer, .chat-widget, .nav-menu {
    display: none;
  }
  
  .header-main {
    background: none !important;
    color: black !important;
    padding: var(--space-lg) 0;
  }
  
  a, a:visited {
    text-decoration: underline;
    color: black !important;
  }
  
  .content-section {
    padding: var(--space-lg) 0;
  }
  
  .info-card {
    border: 1px solid #ccc;
    margin-bottom: var(--space-lg);
    break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* === Performance Optimizations === */
img, video {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* === Skip Link for Accessibility === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

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

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

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* === Creative Designer Signature Touches === */
/* Experimental gradient borders */
.premium-border {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
}

.premium-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-gold), var(--color-red), var(--color-accent));
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* Luxury automotive accent elements */
.ferrari-accent {
  color: var(--color-red);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(229, 62, 62, 0.2);
}

.gold-accent {
  color: var(--color-gold);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(214, 158, 46, 0.2);
}

/* Custom scrollbar for premium feel */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-gold), var(--color-red));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--color-red), var(--color-gold));
}

/* End of Creative Designer Premium Automotive CSS */