/* ==========================================
   SIG Hydraulics: Premium Design System
   Dark Navy + Orange Accent
   ========================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* ==========================================
   1. CSS Custom Properties (Design Tokens)
   ========================================== */
:root {
  /* ---- Color Palette (Light Theme Defaults) ---- */
  --bg-primary: #ffffff;
  --bg-secondary: #edf2f7;
  --bg-tertiary: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Brand Navy (For dark sections) */
  --navy-deep: #10192b;
  --navy-brand: #192641;
  --navy-light: #24365c;
  --navy-card: rgba(25, 38, 65, 0.6);
  --navy-card-hover: rgba(25, 38, 65, 0.85);

  /* Orange Accent (SIG Brand) */
  --accent: #F46F17;
  --accent-rgb: 244, 111, 23;
  --accent-hover: #d65b0c;
  --accent-dark: #c2410c;
  --accent-light: rgba(244, 111, 23, 0.12);
  --accent-glow: rgba(244, 111, 23, 0.35);

  /* Functional */
  --border-color: #e2e8f0;
  --border-hover: rgba(244, 111, 23, 0.3);
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.12);
  --success-text: #047857;
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.12);
  --danger-text: #b91c1c;
  --accent-text: var(--accent-dark);

  /* ---- Typography ---- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* ---- Spacing & Layout ---- */
  --max-width: 1200px;
  --section-pad: 6rem;

  /* ---- Transitions ---- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s var(--ease);
  --t-normal: 0.3s var(--ease);
  --t-slow: 0.5s var(--ease);

  /* ---- Radii ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 30px;
  --r-full: 9999px;

  /* ---- Missing Variables ---- */
  --card-bg: var(--bg-card);
  --bg-dark: #10192b;
  --bg-charcoal: #192641;
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.3), 0 8px 10px -6px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.15), 0 2px 4px -2px rgba(0,0,0,0.15);
  --radius-lg: var(--r-lg);
  --radius-md: var(--r-md);
  --radius-sm: var(--r-sm);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   3. Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-primary);
}

.section-dark h2,
.hero h2,
.cta-section h2,
.cta-box h2 {
  background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

strong {
  color: var(--text-primary);
  font-weight: 600;
}

em {
  font-style: italic;
}

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

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-dark {
  background-color: var(--navy-brand);
  color: #ffffff;
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(244, 111, 23, 0.4);
  --bg-card: rgba(16, 25, 43, 0.6);
  --bg-card-hover: rgba(16, 25, 43, 0.85);
  --accent-text: var(--accent);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 1rem;
}

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

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

/* ==========================================
   5. Top Bar
   ========================================== */
.top-bar {
  background-color: var(--navy-brand);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0;
}

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

.top-bar-text {
  font-family: var(--font-display);
}

.top-bar-link {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
  padding: 14px 0;
  margin: -14px 0;
  transition: color var(--t-fast);
}

.top-bar-link:hover {
  color: var(--accent) !important;
}

.top-bar-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff !important;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ==========================================
   6. Header & Navigation
   ========================================== */
#site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(25, 38, 65, 0.05);
}

@media (min-width: 1025px) {
  #site-header {
    top: calc(-1 * var(--tier1-height, 89px)); /* Matches exact height of Tier 1 brand bar */
    box-shadow: none;
  }
}

/* --- Tier 1: Brand Bar (white) --- */
.header-tier-1 {
  padding: 0.75rem 0;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(25, 38, 65, 0.06);
}

.tier-1-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.logo-image {
  height: 65px;
  width: auto;
  display: block;
}

.tier-1-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.emergency-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tier-1-separator {
  color: var(--border-color);
  font-size: 1.2rem;
  line-height: 1;
}

.tier-1-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* --- Tier 2: Sticky White Navigation Bar --- */
.header-tier-2 {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--accent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(16, 25, 43, 0.15);
  transition: padding var(--t-fast);
  padding: 0.75rem 0;
}

.header-tier-2.is-scrolled {
  padding: 0.35rem 0;
}

.tier-2-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sticky Logo: Hidden initially, fades in when scrolled past Tier 1 */
.sticky-logo {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  margin-right: 0;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: var(--r-full);
  padding: 0;
}

.sticky-logo-img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* Standard logo color on white background */
}

.header-tier-2.is-scrolled .sticky-logo {
  max-width: 220px;
  opacity: 1;
  margin-right: 1rem;
  padding: 0.25rem 0.75rem;
}

.nav-main {
  flex: 1;
}

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

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem clamp(0.6rem, 1.2vw, 1.1rem);
  margin: 0.3rem 0.15rem;
  min-height: 44px; /* Ensure WCAG target guidelines (>=44px target height) */
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
  transition: color var(--t-fast), background-color var(--t-fast), border-radius var(--t-fast);
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #ffffff;
  background-color: var(--navy-deep);
  border-radius: var(--r-full);
}

/* Dropdown Arrow */
.dropdown-arrow {
  transition: transform var(--t-fast);
  opacity: 0.8;
  flex-shrink: 0;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* --- Tier 2 Actions: Book Online + Phone Block --- */
.tier-2-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.25vw, 1.25rem);
  flex-shrink: 0;
  margin-left: clamp(0.5rem, 1vw, 1rem);
}

/* Book Online Button with Pulse Animation */
@keyframes pulse-ring-navy {
  0% { box-shadow: 0 0 0 0 rgba(25, 38, 65, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(25, 38, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 38, 65, 0); }
}

.book-online-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy-brand);
  color: #ffffff;
  padding: 0.75rem clamp(0.75rem, 1.25vw, 1.25rem);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast), transform var(--t-fast);
  animation: pulse-ring-navy 2.5s infinite;
}

.book-online-btn:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  color: #ffffff;
  animation: none;
}

/* Phone Number Block (stacked: number + "24/7 Scheduling" subtext) */
.tier-2-phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.tier-2-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.25vw, 1.3rem);
  font-weight: 800;
  color: var(--navy-deep);
  text-decoration: none;
  transition: color var(--t-fast);
  white-space: nowrap;
  line-height: 1.1;
  padding: 13px 0;
  margin: -13px 0;
}

.tier-2-phone:hover {
  color: #0d1b38;
}

.phone-subtext {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(16, 25, 43, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 260px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t-fast);
  z-index: 1001;
  border-top: 3px solid var(--navy-brand);
}

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

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: flex; /* Centering for vertical target compatibility */
  align-items: center;
  padding: 0.75rem 1.25rem;
  min-height: 44px; /* Ensure WCAG target guidelines */
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
}

.dropdown-menu a:hover {
  background-color: var(--navy-brand);
  color: #ffffff;
}

.dropdown-menu a.active::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.emergency-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  background-color: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--t-fast);
  animation: pulse-glow 2.5s ease-in-out infinite;
  text-decoration: none;
}

.emergency-btn:hover {
  background-color: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  animation: none;
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-brand);
  text-decoration: none;
  transition: color var(--t-fast);
}

.header-phone-link:hover {
  color: var(--accent-text);
}

.header-phone-link svg {
  stroke: var(--accent-text);
  transition: stroke var(--t-fast);
}

.header-phone-link:hover svg {
  stroke: var(--accent-hover);
}

/* Mobile Actions Wrapper */
.tier-1-mobile-actions {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 110;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--navy-brand);
  border-radius: 2px;
  transition: all var(--t-fast);
}

.mobile-menu-toggle.is-open .hamburger-line {
  background-color: var(--navy-brand);
}

.mobile-menu-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  top: 73px; /* Sits exactly below the sticky brand bar */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(25, 38, 65, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-normal);
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transform: translateY(20px);
  transition: transform var(--t-normal);
}

.mobile-menu-overlay.is-open .mobile-menu-nav {
  transform: translateY(0);
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
}

.mobile-menu-link:hover {
  color: var(--accent);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 280px;
  margin-top: 1.5rem;
}

.mobile-menu-cta {
  width: 100%;
}

.mobile-menu-overlay .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background-color: transparent;
}

.mobile-menu-overlay .btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.1);
}

/* ==========================================
   7. Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-normal);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #000 !important;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 25px rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: rgba(var(--accent-rgb), 0.05);
  border-color: var(--accent-text);
  color: var(--accent-text);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: #ef4444;
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background-color: #dc2626;
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ==========================================
   8. Cards
   ========================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.25rem;
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--t-normal);
  position: relative;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(var(--accent-rgb), 0.05);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background-color: var(--accent-light);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-featured-badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-response-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--accent-light);
  border-radius: var(--r-full);
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.card-link {
  color: var(--accent-text);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  min-height: 44px;
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Service card styling with images */
.service-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

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

.service-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-card-header h3 {
  margin-bottom: 0;
}

.card-icon-small {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background-color: var(--accent-light);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Service card featured */
.service-card-featured {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, var(--bg-card) 100%);
}

.service-card-featured:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--accent-rgb), 0.08);
}

/* Service Hero Card */
.service-hero-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: all var(--t-normal);
}

.service-hero-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.service-hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.service-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.service-hero-card:hover .service-hero-image {
  transform: scale(1.03);
}

.service-hero-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-hero-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.service-hero-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 0.12em;
}

.service-hero-card h3 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.service-hero-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.service-hero-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 991px) {
  .service-hero-card {
    grid-template-columns: 1fr;
  }
  .service-hero-image-wrapper {
    min-height: 250px;
    aspect-ratio: 16 / 9;
  }
  .service-hero-content {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .service-hero-benefits {
    grid-template-columns: 1fr;
  }
}

/* Services listing page details cards */
.service-detail-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-xl);
  padding: 3rem;
  margin-bottom: 3rem;
  overflow: hidden;
  align-items: center;
  position: relative;
}

.service-detail-card-featured {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.04) 0%, var(--bg-card) 100%);
}

.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-detail-tagline {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-detail-description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.service-detail-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-detail-benefits h3,
.service-detail-industries h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.industry-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 500;
}

.service-detail-actions {
  display: flex;
  gap: 1rem;
}

.service-detail-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.service-detail-card:hover .service-detail-image {
  transform: scale(1.03);
}

.featured-ribbon {
  position: absolute;
  top: 0;
  left: 3rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 10; /* Ensure visibility over relative image containers */
}

@media (max-width: 576px) {
  .featured-ribbon {
    left: 0 !important;
    border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
    font-size: 0.7rem !important;
    padding: 0.3rem 0.6rem !important;
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .service-detail-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .service-detail-image-wrapper {
    order: -1;
    aspect-ratio: 16 / 10;
  }
  
  .service-detail-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Trust cards */
.trust-card .card-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
}

/* ==========================================
   9. Badges
   ========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--text-primary);
}

.section-dark .badge,
.hero .badge,
footer .badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.badge-accent {
  background: var(--accent-light);
  border-color: rgba(var(--accent-rgb), 0.3);
  color: #9c3108;
}

.badge-danger {
  background: var(--danger-light);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.badge-success {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.type-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
}

/* ==========================================
   10. Hero Section
   ========================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 0;
  background-image: linear-gradient(135deg, rgba(13, 27, 56, 0.82) 0%, rgba(13, 27, 56, 0.72) 100%), url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: #ffffff;
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(244, 111, 23, 0.4);
  --bg-card: rgba(16, 25, 43, 0.65);
  --bg-card-hover: rgba(16, 25, 43, 0.85);
}

.hero-bg-gradient {
  display: none; /* Background image handles this now */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(232, 119, 34, 0.15);
  border: 1px solid rgba(232, 119, 34, 0.4);
  color: var(--accent);
  padding: 0.45rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.12;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

/* Hero Stats Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin-top: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 1.25rem 1rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all var(--t-fast);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-card-accent {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, var(--bg-card) 100%);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Hero Trust Badge and Local Search Widget */
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.gbp-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-display);
}

.gbp-rating-pill .stars {
  color: #fbbf24; /* Google review star yellow */
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.gbp-rating-pill .rating-val {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1;
}

.hero-trust-badge .trust-text {
  color: var(--text-secondary);
  font-weight: 500;
}

.gbp-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--t-fast);
  display: inline-block;
  padding: 0.85rem 0;
  margin: -0.85rem 0;
}

.gbp-link:hover {
  color: #ffffff;
}

.local-dispatch-checker {
  margin-top: 2.5rem;
  margin-bottom: 4.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 1.5rem;
  max-width: 550px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(16, 25, 43, 0.3);
}

.checker-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.checker-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.dispatch-form .input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.dispatch-form input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-color);
  background: rgba(16, 25, 43, 0.8);
  color: #ffffff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.dispatch-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.dispatch-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.dispatch-form .checker-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.dispatch-result {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn var(--t-normal) ease;
}

.dispatch-result.hidden {
  display: none;
}

.dispatch-result.success {
  background-color: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #ffffff;
}

.dispatch-result.warning {
  background-color: rgba(244, 111, 23, 0.08);
  border: 1px solid rgba(244, 111, 23, 0.3);
  color: #ffffff;
}

.dispatch-result .result-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.dispatch-result.success .result-header {
  color: #10b981;
}

.dispatch-result.warning .result-header {
  color: var(--accent);
}

.dispatch-result .result-icon {
  flex-shrink: 0;
}

.dispatch-result .result-text {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.dispatch-result .result-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dispatch-result .result-link {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.dispatch-result .result-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

@media (max-width: 480px) {
  .dispatch-form .input-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  .dispatch-form .checker-btn {
    width: 100%;
    text-align: center;
  }
}

/* Page Hero (for inner pages) */
.page-hero {
  background: var(--bg-secondary);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
}

.page-hero .hero-badge {
  margin-bottom: 1rem;
}

/* ==========================================
   11. Why Choose Us (Problem/Solution)
   ========================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.why-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--danger-text);
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-full);
  background: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.why-label-accent {
  color: var(--accent-text);
  background: var(--accent-light);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.why-label-success {
  color: var(--success-text);
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.2);
}

.why-column {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
  position: relative;
  overflow: hidden;
}

.why-column:first-child {
  border-left: 4px solid var(--danger);
}

.why-column:last-child {
  border-left: 4px solid var(--success);
}

.why-column:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.why-column h3 {
  margin-bottom: 1.5rem;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.why-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
}

.why-list-problem li::before {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.why-list-solution li::before {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
}

.why-list-success li::before {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* ==========================================
   12. 3-Step Process
   ========================================== */
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  flex: 1;
  max-width: 320px;
  transition: all var(--t-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-connector {
  flex-shrink: 0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.9rem;
}

/* ==========================================
   13. Owner Section
   ========================================== */
.owner-grid {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

.owner-image-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.owner-image-inner {
  opacity: 0.3;
}

.owner-image,
.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-image-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto;
}

.owner-intro {
  font-size: 1.15rem;
  line-height: 1.7;
}

.owner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* ==========================================
   14. Industries Grid
   ========================================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: all var(--t-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.industry-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.industry-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.industry-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================
   15. One Truck Section
   ========================================== */
.one-truck-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.one-truck-image-col {
  position: relative;
}

.one-truck-image {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: block;
}

.one-truck-content h2 {
  text-align: left;
}

.one-truck-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.feature-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-check svg {
  flex-shrink: 0;
}

/* ==========================================
   16. CTA Section
   ========================================== */
.cta-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-section.section-dark {
  background: linear-gradient(180deg, var(--navy-brand) 0%, var(--navy-deep) 100%);
}

.cta-box {
  background: linear-gradient(135deg, #0d1b38 0%, #091122 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: 4rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-box p {
  color: #cbd5e1;
  margin: 1rem auto 0;
  max-width: 550px;
}

/* ==========================================
   17. Service Area Styling
   ========================================== */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.county-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: all var(--t-normal);
  text-decoration: none;
  display: block;
}

.county-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.county-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.county-card h3 {
  margin-bottom: 0;
}

.county-response {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.county-cities-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.city-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-sm);
  color: var(--text-muted);
}

/* Service area detail page */
.area-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.area-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.area-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.zip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.zip-badge {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.5rem;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.city-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 1rem;
  text-align: center;
  transition: all var(--t-fast);
}

.city-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.city-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ==========================================
   18. Services Detail Page
   ========================================== */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

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

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.benefits-list li svg {
  flex-shrink: 0;
  color: var(--accent);
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ==========================================
   19. Contact Form
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--t-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-info-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 0.15rem;
}

/* ==========================================
   20. Footer
   ========================================== */
footer {
  background-color: #10192b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 0 2.5rem;
  color: var(--text-secondary);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #8fa0b5;
  --border-color: rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-image {
  height: 32px;
  filter: brightness(0) invert(1);
}

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

.footer-description {
  font-size: 0.9rem;
  margin: 1rem 0;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-legal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-col h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.1rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary) !important;
}

.footer-serving {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-call-btn {
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-bottom-links a {
  color: var(--text-muted);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

.footer-divider {
  opacity: 0.3;
}

/* ==========================================
   21. Animations
   ========================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   22. Responsive
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --section-pad: 4rem;
  }

  .top-bar {
    display: none;
  }

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

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    max-width: 500px;
    margin: 2.5rem auto 0;
  }

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

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

  .owner-image-placeholder {
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

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

  .area-detail-grid {
    grid-template-columns: 1fr;
  }

  .one-truck-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .one-truck-image-col {
    max-width: 500px;
    margin: 0 auto;
    order: -1; /* Place image above text on mobile/tablet */
  }
}

@media (max-width: 1024px) {
  .header-tier-2 {
    display: none;
  }

  .logo-image {
    height: 48px;
  }

  .tier-1-right {
    display: none;
  }

  .tier-1-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background-color: var(--accent);
    color: #000000;
    padding: 0 0.75rem;
    min-height: 44px;
    border-radius: var(--r-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(244, 111, 23, 0.2);
    transition: all var(--t-fast);
  }

  .mobile-phone-link:hover {
    background-color: var(--accent-hover);
    color: #000000;
    transform: translateY(-1px);
  }

  .mobile-phone-link svg {
    stroke: #000000;
  }

  .mobile-book-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background-color: var(--navy-brand);
    color: #ffffff;
    padding: 0 0.75rem;
    min-height: 44px;
    border-radius: var(--r-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(25, 38, 65, 0.2);
    transition: all var(--t-fast);
  }

  .mobile-book-link:hover {
    background-color: var(--navy-light);
    color: #ffffff;
    transform: translateY(-1px);
  }

  .mobile-book-link svg {
    stroke: #ffffff;
  }

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

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

  .step-connector {
    transform: rotate(90deg);
    padding: 0;
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .hero {
    padding: 2rem 0 0;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

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

  .industry-card {
    padding: 1.25rem 0.75rem;
  }

  /* County grid: 2 cols only if room, otherwise 1 */
  .county-grid {
    grid-template-columns: 1fr;
  }
  @supports (width: min(260px, 100%)) {
    .county-grid {
      grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    }
  }
}

/* ==========================================
   8. Blog Prose & Typography Styling
   ========================================== */
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-primary);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.prose h1 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.prose h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}
.prose h3 {
  font-size: 1.3rem;
  color: var(--accent-text);
}
.prose p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.prose li strong {
  color: var(--text-primary);
}
.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}
.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  transition: color var(--t-fast);
}
.prose a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Chat Widget Styles
   ========================================================================== */

.sig-chat-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  font-family: var(--font-sans);
}

.mobile-menu-overlay.is-open ~ .sig-chat-container {
  display: none !important;
}

.sig-chat-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-normal) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sig-chat-bubble:hover {
  transform: scale(1.08) translateY(-3px);
  background: var(--accent-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(245, 158, 11, 0.5);
  color: #000000;
}

.sig-chat-bubble:active {
  transform: scale(0.95);
}

.sig-chat-bubble .icon-close {
  display: none;
}

.sig-chat-bubble.is-active .icon-open {
  display: none;
}

.sig-chat-bubble.is-active .icon-close {
  display: block;
}

.sig-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--t-normal) cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: bottom right;
}

.sig-chat-window.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translateY(30px);
  pointer-events: none;
}

.sig-chat-header {
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--bg-charcoal) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sig-chat-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sig-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.sig-chat-title h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--font-display);
}

.sig-chat-status {
  font-size: 0.75rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sig-chat-close {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.sig-chat-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.sig-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
}

/* Lead Capture Form */
.sig-chat-gate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.gate-intro {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.sig-chat-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chat-form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.chat-form-group input {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--t-fast);
}

.chat-form-group input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.gate-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
  line-height: 1.4;
}

/* Conversation wrapper */
.sig-chat-convo-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100% - 73px); /* 100% minus header height */
}

.sig-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(25, 38, 65, 0.2);
}

.msg {
  display: flex;
  width: 100%;
}

.msg-user {
  justify-content: flex-end;
}

.msg-bubble {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.msg-bot .msg-bubble {
  background: var(--bg-charcoal);
  color: #ffffff;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 0;
}

.msg-user .msg-bubble {
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 500;
  border-bottom-right-radius: 0;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.8rem 1.2rem;
  align-items: center;
  min-height: 38px;
}

.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Footer elements */
.sig-chat-footer {
  padding: 0.8rem 1.2rem 1.2rem;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}

.sig-chat-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.4rem;
}

#sig-chat-counter {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sig-chat-input-form {
  display: flex;
  gap: 0.6rem;
}

.sig-chat-input-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--t-fast);
}

.sig-chat-input-form input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.sig-chat-input-form input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sig-chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.sig-chat-send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.05);
  color: #000000;
}

.sig-chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--border-color);
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .sig-chat-container {
    bottom: 2rem;
    right: 1rem;
  }
  
  .sig-chat-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }
  
  .sig-chat-convo-wrapper {
    height: calc(100% - 68px);
  }
}

/* Contact Form Success & Error Messages */
.contact-success-message {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
  animation: fadeIn 0.4s ease;
}

.success-icon-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  color: var(--accent);
}

.contact-success-message h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.contact-success-message p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-success-message .success-urgency {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px dashed rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.contact-error-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fee2e2;
  border: 1px solid #f87171;
  border-radius: var(--radius-md);
  color: #b91c1c;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.contact-error-message svg {
  flex-shrink: 0;
  margin-top: 2px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-spin {
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

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

.btn-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
  transition: all var(--t-normal);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: #94a3b8;
  color: var(--accent-text);
  transform: translateY(-2px);
}

/* ==========================================
   About Page Layouts & Grid Components
   ========================================== */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 992px) {
  .about-two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.founder-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Differentiators Grid */
.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.differentiator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  transition: all var(--t-normal);
}

.differentiator-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.differentiator-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* By the Numbers Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--t-normal);
}

.stat-block:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-block-accent {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.04) 0%, var(--bg-card) 100%);
}

.stat-value-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.stat-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Government Badges Grid */
.gov-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gov-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  transition: all var(--t-normal);
}

.gov-badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.gov-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Service Radar Card Grid */
.radar-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.radar-stats {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radar-stat-item {
  flex: 1;
  min-width: 100px;
}

/* Steps stretch height and vertical alignment */
.steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.step-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

/* Contact page hours spacing */
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hours-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hours-emergency {
  color: var(--accent-text);
}

/* Service Detail Actions Wrap */
.service-detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .radar-card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .step-connector {
    transform: rotate(90deg);
    padding: 0.5rem 0;
    margin: 0.5rem 0;
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-info-card {
    padding: 1.5rem;
  }

  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
  }
  
  .service-detail-actions .btn {
    width: 100%;
  }

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

  .radar-stat-item {
    border-left: none !important;
    padding-left: 0 !important;
  }
}

@media (max-width: 375px) {
  .county-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ==========================================
   Milestone 5 - Custom Enhancements
   ========================================== */

/* Stats Ribbon Bar */
.stats-ribbon-bar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  width: 100%;
  color: var(--text-primary);
  
  /* Reset variables back to root light-theme/default colors since it's on a light bg */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-hover: rgba(244, 111, 23, 0.3);
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
}

/* Mock Map Graphic */
.mock-map-graphic {
  position: relative;
  height: 300px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-core-circle {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px dashed rgba(249, 115, 22, 0.2);
  background: rgba(249, 115, 22, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-normal);
}

.map-inner-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-center-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  position: relative;
}

.map-center-label {
  position: absolute;
  left: 20px;
  top: -5px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
}

.map-city-label {
  position: absolute;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.map-city-akron { top: 30px; left: 40px; }
.map-city-warren { top: 60px; right: 50px; }
.map-city-canton { top: 120px; left: 30px; }
.map-city-youngstown { top: 110px; right: 70px; }
.map-city-carrollton { bottom: 50px; left: 100px; }
.map-city-newcastle { bottom: 80px; right: 40px; }
.map-city-monaca { bottom: 130px; right: 20px; }

.stats-ribbon-bar .hero-stats {
  margin-top: 0;
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .stats-ribbon-bar .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .stats-ribbon-bar .hero-stats {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
}

/* Footer Map Link Hover Styling */
.footer-map-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-map-link:hover {
  color: var(--accent);
}

/* Contact Map Link Hover Styling */
.contact-map-link {
  color: inherit;
  text-decoration: underline;
  transition: color var(--t-fast);
}

.contact-map-link:hover {
  color: var(--accent-text);
}

/* Accessibility Skip Links */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: var(--navy-brand);
  padding: 10px 20px;
  z-index: 9999;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 0;
}

/* Keyboard Outline Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.section-dark a:focus-visible,
.section-dark button:focus-visible,
.section-dark input:focus-visible,
.section-dark select:focus-visible,
.section-dark textarea:focus-visible,
.cta-section a:focus-visible,
.cta-section button:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible,
.hero input:focus-visible,
footer a:focus-visible,
footer button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Secondary Buttons on Dark Backgrounds */
.hero .btn-secondary,
.section-dark .btn-secondary,
.cta-box .btn-secondary,
footer .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.hero .btn-secondary:hover,
.section-dark .btn-secondary:hover,
.cta-box .btn-secondary:hover,
footer .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* Mobile Stacking and Layout Remediation under 480px */
@media (max-width: 480px) {

  .mobile-phone-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .hero-badge { order: 1 !important; }
  .hero-title { order: 2 !important; }
  .hero-subtitle { order: 3 !important; }
  .hero-cta { order: 4 !important; }
  .hero-trust-badge { order: 5 !important; }
  .local-dispatch-checker { order: 6 !important; }

  .hero {
    padding: 1.5rem 0 0 !important;
  }
  .hero-title {
    margin-bottom: 0.75rem !important;
  }
  .hero-subtitle {
    margin-bottom: 1.25rem !important;
  }
  
  .hero-cta,
  .card-actions {
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }
  .hero-cta .btn,
  .card-actions .btn {
    width: 100% !important;
  }

  .hero-trust-badge {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
  }
  .local-dispatch-checker {
    margin-top: 0.5rem !important;
    margin-bottom: 3rem !important;
    padding: 1.5rem !important;
  }

  .service-detail-actions {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .service-detail-card {
    padding: 1.25rem !important;
  }

  /* Scroll visibility for chat container on mobile */
  .sig-chat-container {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity var(--t-normal), visibility var(--t-normal) !important;
    bottom: 70px !important;
    right: 15px !important;
  }
  .sig-chat-container.is-scroll-visible {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Viewports below 360px */
@media (max-width: 360px) {
  .mobile-book-link span {
    display: none !important; /* Hide secondary booking text to save horizontal space */
  }
  .mobile-phone-link span {
    display: inline !important; /* Ensure Call text remains visible */
  }
  .mobile-phone-link {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.7rem !important;
    min-height: 44px !important;
  }
  .mobile-book-link {
    padding: 0.4rem 0.6rem !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  .tier-1-mobile-actions {
    gap: 0.35rem !important;
  }
  .logo-image {
    height: 38px !important;
  }

  /* Scale down mock map graphic to prevent side clipping on tiny screens */
  .map-core-circle {
    transform: scale(0.75) !important;
  }
  .map-center-label {
    left: 15px !important;
    font-size: 0.7rem !important;
  }
  .map-city-akron { top: 35px !important; left: 10px !important; }
  .map-city-warren { top: 65px !important; right: 10px !important; }
  .map-city-canton { top: 130px !important; left: 5px !important; }
  .map-city-youngstown { top: 105px !important; right: 15px !important; }
  .map-city-carrollton { bottom: 55px !important; left: 50px !important; }
  .map-city-newcastle { bottom: 75px !important; right: 10px !important; }
  .map-city-monaca { bottom: 135px !important; right: 5px !important; }
}


/* ==========================================
   Visual Refinements (Iterative Fixes)
   ========================================== */

/* 1. Hero Contrast */
.hero-subtitle {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0,0,0,0.5);
  font-weight: 500;
}

/* 2. Button Consistency (Fix outline button contrast on white/gray cards) */
.card .btn-secondary {
  background-color: var(--bg-primary); 
  color: var(--text-primary);
  border-color: #cbd5e1;
}
.card .btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: #94a3b8;
  color: var(--text-primary);
}

.section-alt .btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* 3. Process Arrows Vertical Alignment */
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* Reset - already handled in base rule */
}

/* 4. Mobile Layout & Touch Targets */
@media (max-width: 640px) {
  /* Header Clutter Fix */
  .tier-1-mobile-actions {
    gap: 0.5rem !important;
  }
  .mobile-phone-link, .mobile-book-link {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.8rem !important;
  }
  
  /* Form Spacing */
  .dispatch-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .dispatch-form input {
    margin-bottom: 0;
  }

  /* Padding in text blocks */
  .trust-content-block {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Footer Touch Targets (M7) */
  .footer-col ul li {
    margin-bottom: 0.25rem !important;
  }
  .footer-col ul li a {
    display: inline-block;
    padding: 0.6rem 0;
  }

  /* Reduce parent card padding on mobile (M10) */
  #service-areas-list .card {
    padding: 1.25rem !important;
  }
  
  /* Prevent mock map labels clipping (M10) */
  .map-city-newcastle {
    right: 65px !important;
  }
  .map-city-monaca {
    right: 50px !important;
  }
}

/* Media query to hide mobile book link under 600px (M8) */
@media (max-width: 600px) {
  .mobile-book-link {
    display: none !important;
  }
}

/* Generic card padding reduction below 768px (M11) */
@media (max-width: 767px) {
  .card {
    padding: 1.25rem;
  }
}

/* Subpage Hero Spacing and Centering (M5, M6) */
.hero-interior {
  padding-bottom: 3.5rem;
}

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

.hero-content-center .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* New CSS classes for mobile nested menu (C4) */
.mobile-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

.mobile-menu-children {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-child-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--t-fast);
}

.mobile-child-link:hover {
  color: #ff9858;
}

/* Contact Page Emergency Strip */
.emergency-call-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(244, 111, 23, 0.1); /* light accent background */
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.emergency-strip-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.emergency-strip-content {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.emergency-strip-content strong {
  color: var(--accent-text);
  font-weight: 700;
}

@media (max-width: 576px) {
  .emergency-call-strip {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
  }
  .emergency-call-strip .btn {
    width: 100%;
  }
}

