/* ==========================================================================
   NY PLUMBING — JAMAICA ESTATES BOILER REPAIR & HEATING SERVICES
   Design System: Deep Maritime Navy (#0A192F) & Precision Amber Flame (#D97706)
   Prefix: .je-
   ========================================================================== */

:root {
  --je-primary: #0A192F;
  --je-primary-dark: #060E1A;
  --je-primary-light: #172A45;
  --je-primary-subtle: #203A5E;
  --je-accent: #D97706;
  --je-accent-hover: #B45309;
  --je-accent-light: #FEF3C7;
  --je-steel: #0284C7;
  --je-steel-light: #E0F2FE;
  --je-bg-page: #F8FAFC;
  --je-bg-card: #FFFFFF;
  --je-bg-alt: #F1F5F9;
  --je-text-main: #0F172A;
  --je-text-muted: #475569;
  --je-text-light: #94A3B8;
  --je-text-inverse: #FFFFFF;
  --je-border: #E2E8F0;
  --je-border-dark: #1E3A5F;
  --je-danger-bg: #FEF2F2;
  --je-danger-border: #F87171;
  --je-danger-text: #991B1B;
  --je-radius-sm: 6px;
  --je-radius-md: 10px;
  --je-radius-lg: 16px;
  --je-radius-full: 9999px;
  --je-shadow-sm: 0 1px 3px rgba(10, 25, 47, 0.08);
  --je-shadow-md: 0 4px 14px rgba(10, 25, 47, 0.1);
  --je-shadow-lg: 0 12px 28px -6px rgba(10, 25, 47, 0.16);
  --je-shadow-xl: 0 20px 40px -10px rgba(10, 25, 47, 0.25);
  --je-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --je-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --je-container: 1200px;
  --je-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 72px; /* Space for sticky mobile call bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Accessibility Focus Indicators */
:focus-visible {
  outline: 3px solid var(--je-accent);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--je-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-top: 2rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--je-text-main);
}

p.lead, .je-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--je-text-muted);
}

a {
  color: var(--je-steel);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--je-transition);
}

a:hover {
  color: var(--je-accent);
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

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

/* Layout Utilities */
.je-container {
  width: 100%;
  max-width: var(--je-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.je-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

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

.je-section-dark {
  background-color: var(--je-primary);
  color: var(--je-text-inverse);
}

.je-section-dark h2,
.je-section-dark h3,
.je-section-dark p {
  color: var(--je-text-inverse);
}

/* Header & Navigation */
.je-header {
  background-color: var(--je-primary);
  border-bottom: 1px solid var(--je-primary-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.je-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.je-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--je-text-inverse);
}

.je-brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  stroke: var(--je-accent);
}

.je-brand-text {
  display: flex;
  flex-direction: column;
}

.je-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--je-text-inverse);
  line-height: 1.1;
}

.je-brand-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Navigation List */
.je-nav {
  display: flex;
  align-items: center;
}

.je-nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 820px) {
  .je-nav-list {
    display: flex;
  }
}

.je-nav-item,
.je-has-dropdown {
  position: relative;
  margin: 0;
}

.je-nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  color: #E2E8F0;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--je-radius-sm);
  transition: var(--je-transition);
  min-height: 44px;
}

.je-nav-link:hover,
.je-nav-link.active,
.je-nav-link[aria-expanded="true"] {
  color: #FFFFFF;
  background-color: var(--je-primary-light);
}

.je-nav-dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.je-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.je-nav-link[aria-expanded="true"] .je-chevron,
.je-nav-item:hover .je-chevron,
.je-has-dropdown:hover .je-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.je-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background-color: var(--je-primary-light);
  border: 1px solid var(--je-primary-subtle);
  border-radius: var(--je-radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  margin-top: 0.25rem;
  display: none;
  z-index: 1050;
  list-style: none;
}

/* Invisible hover bridge to prevent menu from closing when moving cursor across gap */
.je-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -10px;
  right: -10px;
  height: 20px;
  display: block;
}

/* Dropdown display on hover, focus, or JS .show class */
.je-nav-item:hover > .je-dropdown-menu,
.je-has-dropdown:hover > .je-dropdown-menu,
.je-nav-item:focus-within > .je-dropdown-menu,
.je-has-dropdown:focus-within > .je-dropdown-menu,
.je-nav-dropdown-toggle:hover + .je-dropdown-menu,
.je-dropdown-menu:hover,
.je-dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.je-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  color: #E2E8F0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--je-radius-sm);
  transition: var(--je-transition);
  min-height: 44px;
}

.je-dropdown-link:hover,
.je-dropdown-link.active {
  color: #FFFFFF;
  background-color: var(--je-primary-subtle);
}

.je-dropdown-icon {
  width: 18px;
  height: 18px;
  stroke: var(--je-accent);
  flex-shrink: 0;
}

/* Header Single Phone CTA */
.je-header-action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.je-phone-btn-header {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--je-accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--je-radius-full);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.4);
  transition: var(--je-transition);
  min-height: 44px;
}

@media (min-width: 576px) {
  .je-phone-btn-header {
    display: inline-flex;
  }
}

.je-phone-btn-header:hover {
  background-color: var(--je-accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5);
}

.je-phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.je-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--je-primary-subtle);
  border-radius: var(--je-radius-sm);
  color: #FFFFFF;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 820px) {
  .je-menu-toggle {
    display: none;
  }
}

.je-menu-icon {
  width: 24px;
  height: 24px;
}

/* Mobile Drawer */
.je-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--je-primary);
  border-left: 1px solid var(--je-primary-subtle);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.5rem;
}

.je-mobile-drawer.open {
  right: 0;
}

.je-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--je-primary-subtle);
}

.je-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--je-primary-subtle);
  border-radius: var(--je-radius-sm);
  color: #FFFFFF;
  cursor: pointer;
}

.je-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.je-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #E2E8F0;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--je-radius-sm);
  min-height: 44px;
}

.je-drawer-link:hover,
.je-drawer-link.active {
  background-color: var(--je-primary-light);
  color: #FFFFFF;
}

.je-drawer-section-label {
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding-top: 1rem;
  padding-left: 0.5rem;
}

.je-drawer-submenu {
  padding-left: 1rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  border-left: 2px solid var(--je-primary-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.je-drawer-sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #CBD5E1;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--je-radius-sm);
  min-height: 44px;
}

.je-drawer-sublink:hover,
.je-drawer-sublink.active {
  color: #FFFFFF;
  background-color: var(--je-primary-light);
}

.je-drawer-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--je-primary-subtle);
}

.je-drawer-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--je-accent);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--je-radius-md);
  text-decoration: none;
  min-height: 48px;
}

.je-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1999;
  display: none;
  backdrop-filter: blur(2px);
}

.je-drawer-overlay.active {
  display: block;
}

/* Breadcrumbs */
.je-breadcrumbs-wrap {
  background-color: var(--je-bg-alt);
  border-bottom: 1px solid var(--je-border);
  padding: 0.75rem 0;
}

.je-breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.je-breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--je-text-muted);
  margin: 0;
}

.je-breadcrumbs-item a {
  color: var(--je-steel);
  text-decoration: none;
}

.je-breadcrumbs-item a:hover {
  text-decoration: underline;
}

.je-breadcrumbs-item[aria-current="page"] {
  color: var(--je-text-main);
  font-weight: 600;
}

.je-breadcrumbs-separator {
  width: 14px;
  height: 14px;
  stroke: var(--je-text-light);
}

/* Hero Section */
.je-hero {
  background: linear-gradient(135deg, #0A192F 0%, #172A45 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 4rem;
  position: relative;
  border-bottom: 4px solid var(--je-accent);
}

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

@media (min-width: 992px) {
  .je-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.je-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.45);
  color: #FCD34D;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--je-radius-full);
  margin-bottom: 1.25rem;
}

.je-badge-icon {
  width: 16px;
  height: 16px;
  stroke: #F59E0B;
}

.je-hero-title {
  color: #FFFFFF;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .je-hero-title {
    font-size: 2.9rem;
  }
}

.je-hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #E2E8F0;
  margin-bottom: 2rem;
}

.je-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .je-hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

.je-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--je-accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--je-radius-md);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
  transition: var(--je-transition);
  min-height: 48px;
}

.je-btn-primary:hover {
  background-color: var(--je-accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.55);
}

.je-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #FFFFFF;
  border: 1.5px solid #475569;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--je-radius-md);
  text-decoration: none;
  transition: var(--je-transition);
  min-height: 48px;
}

.je-btn-outline:hover {
  border-color: #CBD5E1;
  background-color: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

/* Hero Media Card & Technical Diagnostic Hero Panel */
.je-hero-card {
  background-color: var(--je-primary-light);
  border: 1px solid var(--je-primary-subtle);
  border-radius: var(--je-radius-lg);
  overflow: hidden;
  box-shadow: var(--je-shadow-xl);
}

.je-hero-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-bottom: 2px solid var(--je-accent);
}

.je-hero-caption {
  padding: 1.25rem;
  background-color: var(--je-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.je-hero-caption-icon {
  width: 28px;
  height: 28px;
  stroke: var(--je-accent);
  flex-shrink: 0;
}

.je-hero-caption-text {
  font-size: 0.875rem;
  color: #CBD5E1;
  line-height: 1.4;
}

.je-hero-caption-text strong {
  display: block;
  color: #FFFFFF;
  font-size: 0.95rem;
}

/* Diagnostic Card for Zero-Image Pages */
.je-diagnostic-hero {
  background: linear-gradient(145deg, #172A45, #0A192F);
  border: 1.5px solid var(--je-primary-subtle);
  border-radius: var(--je-radius-lg);
  padding: 2rem;
  box-shadow: var(--je-shadow-xl);
}

.je-dh-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--je-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.je-dh-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.je-dh-desc {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.je-dh-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--je-primary-subtle);
}

.je-dh-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--je-accent);
  line-height: 1.1;
}

.je-dh-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Feature Image Block (Inner Pages with Exact Matched Image) */
.je-feature-image-block {
  margin: 2rem 0;
  border-radius: var(--je-radius-lg);
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid var(--je-border);
  box-shadow: var(--je-shadow-md);
}

.je-feature-image-block img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.je-feature-caption {
  padding: 1rem 1.25rem;
  background-color: var(--je-bg-alt);
  font-size: 0.875rem;
  color: var(--je-text-muted);
  border-top: 1px solid var(--je-border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Section Header */
.je-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.je-section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--je-accent);
  margin-bottom: 0.5rem;
}

.je-section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--je-primary);
  margin-bottom: 0.75rem;
}

.je-section-header p {
  font-size: 1.05rem;
  color: var(--je-text-muted);
}

/* Two-Column Grid */
.je-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .je-two-col {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Service Grid & Cards */
.je-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

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

.je-service-card {
  background-color: var(--je-bg-card);
  border: 1px solid var(--je-border);
  border-radius: var(--je-radius-md);
  padding: 1.75rem;
  box-shadow: var(--je-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--je-transition);
}

.je-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--je-shadow-lg);
  border-color: #CBD5E1;
}

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

.je-service-icon {
  width: 24px;
  height: 24px;
  stroke: var(--je-accent);
}

.je-service-card h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.je-service-card p {
  font-size: 0.925rem;
  color: var(--je-text-muted);
  flex-grow: 1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.je-service-link {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--je-primary);
  text-decoration: none;
}

.je-service-link:hover {
  color: var(--je-accent);
}

/* Process Timeline (4-Step Workflow) */
.je-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

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

.je-process-card {
  background-color: var(--je-bg-card);
  border: 1px solid var(--je-border);
  border-radius: var(--je-radius-md);
  padding: 1.5rem;
  position: relative;
}

.je-process-num {
  font-family: var(--je-font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--je-accent);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.je-process-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.je-process-card p {
  font-size: 0.9rem;
  color: var(--je-text-muted);
  margin-bottom: 0;
}

/* Technical Comparison & Matrix Cards */
.je-matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .je-matrix-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.je-matrix-card {
  background-color: #FFFFFF;
  border: 1.5px solid var(--je-border);
  border-radius: var(--je-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--je-shadow-sm);
  display: flex;
  flex-direction: column;
}

.je-matrix-highlight {
  border-color: var(--je-accent);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.15);
}

.je-matrix-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--je-radius-full);
  background-color: var(--je-steel-light);
  color: #0369A1;
  margin-bottom: 1rem;
}

.je-matrix-badge-amber {
  background-color: var(--je-accent-light);
  color: #B45309;
}

.je-matrix-card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.je-matrix-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--je-border);
  padding-top: 1rem;
}

.je-matrix-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--je-text-main);
}

.je-matrix-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--je-accent);
  font-weight: bold;
}

/* Gas Safety Warning Banner */
.je-alert-box {
  background-color: var(--je-danger-bg);
  border: 1.5px solid var(--je-danger-border);
  border-radius: var(--je-radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.je-alert-icon {
  width: 28px;
  height: 28px;
  stroke: #DC2626;
  flex-shrink: 0;
  margin-top: 2px;
}

.je-alert-content h4 {
  color: var(--je-danger-text);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.je-alert-content p {
  color: var(--je-danger-text);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.55;
}

/* Callout Section (Inter-section CTA Banner) */
.je-cta-banner {
  background: linear-gradient(135deg, #0A192F 0%, #172A45 100%);
  color: #FFFFFF;
  border-radius: var(--je-radius-lg);
  padding: 2.5rem 2rem;
  margin: 3.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--je-shadow-lg);
  border-left: 4px solid var(--je-accent);
}

@media (min-width: 768px) {
  .je-cta-banner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.je-cta-banner h3 {
  color: #FFFFFF;
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.je-cta-banner p {
  color: #E2E8F0;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  max-width: 600px;
}

@media (min-width: 768px) {
  .je-cta-banner p {
    margin-bottom: 0;
  }
}

/* FAQ Accordion */
.je-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.je-faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--je-border);
  border-radius: var(--je-radius-md);
  overflow: hidden;
  box-shadow: var(--je-shadow-sm);
}

.je-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--je-primary);
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.je-faq-btn:hover {
  background-color: var(--je-bg-alt);
}

.je-faq-icon {
  width: 20px;
  height: 20px;
  stroke: var(--je-accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.je-faq-btn[aria-expanded="true"] .je-faq-icon {
  transform: rotate(180deg);
}

.je-faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--je-text-main);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--je-border);
  padding-top: 1rem;
}

.je-faq-answer[hidden] {
  display: none;
}

/* Service Areas Grid */
.je-area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .je-area-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.je-area-card {
  background-color: #FFFFFF;
  border: 1px solid var(--je-border);
  border-radius: var(--je-radius-md);
  padding: 1.75rem;
  box-shadow: var(--je-shadow-sm);
  transition: var(--je-transition);
}

.je-area-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--je-shadow-md);
}

.je-area-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: var(--je-primary);
}

.je-pin-icon {
  width: 22px;
  height: 22px;
  stroke: var(--je-accent);
  flex-shrink: 0;
}

.je-area-card p {
  color: var(--je-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Contact Prep Checklist Card */
.je-prep-card {
  background-color: #FFFFFF;
  border: 1px solid var(--je-border);
  border-radius: var(--je-radius-lg);
  padding: 2rem;
  box-shadow: var(--je-shadow-md);
  margin-bottom: 2rem;
}

.je-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.je-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.975rem;
  line-height: 1.55;
}

.je-check-icon {
  width: 20px;
  height: 20px;
  stroke: #10B981;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Footer Section */
.je-footer {
  background-color: var(--je-primary);
  color: #CBD5E1;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--je-accent);
  margin-top: auto;
}

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

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

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

@media (min-width: 1024px) {
  .je-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.je-footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  display: block;
}

.je-footer-desc {
  font-size: 0.925rem;
  color: #94A3B8;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.je-footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--je-accent);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  transition: var(--je-transition);
}

.je-footer-phone:hover {
  color: #FCD34D;
  text-decoration: underline;
}

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

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

.je-footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.925rem;
  transition: var(--je-transition);
}

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

.je-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--je-primary-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94A3B8;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .je-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.je-partner-tag {
  color: #CBD5E1;
  font-size: 0.875rem;
}

.je-partner-tag a {
  color: #38BDF8;
  font-weight: 600;
  text-decoration: none;
}

.je-partner-tag a:hover {
  text-decoration: underline;
}

/* Sticky Mobile Call Bar */
.je-mobile-callbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--je-primary-dark);
  border-top: 2px solid var(--je-accent);
  padding: 0.65rem 1rem;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  .je-mobile-callbar {
    display: none;
  }
}

.je-mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--je-accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border-radius: var(--je-radius-full);
  text-decoration: none;
  min-height: 48px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.je-mobile-call-btn:hover {
  background-color: var(--je-accent-hover);
}

/* Generic Vector SVG Icon Utility */
.je-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

/* Print Styles */
@media print {
  .je-header,
  .je-mobile-callbar,
  .je-cta-banner,
  .je-menu-toggle {
    display: none !important;
  }
  body {
    padding-bottom: 0;
    color: #000;
    background: #fff;
  }
  a[href^="tel:"]::after {
    content: " (" attr(href) ")";
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
