/* SSS Auto Repair - Main CSS File */

/* === CSS Variables === */
:root {
  /* Colors */
  --primary-color: #1a365d;
  --primary-dark: #2d3748;
  --primary-light: #4299e1;
  --secondary-color: #f6ad55;
  --secondary-dark: #ed8936;
  --secondary-light: #fbd38d;
  --accent-color: #f8fafc;
  --text-color: #2d3748;
  --light-color: #ffffff;
  --gray-color: #647082;
  --medium-gray: #e2e8f0;
  --dark-gray: #2d3748;
  --success-color: #38a169;
  --warning-color: #ed8936;
  --danger-color: #e53e3e;

  /* Effects */
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-light: 0 2px 4px rgba(0, 0, 0, 0.04);
  --box-shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  --border-radius: 8px;
  --border-radius-small: 4px;
  --border-radius-large: 12px;

  /* Layout */
  --container-width: 1200px;
  --header-height: 72px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a365d 0%, #4299e1 100%);
  --gradient-secondary: linear-gradient(135deg, #f6ad55 0%, #fbd38d 100%);
}

/* === CSS Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Base Styles === */
html {
  scroll-behavior: smooth;
}

/* Global Image Reset */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Images */
img[loading="lazy"] {
  object-fit: cover;
}

/* === Accessibility === */
/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--light-color);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 10000;
  font-weight: 600;
  transition: var(--transition);
}

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

/* Screen reader only text */
.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;
}

/* === Utility Classes === */

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

/* Margin spacing */
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }

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

/* Padding spacing */
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.p-2xl { padding: var(--spacing-2xl); }

.px-xs { padding-left: var(--spacing-xs); padding-right: var(--spacing-xs); }
.px-sm { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
.px-md { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-lg { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
.px-xl { padding-left: var(--spacing-xl); padding-right: var(--spacing-xl); }

.py-xs { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

/* Display utilities */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-container { max-width: var(--container-width); }

/* Border radius utilities */
.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-small); }
.rounded-lg { border-radius: var(--border-radius-large); }
.rounded-full { border-radius: 50%; }

/* Shadow utilities */
.shadow { box-shadow: var(--box-shadow); }
.shadow-light { box-shadow: var(--box-shadow-light); }
.shadow-heavy { box-shadow: var(--box-shadow-heavy); }

/* Transition utilities */
.transition { transition: var(--transition); }
.transition-fast { transition: var(--transition-fast); }

/* === Container Patterns === */

/* Standard page container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Section container with standard spacing */
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-sm {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.section-lg {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

/* Card pattern */
.card {
  background: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-xl);
  transition: var(--transition);
}

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

/* Button group pattern */
.btn-group {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
}

/* Image with overlay pattern */
.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.image-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.7), rgba(66, 153, 225, 0.3));
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.image-overlay:hover::before {
  opacity: 1;
}

/* === Responsive Utilities === */

/* Mobile-first responsive utilities */
@media (min-width: 576px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:grid { display: grid; }
  .sm\:hidden { display: none; }
  .sm\:text-left { text-align: left; }
  .sm\:text-center { text-align: center; }
  .sm\:text-right { text-align: right; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
  .md\:hidden { display: none; }
  .md\:text-left { text-align: left; }
  .md\:text-center { text-align: center; }
  .md\:text-right { text-align: right; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
  .lg\:hidden { display: none; }
  .lg\:text-left { text-align: left; }
  .lg\:text-center { text-align: center; }
  .lg\:text-right { text-align: right; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
  .xl\:block { display: block; }
  .xl\:flex { display: flex; }
  .xl\:grid { display: grid; }
  .xl\:hidden { display: none; }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
   font-family: 'Inter', 'Segoe UI', sans-serif;
   font-weight: 600;
   margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
   color: var(--primary-color);
   line-height: 1.25;
   letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(1.875rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    letter-spacing: -0.25px;
}

h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

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

h5 {
    font-size: clamp(0.9rem, 1.8vw, 1.125rem);
    font-weight: 600;
}

h6 {
    font-size: clamp(0.8rem, 1.6vw, 1rem);
    font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--secondary-color);
}

/* === Image Optimization Styles === */
picture {
  display: block;
  width: 100%;
  position: relative;
}

picture img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
}

/* Blog post images */
.blog-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 2rem 0;
  width: 100%;
  background: #f8f9fa;
}

.blog-hero-image {
  width: 100%;
  height: auto;
  min-height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}

.blog-inline-image {
  width: 100%;
  height: auto;
  min-height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  display: block;
}

/* Image loading placeholder */
.image-loading {
  background: linear-gradient(90deg, var(--medium-gray) 25%, rgba(224, 224, 224, 0.5) 50%, var(--medium-gray) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  min-height: 200px;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Image captions */
.image-caption {
  font-size: 0.875rem;
  color: var(--gray-color);
  text-align: center;
  margin-top: 0.75rem;
  padding: 1rem;
  font-style: italic;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e9ecef;
}

/* Responsive image breakpoints */
@media (max-width: 768px) {
  .blog-hero-image {
    height: auto;
    min-height: 250px;
  }

  .blog-card {
    margin-bottom: 1rem;
  }

  .blog-content {
    padding: 1rem;
  }

  .blog-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .blog-excerpt {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .blog-inline-image {
    height: auto;
    min-height: 200px;
    max-height: none;
    margin: 1.5rem 0;
  }

  .blog-image-container {
    margin: 2rem 0;
  }
}

@media (max-width: 576px) {
  .blog-hero-image {
    height: auto;
    min-height: 200px;
  }

  .blog-inline-image {
    height: auto;
    min-height: 180px;
    max-height: none;
    margin: 1.25rem 0;
  }

  .blog-image-container {
    margin: 1.75rem 0;
  }

  .image-caption {
    font-size: 0.85rem;
    padding: 0.85rem;
  }
}
@media (max-width: 480px) {
  .blog-hero-image {
    height: auto;
    min-height: 180px;
  }

  .blog-inline-image {
    height: auto;
    min-height: 160px;
    max-height: none;
    margin: 1rem 0;
  }

  .blog-image-container {
    margin: 1.5rem 0;
  }

  .image-caption {
    font-size: 0.8rem;
    padding: 0.75rem;
  }

  .blog-grid {
    gap: 1rem;
  }

  .blog-main {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-sidebar {
    padding: 1.5rem;
  }

  .sidebar-section h3 {
    font-size: 1.1rem;
  }

  .tag {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }

  .blog-card {
    margin-bottom: 1rem;
  }

  .blog-content {
    padding: 0.75rem;
  }

  .blog-title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .blog-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
   width: 100%;
   max-width: var(--container-width);
   margin: 0 auto;
   padding: 0 clamp(1rem, 4vw, 2rem);
}

.section-padding {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(60px, 8vw, 100px);
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.section-title p {
  max-width: 600px;
  margin: clamp(1rem, 3vw, 1.5rem) auto 0;
  color: var(--gray-color);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
}

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

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

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* === Buttons === */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
   font-family: 'Inter', sans-serif;
   font-weight: 500;
   font-size: clamp(0.875rem, 2vw, 1rem);
   text-transform: none;
   letter-spacing: 0;
   padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
   border-radius: var(--border-radius);
   border: 2px solid transparent;
   cursor: pointer;
   transition: var(--transition);
   text-align: center;
   min-height: 48px;
   box-sizing: border-box;
   text-decoration: none;
   position: relative;
   overflow: hidden;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--light-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(246, 173, 85, 0.3);
}

.btn-secondary {
  background: var(--gradient-primary);
  color: var(--light-color);
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--light-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 54, 93, 0.3);
}

.btn-light {
  background-color: var(--light-color);
  color: var(--primary-color);
  border-color: var(--light-color);
}

.btn-light:hover {
  background-color: transparent;
  color: var(--light-color);
}

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

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

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

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-text {
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.5rem 0;
  border: none;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--primary-color);
}

.btn-text:hover::after {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* === Header & Navigation === */
.header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1000;
   background: rgba(255, 255, 255, 0.98);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   box-shadow: 0 4px 20px rgba(26, 54, 93, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
   transition: var(--transition);
   border-bottom: 1px solid rgba(246, 173, 85, 0.2);
}

.header .container {
   display: grid;
   grid-template-columns: minmax(120px, auto) 1fr auto;
   align-items: center;
   height: clamp(50px, 6vw, 80px);
   gap: 0.5rem;
   position: relative;
   /* Mobile-first: prevent layout shift */
   padding: 0 env(safe-area-inset-right, 1rem) 0 env(safe-area-inset-left, 1rem);
}

.logo {
  display: flex;
  align-items: center;
  /* Grid column 1: left side */
  justify-self: start;
}

.logo img {
  /* Reserve space to prevent CLS */
  height: clamp(63px, 13.5vw, 109px);
  width: auto;
  max-width: 48vw;
  min-width: 75px;
  object-fit: contain;
   transition: var(--transition);
}

.main-nav {
    display: none;
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px) translateY(10px) scale(0.9);
    filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    will-change: opacity, visibility, transform, filter;
    padding: 0;
    box-sizing: border-box;
}

.nav-links {
   display: flex;
   flex-direction: column;
   width: auto;
   min-width: 220px;
   max-width: 280px;
   align-items: flex-end;
   padding: 0;
   margin: 0;
   list-style: none;
   gap: 0.5rem;
}

.nav-links li {
   margin: 0;
   width: 100%;
   text-align: right;
   position: relative;
   opacity: 0;
   transform: translateY(50px) scale(0.95);
   transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   will-change: opacity, transform;
   backface-visibility: hidden;
}

.nav-links a {
   color: #ffffff !important;
   font-family: 'Inter', sans-serif;
   font-weight: 500;
   font-size: 0.9rem;
   text-transform: none;
   white-space: nowrap;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
   padding: 0.75rem 1.25rem;
   min-height: 44px;
   border-radius: 12px;
   transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   position: relative;
   will-change: transform, background, box-shadow;
   backface-visibility: hidden;
   overflow: hidden;
   margin: 0;
   background: rgba(17, 17, 17, 0.6);
   border: none;
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   box-shadow: 0 0 20px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff !important;
  background: rgba(17, 17, 17, 0.8);
  transform: scale(1.05) translateZ(0);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Enhanced touch interactions for mobile */
.nav-links a:active {
  transform: scale(0.98) translateZ(0);
  transition-duration: 0.1s;
}

/* Improved mobile responsiveness */
@media (max-width: 480px) {
  .mobile-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
    min-height: 52px;
    min-width: 52px;
  }
  
  .nav-links {
    max-width: 260px;
    min-width: 200px;
  }
  
  .nav-links a {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }
}

/* Enhanced animation performance */
@media (prefers-reduced-motion: reduce) {
  .mobile-toggle,
  .mobile-toggle span,
  .nav-links li,
  .nav-links a,
  .main-nav {
    transition-duration: 0.1s;
    animation-duration: 0.1s;
  }
  
  .main-nav.active .nav-links li {
    animation: none;
    transition-delay: 0s;
  }
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.header-cta {
   display: none;
   align-items: center;
   margin-left: 1rem;
   margin-right: 1rem;
   flex-shrink: 0;
   flex-direction: column;
}

.phone-number {
   display: flex;
   align-items: center;
   margin-bottom: 0.5rem;
   color: var(--primary-color);
   font-weight: 600;
   white-space: nowrap;
   font-size: 0.8rem;
   padding: 0.5rem;
   min-height: 44px;
}

.phone-number i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.mobile-toggle {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   background: rgba(17, 17, 17, 0.6);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border: none;
   cursor: pointer;
   padding: 1rem;
   min-height: 56px;
   min-width: 56px;
   border-radius: 50%;
   transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   position: fixed;
   bottom: 2rem;
   right: 2rem;
   z-index: 1001;
   box-shadow: 0 0 20px rgba(0, 0, 0, 0.2), 0 8px 25px rgba(0, 0, 0, 0.15);
   will-change: transform, background, box-shadow;
   backface-visibility: hidden;
   transform: translateZ(0);
}

.mobile-toggle span {
   display: block;
   width: 24px;
   height: 2px;
   background-color: var(--light-color);
   margin: 3px 0;
   border-radius: 2px;
   transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   transform-origin: center;
   will-change: transform, opacity;
   backface-visibility: hidden;
}

.mobile-toggle:hover {
  background: rgba(17, 17, 17, 0.8);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mobile-toggle:hover span {
  background-color: var(--light-color);
}

.mobile-toggle:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

/* Improve mobile interaction area */
.mobile-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-toggle span {
  pointer-events: none;
}

.mobile-toggle.active {
  background: var(--gradient-secondary);
  transform: scale(1.05);
}

.mobile-toggle.active span {
  background-color: var(--primary-color);
}

.mobile-toggle.active span:nth-child(1) {
   transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-toggle.active span:nth-child(3) {
   transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu header - hidden for floating action menu */
.mobile-menu-header {
  display: none;
}

.menu-title {
  color: #ffffff !important;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.mobile-close {
  background: linear-gradient(135deg, rgba(246, 173, 85, 0.9), rgba(26, 54, 93, 0.8));
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-size: 1.4rem;
  padding: 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(246, 173, 85, 0.3);
}

.mobile-close:hover {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.9), rgba(246, 173, 85, 0.8));
  border-color: var(--secondary-color);
  transform: scale(1.1) rotate(90deg);
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(26, 54, 93, 0.4);
}

/* Mobile menu footer - hidden for floating action menu */
.mobile-menu-footer {
  display: none;
}

.mobile-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--secondary-color), rgba(246, 173, 85, 0.8));
  color: var(--primary-color);
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(246, 173, 85, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-phone-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(246, 173, 85, 0.5);
  background: linear-gradient(135deg, rgba(246, 173, 85, 0.9), var(--secondary-color));
}

.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.mobile-menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-color);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.mobile-menu-social a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Enhanced Mobile Menu Animations */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Circular reveal animation keyframes - positioned for bottom-right hamburger */
@keyframes circularReveal {
  from {
    clip-path: circle(30px at calc(100% - 2rem - 28px) calc(100% - 2rem - 28px));
  }
  to {
    clip-path: circle(1200px at calc(100% - 2rem - 28px) calc(100% - 2rem - 28px));
  }
}

@keyframes circularClose {
  from {
    clip-path: circle(1200px at calc(100% - 2rem - 28px) calc(100% - 2rem - 28px));
  }
  to {
    clip-path: circle(30px at calc(100% - 2rem - 28px) calc(100% - 2rem - 28px));
  }
}

/* Mobile-specific circular animations */
@media (max-width: 480px) {
  @keyframes circularReveal {
    from {
      clip-path: circle(26px at calc(100% - 1.5rem - 26px) calc(100% - 1.5rem - 26px));
    }
    to {
      clip-path: circle(1000px at calc(100% - 1.5rem - 26px) calc(100% - 1.5rem - 26px));
    }
  }

  @keyframes circularClose {
    from {
      clip-path: circle(1000px at calc(100% - 1.5rem - 26px) calc(100% - 1.5rem - 26px));
    }
    to {
      clip-path: circle(26px at calc(100% - 1.5rem - 26px) calc(100% - 1.5rem - 26px));
    }
  }
}

/* Enhanced menu container animations */
.main-nav {
  will-change: clip-path, opacity, visibility;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.main-nav.active {
     display: flex !important;
     opacity: 1 !important;
     visibility: visible !important;
     transform: translateX(0) translateY(0) scale(1) !important;
     filter: blur(0px) !important;
     clip-path: circle(1200px at calc(100% - 2rem - 28px) calc(100% - 2rem - 28px));
}

/* Mobile-specific active state */
@media (max-width: 480px) {
  .main-nav.active {
    clip-path: circle(1000px at calc(100% - 1.5rem - 26px) calc(100% - 1.5rem - 26px));
  }
}

/* Enhanced navigation item animations */
.main-nav.active .nav-links li {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  will-change: opacity, transform;
}

/* Staggered animation delays - enhanced timing */
.main-nav.active .nav-links li:nth-child(1) { 
  transition-delay: 0.2s; 
  animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.main-nav.active .nav-links li:nth-child(2) { 
  transition-delay: 0.27s; 
  animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.main-nav.active .nav-links li:nth-child(3) { 
  transition-delay: 0.34s; 
  animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.main-nav.active .nav-links li:nth-child(4) { 
  transition-delay: 0.41s; 
  animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.main-nav.active .nav-links li:nth-child(5) { 
  transition-delay: 0.48s; 
  animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.main-nav.active .nav-links li:nth-child(6) { 
  transition-delay: 0.55s; 
  animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.main-nav.active .nav-links li:nth-child(7) { 
  transition-delay: 0.62s; 
  animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


/* Dropdown Menu - Mobile First */
.has-dropdown {
   position: relative;
}

.has-dropdown > a {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
}

.has-dropdown > a::after {
   content: '▼';
   margin-left: 0.75rem;
   font-size: 0.9rem;
   transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   color: rgba(255, 255, 255, 0.8);
}

.has-dropdown.open > a::after {
   transform: rotate(180deg);
   color: var(--secondary-color);
}

.dropdown {
   position: static;
   background: transparent;
   border-radius: 12px;
   margin: 0.5rem 0 0 0;
   padding: 0;
   max-height: 0;
   overflow: hidden;
   opacity: 0;
   transform: translateX(10px) translateY(-5px);
   filter: blur(5px);
   transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
   z-index: 10000;
   border: none;
}

.has-dropdown.open .dropdown {
   max-height: 500px;
   opacity: 1;
   transform: translateX(0) translateY(0);
   filter: blur(0px);
}

.dropdown li {
   margin: 0;
   width: 100%;
   list-style: none;
}

.dropdown li:first-child a {
   border-radius: 16px 16px 8px 8px;
   margin-top: 0.5rem;
}

.dropdown li:last-child a {
   border-radius: 8px 8px 16px 16px;
   margin-bottom: 0.5rem;
}

.dropdown a {
   display: inline-flex;
   align-items: center;
   padding: 0.75rem 1.25rem;
   font-size: 0.85rem;
   color: #ffffff !important;
   min-height: 40px;
   border-radius: 12px;
   margin: 0.25rem 0;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   font-weight: 500;
   background: rgba(17, 17, 17, 0.6);
   border: none;
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   box-shadow: 0 0 20px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.15);
   position: relative;
   overflow: hidden;
   opacity: 0;
   transform: translateX(20px);
}

.dropdown a::before {
   content: '';
   position: absolute;
   left: 0;
   top: 0;
   width: 4px;
   height: 100%;
   background: var(--secondary-color);
   transform: scaleY(0);
   transition: transform 0.3s ease;
}

.dropdown a:hover::before,
.dropdown a:focus::before {
   transform: scaleY(1);
}

.dropdown a:hover {
   background: rgba(17, 17, 17, 0.8);
   color: #ffffff !important;
   transform: translateX(-2px) scale(1.02);
   box-shadow: 0 0 25px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.has-dropdown.open .dropdown a {
   opacity: 1;
   transform: translateX(0);
}

.has-dropdown.open .dropdown li:nth-child(1) a { transition-delay: 0.1s; }
.has-dropdown.open .dropdown li:nth-child(2) a { transition-delay: 0.15s; }
.has-dropdown.open .dropdown li:nth-child(3) a { transition-delay: 0.2s; }
.has-dropdown.open .dropdown li:nth-child(4) a { transition-delay: 0.25s; }
.has-dropdown.open .dropdown li:nth-child(5) a { transition-delay: 0.3s; }
.has-dropdown.open .dropdown li:nth-child(6) a { transition-delay: 0.35s; }
.has-dropdown.open .dropdown li:nth-child(7) a { transition-delay: 0.4s; }

/* Sticky Header */
.header.sticky {
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
   background-color: var(--light-color);
}

.header.sticky .container {
   height: 50px;
}

.header.sticky .logo img {
   height: 35px;
}

/* === Hero Section === */
.hero {
   position: relative;
   min-height: clamp(500px, 80vh, 700px);
   background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(66, 153, 225, 0.8) 100%),
               linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
               url('../images/SSSAutoRepairFrontofShop.webp');
   background-size: cover;
   background-position: center;
   background-attachment: scroll;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-top: clamp(60px, 8vw, 80px);
   color: var(--light-color);
   overflow: hidden;
}

.hero-content {
   text-align: center;
   max-width: 800px;
   margin: 0 auto;
   padding: clamp(1rem, 4vw, 2rem);
   position: relative;
   z-index: 2;
   animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--light-color);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.4;
}

.chicago-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-secondary);
  color: var(--primary-color);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 1rem);
  text-transform: none;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 50px;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 4px 12px rgba(246, 173, 85, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: clamp(1rem, 3vw, 1.5rem);
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
  }
}

/* === Services Section === */
.services {
    background: linear-gradient(to bottom, var(--light-color) 0%, var(--accent-color) 100%);
    padding: clamp(3rem, 8vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(66, 153, 225, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 2;
}

.service-card {
  background: var(--light-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid var(--medium-gray);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(66, 153, 225, 0.1);
  border-color: var(--primary-light);
}

.service-img {
  height: clamp(180px, 25vw, 220px);
  overflow: hidden;
  position: relative;
}

.service-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.service-content {
  padding: clamp(1.25rem, 4vw, 2rem);
  position: relative;
  background: var(--light-color);
}

.service-icon {
  display: none;
}

/* Service icon and related styles removed */

.service-card h3 {
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
}

.service-card p {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  color: var(--gray-color);
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

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

/* === About Section === */
.about {
   padding: 3rem 0;
}

.about-grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 2rem;
   align-items: center;
}

.about-img {
   position: relative;
   border-radius: var(--border-radius);
   overflow: hidden;
   box-shadow: var(--box-shadow);
   width: 100%;
   height: 250px;
   order: -1;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-img::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 5px solid var(--secondary-color);
  border-radius: var(--border-radius);
  z-index: -1;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
}

.about-content .btn {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

.stats {
   display: flex;
   flex-direction: column;
   gap: 1rem;
   margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  background-color: var(--accent-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary-color);
}

/* === Testimonials Section === */
.testimonials {
   padding: 3rem 0;
   background-color: var(--primary-color);
   color: var(--light-color);
}

.testimonials .section-title h2 {
  color: var(--light-color);
}

.testimonials .section-title h2::after {
  background-color: var(--secondary-color);
}

.testimonials .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.stars {
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.customer-info {
  display: flex;
  align-items: center;
}

.customer-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.customer-name h3,
.customer-name h4 {
  margin-bottom: 0.25rem;
  color: var(--light-color);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
}

.customer-name span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

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

/* === Testimonials Grid Layout === */
.testimonials-carousel {
    /* Section container for testimonials */
    padding: 3rem 0;
}

.carousel-container {
    /* Show carousel container for grid layout */
    display: block;
    width: 100%;
}

.carousel-track {
    /* Convert carousel track to grid container */
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.carousel-nav {
    /* Hide navigation buttons in grid mode */
    display: none;
}

.carousel-indicators {
    /* Hide indicators in grid mode */
    display: none;
}

/* Show all testimonial cards in grid */
.testimonial-card {
    opacity: 1;
    transform: none;
    min-width: auto;
    flex: none;
    scroll-snap-align: none;
    display: block;
    visibility: visible;
}

/* === Trust Indicators === */
.trust-indicators {
   padding: 3rem 0;
   background-color: var(--accent-color);
}

.trust-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
   gap: 1.5rem;
}

.trust-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.trust-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.trust-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.rating {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.trust-item p {
  color: var(--gray-color);
  margin-bottom: 0;
}

/* === Blog Links Section === */
.blog-links {
   padding: 3rem 0;
   background-color: var(--accent-color);
}

.blog-grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 1.5rem;
   margin-bottom: 2rem;
}

.blog-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.blog-content h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.blog-content h3 a:hover {
  color: var(--secondary-color);
}

.blog-content p {
  color: var(--gray-color);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

/* === Chicago Area Section === */
.chicago-area {
   padding: 3rem 0;
   text-align: center;
}

.chicago-area h2 {
  margin-bottom: 1rem;
}

.chicago-area p {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--gray-color);
}

.chicago-map {
  position: relative;
}

.skyline {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: block;
  box-sizing: border-box;
}

.chicago-map iframe {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* === Contact Preview Section === */
.contact-preview {
   padding: 3rem 0;
   background-color: var(--accent-color);
}

.contact-grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 2rem;
   align-items: center;
}

.contact-info h2 {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-icon {
  background-color: var(--primary-color);
  color: var(--light-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-text h3,
.contact-text h4 {
  margin-bottom: 0.25rem;
  color: var(--primary-color);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
}

.contact-text p {
  margin-bottom: 0;
  color: var(--gray-color);
}

.hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.contact-cta {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-cta h3 {
  margin-bottom: 1rem;
}

.contact-cta p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
}

.contact-cta .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* === Call to Action Section === */
.cta {
   padding: 3rem 0;
   background-color: var(--secondary-color);
   text-align: center;
}

.cta-content {
   display: grid;
   grid-template-columns: 1fr;
   gap: 2rem;
   align-items: center;
   max-width: 100%;
   margin: 0 auto;
}

.cta-text h3 {
   color: var(--primary-color);
   font-size: 1.5rem;
   margin-bottom: 1rem;
}

.cta-text p {
   color: var(--primary-dark);
   margin-bottom: 1.5rem;
}

.urgency-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
}

.highlight-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}


.cta-guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.cta-guarantee i {
  color: var(--primary-color);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.cta-urgent {
  animation: pulse 2s infinite;
  position: relative;
}

.cta-urgent::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light), var(--secondary-color));
  border-radius: inherit;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === Urgency Elements === */
.urgency-banner {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--secondary-color);
}

.urgency-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.urgency-text i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}


.urgency-note {
  margin-top: 1rem;
}

.urgency-note small {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Responsive adjustments for CTA */
@media (max-width: 768px) {
  .cta-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .urgency-highlights {
    align-items: center;
  }

}

/* === Newsletter Section === */
.newsletter {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--light-color);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.newsletter-text h2 {
   color: var(--light-color);
   margin-bottom: 1rem;
   font-size: 1.75rem;
}

.newsletter-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.newsletter-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--light-color);
  font-weight: 600;
}

.benefit-item i {
  color: var(--secondary-color);
  font-size: 1.1rem;
  width: 20px;
}

.newsletter-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-row {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  font-size: 1rem;
  transition: var(--transition);
}

.form-row input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-row input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(217, 177, 16, 0.2);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.checkmark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin-right: 0.5rem;
  transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: bold;
}

.btn-newsletter {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.newsletter-privacy {
  text-align: center;
  margin-top: 1rem;
}

.newsletter-privacy small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* === Footer === */
.footer {
   background-color: var(--accent-color);
   color: var(--text-color);
   padding: 3rem 0 0;
}

.footer-grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 2rem;
   margin-bottom: 2rem;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--gray-color);
  margin-bottom: 1rem;
}

.footer-col h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-color);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

/* Footer contact links (phone and email) */
.footer-col a[href^="tel:"],
.footer-col a[href^="mailto:"] {
  color: var(--gray-color);
  transition: var(--transition);
}

.footer-col a[href^="tel:"]:hover,
.footer-col a[href^="mailto:"]:hover {
  color: var(--secondary-color);
}

.footer-col i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
  width: 20px;
}

.social-links {
  display: flex;
  margin-top: 1.5rem;
}

.social-links li {
  margin-right: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: var(--gray-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.copy {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.copy p {
  margin-bottom: 0;
  color: var(--gray-color);
  font-size: 0.875rem;
}

.copy a {
  color: var(--gray-color);
}

.copy a:hover {
  color: var(--secondary-color);
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* === Forms === */
.form-group {
   margin-bottom: 1.5rem;
}

label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--primary-color);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    height: 60px !important;
    min-width: 44px !important;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.1);
}

textarea {
  height: auto !important;
  min-height: 150px;
  padding: 0.75rem;
  resize: vertical;
}

input.error,
textarea.error,
select.error {
  border-color: var(--danger-color);
}

.error-msg {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

input[type="submit"] {
  width: auto;
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="submit"]:hover {
  background-color: var(--primary-dark);
}

/* === Animations === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Data-animate attribute animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fadeInUp"] {
  transform: translateY(30px);
}

[data-animate="fadeInUp"].animate {
  transform: translateY(0);
}

[data-animate="slideInLeft"] {
  transform: translateX(-30px);
}

[data-animate="slideInLeft"].animate {
  transform: translateX(0);
}

[data-animate="slideInRight"] {
  transform: translateX(30px);
}

[data-animate="slideInRight"].animate {
  transform: translateX(0);
}

[data-animate="scaleIn"] {
  transform: scale(0.9);
}

[data-animate="scaleIn"].animate {
  transform: scale(1);
}

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

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Apply animations to sections */
.services-grid .service-card:nth-child(odd) {
  animation: slideInLeft 0.8s ease-out;
}

.services-grid .service-card:nth-child(even) {
  animation: slideInRight 0.8s ease-out;
}

.testimonials-grid .testimonial-card {
  animation: fadeInUp 0.8s ease-out;
}

.about-grid .about-img {
  animation: slideInLeft 0.8s ease-out;
}

.about-grid .about-content {
  animation: slideInRight 0.8s ease-out;
}

/* Enhanced hover effects with performance optimizations */
.service-card {
  will-change: transform;
  contain: layout style paint;
  backface-visibility: hidden;
  perspective: 1000px;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.btn {
  will-change: transform;
  contain: layout style;
  backface-visibility: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-card {
  will-change: transform;
  contain: layout style paint;
  backface-visibility: hidden;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Lazy loading optimization */
img[loading="lazy"] {
  will-change: auto;
  contain: layout style;
}

/* Loading states */
.btn.loading {
  position: relative;
  color: transparent !important;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--light-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Enhanced form states */
input.success,
textarea.success,
select.success {
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

input.error,
textarea.error,
select.error {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Ripple effect for buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Touch device optimizations */
.touch-device .btn {
  min-height: 44px;
  min-width: 44px;
}

.touch-device .nav-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Enhanced focus states for accessibility */
.btn:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--light-color), 0 0 0 4px var(--secondary-color);
}

/* Skip link focus enhancement */
.skip-link:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #FFFF00;
    --text-color: #000000;
    --light-color: #FFFFFF;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Service Icons */
.icon-brake {
  object-position: 0 0; /* Top left */
}

.icon-electrical {
  object-position: -100px 0; /* Top center */
}

.icon-transmission {
  object-position: -200px 0; /* Top right */
}

.icon-oil {
  object-position: 0 -100px; /* Bottom left */
}

.icon-diagnostic {
  object-position: -100px -100px; /* Bottom center */
}

.icon-wrench {
  object-position: -200px -100px; /* Bottom right */
}

/* === Responsive Styles - Mobile First === */

/* iPhone SE and small phones */
@media (min-width: 480px) {
  .container {
    max-width: 460px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Small tablets and up */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .hero h1 {
    font-size: 2.125rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

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

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

  .newsletter-benefits {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .benefit-item span {
    font-size: 0.9rem;
  }
}

/* Tablets and up */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

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

  .hero {
    min-height: clamp(600px, 70vh, 800px);
  }

  .chicago-badge::before {
    content: '📍';
    margin-right: 0.25rem;
  }

  /* Hide floating action menu on desktop */
  .mobile-toggle {
    display: none;
  }

  /* Show desktop navigation */
  .main-nav {
    display: flex !important;
    position: static;
    bottom: auto;
    right: auto;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    transition: none;
    z-index: auto;
  }

  .mobile-menu-header,
  .mobile-menu-footer {
    display: none;
  }

  .nav-links {
    flex-direction: row;
    max-width: none;
    min-width: auto;
    gap: 2rem;
    align-items: center;
  }

  .nav-links li {
    margin: 0;
    width: auto;
    opacity: 1;
    transform: none;
    text-align: left;
    transition: none;
  }

  .nav-links a {
    color: var(--text-color) !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    margin: 0;
    border-radius: 0;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none !important;
    border: none !important;
    position: relative;
    display: flex;
    min-height: auto;
  }

  .nav-links a::before {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary-color) !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-secondary);
  }

  .header-cta {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-right: 0.5rem;
  }

  /* Desktop dropdown styles */
  .has-dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--gray-color);
  }

  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--light-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    min-width: 250px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    max-height: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scaleY(1);
    transform-origin: top;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
  }

  .dropdown a {
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    margin: 0;
    border-radius: 0;
    background: transparent;
  }

  .dropdown a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: none;
  }

  .header .container {
    height: 70px;
  }

  .logo img {
    height: 45px;
  }


  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
    margin-top: 70px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-img {
    order: 0;
  }

  .about-img::after {
    display: block;
  }

  .stats {
    flex-direction: row;
    gap: 2rem;
  }

  .stat-item {
    margin-right: 1rem;
  }

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

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

  .contact-grid {
    grid-template-columns: 3fr 2fr;
  }

  .cta-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .cta-text h3 {
    font-size: 2rem;
  }

  .cta-text p {
    margin-bottom: 2rem;
  }

  .newsletter-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .newsletter-text h2 {
    font-size: 2.25rem;
  }

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

/* Desktop and up */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

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

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

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

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .section-title h2 {
    font-size: 2.5rem;
  }
}

/* Large desktop and up */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

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

  .service-card {
    border-radius: 20px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.4rem;
  }
}

/* Enhanced mobile optimizations */
@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    height: 70vh;
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  /* Mobile menu specific optimizations */
  .nav-links {
    max-width: 100%;
    padding: 0 1rem;
    margin: 1rem 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
    width: calc(100% - 2rem);
  }

  .nav-links a {
    padding: clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    min-height: 50px;
  }

  .dropdown {
    margin: 0.5rem 0 0 0;
    border-radius: 12px;
  }

  .dropdown a {
    padding: 0.875rem 1.5rem;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    min-height: 48px;
    margin: 0.2rem 0.5rem;
  }

  .mobile-menu-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .mobile-menu-footer {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .services {
    padding: 2rem 0;
  }

  .service-card {
    padding: 1rem;
  }

  .service-content {
    padding: 1rem 0;
  }

  .about {
    padding: 2rem 0;
  }

  .about-content h2 {
    margin-bottom: 1rem;
  }

  .stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    margin-right: 0;
    margin-bottom: 0;
    padding: 1.5rem;
  }

  .contact-preview {
    padding: 2rem 0;
  }

  .contact-item {
    margin-bottom: 1.5rem;
  }

  .newsletter {
    padding: 3rem 0;
  }

  .newsletter-form {
    padding: 1.5rem;
  }

  .footer {
    padding: 2rem 0 0;
  }

  .footer-col {
    margin-bottom: 2rem;
  }

  /* Form improvements for mobile */
  .form-row input,
  .form-row textarea {
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    margin-bottom: 0.75rem;
  }
}

/* === BLOG ARTICLE LAYOUT STYLES === */
/* Professional desktop blog layout with consistent text widths and mobile responsiveness */

/* Blog Article Main Container */
.blog article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: var(--light-color);
  line-height: 1.7;
}

/* Article Header Styles */
.post-header {
  text-align: center;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--medium-gray);
  padding-bottom: 1.5rem;
}

.post-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.post-meta {
  color: var(--gray-color);
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Article Content Container */
.post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

/* Typography Hierarchy */
.post-content h2 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 2.5rem 0 1rem 0;
  color: var(--primary-color);
  font-weight: 600;
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
}

.post-content h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 2rem 0 0.75rem 0;
  color: var(--primary-color);
  font-weight: 600;
}

.post-content p {
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.post-content ul, .post-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Image Containers within Articles */
.post-content .blog-image-container {
  margin: 2rem 0;
  text-align: center;
}

.post-content .image-caption {
  font-style: italic;
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-color);
  padding: 2.5rem;
  margin: 3rem 0;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light-color);
}

.cta-section p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-button {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  margin-bottom: 1rem;
}

.cta-button:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .blog article {
    padding: 1.5rem 1rem;
  }

  .post-header h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .post-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .post-content h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem 0;
  }

  .post-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
  }

  .cta-section {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }

  .cta-section h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .blog article {
    padding: 1rem 0.75rem;
  }

  .post-header {
    margin-bottom: 2rem;
  }

  .post-header h1 {
    font-size: 1.6rem;
  }

  .post-content h2 {
    font-size: 1.3rem;
    padding-left: 0.75rem;
    border-left-width: 3px;
  }

  .cta-section {
    padding: 1.5rem 1rem;
  }
}

/* Desktop Enhancements */
@media (min-width: 1200px) {
  .blog article {
    padding: 3rem 2rem;
  }

  .post-header h1 {
    font-size: 2.5rem;
  }

  .post-content {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  .post-content h2 {
    font-size: 1.75rem;
  }

  .post-content h3 {
    font-size: 1.4rem;
  }
}

/* === HEADER STYLES === */
/* Professional header and navigation for blog pages */

.header {
  background: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
  padding: 0.5rem 0;
}

.header .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: block;
}

.logo img {
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
  display: inline-block;
  vertical-align: middle;
}

.logo img:hover {
  opacity: 0.9;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 2rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 1rem 0;
  transition: var(--transition);
  display: block;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active {
  color: var(--primary-color);
}

/* Dropdown Styles */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--light-color);
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  margin: 0;
}

.dropdown a {
  padding: 0.75rem 1rem;
  color: var(--text-color);
  border-bottom: none;
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

/* Header CTA - Mobile-first true centering */
.header-cta {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 0.75rem;
  /* Grid item centers itself regardless of siblings */
  text-align: center;
}

.phone-number {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  /* Mobile: stable width and touch target */
  min-width: 88px;
  min-height: 44px;
  white-space: nowrap;
  text-align: center;
  -webkit-tap-highlight-color: rgba(0,0,0,0.08);
}

.phone-number:hover {
  background: var(--primary-color);
  color: var(--light-color);
}

.phone-number i {
  font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Mobile Responsive Navigation */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }

  .phone-number {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-cta {
    gap: 0.5rem;
    margin-right: 0.75rem;
  }

  .phone-number {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  /* Compact header on tablets/phones so it doesn't eat the viewport */
  .header .container {
    height: 64px;
  }

  .logo img {
    max-height: 44px;
  }
}

@media (max-width: 480px) {
  .header .container {
    padding: 0 0.75rem;
    height: 58px;
    /* Keep grid layout but adjust column sizes for mobile */
    grid-template-columns: minmax(80px, auto) 1fr auto;
  }

  .logo img {
    max-height: 40px;
    min-width: 0;
  }

  .phone-number span.phone-text {
    display: none;
  }

  /* Show hamburger button on mobile */
  .hamburger-btn {
    display: flex;
    order: 4;
    /* Grid column 3: right side */
    justify-self: end;
  }
  
  /* Style call now button as hamburger position */
  .call-now-btn {
    order: 3;
    background: var(--gradient-primary);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    padding: 0.75rem;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
    transition: var(--transition);
    margin-left: 0.25rem;
  }
  
  .call-now-btn:hover {
    background: var(--gradient-secondary);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(246, 173, 85, 0.4);
  }
  
  .call-now-btn i {
    font-size: 1.2rem;
    color: var(--light-color);
    margin: 0;
  }
  
  /* Move blog button to hamburger position */
  .phone-number {
    order: 2;
    background: var(--gradient-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    padding: 0.75rem;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.3);
    transition: var(--transition);
  }
  
  .phone-number:hover {
    background: var(--gradient-primary);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
  }
  
  .phone-number i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
  }
  
  /* Fix blog icon truncation */
  .phone-number i.fa-blog {
    font-size: 1.3rem;
  }
  
  /* Ensure header CTA is properly spaced */
  .header-cta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-right: 0.5rem;
  }
}

/* === FOOTER STYLES === */
/* Professional footer for blog pages and main website */

footer {
  background: var(--dark-gray);
  color: var(--light-color);
  padding: 3rem 0 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h3,
.footer-section h4 {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.footer-section p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: #cccccc;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

.footer-bottom {
  background: var(--primary-dark);
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid #555;
}

.footer-bottom p {
  margin: 0;
  color: #cccccc;
  font-size: 0.9rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-bottom a {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Social Links Styling */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--text-color);
  transform: translateY(-2px);
}

/* Mobile Footer Optimizations */
@media (max-width: 768px) {
  footer {
    padding: 2rem 0 0;
    margin-top: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1rem;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 0 0.75rem;
  }

  .footer-bottom p {
    padding: 0 0.75rem;
    font-size: 0.85rem;
  }
}

/* === Service Gallery Styles === */

/* Service Gallery Container */
.service-gallery {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.main-service-image {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.main-service-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.main-service-image img:hover {
  transform: scale(1.02);
}

/* Service Image Grid */
.service-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: calc(var(--border-radius) / 2);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

/* Image Placeholders */
.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: var(--medium-gray);
  border: 2px dashed var(--gray-color);
  border-radius: calc(var(--border-radius) / 2);
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-color);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

.image-placeholder:hover {
  background: var(--accent-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.image-placeholder i {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.image-placeholder span {
  font-weight: 600;
  font-size: 0.7rem;
}

/* Mobile-first responsive design for service galleries */
@media (max-width: 768px) {
  .main-service-image img {
    height: 250px;
  }
  
  .service-image-grid {
    gap: 0.5rem;
  }
  
  .gallery-thumb,
  .image-placeholder {
    height: 60px;
  }
  
  .image-placeholder i {
    font-size: 1rem;
  }
  
  .image-placeholder span {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .main-service-image img {
    height: 200px;
  }
  
  .gallery-thumb,
  .image-placeholder {
    height: 50px;
  }
  
  .image-placeholder span {
    display: none; /* Hide text on very small screens */
  }
}

/* === Performance Optimizations === */

/* Enable hardware acceleration for improved performance */
.btn,
.card,
.image-overlay,
.nav-links a {
  will-change: transform;
}

/* Optimize font loading */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Critical CSS optimizations */
img {
  content-visibility: auto;
}

/* Print styles optimization */
@media print {
  .btn,
  .mobile-toggle,
  .back-to-top,
  .urgency-banner {
    display: none !important;
  }

  .container {
    max-width: none !important;
    padding: 0 !important;
  }

  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* === Persistent Mobile Tap-to-Call Bar === */
/* Injected by js/main.js on every page; hidden on desktop. */
.mobile-call-bar {
  display: none;
}

@media (max-width: 991px) {
  .mobile-call-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: flex;
    background: var(--light-color);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(26, 54, 93, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-call-bar a {
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    min-height: 60px;
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-decoration: none;
    text-align: center;
    color: var(--light-color);
    transition: filter 0.2s ease, transform 0.2s ease;
  }

  .mobile-call-bar a:active {
    transform: translateY(1px);
    filter: brightness(0.94);
  }

  .mobile-call-bar .mcb-call {
    background: var(--primary-color);
  }

  .mobile-call-bar .mcb-text {
    background: #2563eb;
  }

  .mobile-call-bar .mcb-book {
    background: var(--secondary-color);
    color: var(--primary-color);
  }

  .mobile-call-bar .mcb-directions {
    background: #1f2937;
  }

  .mobile-call-bar a i {
    font-size: 1.05rem;
  }

  .mobile-call-bar a span {
    display: block;
    white-space: nowrap;
  }

  /* Reserve space so the fixed bar never covers footer content */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  /* Lift the back-to-top button clear of the call bar */
  .back-to-top {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* === Mobile header layout (authoritative) === */
/* Resolves the legacy duplicate ".header .container" rules (grid vs flex) that
   caused the header CTA buttons to wrap and overflow. On mobile the header is
   just logo + hamburger; Call/Book live in the persistent bottom call bar and
   Blog/Call live inside the slide-out menu, so the header stays clean. */
@media (max-width: 991px) {
  .header .container {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: 60px !important;
    min-height: 60px !important;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .header .logo {
    flex: 0 0 auto;
  }

  .header .logo img {
    max-height: 38px;
    min-width: 0;
    width: auto;
  }

  /* Primary actions are covered by the bottom call bar and the slide-out menu */
  .header-cta {
    display: none !important;
  }

  .hamburger-btn {
    flex: 0 0 auto;
    margin: 0;
  }
}

/* === HERMES MOBILE VISUAL POLISH 20260618 === */
/* Focused mobile craft fixes layered late in the cascade to avoid risky broad refactors. */
@media (max-width: 768px) {
  .hero {
    background-image: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(66, 153, 225, 0.8) 100%),
                      linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
                      url('../images/SSSAutoRepairFrontofShop-mobile.webp');
  }
}

@media (max-width: 991px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero {
    margin-top: 0;
  }

  .mobile-menu-overlay,
  .header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: min(520px, calc(100svh - 112px));
    height: auto;
    padding: clamp(3.25rem, 10svh, 5rem) 1rem 3rem;
    align-items: center;
  }

  .hero-content {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8.6vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: clamp(1rem, 4.25vw, 1.12rem);
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }

  .hero-cta-group {
    gap: 0.75rem;
  }

  .hero-cta-group .btn-secondary {
    display: none;
  }

  .hero-cta-group .btn-primary {
    width: 100%;
    max-width: 320px;
  }

  .page-header {
    min-height: 0;
    padding-top: 5.25rem;
    padding-bottom: 2.5rem;
  }

  .page-header h1 {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
    line-height: 1.12;
  }

  .page-header::before {
    background: rgba(26, 54, 93, 0.62);
  }

  .page-header h1,
  .page-header p {
    color: var(--light-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }

  .page-header p {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0;
  }

  .services,
  .about,
  .contact-preview {
    padding: 2.5rem 0;
  }

  .services-grid,
  .blog-grid {
    gap: 1rem;
  }

  .service-card {
    padding: 0;
  }

  .service-img {
    height: 140px;
  }

  .service-content {
    padding: 1rem;
  }

  .service-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
  }

  .btn {
    min-height: 48px;
  }
}

/* Blog article mobile polish */
.blog-post .blog-content {
  padding: 0;
}

.blog-post h1 {
  font-size: clamp(1.65rem, 6.5vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin-bottom: 0.9rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: #647082;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #a0aec0;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  align-items: center;
  color: #647082;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.75rem 0 1.1rem;
}

.blog-meta .author-info,
.blog-meta .reading-info {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.article-content a {
  color: var(--primary-color);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(246, 173, 85, 0.8);
}

.article-content a:hover {
  color: #ed8936;
}

.faq-section details {
  padding: 0;
  overflow: hidden;
}

.faq-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 1rem 1.15rem;
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 1.2rem;
}

.faq-section details[open] summary::after {
  content: "–";
}

.faq-section details p {
  margin: 0;
  padding: 0 1.15rem 1rem;
  line-height: 1.65;
}

@media (max-width: 576px) {
  .blog-post h1 {
    font-size: clamp(1.55rem, 7.4vw, 1.95rem);
  }

  .breadcrumb li[aria-current="page"] {
    display: none;
  }

  .blog-meta {
    font-size: 0.86rem;
  }

  .blog-featured-image {
    margin: 1rem -0.25rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .blog-featured-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .blog-featured-image figcaption {
    font-size: 0.82rem;
    line-height: 1.45;
    padding: 0.7rem 0.85rem;
  }

  .cta-section {
    padding: 1.2rem;
    margin: 1.8rem 0;
    text-align: left;
  }

  .cta-section h3 {
    font-size: 1.25rem;
  }

  .cta-button {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0.65rem 0 0;
    min-height: 48px;
  }
}

/* Mobile touch/focus upgrades */
.dropdown a {
  min-height: 44px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

.mobile-call-bar .mcb-call,
.mobile-call-bar .mcb-book {
  flex: 1.35;
}

.mobile-call-bar a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 3px var(--secondary-color);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(26, 54, 93, 0.35);
  outline-offset: 2px;
  border-color: var(--primary-color);
  box-shadow: none;
}

/* === HERMES HOMEPAGE PSI MOBILE PERFORMANCE FIX 20260618 === */
.home-hero {
  background-image: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(66, 153, 225, 0.8) 100%),
                    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.88) 0%, rgba(66, 153, 225, 0.78) 100%),
              linear-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.home-hero .hero-content {
  z-index: 2;
}

@media (max-width: 576px) {
  .home-hero {
    background-image: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(66, 153, 225, 0.8) 100%);
  }

  .home-hero .hero-content {
    animation: none;
  }

  .services::before,
  .about::before,
  .testimonials::before,
  .blog-preview::before {
    display: none;
  }

  .service-card,
  .testimonial-card,
  .blog-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 576px) {
  .hero-content,
  .service-card,
  .testimonial-card,
  .blog-card,
  .mobile-nav-links li {
    animation: none !important;
  }
}

/* === HERMES LOCAL SEO LANDING PAGE MOBILE FIX 20260618 === */
@media (max-width: 576px) {
  .hero:has(#lp-h1) {
    min-height: auto;
    height: auto;
    padding: 6rem 1rem 2.25rem;
    background-position: center top;
  }

  .hero:has(#lp-h1) .hero-content {
    display: block;
    max-width: 100%;
    animation: none;
  }

  .hero:has(#lp-h1) .chicago-badge {
    display: inline-flex;
    margin-bottom: 0.85rem;
    color: #ffffff;
    background: rgba(26, 54, 93, 0.68);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .hero:has(#lp-h1) h1 {
    color: #ffffff;
    font-size: clamp(1.85rem, 8vw, 2.25rem);
    line-height: 1.12;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
    margin: 0 0 0.85rem;
  }

  .hero:has(#lp-h1) p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
  }

  .hero:has(#lp-h1) .hero-cta-group {
    margin-top: 0.5rem;
  }

  .hero:has(#lp-h1) .lp-trust {
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
  }

  .hero:has(#lp-h1) .lp-trust span {
    background: rgba(255, 255, 255, 0.94);
    color: #1a365d;
    font-size: 0.78rem;
    padding: 0.36rem 0.55rem;
  }
}

/* === HERMES MOBILE PSI CRITICAL PATH POLISH 20260618 === */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  .hamburger-line {
    display: block !important;
    width: 25px;
    height: 3px;
    background: #1a365d !important;
    border-radius: 2px;
    opacity: 1 !important;
  }
}

/* === HERMES NEWSLETTER MOBILE LAYOUT FIX 20260620 ===
   The subscribe section was being forced back into two columns on phone-sized
   screens by a later media query, making the form and button bunch up. */
@media (max-width: 767px) {
  .newsletter {
    padding: 2.25rem 0 calc(2.25rem + 86px) !important;
    overflow: hidden;
  }

  .newsletter .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  .newsletter-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
  }

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

  .newsletter-text h2 {
    font-size: clamp(1.7rem, 8vw, 2.15rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 0.8rem !important;
    max-width: 11ch;
    margin-left: auto;
    margin-right: auto;
  }

  .newsletter-text p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    margin: 0 auto 1.25rem !important;
    max-width: 31ch;
  }

  .newsletter-benefits {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.65rem !important;
  }

  .benefit-item {
    flex: 0 1 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-size: 0.88rem !important;
    white-space: nowrap;
  }

  .benefit-item i {
    display: none !important;
  }

  .newsletter-form {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    padding: 1.15rem !important;
    border-radius: 18px !important;
  }

  .newsletter-form .form-row {
    margin-bottom: 1rem !important;
    gap: 0.75rem !important;
  }

  .newsletter-form input[type="text"],
  .newsletter-form input[type="email"] {
    min-height: 52px !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
  }

  .checkbox-label {
    display: grid !important;
    grid-template-columns: 24px 1fr !important;
    gap: 0.75rem !important;
    align-items: start !important;
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  .checkbox-label input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .checkmark {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(255,255,255,0.95) !important;
  }

  .btn-newsletter {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 0.9rem 1rem !important;
    margin-top: 0.25rem !important;
    border-radius: 14px !important;
    font-size: 1.15rem !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .btn-newsletter i {
    display: none !important;
  }

  .newsletter-privacy {
    margin-top: 0.9rem !important;
  }

  .newsletter-privacy small {
    display: block;
    max-width: 30ch;
    margin: 0 auto;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 380px) {
  .newsletter-text h2 {
    font-size: 1.55rem !important;
  }

  .newsletter-form {
    padding: 1rem !important;
  }

  .benefit-item {
    font-size: 0.82rem !important;
    padding: 0.5rem 0.62rem;
  }
}

/* Follow-up: keep mobile newsletter free of decorative blobs over the form. */
@media (max-width: 767px) {
  .newsletter::before,
  .newsletter::after,
  .newsletter-content::before,
  .newsletter-content::after,
  .newsletter-form::before,
  .newsletter-form::after {
    display: none !important;
    content: none !important;
  }

  .newsletter-content,
  .newsletter-text,
  .newsletter-form {
    position: relative !important;
    z-index: 2 !important;
  }

  .newsletter-form {
    overflow: visible !important;
  }
}

/* Hide duplicate floating back-to-top bubble on mobile; it overlaps the subscribe form and the sticky action bar already exists. */
@media (max-width: 767px) {
  .back-to-top,
  .back-to-top.show {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 'Starting at' label above pricing-card prices */
.pricing-card .price-from{display:block;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--gray-color,#718096);margin-bottom:.1rem;line-height:1.2;}
