﻿:root {
  --brand: #f10000;
  --text: #111;
  --muted: #666;
  --bg: #fff;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 1rem; }
.header { border-bottom: 1px solid #eee; }
.lang { display: flex; gap: .75rem; font-size: .95rem; }
.hero { padding: clamp(2rem, 5vw, 4rem) 0; }
.hero h1 { margin: 0 0 .5rem 0; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1; }
.hero p { margin: 0 0 1rem 0; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.25rem); }
.cta { display: inline-block; background: var(--brand); color: #fff; padding: .9rem 1.2rem; border-radius: .6rem; font-weight: 700; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid #eee; border-radius: .9rem; padding: 1rem; }
.card h3 { margin: 0 0 .4rem 0; }
.small { font-size: .9rem; color: var(--muted); }

/* ============================================
   MODERN HEADER STYLES
   ============================================ */

/* Sticky header with background effects */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Header container - improved spacing and alignment */
.header-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Left section - logo and hamburger */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Right section - language switcher and CTA */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo styling */
.header-logo {
  display: flex;
  align-items: center;
  height: 50px;
  transition: transform 0.2s ease;
}

.header-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.header-logo:hover {
  transform: scale(1.05);
}

/* Language links styling */
.lang-link {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
}

.lang-link:hover {
  background: #f0f0f0;
  border-color: #ccc;
  transform: translateY(-1px);
  text-decoration: none;
}

.lang-link.active {
  background: var(--brand) !important;
  color: white !important;
  border-color: #d00000 !important;
  font-weight: 700 !important;
}

/* Header CTA Buttons - Apple 2025 Style */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

/* Secondary Buttons - More Prominent */
.header-cta-secondary {
  background: rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-cta-secondary:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.header-cta-secondary:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Primary Button - Red Brand */
.header-cta-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ff3333 100%);
  color: white;
  border: none;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(241, 0, 0, 0.25);
}

.header-cta-primary:hover {
  background: linear-gradient(135deg, #d00000 0%, #f10000 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(241, 0, 0, 0.35);
  text-decoration: none;
}

.header-cta-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(241, 0, 0, 0.3);
}

/* Outline Button - Gray Border */
.header-cta-outline {
  background: transparent;
  border: 2px solid #6b7280;
  color: #6b7280;
}

.header-cta-outline:hover {
  background: #6b7280;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.header-cta-outline:active {
  transform: scale(0.98);
}

/* Responsive header */
@media (max-width: 768px) {
  /* Disable backdrop-filter on mobile for better performance */
  .header {
    background: rgb(255, 255, 255);
    backdrop-filter: none;
  }

  /* Disable backdrop-filter on all mobile elements for performance */
  .lang-dropdown,
  .mobile-nav,
  .mobile-nav-ctas,
  .stat-card,
  .blog-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Solid backgrounds for elements that had backdrop-filter */
  .lang-dropdown,
  .mobile-nav,
  .mobile-nav-ctas {
    background: rgb(255, 255, 255) !important;
  }

  .stat-card {
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .header-container {
    padding: 0.6rem 1rem;
  }

  .header-logo {
    height: 40px;
  }

  .header-right {
    gap: 0.75rem;
  }

  .header-cta-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Ken Burns animation on mobile - run once for 'wow' factor without battery drain */
  .homepage-hero-image img,
  .guide-hero::before,
  .blog-hero::before {
    animation-iteration-count: 1 !important;
    animation-direction: normal !important;
    animation-fill-mode: forwards !important;
    will-change: transform;
  }

  /* Increase touch targets to 44px minimum (Apple/Google recommendation) */
  .lang-globe-btn {
    min-width: 44px !important;
    height: 44px !important;
  }

  .hamburger {
    width: 44px !important;
    height: 44px !important;
  }

  .footer-social-links a {
    width: 48px !important;
    height: 48px !important;
  }

  /* Hide header CTA buttons on mobile - show in hamburger menu instead */
  .header-cta-btn {
    display: none;
  }

  /* iOS zoom prevention - all form inputs need 16px minimum font-size */
  .lang-mobile,
  select,
  input,
  textarea {
    font-size: 16px !important;
    padding: 0.75rem 1rem;
    min-height: 44px;
  }

  /* Testimonial carousel - mobile layout */
  .testimonials-carousel-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .carousel-btn {
    position: static;
    margin: 0 0.5rem;
  }

  .carousel-btn-prev,
  .carousel-btn-next {
    order: 2;
  }

  .homepage-testimonials-carousel {
    order: 1;
  }

  .carousel-dots {
    order: 3;
  }
}

/* Ken Burns animation on desktop/tablet - infinite loop for continuous effect */
@media (min-width: 769px) {
  .homepage-hero-image img,
  .guide-hero::before,
  .blog-hero::before {
    animation-iteration-count: infinite !important;
    animation-direction: alternate !important;
  }
}

/* HERO IMAGE — container width, NO CROP */
.hero-media { margin: 0; }
.hero-media img{
  display:block;
  width:100%;
  height:auto;                 /* preserve 1920x900 aspect */
  margin:0 auto;
  border-radius:.75rem;
  /* critically, NO object-fit and NO fixed height here */
}
/* — overrides: tighter buttons — */
.cta{ padding:.55rem .9rem !important; border-radius:.6rem; font-weight:700; }
.hero .cta{ margin:.25rem 0 .5rem 0 !important; }
.header .cta{ padding:.5rem .8rem !important; }

/* optional: reduce default paragraph spacing in hero a touch */
.hero p{ margin:0 0 .75rem 0 !important; }
/* — FAQ accordion — */
/* ============================================
   APPLE 2025 FAQ STYLES
   ============================================ */

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.faq-item:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.faq-item > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  list-style: none;
  outline: none;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-right: 2rem;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-item > summary::after {
  content: '›';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 1.75rem;
  color: #86868b;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  line-height: 1;
}

.faq-item:hover > summary {
  color: #0071e3;
}

.faq-item:hover > summary::after {
  color: #0071e3;
}

.faq-item[open] {
  background: #f5f5f7;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.06),
    inset 0 0 0 2px rgba(0, 113, 227, 0.1);
}

.faq-item[open] > summary {
  color: #0071e3;
  margin-bottom: 1rem;
}

.faq-item[open] > summary::after {
  transform: translateY(-50%) rotate(270deg);
  color: #0071e3;
}

.faq-item .answer {
  margin-top: 0;
  color: #424245;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
/* — override: buttons to exactly 15px padding — */
.cta{
  display:inline-block !important;
  padding:15px !important;        /* <= exactly 15px all around */
  line-height:1.1 !important;     /* keeps text compact */
}
.prose { max-width: none; }
.prose h1, .prose h2, .prose h3 { max-width: none; }
/* --- width/overflow fix (force) ----------------------------------------- */
.container {
  max-width: 1200px !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

main .container .prose {
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* keep content inside column */
main .container .prose img,
main .container .prose svg,
main .container .prose video { max-width: 100% !important; height: auto !important; display: block; }
main .container .prose table { display: block; max-width: 100% !important; width: 100% !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
main .container .prose pre   { white-space: pre-wrap; word-wrap: break-word; }
main .container .prose a     { word-break: break-word; }
main { overflow-x: hidden; }
/* ----------------------------------------------------------------------- */

/* ============================================
   APPLE 2025 GLOBE LANGUAGE SWITCHER
   ============================================ */

/* Globe Container */
.lang-globe-container {
  position: relative;
}

/* Globe Button - Matches Hamburger Size */
.lang-globe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0 4px;
  cursor: pointer;
  color: #1d1d1f;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.lang-globe-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.lang-globe-btn:active {
  transform: scale(0.96);
}

/* Globe and Chevron Icons */
.globe-icon {
  width: 20px;
  height: 20px;
  color: #1d1d1f;
  flex-shrink: 0;
}

.chevron-icon {
  width: 10px;
  height: 10px;
  color: #6e6e73;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: -2px;
}

.lang-globe-container.active .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu - Frosted Glass Apple Style */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 10px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.lang-globe-container.active .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown Items */
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #1d1d1f;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.lang-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.lang-dropdown-item.active {
  background: rgba(0, 122, 255, 0.08);
  color: #0071e3;
  font-weight: 500;
}

/* Language Code */
.lang-code {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6e6e73;
  min-width: 2rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.lang-dropdown-item.active .lang-code {
  color: #0071e3;
}

/* Language Name */
.lang-name {
  flex: 1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

/* Checkmark Icon for Active Language */
.lang-checkmark {
  width: 16px;
  height: 16px;
  stroke: #0071e3;
  flex-shrink: 0;
}

/* Active state enhancement */
.lang-dropdown-item.active .lang-name {
  color: #0071e3;
}

/* Language switcher - responsive */
@media (max-width: 768px) {
  .lang-desktop { display: none !important; }
  .lang-mobile { display: block !important; }
}
@media (min-width: 769px) {
  .lang-desktop { display: flex !important; }
  .lang-mobile { display: none !important; }
}

/* FAQ grid - responsive */
@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr !important; }
}

/* Header menu links - hide on mobile */
@media (max-width: 768px) {
  .menu-link { display: none !important; }
}


/* Hamburger Menu Styles */
/* ============================================
   APPLE 2025 HAMBURGER MENU & MOBILE NAV
   ============================================ */

/* Hamburger Icon - Clean Modern Design */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.hamburger:active {
  transform: scale(0.96);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background-color: #1d1d1f;
  border-radius: 2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation - Frosted Glass Panel */
.mobile-nav {
  display: block;
  position: fixed;
  top: 0;
  left: -100%;
  width: min(320px, 90vw);
  max-width: 90vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  box-sizing: border-box;
  box-shadow:
    4px 0 24px rgba(0, 0, 0, 0.08),
    2px 0 8px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  padding: 90px 0 120px 0;
  gap: 0;
}

.mobile-nav-content > a,
.mobile-nav-content > .menu-item-with-submenu {
  margin: 0;
}

.mobile-nav-content a {
  padding: 18px 28px;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-content a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0071e3;
  padding-left: 32px;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 12px 28px;
}

/* Submenu Styles - Clean Apple Design */
.menu-item-with-submenu {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.menu-parent {
  display: block;
  padding: 18px 28px;
  color: #1d1d1f;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.menu-parent::after {
  content: '›';
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 1.5rem;
  color: #6e6e73;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item-with-submenu:hover .menu-parent {
  background: rgba(0, 0, 0, 0.04);
  color: #0071e3;
  padding-left: 32px;
}

.menu-item-with-submenu:hover .menu-parent::after {
  transform: translateY(-50%) rotate(90deg);
}

.submenu {
  display: none;
  background: rgba(0, 0, 0, 0.02);
}

.menu-item-with-submenu:hover .submenu {
  display: block;
}

.submenu a {
  padding: 14px 28px 14px 48px;
  color: #424245;
  font-size: 0.9375rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.submenu a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0071e3;
  padding-left: 52px;
}

/* Mobile Nav CTA Buttons Container */
.mobile-nav-ctas {
  position: fixed;
  bottom: 0;
  left: -100%;
  width: min(320px, 90vw);
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  box-sizing: border-box;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.mobile-nav.active + .mobile-nav-ctas {
  left: 0;
}

.mobile-nav-ctas .mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

.mobile-nav-ctas .mobile-cta-secondary {
  background: rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.mobile-nav-ctas .mobile-cta-secondary:active {
  transform: scale(0.98);
  background: rgba(0, 0, 0, 0.12);
}

.mobile-nav-ctas .mobile-cta-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ff3333 100%);
  color: white;
  border: none;
  box-shadow: 0 3px 10px rgba(241, 0, 0, 0.25);
}

.mobile-nav-ctas .mobile-cta-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(241, 0, 0, 0.3);
}

/* Overlay when menu is open */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   MODERN FOOTER STYLES
   ============================================ */

.footer {
  background: #f8f9fa;
  border-top: none;
  padding: 3rem 0 1.5rem 0;
  margin-top: 4rem;
  position: relative;
}

.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, #ff4444 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1rem 0;
}

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

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: none;
  transform: translateX(3px);
}

/* Contact list with icons */
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--brand);
  opacity: 0.8;
}

.footer-contact-list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Social Media Section */
.footer-social {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

.footer-social-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer-social-links a:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(241, 0, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left p {
  margin: 0;
}

.footer-bottom-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.footer-bottom-right a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 2rem 0 1rem 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom-right {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-social-links {
    justify-content: center;
  }
}

/* ============================================
   HOMEPAGE STYLES - Option C Design
   ============================================ */

/* Hero Section - Full-width with gradient overlay */
.homepage-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -1px;
}

.homepage-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.homepage-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 9;
  /* Ken Burns effect - subtle slow zoom */
  animation: kenBurnsZoom 10s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}

/* Ken Burns animation keyframes */
@keyframes kenBurnsZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.3);
  }
}

.homepage-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

.homepage-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 2rem;
}

.homepage-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.homepage-hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  margin: 0 0 2.5rem 0;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.homepage-hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.homepage-hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  margin: 2rem 0 0 0;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  letter-spacing: 0;
}

/* CTA Buttons - Premium Animated */
.homepage-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Keep buttons on one line for larger screens */
@media (min-width: 1024px) {
  .homepage-hero-ctas {
    flex-wrap: nowrap;
  }
}

/* Shine effect overlay */
.homepage-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.homepage-cta-btn:hover::before {
  left: 100%;
}

/* Arrow icon that slides in */
.homepage-cta-btn::after {
  content: '→';
  position: absolute;
  right: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.homepage-cta-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.homepage-cta-btn:hover {
  padding-right: 2.5rem;
}

/* Primary Button (Red) */
.homepage-cta-btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ff3333 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(241, 0, 0, 0.4);
}

.homepage-cta-btn.primary:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 10px 30px rgba(241, 0, 0, 0.6);
  text-decoration: none;
}

/* Secondary Button (White) */
.homepage-cta-btn.secondary {
  background: white;
  color: var(--brand);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.homepage-cta-btn.secondary::before {
  background: linear-gradient(90deg, transparent, rgba(241, 0, 0, 0.1), transparent);
}

.homepage-cta-btn.secondary:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  border-color: var(--brand);
}

/* Tertiary Button (Transparent with border) */
.homepage-cta-btn.tertiary {
  background: transparent;
  color: white;
  border-color: white;
}

.homepage-cta-btn.tertiary:hover {
  background: white;
  color: var(--text);
  transform: scale(1.05) translateY(-4px);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Services Section */
.homepage-services {
  padding: 2.5rem 0;
  background: white;
}

.homepage-section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 3rem 0;
  color: var(--text);
}

.homepage-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .homepage-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .homepage-services-grid {
    grid-template-columns: 1fr;
  }
}

.homepage-service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #f8f9fa;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.homepage-service-card:hover,
.homepage-service-card:focus {
  text-decoration: none;
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--brand);
}

.homepage-service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.homepage-service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.homepage-service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.homepage-service-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

.homepage-service-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.homepage-service-link:hover {
  transform: translateX(5px);
  text-decoration: none;
}

/* Content Blocks - Alternating */
.homepage-content-blocks {
  padding: 2.5rem 0;
  background: white;
}

.homepage-content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.homepage-content-block:last-child {
  margin-bottom: 0;
}

.homepage-content-block.image-left {
  direction: rtl;
}

.homepage-content-block.image-left > * {
  direction: ltr;
}

.homepage-content-block-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.homepage-content-block-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

.homepage-text-cta {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.homepage-text-cta:hover {
  transform: translateX(5px);
  text-decoration: none;
}

.homepage-content-block-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.homepage-content-block-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  aspect-ratio: 4 / 3;
}

.homepage-content-block-image:hover img {
  transform: scale(1.05);
}

/* Stats Section */
.homepage-stats {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--brand) 0%, #ff3333 100%);
  color: white;
}

.homepage-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.homepage-stat-item {
  text-align: center;
}

.homepage-stat-number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.homepage-stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Routes Section */
.homepage-routes {
  padding: 5rem 0 2rem 0;
  background: #f8f9fa;
}

.homepage-routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.homepage-route-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.homepage-route-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.homepage-route-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.homepage-route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  aspect-ratio: 16 / 9;
}

.homepage-route-card:hover .homepage-route-image img {
  transform: scale(1.1);
}

.homepage-route-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--brand);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.homepage-route-content {
  padding: 1.5rem;
}

.homepage-route-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.homepage-route-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================
   APPLE 2025 TESTIMONIALS CAROUSEL STYLES
   ============================================ */

/* Testimonials Section */
.homepage-testimonials {
  padding: 1.75rem 0 5rem 0;
  background: white;
}

/* Carousel Wrapper */
.testimonials-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.homepage-testimonials-carousel {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 2rem;
}

/* Testimonial Cards - Apple 2025 Style */
.homepage-testimonial-card {
  flex: 0 0 calc(33.333% - 1.35rem);
  width: calc(33.333% - 1.35rem);
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  box-sizing: border-box;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.homepage-testimonial-card:hover {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

/* Carousel Navigation Buttons - Minimal Chevron Style */
.carousel-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  line-height: 1;
  padding: 0;
  font-weight: 300;
}

.carousel-btn:hover {
  background: rgba(0, 113, 227, 0.1);
  border-color: rgba(0, 113, 227, 0.2);
  color: #0071e3;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15);
  transform: scale(1.05);
}

.carousel-btn:active {
  transform: scale(0.98);
}

/* Carousel Dots - Pill Shape */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.carousel-dot.active {
  background: #0071e3;
  width: 28px;
  border-radius: 4px;
}

.carousel-dot:hover:not(.active) {
  background: rgba(0, 113, 227, 0.4);
}

/* Star Rating - Clean Apple Style */
.homepage-testimonial-stars {
  color: #0071e3;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Quote Text - Large, Prominent, NOT Italic */
.homepage-testimonial-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1d1d1f;
  margin: 0 0 1.75rem 0;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Author Attribution */
.homepage-testimonial-author {
  font-size: 0.9375rem;
  color: #6e6e73;
  line-height: 1.5;
}

.homepage-testimonial-author strong {
  color: #1d1d1f;
  font-weight: 600;
  display: block;
  margin-bottom: 0.125rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .homepage-testimonial-card {
    min-width: 100%;
    padding: 1.75rem 2rem;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .homepage-testimonial-text {
    font-size: 1.0625rem;
  }
}

/* FAQ Section */
.homepage-faq {
  padding: 5rem 0;
  background: #f8f9fa;
}

.homepage-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Final CTA Banner */
.homepage-final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  text-align: center;
}

.homepage-final-cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 1rem 0;
}

.homepage-final-cta-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

/* Scroll animations */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .homepage-hero {
    min-height: 70vh;
  }

  .homepage-content-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
  }

  .homepage-content-block.image-left {
    direction: ltr;
  }

  .homepage-routes-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .homepage-route-card {
    width: 100%;
  }

  .homepage-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .homepage-hero {
    min-height: max(50vh, 400px);
    padding: 3rem 1rem;
  }

  .homepage-hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

  .homepage-cta-btn {
    width: 100%;
    max-width: 320px;
  }

  .homepage-services {
    padding: 1.5rem 0;
  }

  .homepage-content-blocks {
    padding: 1.5rem 0;
  }

  .homepage-stats {
    padding: 3rem 0;
  }

  .homepage-routes {
    padding: 3rem 0 1.2rem 0;
  }

  .homepage-testimonials {
    padding: 1.05rem 0 3rem 0;
  }

  .homepage-faq {
    padding: 3rem 0;
  }

  .homepage-final-cta {
    padding: 3rem 0;
  }

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

  .homepage-stat-number {
    font-size: 2.5rem;
  }
}

/* ============================================
   COOKIE CONSENT MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 640px) {
  #cookie-consent-banner {
    padding: 1rem !important;
  }

  #cookie-consent-banner .container {
    padding: 0 !important;
  }

  #cookie-consent-banner > div > div:first-child {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  #cookie-consent-banner > div > div:first-child > div:first-child {
    min-width: 100% !important;
  }

  #cookie-consent-banner h3 {
    font-size: 1rem !important;
  }

  #cookie-consent-banner p {
    font-size: 0.85rem !important;
  }

  #cookie-consent-banner button {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }

  #cookie-consent-banner > div > div:last-child {
    width: 100% !important;
    flex-direction: column !important;
  }

  #cookie-consent-options > div:last-child {
    flex-direction: column !important;
  }

  #cookie-consent-options button {
    width: 100% !important;
  }
}

/* ========================================
   MOBILE OPTIMIZATIONS - PHASE 3
   Medium & Low Priority Issues
   ======================================== */

/* Container Padding Optimization - Don't waste screen space on mobile */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (min-width: 641px) and (max-width: 992px) {
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (min-width: 993px) {
  .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* Service Cards Grid Gap - Better spacing on tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .homepage-services-grid {
    gap: 2rem !important;
  }
}

/* FAQ Accordion Font Sizes - Better readability on mobile */
@media (max-width: 768px) {
  .faq-item > summary {
    font-size: 1.125rem !important; /* 18px */
  }

  .faq-item .answer {
    font-size: 1rem !important; /* 16px - prevents iOS auto-zoom */
  }
}

/* Stats Counter Optimization - Better sizing for small screens */
@media (max-width: 480px) {
  .homepage-stat-number {
    font-size: 2rem !important; /* 32px - better for 320px screens */
  }

  .homepage-stat-label {
    font-size: 0.9rem !important; /* 14.4px */
  }
}

/* Guide Hero Min-Height - Prevent taking too much screen space on mobile */
@media (max-width: 640px) {
  .guide-hero {
    min-height: max(40vh, 280px) !important;
    padding: 4rem 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .guide-hero {
    min-height: 260px !important;
    padding: 3rem 1rem !important;
  }
}

/* Journey Cards Image Aspect Ratio - Prevent layout shift (CLS) */
.journey-card-image {
  aspect-ratio: 16 / 9 !important;
}

.journey-card-image img {
  aspect-ratio: 16 / 9 !important;
}

/* Table Scroll Visual Indicator - Show users tables are scrollable */
@media (max-width: 768px) {
  main .container .prose table {
    background:
      /* Shadow on right */
      linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
      linear-gradient(to right, rgba(0, 0, 0, 0.05), white 30%) 0 100%,
      /* Shadow on left */
      linear-gradient(to left, white 30%, rgba(255, 255, 255, 0)),
      linear-gradient(to left, rgba(0, 0, 0, 0.05), white 30%) 100% 0;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 40px 100%, 10px 100%, 40px 100%, 10px 100%;
    background-attachment: local, scroll, local, scroll;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }

  .guide-content table {
    overflow-x: auto !important;
    display: block !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Safe Area Insets - Support for notched devices (iPhone X+) */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top) !important;
    padding-right: env(safe-area-inset-right) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    padding-left: env(safe-area-inset-left) !important;
  }

  .header {
    padding-top: calc(0.75rem + env(safe-area-inset-top)) !important;
    padding-right: calc(2rem + env(safe-area-inset-right)) !important;
    padding-left: calc(2rem + env(safe-area-inset-left)) !important;
  }

  .mobile-nav {
    padding-top: env(safe-area-inset-top) !important;
    padding-right: env(safe-area-inset-right) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    padding-left: env(safe-area-inset-left) !important;
  }

  #cookie-consent-banner {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
  }
}

/* Hover/Touch Media Queries - Optimize for device capabilities */
/* Only apply hover effects on devices that support hover */
@media (hover: hover) and (pointer: fine) {
  /* Enable all hover effects on desktop */
  .blog-card:hover,
  .homepage-service-card:hover,
  .stat-card:hover,
  .journey-card:hover {
    transform: translateY(-8px) !important;
  }

  .cta:hover,
  .homepage-cta-btn:hover {
    transform: scale(1.05) !important;
  }
}

/* Touch devices - Reduce or disable hover effects */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms on touch devices */
  .blog-card:hover,
  .homepage-service-card:hover,
  .stat-card:hover,
  .journey-card:hover {
    transform: none !important;
  }

  /* Reduce hover effects on buttons - use active state instead */
  .cta:hover,
  .homepage-cta-btn:hover {
    transform: none !important;
  }

  .cta:active,
  .homepage-cta-btn:active {
    transform: scale(0.98) !important;
  }
}

/* Focus-Visible Styles - Better keyboard navigation accessibility */
/* Remove default focus outline */
*:focus {
  outline: none;
}

/* Add visible focus indicator for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #666 !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

.cta:focus-visible,
.homepage-cta-btn:focus-visible,
.blog-read-more:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(102, 102, 102, 0.3) !important;
}

.faq-item:focus-visible {
  outline: 3px solid var(--brand, #f10000) !important;
  outline-offset: 4px !important;
}

/* Stats Grid Optimization - Single column on very small screens */
@media (max-width: 480px) {
  .homepage-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Mobile Nav Content Padding - Reduce excessive top/bottom padding on small screens */
@media (max-width: 640px) {
  .mobile-nav-content {
    padding: 70px 0 80px 0 !important;
  }
}

@media (max-width: 480px) {
  .mobile-nav-content {
    padding: 60px 0 60px 0 !important;
  }

  .mobile-nav-content a,
  .menu-parent {
    padding: 16px 20px !important;
    font-size: 1rem !important;
  }

  .mobile-nav-content a:hover {
    padding-left: 24px !important;
  }
}

/* Hero CTA Button Width - Better sizing on very small screens */
@media (max-width: 480px) {
  .homepage-cta-btn {
    max-width: 280px !important;
    font-size: 0.95rem !important;
    padding: 0.8rem 1.5rem !important;
  }
}

/* Prefers-Reduced-Motion - Accessibility for motion-sensitive users */
@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;
  }

  /* Disable Ken Burns zoom animation */
  .homepage-hero-image img,
  .guide-hero::before,
  .blog-hero::before {
    animation: none !important;
  }

  /* Disable fade-in animations */
  .fade-in-on-scroll,
  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disable hover transforms */
  .blog-card:hover,
  .homepage-service-card:hover,
  .stat-card:hover,
  .journey-card:hover {
    transform: none !important;
  }
}

/* Mobile Menu Overlay Touch Action - Better touch handling */
.menu-overlay {
  touch-action: none !important;
  -webkit-touch-callout: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.mobile-nav {
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden !important;
  touch-action: none !important;
}

/* ============================================
   PHASE 21: UI/UX IMPROVEMENTS
   ============================================ */

/* --- CSS Custom Properties for consistency --- */
:root {
  /* Existing brand colors */
  /* --brand: #f10000; (already defined) */

  /* Semantic colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Border radius consistency */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lift: 0 10px 40px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Button Press Feedback --- */
.btn:active,
.cta:active,
.header-cta-btn:active,
button:active {
  transform: scale(0.98);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-md);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: scale(0.95);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

/* Position adjustment when chat widget is present */
.back-to-top.with-chat {
  bottom: 6rem;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }

  .back-to-top.with-chat {
    bottom: 5rem;
  }
}

/* --- Trust Badges --- */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem 0;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #065f46;
  font-weight: 500;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
}

.trust-badges-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #666;
}

.trust-badges-compact svg {
  width: 16px;
  height: 16px;
}

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5rem;
}

.skeleton-text-short {
  width: 60%;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-lg);
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}

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

/* --- Form Input Focus Animation --- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.15);
  transition: all var(--transition-fast);
}

/* --- Success Animation --- */
.success-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-success);
  border-radius: var(--radius-full);
  animation: success-pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-checkmark svg {
  width: 40px;
  height: 40px;
  color: white;
  animation: checkmark-draw 0.3s ease-out 0.2s forwards;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes checkmark-draw {
  to { stroke-dashoffset: 0; }
}

/* --- Progress Bar Animation --- */
.progress-bar-container {
  width: 100%;
  height: 4px;
  background: #e5e5e5;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, #ff4444 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.breadcrumbs span.separator {
  color: #ccc;
}

.breadcrumbs span.current {
  color: var(--text);
  font-weight: 500;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: #ddd;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0 0 1.5rem 0;
  font-size: 0.9375rem;
}

/* --- Social Proof / Customer Count --- */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--muted);
}

.social-proof-count {
  font-weight: 700;
  color: var(--text);
}

.social-proof svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1rem 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #f0f0f0;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
}

.testimonial-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.25rem;
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
  color: #f59e0b;
  fill: #f59e0b;
}

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

/* --- Alert/Error Announcement (Accessibility) --- */
[role="alert"] {
  /* Ensure alerts are announced to screen readers */
}

.form-error {
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Required Field Indicator --- */
.required-indicator {
  color: var(--color-error);
  margin-left: 0.25rem;
}

.optional-indicator {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.875rem;
  margin-left: 0.25rem;
}

/* --- Card Hover Lift Effect --- */
.card-lift {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

/* --- Color Contrast Fixes --- */
/* Ensuring gray text meets WCAG AA (4.5:1 ratio) */
.text-muted-accessible {
  color: #595959; /* 7:1 contrast on white */
}

/* --- Focus Visible (Keyboard Navigation) --- */
:focus-visible {
  outline: 3px solid #666;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #666;
  outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* --- Hero Social Proof Badge --- */
.hero-social-proof {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.hero-social-proof svg {
  color: rgba(255, 255, 255, 0.9);
}

.hero-social-proof .social-proof-count {
  color: white;
}

@media (max-width: 768px) {
  .hero-social-proof {
    margin-top: 1rem;
    font-size: 0.8125rem;
  }
}

/* ============================================
   PHASE 22: ADDITIONAL UI/UX IMPROVEMENTS
   ============================================ */

/* --- 320px Breakpoint for Extra Small Devices --- */
@media (max-width: 320px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .hero h1,
  .homepage-hero-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .hero p,
  .homepage-hero-subtitle {
    font-size: clamp(0.875rem, 3vw, 1rem);
  }

  .header-container {
    padding: 0.5rem 0.75rem;
  }

  .header-logo {
    height: 36px;
  }

  .cta,
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .homepage-hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

  .homepage-hero-ctas .homepage-cta-btn {
    width: 100%;
  }

  .faq-item {
    padding: 1rem 1.25rem;
  }

  .faq-item > summary {
    font-size: 0.9375rem;
    padding-right: 1.5rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

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

  .hero-social-proof {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .social-proof {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* --- Color Contrast Fixes (WCAG AA Compliance) --- */
/* #999 has 2.85:1 contrast ratio - needs to be at least 4.5:1 */
/* Using #767676 which has 4.54:1 ratio on white */

.text-muted,
.small,
.form-hint,
.helper-text {
  color: #767676; /* WCAG AA compliant */
}

/* Fix specific instances of #999 */
.progress-step .step-label {
  color: #767676;
}

.progress-step.completed .step-label {
  color: #595959;
}

.no-services {
  color: #767676;
}

.price-row {
  color: #595959;
}

/* --- Empty States with Illustrations --- */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #595959;
}

.empty-state-illustration {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  opacity: 0.6;
}

.empty-state-illustration svg {
  width: 100%;
  height: 100%;
  color: #ccc;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
}

.empty-state p {
  margin: 0 0 1.5rem 0;
  font-size: 0.9375rem;
  color: #767676;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state .btn {
  margin-top: 0.5rem;
}

/* --- Skeleton Loading Enhancements --- */
.skeleton-service-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 1.25rem;
  min-height: 200px;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skeleton-title {
  height: 1.25rem;
  width: 60%;
}

.skeleton-badge {
  height: 1.5rem;
  width: 80px;
  border-radius: 0.5rem;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-line.short {
  width: 40%;
  height: 1rem;
}

.skeleton-line.medium {
  width: 70%;
  height: 1rem;
}

.skeleton-line.full {
  width: 100%;
  height: 1rem;
}

.skeleton-button {
  height: 2.75rem;
  width: 100%;
  margin-top: 1rem;
  border-radius: 0.5rem;
}

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

/* --- Booking Progress Bar --- */
.booking-progress-bar {
  width: 100%;
  height: 4px;
  background: #e5e5e5;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.booking-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand, #f10000) 0%, #ff4444 100%);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-progress-bar[data-step="1"] .booking-progress-fill { width: 25%; }
.booking-progress-bar[data-step="2"] .booking-progress-fill { width: 50%; }
.booking-progress-bar[data-step="3"] .booking-progress-fill { width: 75%; }
.booking-progress-bar[data-step="4"] .booking-progress-fill { width: 100%; }

/* --- Breadcrumbs Enhancement --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: #767676;
}

.breadcrumbs a {
  color: #767676;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: var(--brand, #f10000);
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: #ccc;
  font-size: 0.75rem;
}

.breadcrumbs .current {
  color: var(--text, #111);
  font-weight: 500;
}

/* --- Form Field Improvements --- */
.field-optional {
  color: #767676;
  font-weight: 400;
  font-size: 0.8125rem;
  margin-left: 0.25rem;
}

.field-required {
  color: #ef4444;
  margin-left: 0.125rem;
}

.form-error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 0.25rem;
  color: #ef4444;
}

.form-error-message {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
  line-height: 1.4;
}

/* --- Tab/Step Transitions --- */
.step-panel {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-panel.entering {
  opacity: 0;
  transform: translateX(20px);
}

.step-panel.exiting {
  opacity: 0;
  transform: translateX(-20px);
}

/* --- Success Animation --- */
.booking-success {
  text-align: center;
  padding: 2rem;
}

.success-icon-animated {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: success-bounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon-animated svg {
  width: 40px;
  height: 40px;
  color: white;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkmark-draw 0.4s ease-out 0.3s forwards;
}

@keyframes success-bounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes checkmark-draw {
  to { stroke-dashoffset: 0; }
}

/* --- Back Navigation Button --- */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  color: #595959;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: var(--text, #111);
}

.btn-back svg {
  width: 16px;
  height: 16px;
}

/* --- Loading Overlay --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5e5;
  border-top-color: var(--brand, #f10000);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  margin-top: 1rem;
  color: #595959;
  font-size: 0.9375rem;
}

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

/* ===========================================
   Phase 23: Testimonials Trust Badge & Source
   =========================================== */

/* Testimonials Header with Trust Badge */
.testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.testimonials-header .homepage-section-title {
  margin-bottom: 0;
}

.testimonials-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge-stars {
  color: #f59e0b;
  letter-spacing: -1px;
}

.trust-badge-rating {
  font-weight: 700;
  color: #92400e;
}

.trust-badge-text {
  color: #78350f;
}

/* Testimonial Source */
.testimonial-source {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.75rem;
  border-radius: 1rem;
}

@media (max-width: 640px) {
  .testimonials-trust-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* ===========================================
   Phase 23: Print Styles for Confirmations
   =========================================== */

@media print {
  /* Hide non-essential elements */
  header,
  footer,
  nav,
  .chat-widget,
  .carla-widget,
  .carla-bubble,
  .back-to-top,
  .cookie-banner,
  .cookie-consent,
  .testimonials-carousel-wrapper .carousel-btn,
  .carousel-dots,
  .social-proof,
  .breadcrumbs,
  .form-actions,
  aside {
    display: none !important;
  }

  /* Reset backgrounds and colors for paper */
  body {
    font-size: 12pt;
    color: #000 !important;
    background: #fff !important;
    line-height: 1.5;
  }

  /* Remove shadows and borders for cleaner print */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Ensure content uses full width */
  .container,
  .content-wrap,
  main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Booking Confirmation specific styles */
  .booking-confirmation,
  .confirmation-details {
    page-break-inside: avoid;
    border: 1px solid #ccc !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .booking-reference {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    border: 2px solid #000 !important;
    padding: 0.5rem 1rem !important;
    display: inline-block !important;
  }

  /* QR Code sizing */
  .booking-qr-code,
  .qr-code {
    max-width: 150px !important;
    height: auto !important;
  }

  /* Show URLs for links */
  a[href^="http"]::after,
  a[href^="https"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
    word-break: break-all;
  }

  /* Don't show URL for internal/anchor links */
  a[href^="#"]::after,
  a[href^="/"]::after {
    content: none;
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  img, table, figure {
    page-break-inside: avoid;
  }

  /* Ensure tables print well */
  table {
    border-collapse: collapse !important;
  }

  th, td {
    border: 1px solid #ccc !important;
    padding: 0.5rem !important;
  }

  /* Invoice/receipt specific */
  .invoice-header,
  .receipt-header {
    border-bottom: 2px solid #000 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .total-amount {
    font-size: 1.25rem !important;
    font-weight: bold !important;
    border-top: 2px solid #000 !important;
    padding-top: 0.5rem !important;
  }
}

/* ===========================================
   Phase 23: Z-Index & Overlap Fixes
   =========================================== */

/* Ensure cookie consent doesn't overlap chat widget */
#cookie-consent-banner {
  z-index: 9999 !important;
}

/* Cookie settings button - icon only circular button */
#cookie-consent-settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: transparent;
  color: white;
  border: none;
  padding: 0.6rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: none;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cookie-consent-settings-btn:hover {
  background: #34495e;
}

#cookie-consent-settings-btn .cookie-text {
  display: none;
}

#cookie-consent-settings-btn .cookie-emoji {
  font-size: 1.2rem;
  margin: 0;
}

/* ===========================================
   Phase 23: Ken Burns Animation Limit
   =========================================== */

/* Limit Ken Burns animation to 3 iterations */
.homepage-hero-image img {
  animation-iteration-count: 3;
}

/* Pause after 3 iterations (45s = 3 x 15s) */
@keyframes ken-burns-fade {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ===========================================
   Phase 23: Language Dropdown Selection
   =========================================== */

/* Current language indicator in dropdown */
.lang-dropdown .current-lang,
.language-selector .current-lang,
.lang-switch .active,
.language-dropdown option:checked {
  font-weight: 700;
  background-color: rgba(241, 0, 0, 0.1);
}

/* Checkmark for current language */
.lang-dropdown a[aria-current="page"]::before,
.language-selector a.active::before {
  content: "✓ ";
  font-weight: bold;
  color: var(--brand, #f10000);
}

/* Highlight current language in select */
.language-select option:checked {
  background: linear-gradient(135deg, #f10000 0%, #ff3333 100%);
  color: white;
}

/* ============================================
   Mobile CTA Pills - replaces breadcrumbs on mobile
   ============================================ */
.mobile-cta-pills {
  display: none;
}

@media (max-width: 768px) {
  /* Hide breadcrumbs on mobile */
  .breadcrumbs {
    display: none;
  }

  /* Show CTA pills on mobile */
  .mobile-cta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    justify-content: center;
  }

  .mobile-cta-pill {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9999px;
    border: 1px solid #1f2937;
    background-color: #f3f4f6;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
  }

  .mobile-cta-pill:hover {
    background-color: #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  /* Rescue pill - red background */
  .mobile-cta-pill--rescue {
    background-color: #f10000;
    color: #ffffff;
    border-color: #1f2937;
  }

  .mobile-cta-pill--rescue:hover {
    background-color: #d00000;
  }
}

/* On very small screens, allow wrapping */
@media (max-width: 320px) {
  .mobile-cta-pills {
    gap: 0.375rem;
  }

  .mobile-cta-pill {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
}
