/* Joe Garage Door Repair - Main Stylesheet */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Warm, friendly color palette */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-secondary: #f59e0b;
  --color-secondary-dark: #d97706;
  --color-accent: #10b981;
  
  /* Neutrals */
  --color-text: #1f2937;
  --color-text-light: #4b5563;
  --color-text-muted: #6b7280;
  --color-background: #ffffff;
  --color-background-warm: #fefdfb;
  --color-background-alt: #f9fafb;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  
  /* Warm accents */
  --color-warm-cream: #fffbeb;
  --color-warm-peach: #fef3c7;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Prevent layout shift while loading */
  aspect-ratio: attr(width) / attr(height);
  background-color: #f3f4f6;
}

/* Loaded image removes placeholder */
img.loaded,
img[src] {
  background-color: transparent;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--font-size-5xl);
  }
}

p {
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
}

.section {
  padding: var(--spacing-3xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--spacing-4xl) 0;
  }
}

.section--alt {
  background-color: var(--color-background-alt);
}

.section--warm {
  background-color: var(--color-warm-cream);
}

.text-center {
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-background);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--spacing-md);
}

/* Logo - Left Side */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 12px;
}

.logo__img {
  height: 40px;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-fast);
}

.logo:hover .logo__img {
  opacity: 0.85;
}

/* Tablet */
@media (min-width: 768px) {
  .logo__img {
    height: 48px;
    max-height: 48px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .logo__img {
    height: 60px;
    max-height: 60px;
  }
}

/* Header CTA Buttons - Right Side (Desktop) */
.header__cta {
  display: none;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header__cta {
    display: flex;
  }
}

.header__cta .btn {
  white-space: nowrap;
}

/* Mobile menu button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: var(--spacing-sm);
  z-index: 1001;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  order: 3;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Navigation - Center (Mobile Slide-in Menu) */
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  background: var(--color-background);
  padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-xl) var(--spacing-xl);
  box-shadow: var(--shadow-xl);
  transition: right var(--transition-base), visibility var(--transition-base);
  overflow-y: auto;
  z-index: 1000;
  display: block !important; /* Override any inline display:none - CRITICAL for mobile menu */
  visibility: hidden; /* Hidden when off-screen */
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.nav__link {
  display: block;
  padding: var(--spacing-md) 0;
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--font-size-lg);
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}


@media (min-width: 1024px) {
  .nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    flex: 1;
    display: flex !important;
    justify-content: center;
    visibility: visible; /* Always visible on desktop */
    right: auto; /* Reset right position */
  }
  
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xl);
  }
  
  .nav__link {
    padding: var(--spacing-sm) var(--spacing-xs);
    border-bottom: none;
    position: relative;
    font-size: var(--font-size-base);
    font-weight: 500;
  }
  
  .nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
  }
  
  .nav__link:hover::after,
  .nav__link.active::after {
    width: 100%;
  }
  
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Navigation Active State - CRITICAL for hamburger menu */
.nav.active {
  display: block !important;
  right: 0;
  visibility: visible;
}

/* Mobile Nav Link Colors Fix - Override Premium inline styles */
/* This ensures nav links are visible (dark text) on mobile white background */
/* Using higher specificity selectors to override inline !important styles */
@media (max-width: 1023px) {
  body .header .nav,
  .header .nav,
  nav.nav {
    background: #fff !important;
    padding-top: 100px !important;
  }
  
  body .header .nav .nav__list .nav__link,
  body .nav .nav__link,
  .header .nav .nav__link,
  nav.nav .nav__link,
  .nav .nav__link,
  a.nav__link {
    color: #1f2937 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 1rem !important;
    display: block !important;
  }
  
  body .header .nav .nav__list .nav__link:hover,
  body .nav .nav__link:hover,
  .header .nav .nav__link:hover,
  nav.nav .nav__link:hover,
  .nav .nav__link:hover,
  a.nav__link:hover {
    color: #2563eb !important;
    background: #f9fafb !important;
  }
  
  body .nav .nav__list,
  .nav .nav__list,
  .nav__list {
    flex-direction: column !important;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.35);
}

.btn--secondary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn--white {
  background: white;
  color: var(--color-primary);
}

.btn--warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
}

.btn--warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: white;
}

.btn--white:hover {
  background: var(--color-background-alt);
  color: var(--color-primary-dark);
}

.btn--sm {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-sm);
}

.btn--lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

/* CTA Button Row - Fit 3 buttons in one row on desktop */
.cta .btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta .btn-group .btn {
  font-size: 15px;
  padding: 10px 26px;
  border-radius: 10px;
  white-space: nowrap;
  min-width: 180px;
}

@media (max-width: 768px) {
  .cta .btn-group {
    flex-direction: column;
    gap: 12px;
  }
  .cta .btn-group .btn {
    width: 100%;
    text-align: center;
    min-width: unset;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  /* Fixed dimensions to prevent CLS */
  contain: layout style;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.35) 100%);
}

@media (min-width: 768px) {
  .hero__overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.05) 100%);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  padding: var(--spacing-2xl) 0;
  display: flex;
  justify-content: center;
}

/* Hero Text Content - Dark overlay behind text */
.hero-text-content {
  background: rgba(0, 0, 0, 0.35);
  padding: 40px 60px;
  border-radius: 18px;
  max-width: 1200px;
  width: 100%;
  backdrop-filter: blur(4px);
  margin: 0 auto;
}

.hero-text-content h1,
.hero-text-content h2 {
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .hero-text-content {
    max-width: 95%;
    padding: 30px;
  }
}

.hero-text-content h1,
.hero-text-content p,
.hero-text-content span,
.hero-text-content .hero__trust-item {
  color: #ffffff !important;
}

.hero-text-content .hero__badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.hero-text-content .hero__trust {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--color-warm-peach);
  color: var(--color-secondary-dark);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.hero__title {
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.hero__text {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.hero__trust-icon {
  color: var(--color-accent);
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--emergency {
  border: 2px solid #e00000;
}

.card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-lg);
}

/* Card Image - Full width service images */
.card__image {
  margin: calc(-1 * var(--spacing-xl)) calc(-1 * var(--spacing-xl)) var(--spacing-lg) calc(-1 * var(--spacing-xl));
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__title {
  margin-bottom: var(--spacing-sm);
}

.card__text {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.card__link:hover {
  gap: var(--spacing-md);
}

/* Card Buttons Row - Learn More + Call Us Today */
.card-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.card-buttons .learn-more {
  font-size: 15px;
  font-weight: 500;
  color: #2a6df4;
  text-decoration: none;
}

.card-buttons .learn-more:hover {
  text-decoration: underline;
}

.card-buttons .call-today {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid #2a6df4;
  border-radius: 8px;
  color: #2a6df4;
  background: white;
  transition: 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.card-buttons .call-today:hover {
  background: #2a6df4;
  color: #ffffff;
}

/* Service cards grid */
.services-grid {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card with image */
.card--image {
  padding: 0;
  overflow: hidden;
}

.card--image .card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card--image .card__body {
  padding: var(--spacing-xl);
}

/* ============================================
   Modern Service Cards (Services Page)
   ============================================ */
.page-header--services {
  text-align: center;
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.page-header--services h1 {
  margin-bottom: var(--spacing-lg);
}

.page-header__subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

.services-section {
  padding-top: var(--spacing-xl);
}

/* Modern Services Grid */
.services-modern-grid {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .services-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-modern-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service Card */
.service-card {
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card--featured {
  border: 2px solid var(--color-primary);
}

.service-card--emergency {
  border: 2px solid #e00000;
}

.service-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card__image {
  transform: scale(1.05);
}

.service-card__badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.service-card__badge--emergency {
  background: #e00000;
  color: white;
}

.service-card__content {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  line-height: 1.3;
}

.service-card__description {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  flex: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.service-tag {
  display: inline-block;
  background: #eef4ff;
  color: #1e4db7;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

a.service-tag:hover {
  text-decoration: underline;
}

.service-card .btn {
  align-self: flex-start;
}

/* Quick Services Grid */
.services-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .services-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-quick-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
  }
}

.quick-service-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-background);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quick-service-link:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.quick-service-link__icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

.quick-service-link__text {
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .quick-service-link__text {
    font-size: var(--font-size-base);
  }
}

/* ============================================
   Why Choose Us
   ============================================ */
.features-grid {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-warm-cream);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__title {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.feature__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ============================================
   Reviews Slider
   ============================================ */
.reviews-slider {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-lg) 0;
}

.reviews-slider__track {
  display: flex;
  gap: var(--spacing-lg);
  transition: transform 0.5s ease;
}

.reviews-slider__controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.reviews-slider__btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.reviews-slider__btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.reviews-slider__dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.reviews-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  transition: all var(--transition-fast);
}

.reviews-slider__dot.active {
  background: var(--color-primary);
  width: 30px;
}

/* Review card */
.review-card {
  flex: 0 0 calc(33.333% - var(--spacing-lg));
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .review-card {
    flex: 0 0 calc(50% - var(--spacing-lg));
  }
}

@media (min-width: 1024px) {
  .review-card {
    flex: 0 0 calc(33.333% - var(--spacing-lg));
  }
}

.review-card__stars {
  display: flex;
  gap: 2px;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}

.review-card__text {
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.review-card__name {
  font-weight: 600;
}

.review-card__location {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Reviews page grid */
.reviews-grid {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Service Area
   ============================================ */
.service-area {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.service-area h2 {
  color: white;
}

.service-area p {
  color: rgba(255, 255, 255, 0.9);
}

.service-area__cities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.service-area__city {
  background: rgba(255, 255, 255, 0.15);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: white;
  text-decoration: none;
  transition: background var(--transition-fast);
}

a.service-area__city:hover {
  background: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

/* Service Area CTA Map & Buttons */
.cta-map {
  width: 100%;
  max-width: 900px;
  height: 350px;
  border: 0;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-btn {
  padding: 14px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.cta-blue {
  background: #1d52ff;
  color: #fff;
}

.cta-blue:hover {
  background: #1641cc;
}

.cta-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cta-orange {
  background: #f7a01c;
  color: #fff;
}

.cta-orange:hover {
  background: #d98a10;
}

@media (max-width: 700px) {
  .cta-map {
    height: 280px;
  }
  .cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  text-align: center;
  background: var(--color-warm-cream);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .cta {
    padding: var(--spacing-3xl);
  }
}

.cta__title {
  margin-bottom: var(--spacing-md);
}

.cta__text {
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
  color: var(--color-text-light);
}

/* Map Wrapper */
.map-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 25px auto;
  border-radius: 12px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 768px) {
  .map-wrapper iframe {
    height: 240px;
  }
}

/* ============================================
   About Section
   ============================================ */
.about-intro {
  display: grid;
  gap: var(--spacing-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr 1fr;
  }
}

.about-intro__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-values {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: var(--spacing-xl);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  background: var(--color-warm-cream);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  margin: 0 auto var(--spacing-lg);
}

.value-card__title {
  margin-bottom: var(--spacing-sm);
}

.value-card__text {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

/* Process steps */
.process-steps {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin: 0 auto var(--spacing-md);
}

.process-step__title {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.process-step__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-grid {
  display: grid;
  gap: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-warm-cream);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.contact-info__value {
  font-weight: 600;
  color: var(--color-text);
}

.contact-info__value a {
  color: var(--color-text);
}

.contact-info__value a:hover {
  color: var(--color-primary);
}

.contact-form {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Accessible Focus Styles for Interactive Elements */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users, keep for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--spacing-md);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
}

/* ============================================
   Service Page
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--color-background-alt) 0%, var(--color-warm-cream) 100%);
  padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
}

@media (min-width: 768px) {
  .page-header {
    padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-3xl);
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-lg);
}

.breadcrumb__separator {
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.service-content {
  display: grid;
  gap: var(--spacing-2xl);
}

@media (min-width: 1024px) {
  .service-content {
    grid-template-columns: 2fr 1fr;
  }
}

.service-main {
  max-width: 700px;
}

.service-main h2 {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-md);
}

.service-main ul {
  list-style: disc;
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.service-main li {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.sidebar-card {
  background: var(--color-background-alt);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
}

.sidebar-card__title {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sidebar-card__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.sidebar-card__link:hover {
  color: var(--color-primary);
  padding-left: var(--spacing-sm);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  text-align: center;
}

.sidebar-cta h3 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #1b2431;
  color: white;
  padding: 60px 0 30px;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer__grid > div {
  flex: 1 1 0;
  min-width: 140px;
}

.footer__brand {
  flex: 1.5 1 0;
  max-width: 280px;
  min-width: 200px;
}

@media (max-width: 1100px) {
  .footer__grid {
    gap: 20px;
  }
  .footer__grid > div {
    min-width: 120px;
  }
}

@media (max-width: 900px) {
  .footer__grid {
    flex-wrap: wrap;
    gap: 25px;
  }
  .footer__grid > div {
    flex: 1 1 calc(33% - 20px);
    min-width: 150px;
  }
  .footer__brand {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .footer__grid > div {
    flex: 1 1 calc(50% - 15px);
  }
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin-bottom: 12px;
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer__text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer__title {
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.footer__link:hover {
  color: white;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact-item a:hover {
  color: white;
}

.footer__bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* ============================================
   Utilities
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phone-link {
  color: inherit;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--color-primary);
}

/* Page min-height */
main {
  min-height: calc(100vh - var(--header-height));
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--spacing-md);
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--spacing-md);
  color: white;
}

/* Service list cards for services index */
.service-list-card {
  display: grid;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .service-list-card {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }
}

.service-list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-list-card__image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.service-list-card__content h3 {
  margin-bottom: var(--spacing-sm);
}

.service-list-card__content p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

/* Sub-services list */
.sub-services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.sub-service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--color-background-alt);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.sub-service-link:hover {
  background: var(--color-primary);
  color: white;
}

/* FAQ Schema styling */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon,
.faq-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon,
.faq-item.open .faq-icon,
.faq-item.active .faq-arrow,
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer,
.faq-item.open .faq-answer {
  padding-top: var(--spacing-md);
}

.faq-answer p {
  color: var(--color-text-light);
}

/* Service image in detail pages */
.service-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Mobile Conversion Booster
   ============================================ */

/* Mobile Sticky CTA Bar - Hidden on desktop */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  /* Sticky Bottom CTA Bar */
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    display: flex;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-sticky-cta a {
    flex: 1;
    padding: 15px 0;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  
  .mobile-sticky-cta .cta-call {
    background: #f7a01c;
  }
  
  .mobile-sticky-cta .cta-book {
    background: #1e4db7;
  }
  
  .mobile-sticky-cta .cta-call:active {
    background: #d88a0c;
  }
  
  .mobile-sticky-cta .cta-book:active {
    background: #163a8c;
  }
  
  /* Add bottom padding to body so content isn't hidden behind sticky bar */
  body {
    padding-bottom: 60px;
  }
  
  /* Larger CTA Buttons on Mobile */
  .btn, a.btn, .cta-buttons a {
    font-size: 18px !important;
    padding: 14px 20px !important;
  }
  
  /* Mobile Text Readability */
  p {
    font-size: 17px;
    line-height: 1.6;
  }
  
  h1 {
    font-size: 26px !important;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 22px !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 20px !important;
    line-height: 1.3;
  }
  
  /* Reduce Margin/Padding Overflow */
  section {
    padding: 20px 12px !important;
  }
  
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* Hero Section Mobile Optimization */
  .hero,
  .hero__content {
    background-position: center;
    background-size: cover;
    min-height: 260px;
  }
  
  .hero-text-content {
    padding: 20px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  /* Google Map Mobile Optimization */
  .map-wrapper iframe {
    height: 280px !important;
  }
  
  /* Remove Hover Effects on Mobile */
  a:hover, button:hover {
    transform: none !important;
  }
  
  .btn:hover, .card:hover {
    transform: none !important;
  }
  
  /* Hide Desktop-Only Elements */
  .desktop-only {
    display: none !important;
  }
  
  /* Trust Icons Mobile */
  .trust-icons ul {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .trust-icons li {
    width: 100%;
    text-align: center;
  }
  
  /* City CTA Buttons Mobile */
  .city-cta {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  /* Service Cards Mobile */
  .service-card {
    margin-bottom: 16px;
  }
  
  /* Footer Mobile - handled by main footer styles */
  
  /* CTA Micro Block Mobile */
  .cta-micro .cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .cta-micro .cta-buttons a {
    width: 100%;
  }
}

/* ============================================
   Fix Header Overlap on Blog & Inner Pages
   ============================================ */

/* Blog hero section - negative margin to offset body padding, then proper top padding */
.blog-hero,
.blog-post-header {
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(var(--header-height) + 40px) !important;
}

/* Mobile adjustments for blog */
@media (max-width: 768px) {
  .blog-hero,
  .blog-post-header {
    padding-top: calc(var(--header-height) + 20px) !important;
  }
}

/* ============================================
   City Hero Image Section
   ============================================ */

.city-hero-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}

.city-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

.city-hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(30, 77, 183, 0.3), transparent);
}

@media (max-width: 768px) {
  .city-hero-image {
    max-height: 300px;
  }
  .city-hero-image img {
    max-height: 300px;
  }
}


/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 41, 55, 0.95);
  color: #fff;
  padding: 16px 20px;
  z-index: 9999;
  backdrop-filter: blur(10px);
}
.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-consent p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
  min-width: 250px;
}
.cookie-consent__buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-consent__link {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.9rem;
}
.cookie-consent__link:hover {
  text-decoration: underline;
}
.cookie-consent__btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-consent__btn:hover {
  background: #1d4ed8;
}
@media (max-width: 600px) {
  .cookie-consent__inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent p {
    min-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM DARK-BLUE TECH DESIGN SYSTEM - Additional Styles
   Added for modern, luxurious UI redesign
   ═══════════════════════════════════════════════════════════════════════════ */

/* Premium Variables */
:root {
  --premium-dark: #0a1628;
  --premium-navy: #0f2744;
  --premium-blue: #1e3a5f;
  --premium-accent: #3b82f6;
  --premium-accent-light: #60a5fa;
  --premium-gold: #f59e0b;
  --premium-success: #10b981;
  --premium-white: #ffffff;
  --premium-gray-100: #f8fafc;
  --premium-gray-200: #e2e8f0;
  --premium-gray-400: #94a3b8;
  --premium-gray-600: #475569;
  --premium-glass: rgba(255,255,255,0.08);
  --premium-glass-border: rgba(255,255,255,0.12);
  --premium-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  --premium-shadow-lg: 0 35px 60px -15px rgba(0,0,0,0.35);
  --premium-radius: 20px;
  --premium-radius-lg: 28px;
  --premium-radius-full: 9999px;
  --premium-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Glassmorphism Card */
.premium-glass-card {
  background: var(--premium-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--premium-glass-border);
  border-radius: var(--premium-radius-lg);
}

/* Premium Gradient Text */
.premium-gradient-text {
  background: linear-gradient(135deg, var(--premium-accent) 0%, var(--premium-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Glow Effect */
.premium-glow {
  position: relative;
}
.premium-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
  border-radius: inherit;
}

/* Premium Shimmer Animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.premium-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Premium Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.premium-float {
  animation: float 6s ease-in-out infinite;
}

/* Premium Border Gradient */
.premium-border-gradient {
  position: relative;
  background: var(--premium-white);
  border-radius: var(--premium-radius);
}
.premium-border-gradient::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--premium-accent), var(--premium-accent-light), var(--premium-gold));
  border-radius: inherit;
  z-index: -1;
}

/* Premium Icon Box */
.premium-icon-box {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(96,165,250,0.15) 100%);
  border-radius: 18px;
  font-size: 2rem;
  transition: var(--premium-transition);
}
.premium-icon-box:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(59,130,246,0.2);
}

/* Premium Stats Counter */
.premium-stat {
  text-align: center;
  padding: 40px;
}
.premium-stat__number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--premium-accent) 0%, var(--premium-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.premium-stat__label {
  font-size: 1.1rem;
  color: var(--premium-gray-600);
  font-weight: 500;
}

/* Premium Badge */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(96,165,250,0.15) 100%);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--premium-radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--premium-accent);
}
.premium-badge--success {
  background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(52,211,153,0.15) 100%);
  border-color: rgba(16,185,129,0.2);
  color: var(--premium-success);
}
.premium-badge--gold {
  background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(251,191,36,0.15) 100%);
  border-color: rgba(245,158,11,0.2);
  color: var(--premium-gold);
}

/* Premium Divider */
.premium-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--premium-gray-200), transparent);
  margin: 60px auto;
  max-width: 400px;
}

/* Premium Testimonial Quote */
.premium-quote {
  position: relative;
  padding-left: 32px;
}
.premium-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -16px;
  font-size: 4rem;
  color: var(--premium-accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Premium Hover Scale */
.premium-hover-scale {
  transition: var(--premium-transition);
}
.premium-hover-scale:hover {
  transform: scale(1.03);
}

/* Premium Hover Lift */
.premium-hover-lift {
  transition: var(--premium-transition);
}
.premium-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--premium-shadow);
}

/* Premium Focus Ring */
.premium-focus:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.3);
}

/* Premium Section Background Pattern */
.premium-pattern-bg {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(59,130,246,0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(245,158,11,0.03) 0%, transparent 50%);
}

/* Premium Mobile Optimizations */
@media (max-width: 768px) {
  .premium-hide-mobile {
    display: none !important;
  }
  .premium-stack-mobile {
    flex-direction: column !important;
  }
  .premium-full-mobile {
    width: 100% !important;
  }
}

/* Premium Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REVIEWS SLIDER - Transform-based slider support
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reviews Slider uses transform: translateX() for sliding */
.reviews-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.reviews-slider__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Review Cards - percentage based for JS calculations */
.review-card {
  flex: 0 0 calc(100% - 24px);
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .review-card {
    flex: 0 0 calc(50% - 24px);
  }
}

@media (min-width: 1024px) {
  .review-card {
    flex: 0 0 calc(33.333% - 24px);
  }
}
