/* ==========================================================================
   Electrician North Highlands CA — Design System & Stylesheet
   Matches reference visual system: Deep Navy + Burnt Amber + Emerald + Slate
   Zero external font/CDN dependencies; WCAG 2.2 AA contrast & focus states
   ========================================================================== */

:root {
  /* Core Palette */
  --primary: #0a2540;
  --primary-dark: #061727;
  --primary-light: #163d63;
  --primary-hero-end: #0f345c;
  --secondary: #1e3a8a;

  /* Accents (WCAG 2.2 AA contrast verified for text buttons & decorative strokes) */
  --accent-amber: #e67e22;
  --accent-amber-btn: #c25e08;
  --accent-amber-hover: #a84f06;
  --accent-gold: #f59e0b;
  --accent-green: #059669;
  --accent-green-btn: #047857;
  --accent-green-hover: #065f46;
  --accent-green-light: #ecfdf5;
  --accent-green-text: #047857;

  /* Surfaces & Neutrals */
  --bg-slate: #f8fafc;
  --bg-slate-alt: #f1f5f9;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Typography & Layout */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1200px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-slate);
  font-family: var(--font-family);
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-slate);
  color: var(--text-main);
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

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

:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 2000;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent-gold);
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: #e2e8f0;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 150, 105, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.8rem;
}

.top-bar-address {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.top-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.top-bar-phone:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Sticky Site Header & Desktop Navigation
   ========================================================================== */
.site-header {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 0;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 100%;
  display: block;
}

.drawer-header .brand-logo-img {
  height: 42px;
}

.footer-brand-box .brand-logo-img {
  height: 48px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: var(--primary);
  background-color: var(--bg-slate-alt);
}

.nav-link.is-active {
  color: var(--primary);
  font-weight: 700;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.nav-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

/* Mega Menu & Areas Dropdown */
.mega-menu,
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px 22px;
  z-index: 1050;
  display: none;
}

.nav-item.is-open > .mega-menu,
.nav-item.is-open > .dropdown-menu {
  display: grid;
}

.mega-menu {
  width: 620px;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dropdown-areas {
  width: 500px;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mega-menu-top-row {
  grid-column: 1 / -1;
  padding-bottom: 10px;
  margin-bottom: -4px;
  border-bottom: 1px solid var(--border-light);
}

.mega-menu-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
}

.mega-menu-top-link:hover {
  background-color: var(--bg-slate-alt);
  color: var(--primary);
}

.menu-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.menu-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-link-list a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

.menu-link-list a:hover {
  background-color: var(--bg-slate-alt);
  color: var(--primary);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-call {
  background-color: var(--accent-green-btn);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.25);
}

.btn-call:hover {
  background-color: var(--accent-green-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--accent-amber-btn);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(194, 94, 8, 0.28);
}

.btn-primary:hover {
  background-color: var(--accent-amber-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--primary);
  cursor: pointer;
}

/* Mobile Slide-Out Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 23, 39, 0.6);
  z-index: 1200;
  display: none;
}

.drawer-backdrop.is-open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg-white);
  z-index: 1250;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-slate);
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-body {
  padding: 16px 20px 96px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.drawer-sublist {
  list-style: none;
  margin: 0;
  padding: 6px 0 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.drawer-sublist[hidden] {
  display: none;
}

.drawer-sublist a {
  display: block;
  padding: 8px 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.drawer-sublist a:hover {
  background: var(--bg-slate-alt);
  color: var(--primary);
}

.drawer-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

/* ==========================================================================
   Hero Section (Deep Navy Gradient + Split Layout)
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hero-end) 100%);
  position: relative;
  color: #ffffff;
  overflow: hidden;
  padding: 70px 0 80px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(30, 64, 175, 0.34) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumbs inside Hero */
.breadcrumb {
  margin-bottom: 16px;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "›";
  color: #94a3b8;
  font-weight: 700;
}

.breadcrumb-list a {
  color: #e2e8f0;
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 44px;
  align-items: center;
  min-height: 360px;
}

.hero-h1 {
  margin: 0 0 18px;
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-subtitle {
  margin: -4px 0 16px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-gold);
}

.hero-intro {
  margin: 0 0 26px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.hero-intro a {
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: underline;
}

.hero-intro a:hover {
  color: #fde68a;
}

.hero-cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-phone-btn {
  font-size: 1.1rem;
  font-weight: 800;
  padding: 14px 26px;
  box-shadow: 0 6px 18px rgba(194, 94, 8, 0.42);
}

.hero-quote-btn {
  font-size: 1.02rem;
  font-weight: 700;
  padding: 14px 24px;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  color: #e2e8f0;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.hero-trust-item a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-trust-item a:hover {
  color: var(--accent-gold);
}

/* Hero Right Column: Image Placeholder & Contact Info Card */
.hero-media-col {
  width: 100%;
}

.media-placeholder {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: var(--bg-slate-alt);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-placeholder-icon {
  width: 44px;
  height: 44px;
  color: #94a3b8;
  opacity: 0.55;
}

.hero-image-placeholder {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-xl);
}

.hero-image-placeholder .media-placeholder-icon {
  color: #cbd5e1;
  opacity: 0.45;
}

/* Final responsive website imagery */
.media-asset {
  margin: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

figure.media-asset {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: var(--bg-slate-alt);
}

.media-asset picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

.hero-image-placeholder.media-asset {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-xl);
}

/* Contact Page Hero Direct Info Card */
.hero-contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-contact-line {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #f8fafc;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hero-contact-line svg {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.hero-contact-line a {
  color: var(--accent-gold);
  font-weight: 700;
}

/* ==========================================================================
   Main Article Card & Section Rhythm
   ========================================================================== */
.page-wrapper {
  padding: 44px 0 64px;
}

.main-article {
  background: var(--bg-white);
  padding: 48px 56px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.content-section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--bg-slate-alt);
}

.content-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.section-h2 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 14px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--primary);
  border-bottom: 2px solid var(--bg-slate-alt);
}

.section-h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background-color: var(--accent-amber);
}

.section-h3 {
  margin: 26px 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-dark);
}

.main-article p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  max-width: none;
}

.main-article p:last-child {
  margin-bottom: 0;
}

.main-article p a {
  color: var(--secondary);
  font-weight: 600;
}

/* ==========================================================================
   Service Directory Cards (.svc-cards-section / .svc-grid / .svc-card)
   Exact reference horizontal split card with image placeholder + 01 badge
   ========================================================================== */
.svc-cards-section {
  margin: 36px 0 44px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.svc-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  align-items: stretch;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.11);
  border-color: #93c5fd;
}

.svc-card-media-col {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  background: linear-gradient(145deg, #16304c 0%, #0a1f36 100%);
}

.svc-card-media-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.svc-card-media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-card:hover .svc-card-media-link img {
  transform: scale(1.06);
}

.svc-card-media-col .media-placeholder-icon,
.loc-card-media .media-placeholder-icon {
  width: 40px;
  height: 40px;
  color: #94a3b8;
  opacity: 0.45;
}

.svc-card-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  pointer-events: none;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.svc-card-content-col {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  background-color: var(--bg-white);
}

.svc-card-header {
  margin-bottom: 8px;
}

.svc-card-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-green-text);
  background: var(--accent-green-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.svc-card-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--primary);
}

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

.svc-card-title a:hover,
.svc-card:hover .svc-card-title a {
  color: var(--secondary);
}

.svc-card-desc {
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
  margin: 0 0 16px !important;
  flex-grow: 1;
  max-width: none !important;
}

.svc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.svc-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.svc-card-btn .svc-card-arrow {
  transition: transform 0.2s ease;
}

.svc-card:hover .svc-card-btn {
  color: var(--accent-amber-btn);
  gap: 9px;
}

.svc-card:hover .svc-card-btn .svc-card-arrow {
  transform: translateX(3px);
}

.svc-card-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(230, 126, 34, 0.12);
  color: var(--accent-amber-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.svc-card-icon-badge:hover,
.svc-card:hover .svc-card-icon-badge {
  background: var(--accent-amber-btn);
  color: #ffffff;
  transform: scale(1.05);
}

/* ==========================================================================
   Location Directory Cards (.pro-location-cards / .loc-card-grid / .loc-card)
   Exact reference 3-column card grid with 16:10 image placeholder + county badge
   ========================================================================== */
.pro-location-cards {
  margin: 36px 0 24px;
  padding: 34px 28px 38px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.05);
}

.pro-location-cards-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.loc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.loc-card-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.04);
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.loc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.1);
  border-color: #38bdf8;
}

.loc-card-media-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.loc-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, #16304c 0%, #0a1f36 100%);
  text-decoration: none;
}

.loc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.loc-county-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  pointer-events: none;
  background: rgba(10, 37, 64, 0.9);
  backdrop-filter: blur(4px);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.loc-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.loc-header-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.loc-pin-icon {
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.loc-title,
.main-article p.loc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.25;
}

.loc-title a,
.main-article p.loc-title a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease;
}

.loc-card:hover .loc-title a,
.main-article .loc-card:hover p.loc-title a {
  color: var(--secondary);
}

.loc-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.loc-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-green-text);
  background: var(--accent-green-light);
  padding: 2px 7px;
  border-radius: 4px;
}

.loc-desc,
.main-article p.loc-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
  flex-grow: 1;
  max-width: none;
}

.loc-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.loc-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.loc-card:hover .loc-explore-btn {
  gap: 10px;
  color: var(--accent-amber-btn);
}

/* Directory Hub Centered Headings & View-All Directory CTA Row */
.pro-section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.pro-section-heading .section-h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.pro-section-heading .section-h2::after {
  display: none;
}

.section-subheading,
.main-article p.section-subheading {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.dir-cta-row {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.dir-cta-btn {
  padding: 13px 26px;
  font-size: 0.98rem;
}

.btn-outline {
  border: 2px solid var(--primary);
  background-color: var(--bg-white);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-links a.footer-dir-link {
  color: #ffffff;
  font-weight: 700;
}

.footer-links a.footer-dir-link:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Info / Editorial / Comparison Multi-H3 Card Grids
   ========================================================================== */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0;
}

.info-card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card .section-h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--primary);
}

.info-card p {
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--text-main);
  margin: 0;
  max-width: none;
}

.info-card ul,
.info-card ol {
  margin: 4px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-main);
}

/* ==========================================================================
   Feature Lists & Numbered Process Cards (2-Column Grid)
   ========================================================================== */
.feature-list {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-list.single-col {
  grid-template-columns: 1fr;
}

.feature-item {
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--accent-green-light);
  color: var(--accent-green-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 800;
  font-size: 0.85rem;
}

.feature-icon-badge.step-num {
  background: var(--primary);
  color: #ffffff;
}

.feature-item-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-main);
}

.feature-item-text strong {
  color: var(--primary-dark);
}

/* Compact Bullet Lists & Area Link Grids */
.compact-bullet-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.compact-bullet-list li {
  position: relative;
  padding: 10px 14px 10px 34px;
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text-main);
}

.compact-bullet-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-amber);
}

.area-grid {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.area-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  padding: 12px 16px;
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.area-grid a svg {
  flex-shrink: 0;
}

.area-grid a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Media Placeholder Gallery (Recent Work / Body Image Slots)
   ========================================================================== */
.media-gallery {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

.media-gallery.cols-1 {
  grid-template-columns: 1fr;
}

.media-gallery.cols-1 .media-placeholder {
  max-height: 440px;
}

.media-gallery.cols-1 .media-asset {
  max-height: 440px;
}

.media-gallery.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-gallery.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-gallery .media-placeholder {
  border-radius: var(--radius-lg);
}

.media-gallery .media-asset {
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Responsive Data Tables (Navy Header, Striped Rows)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--bg-white);
  text-align: left;
  font-size: 0.96rem;
}

.data-table thead th {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  line-height: 1.35;
}

.data-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: top;
  line-height: 1.55;
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--bg-slate);
}

.data-table tbody td:first-child {
  font-weight: 600;
  color: var(--primary-dark);
}

/* ==========================================================================
   Reserved Testimonial Slots (No Invented Reviews)
   ========================================================================== */
.testimonial-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 22px 0 8px;
}

.testimonial-slot {
  min-height: 120px;
  border-radius: var(--radius-lg);
  background: var(--bg-slate);
  border: 1px dashed var(--border-medium);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-slot-icon {
  width: 28px;
  height: 28px;
  color: #94a3b8;
  opacity: 0.5;
}

/* ==========================================================================
   Pre-CTA Highlight Callout
   ========================================================================== */
.pre-cta-callout {
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.pre-cta-callout .section-h2 {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.pre-cta-callout .section-h2::after {
  display: none;
}

.pre-cta-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Contact Quote Form (Accessible & Honest)
   ========================================================================== */
.quote-form {
  margin-top: 24px;
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  line-height: 1.4;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: #b91c1c;
  background: #fef2f2;
}

.field-error {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b91c1c;
  min-height: 1.2em;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.55;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #ecfdf5;
  border: 1px solid #059669;
  color: #065f46;
}

.form-status.is-notice {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #78350f;
}

.form-status.is-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #7f1d1d;
}

.form-status a {
  color: inherit;
  font-weight: 800;
}

/* Visual Canvas CAPTCHA Widget */
.captcha-widget {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px;
}

.captcha-canvas {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  display: block;
}

.captcha-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-slate);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.captcha-refresh-btn:hover {
  background: var(--bg-slate-alt);
  border-color: var(--primary);
}

.captcha-input {
  max-width: 240px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* NAP Consistency Card (Contact Page) */
.nap-card {
  margin-top: 28px;
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.nap-card-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.nap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nap-grid li {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-main);
}

.nap-grid strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* ==========================================================================
   Accessible FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item-heading {
  margin: 0;
  font-size: 1.05rem;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  line-height: 1.4;
}

.faq-question:hover {
  background-color: var(--bg-slate);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-amber-btn);
}

.faq-answer {
  padding: 0 22px 18px;
  border-top: 1px solid var(--bg-slate-alt);
}

.faq-answer p {
  margin: 14px 0 0;
  font-size: 0.99rem;
  line-height: 1.68;
  color: var(--text-main);
}

/* Progressive enhancement: only collapse when JS is active */
html.js-enabled .faq-answer[hidden] {
  display: none;
}

/* ==========================================================================
   Silo Internal Links Panel (Related Services & Area Chips)
   ========================================================================== */
.silo-links-panel {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.silo-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.silo-group-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 4px;
}

.silo-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.silo-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Final CTA Banner (Dark Navy Rounded Card outside .main-article)
   ========================================================================== */
.final-cta-section {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hero-end) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
}

.final-cta-section .section-h2 {
  color: #ffffff;
  font-size: 1.85rem;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.final-cta-section .section-h2::after {
  display: none;
}

.final-cta-section p {
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.final-cta-section p a {
  color: var(--accent-gold);
  font-weight: 700;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Local Service Area Map Embed (.map-section / .map-frame-wrapper)
   ========================================================================== */
.map-section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--bg-slate-alt);
}

.map-frame-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--bg-slate);
  margin-top: 18px;
}

.map-frame-wrapper iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-info-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-slate);
  border-top: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text-main);
}

.map-info-bar a {
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.map-info-bar a:hover {
  color: var(--accent-amber-btn);
  text-decoration: underline;
}

/* ==========================================================================
   E-E-A-T Specialist Review Card (matching cleanguttersroseville.com)
   ========================================================================== */
.eeat-author-card {
  margin-top: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.eeat-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eeat-body {
  min-width: 0;
}

.eeat-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--primary);
}

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

.eeat-text a {
  color: var(--secondary);
  font-weight: 700;
}

/* Legal Page Metadata Pill */
.legal-meta-pill {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-slate-alt);
  border: 1px solid var(--border-light);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   Global Footer (Dark Midnight Navy + 4px Amber Top Border)
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  border-top: 4px solid var(--accent-amber);
  padding: 56px 0 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand-box {
  display: inline-flex;
  flex-direction: column;
  background: var(--bg-white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-contact-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.93rem;
}

.footer-contact-list strong {
  color: #ffffff;
}

.footer-phone-link {
  color: var(--accent-gold);
  font-weight: 800;
  text-decoration: none;
}

.footer-phone-link:hover {
  color: #fde68a;
  text-decoration: underline;
}

.footer-disclosure {
  margin: 14px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #94a3b8;
}

.footer-col-title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-bottom-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Sticky Mobile Bottom Bar (<= 820px)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 14px rgba(6, 23, 39, 0.12);
  padding: 10px 14px;
  gap: 10px;
}

.mobile-bottom-bar .btn {
  flex: 1 1 0;
  padding: 12px 12px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Balanced Odd-Row Spanning (Eliminate Orphan Empty Gaps on Desktop/Tablet)
   ========================================================================== */
@media (min-width: 1061px) {
  .svc-grid > .svc-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: 320px 1fr;
  }
}

@media (min-width: 641px) {
  .svc-card-media-link img[src*="services-electrical-panel-upgrade-hero"] {
    object-position: 77% center;
  }
}

@media (min-width: 1025px) {
  .loc-card-grid:not(.cols-2) > .loc-card:only-child,
  .loc-card-grid:not(.cols-2) > .loc-card:last-child:nth-child(3n + 1),
  .loc-card-grid.cols-2 > .loc-card:only-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 320px 1fr;
  }

  .loc-card-grid:not(.cols-2) > .loc-card:only-child .loc-card-media-wrap,
  .loc-card-grid:not(.cols-2) > .loc-card:last-child:nth-child(3n + 1) .loc-card-media-wrap,
  .loc-card-grid.cols-2 > .loc-card:only-child .loc-card-media-wrap {
    height: 100%;
  }

  .loc-card-grid:not(.cols-2) > .loc-card:only-child .loc-card-media,
  .loc-card-grid:not(.cols-2) > .loc-card:last-child:nth-child(3n + 1) .loc-card-media,
  .loc-card-grid.cols-2 > .loc-card:only-child .loc-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 155px;
  }

  .loc-card-grid:not(.cols-2) > .loc-card:only-child .loc-card-body,
  .loc-card-grid:not(.cols-2) > .loc-card:last-child:nth-child(3n + 1) .loc-card-body,
  .loc-card-grid.cols-2 > .loc-card:only-child .loc-card-body {
    justify-content: center;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .loc-card-grid > .loc-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 260px 1fr;
  }

  .loc-card-grid > .loc-card:last-child:nth-child(odd) .loc-card-media-wrap {
    height: 100%;
  }

  .loc-card-grid > .loc-card:last-child:nth-child(odd) .loc-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 155px;
  }

  .loc-card-grid > .loc-card:last-child:nth-child(odd) .loc-card-body {
    justify-content: center;
  }
}

@media (min-width: 821px) {
  .feature-list:not(.single-col) > .feature-item:last-child:nth-child(odd),
  .compact-bullet-list > li:last-child:nth-child(odd),
  .info-card-grid:not(.cols-3) > .info-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Responsive Breakpoints (1060px, 1024px, 991px, 820px, 640px, 420px)
   ========================================================================== */
@media (max-width: 1060px) {
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .svc-card {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 1024px) {
  .main-article {
    padding: 36px 36px;
  }

  .loc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }

  .info-card-grid.cols-3,
  .media-gallery.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card-grid.cols-3 > .info-card:last-child:nth-child(odd),
  .media-gallery.cols-3 > .media-placeholder:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .media-gallery.cols-3 > .media-asset:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 72px;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

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

  .mobile-bottom-bar {
    display: flex;
  }

  .hero-section {
    padding: 42px 0 52px;
  }

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

  .hero-intro {
    font-size: 1rem;
  }

  .page-wrapper {
    padding: 26px 0 42px;
  }

  .main-article {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .section-h2 {
    font-size: 1.48rem;
  }

  .pro-location-cards {
    padding: 24px 18px 28px;
  }

  .info-card-grid,
  .info-card-grid.cols-3,
  .feature-list,
  .compact-bullet-list,
  .media-gallery.cols-2,
  .media-gallery.cols-3,
  .form-grid,
  .nap-grid {
    grid-template-columns: 1fr;
  }

  .map-frame-wrapper iframe {
    height: 320px;
  }

  .eeat-author-card {
    padding: 18px 18px;
    gap: 14px;
  }

  .pre-cta-callout {
    padding: 22px 20px;
  }

  .final-cta-section {
    padding: 28px 22px;
    border-radius: var(--radius-lg);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .svc-card {
    grid-template-columns: 1fr;
  }

  .svc-card-media-col {
    aspect-ratio: 16 / 9;
    min-height: 190px;
  }

  .svc-card-content-col {
    padding: 18px 20px;
  }

  .loc-card-grid,
  .loc-card-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 14px;
  }

  .brand-logo-img {
    height: 42px;
  }

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

  .hero-cta-box .btn,
  .final-cta-actions .btn,
  .form-actions .btn {
    width: 100%;
  }

  .quote-form {
    padding: 20px 16px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
