/* Theme Tokens: Modern Local Pro (modern-local-pro) */
:root {
  --color-primary: #1D4ED8;
  --color-secondary: #0F172A;
  --color-accent: #0EA5E9;
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-muted: #64748B;
  --color-border: rgba(15, 23, 42, 0.08);
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
}

/* ==========================================================================
   RankLocal Design System CSS (templates/base.css)
   Mobile-first, responsive, accessible, zero-framework
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Variables & Design Tokens (Default Fallbacks)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #1D4ED8;
  --color-secondary: #0F172A;
  --color-accent: #0EA5E9;
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-muted: #64748B;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-emergency: #DC2626;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radius & Shadows */
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.12);

  /* Spacing */
  --container-max: 1200px;
  --space-section-mobile: 64px;
  --space-section-desktop: 96px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Box Sizing
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.menu-locked {
  overflow: hidden !important;
}

main {
  flex: 1;
}

/* --------------------------------------------------------------------------
   3. Fluid Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 0.5rem;
}

p {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  margin-bottom: 1.25rem;
  color: var(--color-muted);
}

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

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

/* --------------------------------------------------------------------------
   4. Layout & Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.section {
  padding-top: var(--space-section-mobile);
  padding-bottom: var(--space-section-mobile);
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-section-desktop);
    padding-bottom: var(--space-section-desktop);
  }
}

.section-alt {
  background-color: rgba(0, 0, 0, 0.025);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header p {
  font-size: 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   5. Media & Aspect Ratios
   -------------------------------------------------------------------------- */
img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-hero {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
  width: 100%;
}

@media (min-width: 768px) {
  .img-hero {
    aspect-ratio: 16 / 10;
  }
}

.img-card {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
}

.img-avatar {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
}

.img-gallery {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
  transition: transform 0.4s ease;
}

/* --------------------------------------------------------------------------
   6. Buttons & Inputs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  min-height: 48px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF !important;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: #FFFFFF !important;
}

.btn-secondary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #FFFFFF !important;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  min-height: 52px;
}

.btn-sm {
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .btn-mobile-full {
    width: 100%;
  }
}

/* Form inputs: 16px to prevent iOS auto-zoom */
input, select, textarea {
  font-size: 16px !important;
  font-family: var(--font-body);
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   7. Cards & Elevation
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   8. Header & Navigation Component
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 80px;
  min-width: 0;
  width: 100%;
  transition: height 0.25s ease;
}

.site-header.scrolled .header-container {
  height: 68px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-secondary);
  text-decoration: none;
  min-width: 0;
  max-width: min(340px, 45vw);
  line-height: 1.2;
  flex-shrink: 1;
}

.brand-logo .brand-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo svg, .brand-logo img, .brand-logo .brand-svg {
  height: 34px;
  width: auto;
  max-height: 34px;
  display: block;
}

.brand-logo .brand-img {
  height: 34px;
  max-height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo .brand-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: -0.015em;
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    flex-shrink: 1;
    min-width: 0;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
}

@media (min-width: 1280px) {
  .nav-list {
    gap: 1.75rem;
  }
}

.nav-link {
  font-weight: 600;
  color: var(--color-secondary);
  padding: 0.5rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 1279px) and (min-width: 1024px) {
  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.2rem;
  }
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

/* Desktop Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1010;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--color-primary);
}

/* Hamburger toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  z-index: 1020;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.hamburger-bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.site-header.menu-open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.site-header.menu-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.site-header.menu-open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Slide-in Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-surface);
  z-index: 1015;
  display: flex;
  flex-direction: column;
  padding: 90px 24px 32px 24px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  font-size: 1.35rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mobile-nav-sublist {
  list-style: none;
  margin-top: 0.5rem;
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-sublink {
  font-size: 1.05rem;
  color: var(--color-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Header CTAs */
.header-cta-desktop {
  display: none;
}

@media (min-width: 768px) {
  .header-cta-desktop {
    display: inline-flex;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .brand-logo {
    max-width: calc(100% - 64px);
  }
}

/* --------------------------------------------------------------------------
   9. Hero Sections (Variants: split, fullImage, centered)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 6.5rem;
  }
}

/* Variant 1: Split */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
  }
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Mobile hero image sizing (< 768px) */
@media (max-width: 767px) {
  .hero-image-wrap {
    min-height: 260px;
    max-height: 380px;
    aspect-ratio: 4 / 3;
    margin-top: 0.5rem;
  }
  .hero-image-wrap picture {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  .hero-image-wrap .img-hero-split,
  .hero-image-wrap > img.img-hero-split {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: var(--radius);
  }
}

/* Tablet hero image sizing (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-image-wrap {
    min-height: 360px;
    height: 420px;
    margin-top: 0.75rem;
  }
  .hero-image-wrap picture {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  .hero-image-wrap .img-hero-split,
  .hero-image-wrap > img.img-hero-split {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: var(--radius);
  }
}

/* Desktop balanced 2-column image sizing (>= 1024px) */
@media (min-width: 1024px) {
  .hero-image-wrap {
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
  }
  .hero-image-wrap picture {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  .hero-image-wrap .img-hero-split,
  .hero-image-wrap > img.img-hero-split {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 25%;
    aspect-ratio: unset;
    border-radius: var(--radius);
  }
}

@media (min-width: 1280px) {
  .hero-image-wrap {
    min-height: 520px;
  }
  .hero-image-wrap picture {
    min-height: 520px;
  }
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  max-width: calc(100% - 40px);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .hero-floating-card {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 0.6rem 0.85rem;
    gap: 0.6rem;
  }
  .hero-floating-card svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* Variant 2: Full Image */
.hero-full-image {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #FFFFFF;
}

.hero-full-image .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.92) 100%);
  z-index: 1;
}

.hero-full-image .container {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
}

.hero-full-image h1, .hero-full-image p {
  color: #FFFFFF;
}

.hero-full-image .hero-actions {
  justify-content: center;
}

.hero-full-image .trust-badges-row {
  justify-content: center;
  color: #E2E8F0;
}

/* Variant 3: Centered with Collage */
.hero-centered {
  text-align: center;
}

.hero-centered .hero-content-centered {
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.hero-centered .hero-actions {
  justify-content: center;
}

.hero-collage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero-collage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   10. Trust Bar Section
   -------------------------------------------------------------------------- */
.trust-bar {
  background-color: var(--color-secondary);
  color: #FFFFFF;
  padding: 1.5rem 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .trust-bar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-bar-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   11. Services Section (Cards, Icons, Alternating)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body p {
  flex: 1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Alternating Variant */
.services-alternating {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-alt-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .service-alt-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .service-alt-row.reverse .service-alt-image {
    order: 2;
  }
  .service-alt-row.reverse .service-alt-text {
    order: 1;
  }
}

/* --------------------------------------------------------------------------
   12. Stats Section
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   13. About Section (Split, Collage)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500;
}

.check-list li svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   14. Process (Steps) Section
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
  position: relative;
}

.process-card {
  position: relative;
  padding: 2.25rem;
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.25;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   15. Emergency Banner Strip
   -------------------------------------------------------------------------- */
.emergency-banner {
  background-color: var(--color-emergency);
  color: #FFFFFF;
  padding: 1rem 0;
  font-weight: 700;
}

.emergency-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.emergency-banner a {
  background-color: #FFFFFF;
  color: var(--color-emergency);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   16. Gallery Section (Masonry Photo Grid + Lightbox)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item:hover .img-gallery {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   17. Testimonials Section (Cards Grid, Slider)
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.star-rating {
  color: #F59E0B;
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.review-author-name {
  font-weight: 700;
  color: var(--color-secondary);
}

.review-author-city {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Slider Controls */
.testimonial-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-btn:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   18. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-secondary);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.25s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.75rem 1.5rem 1.75rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   19. Call to Action Banner (Gradient, Photo)
   -------------------------------------------------------------------------- */
.cta-banner {
  background-color: var(--color-secondary);
  color: #FFFFFF;
}

.cta-banner.variant-gradient {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.cta-banner.variant-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}

.cta-banner.variant-photo .cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}

.cta-banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-banner h2 {
  color: #FFFFFF;
}

.cta-banner p {
  color: #CBD5E1;
}

/* --------------------------------------------------------------------------
   20. Contact Form Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
}

.contact-info-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   21. Footer (4 Columns)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0B132B;
  color: #94A3B8;
  padding: 5rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer-col p {
  color: #94A3B8;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748B;
}

/* --------------------------------------------------------------------------
   22. Sticky Mobile Call Bar
   -------------------------------------------------------------------------- */
.mobile-call-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for fixed bar */
  }

  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }

  .mobile-call-bar .btn {
    flex: 1;
    min-height: 48px;
    font-size: 1rem;
    padding: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   23. Mobile Typography, Tap Targets & Grid Containment
   -------------------------------------------------------------------------- */
[class*="-grid"] > *, .grid > * {
  min-width: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}

@media (max-width: 768px) {
  body, p, li, input, select, textarea, .footer-col p, .trust-bar-item, .card p, .service-card p, .why-card p, .process-card p {
    font-size: 16px;
  }

  .nav-link, .mobile-nav-link, .mobile-nav-sublink, .footer-links a, .header-phone-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   23. Scroll Reveal Animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   24. Master Page Registry, Breadcrumbs & Location Page Layouts
   ========================================================================== */

/* Breadcrumbs Component */
.breadcrumbs-container {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.breadcrumb-item a {
  color: var(--color-muted);
  font-weight: 500;
}
.breadcrumb-item a:hover {
  color: var(--color-primary);
}
.breadcrumb-item.active {
  color: var(--color-secondary);
  font-weight: 700;
}
.breadcrumb-separator {
  color: var(--color-border);
}

/* Location Page Layout System */
.location-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .location-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
  }
}
.location-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.location-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.location-hero-media {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.location-media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .location-media-card {
    min-height: 420px;
    position: relative;
  }
  .location-media-card .img-hero {
    position: absolute;
    inset: 0.5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    min-height: calc(100% - 1rem);
    object-fit: cover;
    object-position: center 25%;
    border-radius: var(--radius-sm);
  }
}
@media (max-width: 1023px) {
  .location-media-card .img-hero {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 250px;
    max-height: 380px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: var(--radius-sm);
  }
}
.angle-card {
  padding: 2.5rem;
}
.angle-content {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}
.local-note-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.9rem;
  color: #92400E;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-location-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
}
.service-location-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.process-step-card {
  padding: 2rem;
  position: relative;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 1rem;
}
.nearby-card {
  padding: 2rem;
}
.nearby-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.nearby-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
}
.nearby-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.nearby-chip.chip-highlight {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}
.cta-banner-box {
  background: var(--color-secondary);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner-box h2 {
  color: #FFFFFF;
}
.cta-banner-box p {
  color: #CBD5E1;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Service Areas Locations Grid & High-Contrast Cards (Zero Maps)
   -------------------------------------------------------------------------- */
.service-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
  width: 100%;
}

.service-area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  background-color: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, rgba(15, 23, 42, 0.1));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 58px;
  cursor: pointer;
}

.service-area-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.service-area-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.service-area-pin-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1 1 auto;
}

.service-area-pin {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
}

.service-area-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary, #0F172A) !important;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  transition: color 0.2s ease;
}

.service-area-card:hover .service-area-name {
  color: var(--color-primary, #1D4ED8) !important;
}

.service-area-arrow {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary, #1D4ED8);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.service-area-card:hover .service-area-arrow {
  transform: translateX(3px);
}

/* Footer Location Map Embed (Fallback) */
.footer-map-container {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Final CTA & Compact Location Map Section (Immediately Above Footer)
   ========================================================================== */
.final-cta-section {
  padding: 3.5rem 0 2.5rem 0;
  background: var(--color-background, #F8FAFC);
  border-top: 1px solid var(--color-border);
}

.final-cta-card {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .final-cta-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.final-cta-col-left {
  display: flex;
  flex-direction: column;
}

.final-cta-badge {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(29, 78, 216, 0.08);
  color: var(--color-primary, #1D4ED8);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.final-cta-title {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 800;
  color: var(--color-secondary, #0F172A);
  line-height: 1.25;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

.final-cta-text {
  font-size: 1rem;
  color: var(--color-muted, #475569);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn-call-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.125rem;
  padding: 0.875rem 1.85rem;
  background: var(--color-primary, #1D4ED8) !important;
  color: #FFFFFF !important;
  border-radius: var(--radius, 10px);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-call-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.4);
}

.btn-call-primary svg {
  flex-shrink: 0;
}

.final-cta-phone-display {
  display: flex;
  flex-direction: column;
}

.final-cta-phone-caption {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-muted, #64748B);
}

.final-cta-phone-link {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-secondary, #0F172A);
  text-decoration: none;
  line-height: 1.2;
}

.final-cta-phone-link:hover {
  color: var(--color-primary, #1D4ED8);
}

.final-cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.825rem;
  color: var(--color-muted, #64748B);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.final-cta-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.final-cta-secondary-line {
  font-size: 0.85rem;
  color: var(--color-muted, #64748B);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.final-cta-secondary-line a {
  color: var(--color-primary, #1D4ED8);
  font-weight: 600;
  text-decoration: underline;
}

.final-cta-col-right {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.final-cta-location-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  color: var(--color-secondary, #0F172A);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.final-cta-pin {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.final-cta-map-container {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius, 10px);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.final-cta-map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
  display: block;
}

@media (max-width: 767px) {
  .final-cta-section {
    padding: 2.25rem 0 1.75rem 0;
  }

  .final-cta-card {
    padding: 1.5rem 1.25rem;
  }

  .final-cta-grid {
    gap: 1.75rem;
  }

  .final-cta-title {
    font-size: 1.5rem;
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .btn-call-primary {
    width: 100%;
    justify-content: center;
  }

  .final-cta-phone-display {
    align-items: center;
    text-align: center;
  }

  .final-cta-meta {
    flex-direction: column;
    gap: 0.35rem;
  }

  .final-cta-map-container iframe {
    height: 220px;
  }
}

/* CSS-only Mobile Menu Fallback */
.nav-toggle-check {
  display: none;
}
@media (max-width: 1023px) {
  .nav-toggle-check:checked ~ .mobile-drawer {
    transform: translateX(0);
  }
  .nav-toggle-check:checked ~ .header-container .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle-check:checked ~ .header-container .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-check:checked ~ .header-container .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================================================
   RANKLOCAL 10-THEME SYSTEM CSS EXTENSION
   Distinct layout, hero composition, navigation, cards, typography & conversion
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Header Variants
   -------------------------------------------------------------------------- */
.header-emergency-topbar {
  background-color: #0B132B;
  color: #FFFFFF;
  padding: 6px 0;
  border-bottom: 2px solid var(--color-primary, #EA580C);
  font-size: 0.8rem;
  font-weight: 600;
}

.header-emergency-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #FBBF24;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.emergency-call-link {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.emergency-call-link strong {
  color: var(--color-primary, #EA580C);
  font-size: 0.95rem;
}

.emergency-call-link:hover {
  text-decoration: underline;
}

.header-centered .header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 1024px) {
  .header-centered .header-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.header-minimal {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #FFFFFF;
}

.header-split-phone .header-cta-desktop .btn {
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.header-bold-call {
  border-bottom: 2px solid var(--color-secondary, #020617);
}

/* --------------------------------------------------------------------------
   B. Hero Variants
   -------------------------------------------------------------------------- */
/* 1. Hero Compact Bold (Bold Conversion) */
.hero-compact-bold {
  padding: 3rem 0 2.5rem 0;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid #E2E8F0;
}

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

@media (min-width: 1024px) {
  .hero-compact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.urgent-dispatch-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: #DC2626;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.btn-pulsing {
  position: relative;
  overflow: hidden;
}

.img-hero-compact {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 480px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(11, 19, 43, 0.15);
}

/* 2. Hero Split Full (Split Hero) */
.hero-split-full .hero-image-full-height {
  height: 100%;
  min-height: 460px;
  display: flex;
}

.img-hero-fullheight {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: var(--radius, 8px);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.18);
}

/* 3. Hero Asymmetric (Premium Local & Editorial Modern) */
.hero-asymmetric {
  padding: 4rem 0 3.5rem 0;
  background: var(--color-background, #FAFAF9);
}

.hero-asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-asymmetric-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.heading-editorial {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.12;
}

.badge-refined {
  background: rgba(217, 119, 6, 0.12);
  color: #B45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.asymmetric-frame {
  position: relative;
  padding: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius, 4px);
  box-shadow: 0 14px 34px -8px rgba(28, 25, 23, 0.14);
}

.img-hero-asymmetric {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 2px;
}

/* 4. Hero Service-First (Modern Service Grid) */
.hero-service-first {
  padding: 2.5rem 0 2rem 0;
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
  border-bottom: 1px solid #E2E8F0;
}

.hero-compact-header {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-compact-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.85rem;
}

.hero-compact-header .hero-actions {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-quick-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: #334155;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.quick-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 5. Hero Soft (Contemporary Soft) */
.hero-soft {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, #F0FDFA 0%, #FFFFFF 100%);
}

.badge-pill {
  border-radius: 9999px;
  padding: 0.35rem 0.95rem;
  background: #CCFBF1;
  color: #0F766E;
  font-weight: 700;
}

.btn-pill {
  border-radius: 9999px !important;
}

.img-hero-soft {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 32px -8px rgba(13, 148, 136, 0.15);
}

/* 6. Hero High Contrast */
.hero-high-contrast {
  padding: 3.5rem 0;
  background: #FFFFFF;
  border-bottom: 2px solid #0F172A;
}

.badge-high-contrast {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 800;
  border: 1px solid #0F172A;
  border-radius: 4px;
}

.img-hero-contrast {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 2px solid #0F172A;
  border-radius: 8px;
  box-shadow: 6px 6px 0px #0F172A;
}

/* 7. Hero Minimal */
.hero-minimal {
  padding: 4.5rem 0 3.5rem 0;
  background: #FFFFFF;
}

.hero-minimal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-minimal-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
  }
}

.heading-minimal {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.1;
}

.badge-minimal {
  background: #F4F4F5;
  color: #18181B;
  border: 1px solid #E4E4E7;
  font-weight: 700;
}

.img-hero-minimal {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border: 1px solid #E4E4E7;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   C. Service Variants
   -------------------------------------------------------------------------- */
/* Compact Services Grid (Bold Conversion) */
.services-compact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .services-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-compact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-compact-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-compact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-compact-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F1F5F9;
}

.img-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-compact-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-compact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: #FEF3C7;
  color: #B45309;
  border-radius: 4px;
  white-space: nowrap;
}

.service-compact-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

/* Soft Grid (Contemporary Soft) */
.services-soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card-soft {
  border-radius: 20px !important;
  border: 1px solid #CCFBF1;
  background: #FFFFFF;
  box-shadow: 0 10px 25px -4px rgba(13, 148, 136, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.img-card-soft {
  border-radius: 20px 20px 0 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-tag-soft {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0D9488;
  margin-bottom: 0.5rem;
}

/* Alternating Rows (Editorial Modern) */
.services-alternating {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

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

@media (min-width: 1024px) {
  .service-alt-row {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .service-alt-row.reverse {
    direction: rtl;
  }

  .service-alt-row.reverse .service-alt-text {
    direction: ltr;
  }
}

.editorial-image-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.15);
}

.editorial-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Minimal Grid (Clean Minimal) */
.services-minimal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-minimal {
  border: 1px solid #E4E4E7 !important;
  border-radius: 4px !important;
  padding: 1.75rem !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease;
}

.card-minimal:hover {
  border-color: #09090B !important;
}

/* --------------------------------------------------------------------------
   D. Trust Bar Variants
   -------------------------------------------------------------------------- */
.trust-bar-expanded {
  background: #FFFFFF;
  padding: 2.5rem 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.trust-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.trust-card-enhanced {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #E0F2FE;
  color: #0284C7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title-text {
  font-weight: 700;
  color: #0F172A;
  font-size: 0.95rem;
}

.trust-subtitle-text {
  font-size: 0.8rem;
  color: #64748B;
}

.trust-bar-guarantee {
  background: #0B132B;
  border-top: 2px solid var(--color-primary, #EA580C);
  border-bottom: 2px solid var(--color-primary, #EA580C);
}

.trust-item-highlight {
  border-left: 2px solid var(--color-primary, #EA580C);
  padding-left: 1rem;
}

/* --------------------------------------------------------------------------
   D10. Blog & Homeowner Guides Section
   -------------------------------------------------------------------------- */
.blog-section {
  position: relative;
}

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

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, rgba(15, 23, 42, 0.08));
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 10px 25px -5px rgba(0, 0, 0, 0.1));
  border-color: var(--color-primary);
}

.blog-card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.03);
}

.img-blog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted, #64748B);
  margin-bottom: 0.75rem;
}

.blog-card-sep {
  opacity: 0.5;
}

.blog-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text, #0F172A);
}

.blog-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title-link:hover {
  color: var(--color-primary);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-muted, #64748B);
  margin-bottom: 1.5rem;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, rgba(15, 23, 42, 0.08));
  margin-top: auto;
  font-size: 0.85rem;
}

.blog-card-author {
  font-weight: 600;
  color: var(--color-muted, #64748B);
  font-size: 0.8rem;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.blog-read-more:hover {
  gap: 0.55rem;
  text-decoration: underline;
}

.blog-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   E. Theme Scoped Styling (10 Themes)
   -------------------------------------------------------------------------- */

/* 1. Theme: Modern Local Pro (.theme-modern-local-pro, .theme-modern-pro) */
.theme-modern-local-pro .btn-primary,
.theme-modern-pro .btn-primary {
  background-color: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.theme-modern-local-pro .service-card,
.theme-modern-pro .service-card {
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* 2. Theme: Split Hero (.theme-split-hero) */
.theme-split-hero .hero-split-grid {
  align-items: stretch;
}

.theme-split-hero .btn-primary {
  background-color: #2563EB;
  color: #FFFFFF;
  border-radius: 8px;
}

.theme-split-hero .card {
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

/* 3. Theme: Bold Conversion (.theme-bold-conversion, .theme-bold-trade) */
.theme-bold-conversion h1,
.theme-bold-trade h1,
.theme-bold-conversion h2,
.theme-bold-trade h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.theme-bold-conversion .btn-primary,
.theme-bold-trade .btn-primary {
  background-color: #EA580C;
  color: #FFFFFF;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.theme-bold-conversion .card,
.theme-bold-trade .card {
  border-radius: 6px;
  border: 1px solid #CBD5E1;
}

/* 4. Theme: Premium Local (.theme-premium-local, .theme-luxury-elegant) */
.theme-premium-local body,
.theme-luxury-elegant body {
  background-color: #FAFAF9;
}

.theme-premium-local h1,
.theme-luxury-elegant h1,
.theme-premium-local h2,
.theme-luxury-elegant h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.theme-premium-local .btn-primary,
.theme-luxury-elegant .btn-primary {
  background-color: #1C1917;
  color: #FFFFFF;
  border: 1px solid #D97706;
  border-radius: 4px;
  font-weight: 600;
}

.theme-premium-local .card,
.theme-luxury-elegant .card {
  border-radius: 4px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  background: #FFFFFF;
}

/* 5. Theme: Editorial Modern (.theme-editorial-modern) */
.theme-editorial-modern h1,
.theme-editorial-modern h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

.theme-editorial-modern .btn-primary {
  background-color: #0F172A;
  color: #FFFFFF;
  border-radius: 10px;
}

.theme-editorial-modern .card {
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

/* 6. Theme: Clean Minimal (.theme-clean-minimal, .theme-minimal-mono) */
.theme-clean-minimal body,
.theme-minimal-mono body {
  background-color: #FFFFFF;
}

.theme-clean-minimal h1,
.theme-minimal-mono h1,
.theme-clean-minimal h2,
.theme-minimal-mono h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.theme-clean-minimal .btn-primary,
.theme-minimal-mono .btn-primary {
  background-color: #09090B;
  color: #FFFFFF;
  border-radius: 4px;
  box-shadow: none;
}

.theme-clean-minimal .card,
.theme-minimal-mono .card {
  border-radius: 4px;
  border: 1px solid #E4E4E7;
  box-shadow: none;
}

/* 7. Theme: Trust First (.theme-trust-first) */
.theme-trust-first .btn-primary {
  background-color: #0369A1;
  color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.25);
}

.theme-trust-first .card {
  border-radius: 12px;
  border: 1px solid #BAE6FD;
}

/* 8. Theme: Modern Service Grid (.theme-modern-service-grid) */
.theme-modern-service-grid .btn-primary {
  background-color: #0284C7;
  color: #FFFFFF;
  border-radius: 10px;
}

.theme-modern-service-grid .card {
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-modern-service-grid .card:hover {
  transform: translateY(-3px);
  border-color: #0284C7;
}

/* 9. Theme: Contemporary Soft (.theme-contemporary-soft, .theme-clean-medical, .theme-warm-friendly) */
.theme-contemporary-soft body,
.theme-clean-medical body {
  background-color: #F0FDFA;
}

.theme-contemporary-soft .btn-primary,
.theme-clean-medical .btn-primary {
  background-color: #0D9488;
  color: #FFFFFF;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

.theme-contemporary-soft .card,
.theme-clean-medical .card {
  border-radius: 20px;
  border: 1px solid #CCFBF1;
  box-shadow: 0 8px 24px -4px rgba(13, 148, 136, 0.06);
}

/* 10. Theme: High Contrast Modern (.theme-high-contrast-modern, .theme-vibrant-modern) */
.theme-high-contrast-modern body {
  background-color: #FFFFFF;
}

.theme-high-contrast-modern h1,
.theme-high-contrast-modern h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

.theme-high-contrast-modern .btn-primary {
  background-color: #0F172A;
  color: #FFFFFF;
  border: 2px solid #0F172A;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 4px 4px 0px #EA580C;
}

.theme-high-contrast-modern .card {
  border-radius: 8px;
  border: 2px solid #0F172A;
  box-shadow: 4px 4px 0px rgba(15, 23, 42, 0.1);
}

