/* ==========================================================================
   Temecula Water Heater Pros - Official Stylesheet
   Luminous, Clean, Light & Friendly Theme (User's Preferred Design)
   100% Mobile Friendly, Non-Overflowing Header, Beautiful Light Backgrounds
   ========================================================================== */

:root {
  --primary: #0284c7;          /* Ocean Sky Blue */
  --primary-hover: #0369a1;    /* Deep Trust Blue */
  --primary-light: #e0f2fe;    /* Ice Water Soft */
  --primary-ultra-light: #f0f9ff;
  --accent: #f97316;           /* Warm Flame Orange */
  --accent-hover: #ea580c;     /* Deep Flame */
  --accent-light: #ffedd5;     /* Soft Warm Tint */
  --text-main: #0f172a;        /* Dark Slate */
  --text-muted: #475569;       /* Medium Slate */
  --text-light: #64748b;       /* Light Slate */
  --bg-body: #ffffff;          /* Pure White */
  --bg-light: #f8fafc;         /* Clean Soft Off-White */
  --bg-card: #ffffff;          /* Pure Card White */
  --border: #e2e8f0;           /* Clean Soft Border */
  --border-light: #edf2f7;     /* Lighter Border */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-700: #334155;
  --navy-900: #0f172a;
  --flame-500: #f97316;
  --flame-600: #ea580c;
  --flame-50: #fff7ed;
  --flame-100: #ffedd5;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(2, 132, 199, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(2, 132, 199, 0.1), 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 35px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 12px 30px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --transition: all 0.22s ease-in-out;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

/* Headings Spacing - Generous Breathing Room */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #0f172a;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
h1:first-child, h2:first-child, h3:first-child {
  margin-top: 0;
}

h1 { font-size: clamp(2.2rem, 3.8vw + 0.5rem, 3.25rem); line-height: 1.2; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.75rem, 2.4vw + 0.5rem, 2.35rem); line-height: 1.25; margin-top: 2.5rem; margin-bottom: 1.15rem; }
h3 { font-size: clamp(1.25rem, 1.4vw + 0.3rem, 1.55rem); line-height: 1.35; margin-top: 1.85rem; margin-bottom: 0.85rem; }
h4 { font-size: 1.15rem; line-height: 1.4; margin-top: 1.5rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1.35rem;
  line-height: 1.75;
}
p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 1.25rem 0 1.75rem 1.5rem;
  padding: 0;
}
li {
  margin-bottom: 0.75rem;
  line-height: 1.75;
  color: var(--slate-700);
}
li:last-child {
  margin-bottom: 0;
}

/* Helper Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Section Header Spacing (Fasla / Breathing Room) */
.section-head {
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}
.section-head .kicker {
  margin-bottom: 1.15rem;
}
.section-h2 {
  font-size: clamp(1.85rem, 2.6vw + 0.5rem, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.75rem;
  margin-bottom: 1.15rem;
  line-height: 1.25;
}
.section-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 auto;
  max-width: 720px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary, .btn-flame {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: 1.5px solid #ea580c;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.btn-primary:hover, .btn-flame:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-color: #c2410c;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-secondary, .btn-dark {
  background-color: #0f172a;
  border: 1.5px solid #0f172a;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}
.btn-secondary:hover, .btn-dark:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
}

.btn-outline {
  background-color: #ffffff;
  border: 1.5px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 700;
}
.btn-outline:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover) !important;
  transform: translateY(-2px);
}

.btn-outline-navy {
  background-color: #ffffff;
  border: 1.5px solid #0f172a;
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.btn-outline-navy:hover {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-outline-white {
  background-color: #ffffff;
  border: 2px solid #ffffff;
  color: #0f172a !important;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-outline-white:hover {
  background-color: #f8fafc;
  border-color: #ffffff;
  color: #ea580c !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-lg {
  padding: 1.05rem 2.15rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.kicker {
  display: none !important;
}

/* ==========================================================================
   Header - Clean, Light & Non-Overflowing
   ========================================================================== */
.top-notice-strip, .top-bar {
  display: none !important;
}

.site-header, .main-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-top: none !important;
  border-bottom: 1px solid var(--border);
}

.header-inner, .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.brand-badge, .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

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

.brand-symbol svg, .logo-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

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

.brand-main-title, .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-sub-title, .brand-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.brand-main-title .highlight-flame, .brand-name span {
  color: var(--primary);
}

.brand-main-title .pros-tag {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.2rem;
}

.brand-sub-title, .brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.desktop-nav, .nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a, .nav-link, .nav-item-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

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

/* Desktop Dropdown Menus */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  color: #64748b;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  min-width: 275px;
  border-radius: 10px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.06);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1050;
  pointer-events: none;
}

/* Invisible hover bridge */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropdown-link:hover {
  background-color: #f0fdf4;
  color: var(--primary);
  padding-left: 1.35rem;
}

.dropdown-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 0.35rem 0;
}

.dropdown-view-all {
  font-weight: 700;
  color: var(--primary);
  background-color: #f8fafc;
}

.dropdown-view-all:hover {
  background-color: #e0f2fe;
  color: #0369a1;
}

.header-action-group, .header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-toggle-btn, .mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.45rem;
  color: #0f172a;
}

/* Mobile Nav Drawer & Submenus */
.mobile-nav-panel, .nav-menu.show {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background-color: #ffffff;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.25rem 2rem;
  gap: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: none;
  border-bottom: 2px solid var(--primary);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 999;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-panel.open, .nav-menu.show {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  padding: 0.75rem 0;
  width: 100%;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.15s ease;
}

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

.mobile-nav-group {
  width: 100%;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-nav-header .mobile-nav-link {
  border-bottom: none;
  flex: 1;
}

.mobile-submenu-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.mobile-submenu-toggle.expanded {
  background: #e0f2fe;
  color: var(--primary);
  border-color: #bae6fd;
}

.mobile-submenu-toggle.expanded svg {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  padding: 0.25rem 0 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  margin: 0.25rem 0 0.75rem;
  border: 1px solid #edf2f7;
}

.mobile-submenu.open {
  display: flex;
  flex-direction: column;
}

.mobile-sublink {
  padding: 0.55rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-bottom: 1px dashed #e2e8f0;
  display: block;
}

.mobile-sublink:last-child {
  border-bottom: none;
}

.mobile-sublink:hover, .mobile-sublink:active {
  color: var(--primary);
}

.mobile-sublink-all {
  font-weight: 700;
  color: var(--primary);
  background: #f0fdf4;
  border-radius: 4px;
  margin-top: 0.25rem;
}

/* ==========================================================================
   Hero Section - Luminous, Light, with Subtle Photo Background
   ========================================================================== */
.hero-wrapper-photo, .hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 249, 255, 0.90) 65%, rgba(224, 242, 254, 0.88) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--text-main);
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-main-h1 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.15rem;
  line-height: 1.15;
}
.hero-main-h1 span {
  color: var(--primary);
}

.hero-text-card {
  max-width: 760px;
  margin: 0 auto 1.85rem;
}
.hero-sub-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-cta-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Frosted Glass Trust Bar */
.hero-trust-bar-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  max-width: 1040px;
  margin: 0 auto;
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-trust-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
}
.hero-trust-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* Dark Photo Hero with Rich Contrast & Glassmorphism */
.hero-wrapper-dark, .hero-subpage-dark {
  position: relative;
  color: #ffffff;
  padding: 5rem 0 4rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.hero-wrapper-dark .hero-main-h1, .hero-subpage-dark .hero-main-h1 {
  color: #ffffff;
}
.hero-wrapper-dark .hero-sub-text, .hero-subpage-dark .hero-sub-text {
  color: #cbd5e1;
}
.hero-wrapper-dark .hero-trust-bar-glass, .hero-subpage-dark .hero-trust-bar-glass {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.hero-wrapper-dark .hero-trust-title, .hero-subpage-dark .hero-trust-title {
  color: #ffffff;
}
.hero-wrapper-dark .hero-trust-desc, .hero-subpage-dark .hero-trust-desc {
  color: #94a3b8;
}
.hero-wrapper-dark .hero-trust-icon, .hero-subpage-dark .hero-trust-icon {
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   Services Grid & Boxes with Photo Background
   ========================================================================== */
.services-section-redesign {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.93) 100%),
              url('../images/services-hero-bg.jpg') center/cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

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

.service-box, .service-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.5rem 2.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-box::before, .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-box:hover, .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.4);
}
.service-box:hover::before, .service-card:hover::before {
  opacity: 1;
}

.service-icon-bubble, .service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  font-size: 1.5rem;
  transition: var(--transition);
}
.service-box:hover .service-icon-bubble,
.service-card:hover .service-icon-box {
  background-color: var(--primary);
  color: #ffffff;
}

.service-box-title, .service-card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.85rem;
  color: #0f172a;
}
.service-box-copy, .service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.service-box-link, .service-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.service-box-link:hover, .service-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   Matrix Table & Warning Signs
   ========================================================================== */
.comparison-card-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}
.comparison-table-scroll {
  overflow-x: auto;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.matrix-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
}
.matrix-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--slate-700);
}
.matrix-table tr:nth-child(even) td {
  background-color: #f8fafc;
}
.matrix-takeaway-card {
  background: var(--primary-ultra-light);
  border-left: 4px solid var(--primary);
  padding: 2.25rem 2.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 2rem;
}
.matrix-takeaway-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 0.85rem;
}
.matrix-takeaway-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate-700);
  margin-bottom: 1rem;
}

.signs-section-redesign {
  position: relative;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(240, 249, 255, 0.93) 100%),
              url('../images/signs-bg.jpg') center/cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.areas-section-redesign {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.93) 100%),
              url('../images/areas-bg.jpg') center/cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.area-name-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.6rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease-in-out;
}
.area-name-card:hover {
  transform: translateY(-2px);
  border-color: var(--flame-500);
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.12), 0 8px 10px -6px rgba(234, 88, 12, 0.08);
}
.area-name-card:hover .area-card-arrow {
  transform: translateX(4px);
  color: var(--flame-600);
}
.area-card-arrow {
  display: inline-block;
  color: var(--flame-500);
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.signs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.85rem;
  max-width: 1040px;
  margin: 0 auto;
}
.sign-tile {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.sign-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.sign-indicator {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sign-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.45rem;
}
.sign-explanation {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.faq-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-trigger {
  width: 100%;
  padding: 1.15rem 1.35rem;
  text-align: left;
  background: none;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}
.faq-trigger:hover {
  color: var(--primary);
}
.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.22s ease;
}
.faq-panel.active .faq-icon {
  transform: rotate(45deg);
}
.faq-content {
  display: none;
  padding: 0 1.35rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.faq-panel.active .faq-content {
  display: block;
}

/* ==========================================================================
   CTA Banner - Clean, Light Blue with Subtle Background Photo
   ========================================================================== */
.cta-section-redesign {
  position: relative;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.94) 0%, rgba(14, 165, 233, 0.90) 100%),
              url('../images/cta-bg.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 4.5rem 0;
}

/* ==========================================================================
   Footer - Clean, Professional & Friendly
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--primary);
}

/* Footer Brand Logo - Matching Main Header Logo */
.site-footer .brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.site-footer .brand-symbol {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer .brand-symbol svg {
  width: 30px;
  height: 30px;
  display: block;
}
.site-footer .brand-text-wrap {
  display: flex;
  flex-direction: column;
}
.site-footer .brand-main-title {
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 1.1rem !important;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-footer .brand-main-title .highlight-flame {
  color: #ff8a3d !important;
}
.site-footer .brand-main-title .pros-tag {
  background: #ea580c !important;
  color: #ffffff !important;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.2rem;
}
.site-footer .brand-sub-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8 !important;
  letter-spacing: 0.02em;
  margin-top: 1px;
  display: block;
}


.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.25rem;
  margin-bottom: 3rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col h4 {
  color: #ffffff !important;
  margin-top: 0;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.45rem;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}
.footer-bottom-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints - Safe at 1040px
   ========================================================================== */
@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .services-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }
  .brand-main-title {
    font-size: 1.05rem;
  }
  .brand-sub-title {
    display: none;
  }
  .services-grid-3col {
    grid-template-columns: 1fr;
  }
  .hero-trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Subpages, Layout Grid, Callouts & Content Components
   ========================================================================== */
.subpage-hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.92) 50%, rgba(224, 242, 254, 0.90) 100%),
              url('../images/services-hero-bg.jpg') center/cover no-repeat;
  padding: 4.25rem 0 3.75rem;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
}
.subpage-hero-banner h1 {
  color: #0f172a;
  margin-bottom: 0.75rem;
}
.subpage-hero-banner p {
  color: var(--text-muted);
}

.page-layout-grid {
  display: block;
  max-width: 880px;
  margin: 0 auto;
}

.sidebar {
  display: none !important;
}

/* Article Content Spacing - Ensuring clean gaps and no crammed content */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--slate-700);
}
.article-body p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
}
.article-body h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 3.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border-light);
  line-height: 1.3;
}
.article-body h2:first-of-type {
  margin-top: 2rem;
}
.article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}
.article-body ul, .styled-check-list, .bullet-list-check {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.article-body ul li, .styled-check-list li, .bullet-list-check li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.95rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-700);
}
.article-body ul li::before, .styled-check-list li::before, .bullet-list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--flame-500);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.5;
}
.article-body ol {
  margin: 1.5rem 0 2rem 1.5rem;
  padding-left: 0.5rem;
}
.article-body ol li {
  margin-bottom: 0.85rem;
  line-height: 1.75;
  color: var(--slate-700);
}
.article-body ol li::marker {
  color: var(--flame-500);
  font-weight: 700;
}
.article-body .callout-box {
  margin: 2.75rem 0;
  padding: 1.65rem 1.85rem;
}
.article-body .callout-box p {
  margin: 0;
  line-height: 1.75;
}

.emergency-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.emergency-card-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 2rem 2rem;
  transition: var(--transition);
}
.emergency-card-box h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}
.emergency-card-box p {
  margin: 0;
  line-height: 1.7;
}
.emergency-card-box:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.callout-box {
  background: var(--primary-ultra-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.65rem 1.85rem;
  margin: 2.5rem 0;
}
.callout-box p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.75;
}

.faq-wrap, .faq-accordion-wrap {
  margin-top: 1.5rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.faq-question {
  width: 100%;
  padding: 1.15rem 1.35rem;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover {
  color: var(--primary);
}
.faq-icon {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 1.35rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.faq-item.active .faq-answer {
  display: block;
}

/* Forms */
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Services & Areas Dedicated Modern Visual Styles With Background Images
   ========================================================================== */

/* Distinct Banners with Relevant Background Photos */
.services-subpage-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 249, 255, 0.80) 50%, rgba(224, 242, 254, 0.78) 100%),
              url('../images/services-hero-bg.jpg') center/cover no-repeat;
  padding: 4.75rem 0 4.25rem;
  border-bottom: 2px solid var(--border);
}

.areas-subpage-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.80) 50%, rgba(238, 242, 255, 0.78) 100%),
              url('../images/areas-bg.jpg') center/cover no-repeat;
  padding: 4.75rem 0 4.25rem;
  border-bottom: 2px solid var(--border);
}

/* Corridor Dispatch Bar */
.dispatch-corridor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
  margin: 2rem 0 2.75rem;
  box-shadow: var(--shadow-sm);
}
.corridor-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

/* Modern Service Card */
.service-card-modern {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: var(--primary);
}
.service-badge-tag {
  display: none !important;
}
.service-card-modern .service-box-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.service-card-modern .service-box-copy {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Modern City Hub Card */
.city-hub-card-modern {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.city-hub-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: var(--primary);
}
.city-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.city-hub-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.city-dispatch-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.city-neighborhood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.15rem 0 1.5rem;
}
.neighborhood-chip {
  font-size: 0.8rem;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* In-Page Feature Banner with Relevant Photo Background */
.in-page-photo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 3rem 2.5rem;
  color: #ffffff;
  margin: 3.5rem 0;
  box-shadow: var(--shadow-card);
}
.in-page-photo-banner.plumber-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.90) 0%, rgba(30, 41, 59, 0.85) 100%),
              url('../images/plumber-work.jpg') center/cover no-repeat;
}
.in-page-photo-banner.tank-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.90) 0%, rgba(30, 41, 59, 0.85) 100%),
              url('../images/tank-system.jpg') center/cover no-repeat;
}
.in-page-photo-banner.showcase-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.90) 0%, rgba(30, 41, 59, 0.85) 100%),
              url('../images/water-heater-showcase.jpg') center/cover no-repeat;
}
.in-page-photo-banner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0.85rem;
}
.in-page-photo-banner p {
  color: #e2e8f0;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.in-page-photo-banner ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.in-page-photo-banner li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: #f1f5f9;
  font-size: 0.95rem;
  line-height: 1.6;
}
.in-page-photo-banner li span.check {
  color: #38bdf8;
  font-weight: bold;
}

/* ==========================================================================
   Modern Contractor Components (High-Impact Hero, Trust Bar & Pillar Cards)
   ========================================================================== */

/* Dark High-Impact Hero with Visible Photo Background */
.tankless-hero-wrapper {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff !important;
  padding: 5rem 0 3.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.tankless-hero-container {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.tankless-hero-wrapper .hero-main-h1,
.tankless-hero-wrapper .tankless-hero-h1,
.tankless-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.tankless-hero-wrapper .hero-main-h1 span,
.tankless-hero-wrapper .tankless-hero-h1 span,
.tankless-hero-h1 span {
  color: var(--flame-400) !important;
}
.tankless-hero-lead {
  font-size: 1.18rem;
  color: #e2e8f0 !important;
  line-height: 1.75;
  margin: 0 auto 2.25rem;
  max-width: 820px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.tankless-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.25rem;
}
.hero-breadcrumb {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.hero-breadcrumb a {
  color: #38bdf8 !important;
  transition: var(--transition);
}
.hero-breadcrumb a:hover {
  color: var(--flame-400) !important;
  text-decoration: none;
}
.hero-breadcrumb .sep {
  color: #94a3b8 !important;
}
.hero-breadcrumb .current {
  color: #f1f5f9 !important;
}
.tankless-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}
.tankless-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
}
.tankless-trust-item svg {
  color: var(--flame-400);
  flex-shrink: 0;
}

/* Trust Bar Strip Under Hero */
.trust-bar-strip {
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  padding: 1.35rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.trust-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-bar-entry {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.trust-bar-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--flame-50);
  color: var(--flame-600);
  border: 1px solid rgba(234, 88, 12, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-bar-text-group {
  display: flex;
  flex-direction: column;
}
.trust-bar-main-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
}
.trust-bar-sub-desc {
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* Why Choose Us 4-Pillar Grid */
.why-grid-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.65rem;
  margin-top: 2.75rem;
}
.why-pillar-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.why-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--flame-500);
  box-shadow: var(--shadow-float);
}
.why-pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--flame-50);
  color: var(--flame-600);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}
.why-pillar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.why-pillar-desc {
  font-size: 0.94rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin: 0;
}

/* Regional Area Tags Grid */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem auto 0;
  max-width: 960px;
}
.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  background: #ffffff;
  color: var(--navy-900);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.area-tag:hover {
  background: var(--flame-500);
  color: #ffffff !important;
  border-color: var(--flame-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.3);
}
.area-tag__dot {
  width: 8px;
  height: 8px;
  background: var(--flame-500);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.22s ease-in-out;
}
.area-tag:hover .area-tag__dot {
  background: #ffffff;
}
.area-tag.active {
  background: var(--navy-900);
  color: #ffffff !important;
  border-color: var(--navy-900);
}
.area-tag.active .area-tag__dot {
  background: var(--flame-400);
}

/* Diagnostic / Problem Feature Cards */
.diagnostic-feature-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--flame-500);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.diagnostic-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}
.card-badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--flame-50);
  color: var(--flame-600);
  border: 1px solid rgba(234, 88, 12, 0.25);
  margin-bottom: 0.85rem;
}

/* Service CTA Box */
.service-cta-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.90) 100%),
              url('../images/cta-bg.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-float);
}
.service-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.service-cta-desc {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto 2rem;
}
.service-cta-buttons {
  display: flex;
  gap: 1.15rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.service-cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Transparent Pricing Table */
.tankless-cost-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  margin: 2rem auto 0;
  max-width: 820px;
  background: #ffffff;
}
.tankless-cost-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  background: #ffffff;
}
.tankless-cost-table th {
  background: var(--navy-900);
  color: #ffffff;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}
.tankless-cost-table td {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.98rem;
}
.tankless-cost-table tr:last-child td {
  border-bottom: none;
}
.tankless-cost-table tr:nth-child(even) {
  background: var(--slate-50);
}
.tankless-cost-val {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--flame-600);
  font-size: 1.1rem;
}

/* ==========================================================================
   Commercial & Direct Service Provider Styles
   ========================================================================== */
.commercial-section {
  position: relative;
  background: #ffffff;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.commercial-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 1040px) {
  .commercial-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.commercial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.commercial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.commercial-card.featured {
  border: 2px solid var(--flame-500);
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.commercial-card-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--flame-500);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.3);
}

.commercial-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.commercial-card-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.commercial-card-price span {
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
}

.commercial-card-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.commercial-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.commercial-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.4;
}

.commercial-feature-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #16a34a;
  margin-top: 2px;
}

.commercial-card-cta {
  margin-top: auto;
}

/* 4-Step Direct Process Styles */
.process-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 1040px) {
  .process-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.process-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  position: relative;
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.process-step-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
}

/* Service Direct Commitment Box */
.service-direct-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 2px solid #bbf7d0;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin: 3rem auto;
  max-width: 900px;
}

.service-direct-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Mobile Responsive Engine: Full Phone Number, Menu & Tables
   ========================================================================== */

@media (max-width: 768px) {
  .service-direct-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .tankless-cost-table-wrap,
  .comparison-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    border-radius: var(--radius-md);
  }

  .tankless-cost-table {
    min-width: 520px;
  }

  .matrix-table {
    min-width: 540px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    min-height: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .brand-badge, .brand-logo {
    gap: 0.5rem !important;
    max-width: calc(100% - 92px) !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    text-decoration: none !important;
  }

  .brand-symbol svg, .logo-icon svg {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .brand-main-title {
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  .brand-sub-title {
    display: none !important;
  }

  .brand-main-title .pros-tag {
    display: none !important;
  }

  .header-action-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }

  /* Compact 38px Call Icon Button - Exactly like previous sites! */
  .header-action-group .btn-sm {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    overflow: hidden !important;
    border-radius: var(--radius-sm, 6px) !important;
    flex-shrink: 0 !important;
  }

  .header-action-group .btn-sm svg {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }

  /* Compact 38px Hamburger Menu Button - Exactly like previous sites! */
  .mobile-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-sm, 6px) !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    color: #0f172a !important;
    cursor: pointer !important;
  }

  .mobile-toggle-btn svg {
    margin: 0 !important;
    width: 22px !important;
    height: 22px !important;
  }

  /* Mobile Drawer opens smoothly under 64px header */
  .mobile-nav-panel, .nav-menu.show {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 64px) !important;
  }

  /* Hero & Section Adjustments */
  .hero-cta-flex, .tankless-hero-ctas, .service-cta-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .hero-cta-flex .btn, .tankless-hero-ctas .btn, .service-cta-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .section-padding {
    padding: 3rem 0 !important;
  }

  .hero-main-h1 {
    font-size: 1.85rem !important;
  }

  .section-h2 {
    font-size: 1.45rem !important;
  }

  .tankless-hero-wrapper {
    padding: 3.25rem 0 2.25rem !important;
  }

  .tankless-trust-bar {
    gap: 0.5rem !important;
  }

  .tankless-trust-item {
    font-size: 0.82rem !important;
    padding: 0.45rem 0.85rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .service-cta-card {
    padding: 2rem 1.15rem !important;
  }

  .container {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }

  .footer-bottom-strip {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }
}

@media (max-width: 380px) {
  .brand-main-title {
    font-size: 0.88rem !important;
  }
  .brand-main-title .pros-tag {
    display: none !important;
  }
  .header-action-group {
    gap: 0.35rem !important;
  }
  .header-action-group .btn-sm {
    font-size: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    overflow: hidden !important;
  }
  .mobile-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  .brand-badge, .brand-logo {
    max-width: calc(100% - 84px) !important;
  }
}





/* Content Interlinking - Clean, Pretty, No Bottom Dash */
.content-interlink,
a.content-interlink {
  color: var(--flame-600);
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.content-interlink:hover,
a.content-interlink:hover {
  color: var(--flame-700);
  text-decoration: none !important;
  opacity: 0.88;
}

/* ==========================================================================
   Mobile Fit Pass - nothing may overflow the phone screen
   ========================================================================== */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }

@media (max-width: 768px) {
  /* Inline multi-column grids collapse to a single column */
  [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }
  /* Small stat / badge grids stay 2-up */
  [style*="180px"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
  [style*="grid-template-columns"] > * { min-width: 0; }

  h1, h2, h3, h4, p, li, a, span, strong {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Buttons: never wider than the screen, text wraps if needed */
  .btn, .btn-lg, .btn-sm {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .btn-lg { padding-left: 1.1rem; padding-right: 1.1rem; font-size: 1rem; }

  /* Button rows stack full width */
  [style*="flex-wrap: wrap"] { min-width: 0; }
  .hero-cta-flex, .tankless-hero-ctas, .service-cta-buttons,
  .cta-buttons, .cta-flex, .btn-group, .hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .hero-cta-flex .btn, .tankless-hero-ctas .btn, .service-cta-buttons .btn,
  .cta-buttons .btn, .cta-flex .btn, .btn-group .btn, .hero-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Cards: tighter padding so content fits */
  [style*="padding: 2.25rem 2rem"], [style*="padding: 2rem"], [style*="padding: 2.5rem"] {
    padding: 1.4rem 1.15rem !important;
  }

  /* Wide tables scroll inside their box, not the page */
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 400px) {
  .container { padding-left: 1rem !important; padding-right: 1rem !important; }
  .hero-main-h1 { font-size: 1.65rem !important; }
  .section-h2 { font-size: 1.35rem !important; }
}

@media (max-width: 640px) {
  .sign-tile { padding: 1.25rem 1rem; gap: 0.85rem; min-width: 0; }
  .sign-tile > div:last-child { min-width: 0; }
  .sign-indicator { flex-shrink: 0; }
}

@media (max-width: 640px) {
  /* Comparison tables fit the phone width instead of side-scrolling */
  .matrix-table, .tankless-cost-table, .comparison-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed;
    display: table;
    font-size: 0.8rem;
  }
  .matrix-table th, .matrix-table td,
  .tankless-cost-table th, .tankless-cost-table td,
  .comparison-table th, .comparison-table td {
    padding: 0.6rem 0.5rem !important;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
