﻿/* =========================================
   Base / Reset
========================================= */

/* Inter */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin/inter-v20-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin/inter-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin/inter-v20-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin/inter-v20-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin/inter-v20-latin-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Montserrat */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-v31-latin/montserrat-v31-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-v31-latin/montserrat-v31-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-v31-latin/montserrat-v31-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-v31-latin/montserrat-v31-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-v31-latin/montserrat-v31-latin-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Body text = Inter */
body {
  font-family: "Inter", sans-serif;
}

/* Headings = Montserrat */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.01em;
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #b61d1d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
}

/* Utility container (if you want to wrap content later) */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #0b63ce;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

/* =========================================
   Header
========================================= */

.site-header {
  position: sticky;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #0e1737;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* icon styling */
.top-contact .icon {
  width: 18px;
  height: 18px;
  color: #ffffff;
  flex-shrink: 0;
}

/* Header main row */

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.0rem 3.0rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

/* control logo size in the header */
.logo img {
  height: 70px;          /* adjust this if it feels too big/small */
  max-width: 250px;
  object-fit: contain;
}

/* Main navigation */

/* Base nav layout */
.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

/* Needed so submenu can position under each item */
.main-nav .has-submenu {
  position: relative;
}

/* Make submenu vertical */
.main-nav .submenu {
  display: flex;
      flex-direction: column; /* this is the key */
  gap: 4px;               /* optional spacing between items */
}

/* Submenu box */
.main-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 10px;
  min-width: 220px;
    position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background: #0b1430;            /* adjust to match your header */
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

/* Show on hover + keyboard focus */
.main-nav .has-submenu:hover > .submenu,
.main-nav .has-submenu:focus-within > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Submenu links */
.main-nav .submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}

/* Hover effect */
.main-nav .submenu a:hover,
.main-nav .submenu a:focus {
  background: rgba(255,255,255,0.10);
  outline: none;
}

/* 2nd-level submenu: position to the right of the parent item */
.main-nav .submenu .has-submenu {
  position: relative; /* anchor for nested submenu */
  padding-right: 12px; /* creates space INSIDE the hovered item area */
}

/* nested submenu should open to the right, not below */
.main-nav .submenu .has-submenu > .submenu {
  top: 0;
  left: 100%;
  margin-left: 0;
  transform: translateX(10px); /* slide-in feel */
}

/* show nested submenu on hover/focus */
.main-nav .submenu .has-submenu:hover > .submenu,
.main-nav .submenu .has-submenu:focus-within > .submenu {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Invisible hover bridge so submenu doesn't close */
.main-nav .submenu .has-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;      /* extends into the space where the submenu appears */
  width: 14px;       /* bridge width */
  height: 100%;
}

.main-nav,
.main-nav .has-submenu,
.main-nav .submenu {
  overflow: visible;
}

.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.25rem;
  font-size: 1.05rem;
}

.main-nav a {
  color: #ffffff;
  font-weight: 500;
}

.main-nav a:hover {
  color: #a7c4ff;
}

/* Add arrow to nav items with submenus */
.main-nav .has-submenu > a,
.main-nav .has-submenu > .nav-row > a {
  position: relative;
  padding-right: 18px; /* space for arrow */
}

/* Arrow icon */
.main-nav .has-submenu > a::after,
.main-nav .has-submenu > .nav-row > a::after {
  content:"\25BE";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 160ms ease, opacity 160ms ease;
}

/* Rotate arrow on hover/open */
.main-nav .has-submenu:hover > a::after,
.main-nav .has-submenu:focus-within > a::after,
.main-nav .has-submenu:hover > .nav-row > a::after,
.main-nav .has-submenu:focus-within > .nav-row > a::after {
  transform: translateY(-50%) rotate(180deg);
  opacity: 1;
}

/* Header social links */

.header-social ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.header-social a {
  color: #555;
}

.header-social a:hover {
  color: #0b63ce;
}

.header-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.header-btn {
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Call button - blue */
.call-btn {
  background-color: #0b63ce;
}

.call-btn:hover {
  background-color: #094fa6;
  transform: translateY(-2px);
}

/* Book button - orange */
.book-btn {
  background-color: #e5531a;
}

.book-btn:hover {
  background-color: #c74715;
  transform: translateY(-2px);
}

/* =========================================
   Hero Section
========================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding: 3rem 1.5rem 3.5rem;
  
/* New background image */
  background: 
    linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.30)),
    url("../img/header-background-optimized.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero_heating {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding: 3rem 1.5rem 3.5rem;
  
/* New background image */
  background: 
    linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.70)),
    url("../img/background-test-optimized-transparent.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-description {
  color: #ffffff;          /* make it white */
  font-size: 1.45rem;      /* increase paragraph size */
  line-height: 1.6;        /* improve readability */
  font-weight: 400;        /* optional: slightly thicker text */
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.hero-content,
.hero-highlight {
  max-width: 700px;
transform: translateX(80px);
}

.hero-call-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.6rem;
  background-color: #0b63ce;   /* Blue button */
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(11, 99, 206, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.emergency-call-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.6rem;
  background-color: #ffffff;   /* White button */
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(11, 99, 206, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.emergency-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 99, 206, 0.45);
  background-color: #e0e6ff;
}


.hero-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 99, 206, 0.45);
}

.hero-quote-btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e5531a, #ff7b3a);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(229, 83, 26, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hero-quote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(229, 83, 26, 0.45);
}

.hero-content h1 {
  font-size: 3.4rem;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #e5531a, #ff7b3a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: #b61d1d;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  margin: 0 0 1rem;
}

.hero-call {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-call a {
  color: #e5531a;
}

.hero-content button {
  margin-top: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #e5531a, #ff7b3a);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 8px 18px rgba(229, 83, 26, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hero-content button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(229, 83, 26, 0.45);
}

/* Van image on the right side of hero */
.hero-van {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  padding-bottom: 30px; /* room for the ground shadow */
}

/* van image */
.hero-van img {
  max-width: 100%;
  height: auto;
  width: 620px;
  object-fit: contain;

  /* keep your final position */
  transform: translate(-100px, 70px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));

  /* animation: fade + drive in */
  opacity: 0;
  animation: vanDriveIn 1.2s ease-out forwards;
}

/* soft ground shadow under the van */
.hero-van::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 60%;
  max-width: 420px;
  height: 32px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.0) 70%
  );
  opacity: 0;
  animation: vanShadowIn 1.4s ease-out forwards 0.4s;
}


.hero-tagline {
  margin-top: 0.75rem;
  font-style: italic;
  color: #555;
}

/* =========================================
   Section headers (Our Services, About, etc.)
========================================= */

.section-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-header-fullwidth {
  text-align: left;
  padding: 2.5rem 1.5rem 1.5rem;
}

.section-kicker {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #b61d1d;
  margin-bottom: 0.5rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-header h2 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.8rem;
  color: #222;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-header h3 {
  max-width: 1020px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker-fullwidth {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #b61d1d;
  margin-bottom: 0.5rem;
  text-align: left;
}

.section-header-fullwidth h2 {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.8rem;
  color: #222;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-header-fullwidth p {
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fullwidth-text-alignment-right .section-header-fullwidth,
.fullwidth-text-alignment-right .section-kicker-fullwidth,
.fullwidth-text-alignment-right .section-header-fullwidth h2,
.fullwidth-text-alignment-right .section-header-fullwidth p {
  text-align: right;
}

.fullwidth-text-alignment-center .section-header-fullwidth,
.fullwidth-text-alignment-center .section-kicker-fullwidth,
.fullwidth-text-alignment-center .section-header-fullwidth h2,
.fullwidth-text-alignment-center .section-header-fullwidth p {
  text-align: center;
}

/* =========================================
   Our Services
========================================= */

.services {
  background-color: #ffffff;
  padding-bottom: 2.5rem;
}

/* === Services - 4-card image grid === */
.services-grid {
  display: grid;
  /* Desktop-first: 3-up grid (matches most pages & prevents tiny tiles) */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1500px;
  margin: 1.5rem auto 0;
}

/* Each tile */
.service-tile {
  position: relative;
  min-height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  color: #ffffff;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

/* dark overlay so text is readable */
.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.05)
  );
  opacity: 0.95;
  transition: opacity 0.18s ease;
}

.service-tile-inner {
  position: absolute;
  inset: auto 1.5rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform: translateY(16px);
  opacity: 0.9;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.service-tile h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.service-tile p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.18s ease;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.service-tile-link {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #ffb86e;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;   /* prevents interaction until visible */
  transition: opacity 0.2s ease, transform 0.2s ease;
  transition-delay: 0.1s;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.service-tile:hover .service-tile-link,
.service-tile:focus-within .service-tile-link {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* "Open" effect on hover/focus */
.service-tile:hover,
.service-tile:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35);
}

.service-tile:hover::before,
.service-tile:focus-within::before {
  opacity: 1;
}

.service-tile:hover .service-tile-inner,
.service-tile:focus-within .service-tile-inner {
  transform: translateY(0);
  opacity: 1;
}

.service-tile:hover p,
.service-tile:focus-within p {
  max-height: 200px;
  opacity: 1;
}

.service-tile--plumbing {
  background-image: url("../img/plumbing bathroom renovation.jpeg");
}

.service-tile--heating {
  background-image: url("../img/IMG_5706.jpg");
}

.service-tile--cooling {
  background-image: url("../img/IMG_5076.jpeg");
}

.service-tile--water {
  background-image: url("../img/IMG_5768.jpeg");
}

.service-tile--emergency {
  background-image: url("../img/outdoor-plumbing.png");
}

.service-tile--furnaces {
  background-image: url("../img/IMG_4354.jpeg");
}

.service-tile--boilers {
  background-image: url("../img/IMG_5671.jpeg");
}

.service-tile--heatpumps {
  background-image: url("../img/IMG_5077_compressed.webp");
}

.service-tile--heatingrepair {
  background-image: url("../img/gas furnace maintenance.jpeg");
}

.service-tile--heatingmaintenance {
  background-image: url("../img/IMG_5886.jpg");
}

.service-tile--furnaceinstallation {
  background-image: url("../img/2025-04-14.webp");
}

.service-tile--furnacerepair {
  background-image: url("../img/IMG_5882.jpg");
}

.service-tile--boilerinstallation {
  background-image: url("../img/IMG_4541.jpeg");
}

.service-tile--boilerrepair {
  background-image: url("../img/IMG_3648.jpeg");
}

.service-tile--plumbinginstallation {
  background-image: url("../img/shutterstock_1066126046 (1).jpg");
}

.service-tile--plumbinginspection {
  background-image: url("../img/istockphoto-1488898759-612x612.jpg");
}

.service-tile--plumbingrepair {
  background-image: url("../img/iStock-921346102.jpg");
}

.service-tile--bathkitchen {
  background-image: url("../img/header-background.png");
}

.service-tile--sumppumps {
  background-image: url("../img/65a953b79e6c4bf8661ea7a6_sump pump in basement.jpg");
}

.service-tile--waterfilters {
  background-image: url("../img/waterfilter.avif");
}

.service-tile--draincleaning {
  background-image: url("../img/draincleaning.avif");
}

.service-tile--showervalves {
  background-image: url("../img/shower-valve-plate-387854203.jpg");
}

.service-tile--faucets {
  background-image: url("../img/65284761.avif");
}

.service-tile--garbagedisposal {
  background-image: url("../img/Garbage-Disposal.webp");
}

.service-tile--toilets {
  background-image: url("../img/toilet-2048px-4357.jpg");
}

.service-tile--dishwashers {
  background-image: url("../img/BEST-DISHWASHER-2048px-0499.jpg");
}

.service-tile--acinstallation {
  background-image: url("../img/iStock-1255408076.avif");
}

.service-tile--acrepair {
  background-image: url("../img/6807c6c5bbd06b0662eae4e2__iStock-1437896577.webp");
}

.service-tile--acmaintenance {
  background-image: url("../img/AC-Maintenance-Strittmatter.jpeg");
}

.service-tile--waterheaterinstallation {
  background-image: url("../img/water heater installation cropped.jpg");
}

.service-tile--waterheaterrepair {
  background-image: url("../img/water heater repair.jpg");
}

.service-tile--waterheatermaintenance {
  background-image: url("../img/water heater maintenance.jpg");
}

.service-tile--tanklesswaterheater {
  background-image: url("../img/tankless water heaters.jpg");
}

.service-card {
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 1.25rem 1.2rem 1.5rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  border: 2px solid #e2e8f0;
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #e06100;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #000080;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-summary {
  padding: 0 1.5rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 1.0rem;
  color: #000080;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.intro-summary {
  display: flex;
  align-items: center;
  gap: 100px;
  justify-content: space-between;

  background: #fff;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.12);

/* full-width section */
  width: 100%;
  margin: 0;

  /* spacing around content */
  /* Use responsive padding so ultra-wide screens don't create awkward spacing */
  padding: clamp(2.5rem, 4vw, 3.75rem) clamp(1.25rem, 6vw, 9.5rem);
  box-sizing: border-box;
}

/* Ensure the text and image share space nicely in the intro summary row */
.intro-summary > .section-header {
  flex: 1 1;
  max-width: 760px;
}

.intro-summary-fullwidth {
  width: 100%;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.12);

/* full-width section */
  width: 100%;
  margin: 0;

  /* spacing around content */
  padding: 60px 150px; /* adjust to taste */
  box-sizing: border-box;
  display: flex;
}

.general-summary {
  padding: 0 1.5rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.0rem;
  color: #000080;
  align-items: center;
  font-size: 18px;
}

.general-summary-fullwidth {
  max-width: 100%;
  margin: 0 auto;
  font-size: 1.0rem;
  color: #000080;
  text-align: left;
  font-size: 18px;
}

.summary-image {
  /* Responsive image block for Heating System Installation */
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 clamp(280px, 30vw, 520px);
  width: 100%;
  max-width: 520px;
  padding: 0;
  margin: 0 auto;
  height: auto;
}

.summary-image img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

.summary-image-figure {
  margin: 0;
  width: 100%;
  max-width: 520px;
}

.summary-image-caption {
  margin-top: 0.6rem;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5b6b8c;
  text-align: center;
}

/* Keep the image from touching the viewport edges on small phones */
@media (max-width: 425px) {
  .summary-image {
    max-width: 100%;
    padding: 0 16px;
  }
  .summary-image img {
    max-width: 100%;
  }
}

@media (max-width: 375px) {
  .summary-image { padding: 0 14px; }
}

@media (max-width: 320px) {
  .summary-image { padding: 0 12px; }
}



.services-summary p + p {
  margin-top: 0.7rem;
}

/* =========================================================
   CTA Design 2 (UPDATED) - Banner + Call CTA (No Form)
   - Matches previous Design 2 styling
   - Right side becomes a simple CTA card
   - Responsive: stacks cleanly on <= 1024px
   ========================================================= */

:root{
  --cta2-max: 1280px;
  --cta2-accent: #f97316;
  --cta2-radius: 22px;
  --cta2-shadow: 0 18px 40px rgba(2,6,23,.16);
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

.cta-banner{
  padding: clamp(26px, 5vw, 70px) 16px;
}

.cta-banner__inner{
  max-width: var(--cta2-max);
  margin: 0 auto;
  border-radius: var(--cta2-radius);
  box-shadow: var(--cta2-shadow);
  overflow: hidden;

  background:
    radial-gradient(900px 500px at 15% 15%, rgba(255,255,255,.16), rgba(255,255,255,0)),
    linear-gradient(135deg, #0b1b3a, #153a7a);

  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
}

/* Left copy */
.cta-banner__copy{
  padding: clamp(18px, 3vw, 34px);
  color: #fff;
}

.cta-banner__kicker{
  margin: 0 0 10px 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.9);
}

.cta-banner__title{
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(22px, 2.6vw, 40px);
}

.cta-banner__lead{
  margin: 10px 0 0 0;
  color: rgba(255,255,255,.92);
  line-height: 1.65;
  max-width: 60ch;
  font-size: clamp(14px, 1.1vw, 18px);
}

.cta-banner__trust{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

/* Right action card */
.cta-banner__action{
  background: rgba(255,255,255,.96);
  padding: clamp(18px, 2.6vw, 28px);
  display: grid;
  align-content: start;
  gap: 10px;
}

.cta-banner__action-title{
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #0f172a;
}

.cta-banner__action-lead{
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.cta-call{
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 900;
  font-size: 16px;
  background: var(--cta2-accent);
  color: #fff;
  transition: transform .18s ease, filter .18s ease;
  border: 1px solid rgba(0,0,0,.06);
}

.cta-call__num{
  margin-left: 6px;
}

.cta-call:hover{ transform: translateY(-1px); filter: brightness(.98); }
.cta-call:focus-visible{ outline: 3px solid rgba(59,130,246,.45); outline-offset: 3px; }

.cta-banner__secondary{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.cta-link{
  color: #0b1b3a;
  font-weight: 900;
  text-decoration: none;
}
.cta-link:hover{ text-decoration: underline; }

.cta-divider{
  opacity: .6;
}

.cta-banner__micro{
  margin: 8px 0 0 0;
  color: #ff0000;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px){
  .cta-banner__inner{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px){
  .cta-banner{ padding-left: 12px; padding-right: 12px; }
  .cta-call{ width: 100%; }
}


/* =========================================
   About, Service Area, Quote
========================================= */

.about {
  background-color: #f5f7fb;
  padding-bottom: 3rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  text-align: center;
}

.about-content p {
  margin-bottom: 1rem;
  color: #000080;
}

.about-highlight {
  font-weight: 600;
  color: #0b63ce;
}

/* Service area styled like Emergency CTA */
.service-area {
  background: linear-gradient(135deg, #0b63ce, #15417d);
  color: #ffffff;
  padding: 2.5rem 1.5rem 3rem;
  margin-top: 1rem;
}

.service-area h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.service-area ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem auto 0;
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
}

.about-quote-grid {
  max-width: 1100px;
  margin: 4rem auto 2.5rem;   /* 4rem adds spacing above section */
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;  /* <--- THIS centers the left column vertically */
}

/* keep about text aligned nicely on left */
.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centers vertically within the column */
  height: 100%;              /* ensures full column height */
  padding: 0 1.5rem 7rem
}

.service-area-locations {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.location-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease;
}

.location-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.45);
  transform: translateY(-1px);
}


/* Quote form */

/* === Request a Quote - card form === */
.quote-request {
   position: relative;
  max-width: 100%;
  margin: 0;               /* grid will handle spacing */
  padding: 2.2rem 2.5rem 2.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ff8a45 0%, #ff7a2f 50%, #ff6f22 100%);
  border-radius: 0.0rem 0.0rem 0.9rem 0.9rem;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

/* top colored bar (blue + orange) */
.quote-request::before,
.quote-request::after {
  content: "";
  position: absolute;
  top: 0;
  height: 5px;
  border-radius: 0.9rem 0.9rem 0 0;
}

.quote-request::before {
  left: 0;
  width: 55%;
  background-color: #0b63ce; /* blue */
}

.quote-request::after {
  right: 0;
  width: 45%;
  background-color: #e5531a; /* orange */
}

/* heading + subtitle */
.quote-title {
  margin: 0 0 0.3rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.quote-title span {
  color: #0b63ce;
}

.quote-subtitle {
  margin: 0 0 1.4rem;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

/* form layout */
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group-full {
  grid-column: 1 / -1; /* full width row */
}

/* hidden by default */
.quote-success {
  display: none;
  text-align: center;
  padding: 32px 18px;
}

/* show success */
.quote-success.is-visible {
  display: block;
  animation: fadeInScale 0.5s ease forwards;
}

/* hide form when success shows */
.quote-form.is-hidden {
  display: none;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 8px auto 14px;
  background: #0b5ed7;
  color: #fff;
  border-radius: 50%;
  font-size: 32px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

@keyframes fadeInScale {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Optional: loading button */
.quote-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}


/* labels + fields */
.quote-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #f9fafb;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #9ca3af;
}

.quote-form select {
  appearance: none; /* keeps it clean - native arrow still shows in most browsers */
}

.extra-quote-section {
  padding: 4rem 0;
}

.extra-quote-grid {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

/* Remove big outer spacing from additional-services now that it's inside the grid */
.additional-services {
  background: #f8fafc; /* or keep your subtle bg */
  box-shadow: none;        /* if you had a large card shadow, you can keep or remove */
  padding: 0;
  margin: 0;
}

/* Make the header inside left column align nicely */
.additional-services .section-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

/* focus state */
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #0b63ce;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(11, 99, 206, 0.15);
}

/* submit button */
.quote-submit {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  background-color: #111827;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  transition: background-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease;
}

.quote-submit:hover {
  background-color: #030712;
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.35);
}

.quote-request h3 {
  font-size: 1.3rem;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  color: #0b63ce;
}

.quote-request form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding-bottom: 1.5rem;
}

.quote-request form div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quote-request label {
  font-size: 0.9rem;
  font-weight: 500;
}

.quote-request input,
.quote-request textarea {
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.quote-request textarea {
  resize: vertical;
  min-height: 120px;
}

.quote-request button {
  grid-column: 1 / -1;
  justify-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background-color: #0b63ce;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.social-row{
  display:flex;
  gap:12px;
  align-items:center;
}

.social-btn{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#111827;           /* dark circle */
  color:#fff;                   /* SVG uses currentColor */
  text-decoration:none;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
  transition: transform .15s ease, opacity .15s ease;
}

.social-btn:hover{
  transform: translateY(-1px);
  opacity: .95;
}

.social-icon{
  width:20px;
  height:20px;
  fill: currentColor;
  display:block;                /* avoids baseline "off-center" issues */
}

.contact-map{
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem 3rem;
}

.map-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.map-embed{
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  background: #fff;
}

.map-embed-title{
  margin: 0;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #e8edf5;
}

/* responsive iframe */
.map-embed iframe{
  width: 100%;
  height: 420px;
  display: block;
}

@media (max-width: 900px){
  .map-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .map-embed iframe{ height: 320px; }
}

/* ===== Leave a Review CTA ===== */
.leave-review {
  padding: 4rem 1.5rem;
  background: #f5f7fb;
}

.leave-review-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.4rem 2.2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  border: 1px solid #e9eef6;
}

.leave-review-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b61d1d;
}

.leave-review h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  color: #0f172a;
}

.leave-review-subtitle {
  margin: 0;
  max-width: 70ch;
  color: #334155;
  line-height: 1.7;
  font-size: 1.02rem;
}

.leave-review-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.leave-review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.10);
  border: 1px solid transparent;
  min-width: 220px;
}

.leave-review-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Google (blue) */
.leave-review-btn--google {
  background: #0b3cff;
  color: #ffffff;
}

/* Yelp (dark) */
.leave-review-btn--yelp {
  background: #111827;
  color: #ffffff;
}

.leave-review-note {
  margin: 1.1rem 0 0;
  color: #475569;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 640px) {
  .leave-review-inner {
    padding: 1.6rem 1.25rem;
  }

  .leave-review-btn {
    width: 100%;
    min-width: 0;
  }
}

/* === Service Area + Map Section === */
.service-area {
  background: linear-gradient(180deg, #0a58b5 0%, #083f86 100%);
  padding: 4.5rem 1.5rem;
}

.service-area__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.service-area__header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.service-area__eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.service-area__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.service-area__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

/* Map */
.service-area__map {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.service-area__map img {
  width: 800px;
  height: 450px;
  display: block;
}

/* Locations (pills) */
.service-area__locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-content: center;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.service-area__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.service-area__pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 950px) {
  .service-area__grid {
    grid-template-columns: 1fr;
  }

  .service-area__locations {
    justify-content: center;
  }
}


/* ===== Contact / Quote + Info section (Contact Us) ===== */
.contact-section {
  padding: 3.5rem 1.25rem;
  background: #ffffff;
}

.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.contact-card-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

/* Form */
.contact-form .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dde6f3;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #93b4ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.field-full {
  grid-column: 1 / -1;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.contact-submit {
  border: none;
  background: #111827;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Right column info list */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 1.4rem;
  display: grid;
  gap: 1rem;
}

.info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  user-select: none;
}

.info-icon--phone { background: rgba(59, 130, 246, 0.14); }
.info-icon--email { background: rgba(245, 158, 11, 0.16); }
.info-icon--hours { background: rgba(34, 197, 94, 0.14); }
.info-icon--location { background: rgba(239, 68, 68, 0.14); }

.info-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.info-link {
  color: #0f172a;
  text-decoration: none;
  opacity: 0.9;
}

.info-link:hover {
  text-decoration: underline;
}

.info-muted {
  color: #475569;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Social buttons */
.social-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* Accessibility helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-card {
    padding: 1.25rem;
  }

  .contact-form .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  .contact-card {
    padding: 0.50rem;
  }

  .contact-form .contact-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   Info navigation (Our Approach / Why / Mission)
========================================= */

.info-navigation {
  padding: 2rem 1.5rem 0.5rem;
  text-align: center;
}

.info-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.info-navigation a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  background-color: #ffffff;
}

.info-navigation a:hover {
  background-color: #0b63ce;
  color: #ffffff;
}

/* =========================================
   Our Approach
========================================= */

.approach {
  background-color: #ffffff;
  padding-bottom: 3rem;
}

.approach-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.approach-content p {
  margin-top: 0;
  color: #000080;
}

.approach-content ul {
  columns: 2;
  column-gap: 10.0rem;
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  color: #000080;
}

/* Approach features cards */

.approach-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 20.0rem 1.5rem;
}

.feature {
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 1.25rem 1.2rem 1.5rem;
  border: 2px solid #e2e8f0;
}

.feature h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: #e06100;
}

.feature p {
  font-size: 0.95rem;
  color: #000080;
}

/* =========================================
   Why Choose Us
========================================= */

.why-choose-us {
  background-color: #f5f7fb;
  padding-bottom: 3rem;
}

.why-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.why-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  color: #000080;
}

.why-content p {
  color: #000080;
}

/* reuse .feature for cards */
.why-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 22.0rem 2.5rem;
}

/* =========================================
   Mission & Vision
========================================= */

.mission-vision {
  background-color: #ffffff;
  padding-bottom: 3rem;
}

.mission-vision > div {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}

.mission-vision h3 {
  margin-top: 0;
  color: #b61d1d;
  font-size: 1.1rem;
}

.mission-vision p {
  color: #000080;
}

.mission ul,
.values ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  color: #000080;
}

/* =========================================
   Additional Services
========================================= */

.additional-services {
  background-color: transparent;
  padding-bottom: 3rem;
  box-shadow: 10px;
}

.additional-services header p {
  max-width: 700px;
  margin: 0.75rem auto 0;
  font-size: 1.2rem;
  color: #000080;
  text-align: center;
}

/* Slider container for Additional Services */
.additional-grid {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  min-height: 260px; /* JS will raise this based on tallest slide content */
}

/* Base card styling + slider positioning */
.additional-item {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.2rem 1.5rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  border-top: 3px solid #0b63ce;

  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateX(40px);
  width: 100%;
  max-width: 900px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.additional-item h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: #0b63ce;
}

.additional-item p {
  font-size: 0.95rem;
}

.additional-item ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.6rem;
}

/* Slide states for animation */
.additional-item.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateX(0);
  z-index: 2;
}

.additional-item.is-prev {
  opacity: 0;
  transform: translateX(-50%) translateX(-40px);
  z-index: 1;
}

.additional-item.is-next {
  opacity: 0;
  transform: translateX(-50%) translateX(40px);
  z-index: 1;
}

/* On very small screens, just let it be full width and centered */
@media (max-width: 640px) {
  .additional-grid {
    padding: 0 1rem 2rem;
  }

  .additional-item {
    max-width: 100%;
  }
}

/* =========================================
   Emergency CTA
========================================= */

.emergency-cta {
  background: linear-gradient(135deg, #eb4a4a, #970000);
  color: #ffffff;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.emergency-cta h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.emergency-cta p {
  margin: 0.5rem auto;
  max-width: 650px;
  font-size: 18px;
}

.emergency-cta a {
  color: #000000;
  font-weight: 600;
}

/* =========================================
   FAQ
========================================= */

/* FAQ section */
.faq-section {
  padding: 4rem 0;
  background-color: #f5f7fb; /* light background like your site */
}

.faq-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

/* Left column */
.faq-intro h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.faq-intro p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Accordion container */
.faq-accordion {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

/* Each item */
.faq-item + .faq-item {
  border-top: 1px solid #e3e7f1;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.faq-icon {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
}

/* simple chevron using borders */
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

/* Active / open state */
.faq-item.active .faq-question {
  background-color: #071a8c; /* deep blue like your screenshots */
  color: #ffffff;
}

.faq-item.active .faq-answer {
  padding: 1rem 1.5rem 1.25rem;
  max-height: 300px; /* enough for the text */
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  transform: rotate(-135deg); /* chevron points up when open */
}

/* =========================================
   Testimonials
========================================= */

.testimonials {
  --testimonial-card-gap: 24px;
  background-color: #ffffff;
  padding-bottom: 3.25rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 1.5rem 2.5rem;
}

/* The visible window */
.testimonials-window {
  overflow: hidden;
  flex: 1 1 auto;
  padding: 10px 0 16px;
}

.testimonial {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #dbe5f2;
  padding: 2rem 2.1rem;
  margin: 0 calc(var(--testimonial-card-gap) / 2);
  min-height: 348px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.testimonial h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0b5ed7;
}

.testimonial p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.testimonials-trust {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.testimonials-rating {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.testimonials-review-btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: #0b5ed7;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(11, 94, 215, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonials-review-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 94, 215, 0.35);
}

/* Testimonials carousel layout */
.testimonials-carousel {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s ease;
}

/* Each card */
.testimonials-track .testimonial {
  flex: 0 0 calc((100% / 3) - var(--testimonial-card-gap)); /* 3 per view by default */
}

/* Arrows */
.testimonial-arrow {
  background: #ffffff;
  border: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #4b5563;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-arrow:hover {
  background-color: #0b5ed7;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

/* Dots */
.testimonial-dots {
  margin-top: 1rem;
  text-align: center;
}

.testimonial-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 999px;
  background-color: #d1d5db;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.testimonial-dot.active {
  background-color: #0b5ed7;
  transform: scale(1.1);
  width: 18px;
}

/* Text inside card */
.testimonial-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.testimonial.has-read-more:not(.is-expanded) .testimonial-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial.has-read-more .testimonial-text {
  position: relative;
}

.testimonial.has-read-more:not(.is-expanded) .testimonial-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.4em;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), #ffffff);
}

.testimonial-read-more {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin: 0.75rem auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0b5ed7;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.testimonial-read-more:hover,
.testimonial-read-more:focus-visible {
  color: #084aa8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.testimonial-read-more:focus-visible {
  outline: 2px solid rgba(11, 94, 215, 0.45);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Footer area (Google + stars) */
.testimonial-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* Google "G" badge */
.google-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #4285f4;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  line-height: 1; /* Removes font's vertical offset */
}

.testimonial-name {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
}

/* Stars */
.testimonial-stars {
  display: flex;
  gap: 2px;
}

.testimonial-stars .star {
  color: #f59e0b; /* amber */
  font-size: 1rem;
}

.testimonial-google-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0.55rem auto 0;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.10);
}

/* =========================================
   Badges
========================================= */

/* === Badges / Certifications strip === */

.badge-section {
  padding: 3.5rem 0 4rem;
  background-color: #ffffff;
}

.badge-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.badge-heading {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.badge-subtitle {
  margin: 0 0 2rem;
  font-size: 0.98rem;
  color: #4b5563;
}

.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
}

.badge-item {
  flex: 0 1 140px; /* base width per logo */
  display: flex;
  justify-content: center;
  align-items: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.badge-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* hover highlight */
.badge-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
}

/* =========================================
   Latest Blog Strip
========================================= */

.blog-strip {
  background-color: #f5f7fb;
  padding: 3.5rem 0 4rem;
}

.blog-strip .services-grid {
  max-width: 1100px;
  padding: 0 1.5rem;
}

@media (min-width: 1025px) {
  .blog-strip .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-strip__cta {
  text-align: center;
  margin: 2rem 0 0;
}

/* =========================================
   Footer
========================================= */

.site-footer {
  background-color: #0b1024;
  color: #e2e8f0;
  padding: 2.5rem 1.5rem 1.5rem;
}

.site-footer a {
  color: #e06100;
}

.site-footer a:hover {
  color: #bfdbfe;
}

.site-footer > div {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

.footer-contact h3,
.footer-badges h4,
.footer-social h4 {
  margin-top: 0;
  color: #ffffff;
}

.footer-badges ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.footer-badges li + li {
  margin-top: 0.2rem;
}

.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}


@keyframes vanDriveIn {
  from {
    /* start off to the right invisible */
    transform: translate(260px, 70px);
    opacity: 0;
  }
  to {
    /* your final resting position */
    transform: translate(-100px, 70px);
    opacity: 1;
  }
}

@keyframes vanShadowIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 960px) {
  .header-main {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

 .about-quote-grid {
    grid-template-columns: 1fr;
  }

  .header-social {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approach-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .additional-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.service-quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-bar-left,
  .top-bar-right {
    padding: 0.35rem 0.75rem;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-bar-right {
    margin-left: 0;
    gap: 0.25rem;
  }

  .header-main {
    padding: 0.75rem;
  }

  .hero {
    padding: 1.75rem 1rem 2.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-header {
    padding: 2rem 1rem 1rem;
  }

  .services-grid,
  .approach-features,
  .why-features,
  .additional-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .quote-request form {
    grid-template-columns: 1fr;
  }

  .info-navigation ul {
    display: flex;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  /* ...existing rules... */

  .logo img {
    height: 42px;
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  /* ...your existing rules... */

  .quote-request {
    padding: 1.9rem 1.4rem 2.1rem;
    margin: 2.5rem 1rem 3rem;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   EXTRA-SMALL FIXES (prevents orange quote card bleeding on 375/320)
   Notes:
   - The quote card lives inside a grid; horizontal margins can create
     overflow at very small viewports.
   - These overrides force edge-safe padding and remove margin.
-------------------------------------------------------------------*/

@media (max-width: 425px) {
  .extra-quote-grid {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .quote-request {
    margin: 0;               /* prevent overflow inside grid */
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 375px) {
  .extra-quote-grid {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .quote-request {
    margin: 0;
    padding: 1.35rem 0.85rem 1.6rem;
  }
}

@media (max-width: 320px) {
  .extra-quote-grid {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .quote-request {
    margin: 0;
    padding: 1.25rem 0.75rem 1.5rem;
  }

  /* Avoid input overflow on very small devices */
  .quote-request input,
  .quote-request select,
  .quote-request textarea {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1440px) {
  .hero-van img {
    width: 430px;
  }
  .hero-van {
    transform: translate(100px, -60px);
  }
}

@media (max-width: 1024px) {
  .hero-van {
    justify-content: center;
    margin-top: 1.5rem;
    transform: translate(0px, 0px);
  }

  .hero-van img {
    width: 500px;
  }
  .hero-van img {
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 960px) {
  .hero-van {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .hero-van img {
    width: 380px;
  }
}

@media (max-width: 640px) {
  .hero-van img {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .hero-van picture {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* Tablet landscape: force 2-up ("two and two") */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* If there's an odd number of tiles, center the last one */
  .services-grid > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc((100% - 1.25rem) / 2);
    justify-self: center;
  }
}

/* Small tablets/large phones: keep 2-up until we hit mobile */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Reset odd-last centering rule when grid becomes single column */
  .services-grid > *:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 100%;
    justify-self: stretch;
  }

  .service-tile {
    min-height: 230px;
  }
}

/* stack on small screens */
@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* small screens */
@media (max-width: 640px) {
  .badge-strip {
    gap: 1.5rem;
  }

  .badge-item {
    flex: 0 1 110px;
  }

  .badge-heading {
    font-size: 1.25rem;
  }
}

/* Optional: slightly smaller padding on very small screens */
@media (max-width: 600px) {
  .testimonials {
    --testimonial-card-gap: 18px;
  }

  .testimonials-carousel {
    padding: 0 1rem;
  }

  .testimonial {
    padding: 1.4rem 1.5rem;
  }
}

/* Responsive: 2 cards on medium, 1 on small */
@media (max-width: 960px) {
  .testimonials-track .testimonial {
    flex: 0 0 50%;
  }
}

@media (max-width: 640px) {
  .testimonials-carousel {
    padding: 0 1rem;
  }

  .testimonials-track .testimonial {
    flex: 0 0 100%;
  }

  .testimonial {
    padding: 1.4rem 1.5rem;
  }

  .testimonial-arrow {
    display: none; /* optional: hide arrows on very small screens */
  }
}


/* =========================================
   Responsive Enhancements (Mobile + Large Screens)
   Target breakpoints: 320, 375, 425, 768, 1024, 1440, 2560
   These rules are appended to override earlier desktop-first values.
========================================= */

/* --- <= 1024px (tablets / small laptops) --- */
@media (max-width: 1024px) {
  .container { max-width: 960px; }

  .header-main { padding: 1rem 1.25rem; gap: 1rem; }
  .logo img { height: 64px; max-width: 220px; }

  /* Reduce overly large horizontal paddings */
  .approach-features,
  .why-features {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Make multi-column lists easier to read */
  .approach-content ul {
    columns: 1;
    column-gap: 1.5rem;
  }
}

/* --- <= 768px (tablet / large phones) --- */
@media (max-width: 768px) {
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* Header: allow wrapping so nav doesn't overflow */
  .header-main { flex-wrap: wrap; align-items: center; }
  .main-nav { width: 100%; }
  .main-nav .nav-list {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  /* Section padding adjustments */
  .section-header { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding-left: 1rem; padding-right: 1rem; }

  /* Avoid horizontal overflow from wide grids */
  .services-grid,
  .approach-features,
  .why-features,
  .additional-grid,
  .testimonials-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* --- <= 425px (typical mobile) --- */
@media (max-width: 425px) {
  .header-main { padding: 0.75rem; }
  .logo img { height: 56px; max-width: 200px; }

  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p { font-size: 1rem; }

  /* Grids should be single column on mobile */
  .services-grid,
  .approach-features,
  .why-features,
  .additional-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Long button rows stack cleanly */
  .leave-review-actions,
  .cta-actions,
  .service-quote-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .leave-review-btn,
  .cta-button,
  .service-quote-actions a,
  .service-quote-actions button {
    width: 100%;
  }

  /* Lists and chips wrap with tighter spacing */
  .service-area ul { gap: 0.5rem 0.75rem; }
}

/* --- <= 375px (small mobile) --- */
@media (max-width: 375px) {
  .container { padding-left: 0.85rem; padding-right: 0.85rem; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero { padding-top: 1.5rem; padding-bottom: 2.25rem; }
  .main-nav .nav-list { gap: 10px; }
}

/* --- <= 320px (very small mobile) --- */
@media (max-width: 320px) {
  .container { padding-left: 0.75rem; padding-right: 0.75rem; }
  .logo img { height: 52px; max-width: 180px; }
  .hero-content h1 { font-size: 1.6rem; }
  .main-nav .nav-list { gap: 8px; }
}

/* --- >= 1440px (large desktops) --- */
@media (min-width: 1440px) {
  .container { max-width: 1200px; }
}

/* --- >= 2560px (very large screens) --- */
@media (min-width: 2560px) {
  .container { max-width: 1400px; }
  body { font-size: 18px; }
}



/* =========================================
   Mobile Navigation + Layout Fixes
========================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Burger button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* caret button injected by JS */
.submenu-toggle {
  display: none; /* shown on mobile */
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.submenu-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* --- Mobile nav behavior --- */
/*
  Burger menu should NOT appear at 1024px.
  Keep the regular header through 1024px and only
  switch to burger menu at tablet/phone widths.
*/
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  /* Make header layout work with burger */
  .header-main {
    align-items: center;
  }

  /* Collapse nav into dropdown */
  .main-nav {
    width: 100%;
  }

  .main-nav .nav-list {
    display: none;           /* collapsed by default */
    flex-direction: column;
    gap: 0;
    padding: 10px;
    margin-top: 10px;
    border-radius: 14px;
    background: #0b1430;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  }

  .main-nav.is-open .nav-list {
    display: flex;
  }

  .main-nav .nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 10px;
  }

  /* Show submenu toggle buttons on mobile */
  .submenu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Disable hover-based absolute positioning on mobile */
  .main-nav .submenu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.06);
    margin: 6px 0 10px 14px;
    padding: 8px;
    border-radius: 12px;
    display: none; /* collapsed by default */
  }

  .main-nav .submenu.is-open {
    display: flex;
  }

  /* Nested submenus behave like normal stacks */
  .main-nav .submenu .submenu {
    margin-left: 12px;
    background: rgba(255,255,255,0.07);
  }
}

/* --- Layout fixes: Additional Services + Quote form stacking --- */
@media (max-width: 1024px) {
  .extra-quote-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Make the quote form single-column on smaller screens */
@media (max-width: 768px) {
  .quote-form {
    grid-template-columns: 1fr;
  }
}

/* --- Typography alignment on small screens --- */
@media (max-width: 768px) {
  .hero-content,
  .section-header,
  .services-header,
  .additional-services .section-header,
  .quote-card-header {
    text-align: center;
  }

  /* Center button rows nicely */
  .hero-buttons,
  .service-quote-actions,
  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 425px) {
  h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
  h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); }
  h3 { font-size: clamp(1.1rem, 4.2vw, 1.35rem); }

  .hero-content p { font-size: 1rem; }
}

/* When menu is open, lock the page behind it */
body.nav-open {
  overflow: hidden;
}


/* =========================================================
   RESPONSIVE OVERHAUL (Mobile-first stability layer)
   Targets: 320, 375, 425, 768, 1024, 1440, 2560
   Added: 2026-02-15
========================================================= */

/* Prevent accidental horizontal scrolling from transforms/large paddings */
html, body { overflow-x: clip; }

/* Media defaults */
img, video, svg { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

/* Safer typography scaling on small screens */
@media (max-width: 1024px) {
  h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 3.8vw, 2.2rem); }
  h3 { font-size: clamp(1.15rem, 2.8vw, 1.6rem); }

    /* Common two-column blocks stack */
  .service-area__grid,
  .about-quote-grid,
  .extra-quote-grid,
  .hero,
  .hero_heating {
    grid-template-columns: 1fr !important;
  }

  /* Intro summary was using large fixed padding/gap */
  .intro-summary,
  .intro-summary-fullwidth {
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding: 2.5rem 2rem !important;
    text-align: center;
  }

  .summary-image {
    max-width: 520px;
    margin: 0 auto;
    flex: 0 1 auto;
  }

  /* Keep cards/grids from overflowing */
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-actions { justify-content: center; }
}

@media (max-width: 768px) {
  /* Section padding: tighten globally */
  .container { padding-left: 1rem; padding-right: 1rem; }

    /* Most multi-column grids become 1 column */
  .services-grid,
  .approach-features,
  .why-features,
  .testimonials-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Buttons/forms should not overflow */
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons a,
  .header-buttons a,
  .header-buttons button,
  .btn,
  .btn-outline,
  .btn-primary {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Van image: remove desktop translation to avoid overflow on mobile */
  .hero-van img {
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    width: min(340px, 100%) !important;
  }

  /* Quote + contact forms: single-column & full width controls */
  .quote-form,
  .contact-form,
  form {
    width: 100%;
  }

  input, select, textarea, button {
    max-width: 100%;
  }

  /* Headings/paragraphs alignment (prevents awkward left offsets) */
  .hero-content,
  .section-header,
  .services-summary,
  .about-content {
    text-align: center;
  }
}

@media (max-width: 425px) {
  /* Tighten padding further on small phones */
  .container { padding-left: 0.95rem; padding-right: 0.95rem; }
  .intro-summary,
  .intro-summary-fullwidth { padding: 2.1rem 1.1rem !important; }

  .hero { padding-left: 1rem; padding-right: 1rem; }
  .hero-van img { width: min(300px, 100%) !important; }

  /* Reduce overly wide gaps */
  .badge-strip { gap: 1.25rem; }
}

/* Extra-small phones: ensure cards/forms never touch the viewport edge */
@media (max-width: 375px) {
  .extra-quote-grid { padding-left: 0.85rem; padding-right: 0.85rem; }
  .additional-grid { padding-left: 0.85rem; padding-right: 0.85rem; }

  .quote-request {
    padding: 1.6rem 1rem 1.75rem;
    margin: 0; /* grid handles spacing */
    border-radius: 0.75rem;
  }

  .quote-title { font-size: 1.35rem; }
  .quote-request input,
  .quote-request select,
  .quote-request textarea {
    font-size: 16px; /* prevent iOS zoom */
  }
}

@media (max-width: 320px) {
  .extra-quote-grid { padding-left: 0.7rem; padding-right: 0.7rem; }
  .additional-grid { padding-left: 0.7rem; padding-right: 0.7rem; }

  .quote-request { padding: 1.45rem 0.85rem 1.6rem; }
  .quote-title { font-size: 1.25rem; }
}

@media (max-width: 375px) {
  .container { padding-left: 0.85rem; padding-right: 0.85rem; }
  .hero-van img { width: min(280px, 100%) !important; }
}

@media (max-width: 320px) {
  .container { padding-left: 0.75rem; padding-right: 0.75rem; }
  h1 { font-size: 1.7rem; }
}

/* Large screens: allow a bit more breathing room */
@media (min-width: 1440px) {
  .container { max-width: 1200px; }
  .hero { max-width: 1400px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 2560px) {
  body { font-size: 18px; }
  .container { max-width: 1400px; }
  .hero { max-width: 1600px; }

  /* Let intro images scale a bit on ultra-wide displays */
  .summary-image { max-width: 760px; flex-basis: 760px; }
  .summary-image img { max-width: 760px; }
}



/* =========================================================
   HERO FIXES (Centering on mobile + full-bleed on desktop)
   Added: 2026-02-15
   ========================================================= */

/* Ensure hero always spans the full viewport width */
.hero,
.hero_heating {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Mobile/tablet: center hero copy and remove desktop offsets */
@media (max-width: 1024px) {
  /* Stack BOTH hero variants */
  .hero,
  .hero_heating {
    grid-template-columns: 1fr !important;
  }

  .hero-content {
    transform: none !important;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-content h1,
  .hero-content .hero-subtitle,
  .hero-content .hero-description {
    text-align: center;
  }

  /* Keep CTA buttons centered and wrapped nicely */
  .hero-content .hero-call-btn,
  .hero-content .hero-quote-btn {
    display: inline-block;
    margin-left: 0.35rem;
    margin-right: 0.35rem;
  }
}

/* Large screens: keep full-bleed background, constrain inner content */
@media (min-width: 1440px) {
  .hero,
  .hero_heating { max-width: none !important; }
  .hero-content { max-width: 52rem; }
}
@media (min-width: 2560px) {
  .hero,
  .hero_heating { max-width: none !important; }
  .hero-content { max-width: 56rem; }
}

/* =========================================================
   Intro summary image - flush right on large/4K screens
   (Heating_service.html: .intro-summary + .summary-image)
========================================================= */

/* Large desktops */
@media (min-width: 1440px) {
  /* Remove the right padding cap so the image can reach the edge */
  .intro-summary {
    padding-right: 150px !important;
  }

  /* Push the image wrapper to the far right */
  .summary-image {
    margin-left: auto;              /* pushes it to the far right */
    margin-right: 0;
    justify-content: flex-end;      /* align image to the right inside wrapper */
    max-width: none;                /* remove the 520px cap */
    flex: 0 0 clamp(420px, 32vw, 820px);
  }

  /* Keep image responsive but not absurdly huge */
  .summary-image img {
    width: min(820px, 100%);
    max-width: none;
  }
}

/* Ultra-wide / 4K */
@media (min-width: 2560px) {
  .summary-image {
    flex: 0 0 clamp(520px, 28vw, 980px);
  }

  .summary-image img {
    width: min(980px, 100%);
  }
}

/* =========================================================
   Large Screen Typography Scaling (1440px+ / 4K)
========================================================= */

@media (min-width: 1440px) {

  /* Global body text gets slightly larger */
  body {
    font-size: 18px;
    line-height: 1.75;
  }

  /* Section paragraphs */
  p {
    font-size: 1.05rem;
  }

  /* Main headings */
  h1 {
    font-size: clamp(2.6rem, 2.2vw, 3.4rem);
  }

  h2 {
    font-size: clamp(2rem, 1.6vw, 2.6rem);
  }

  h3 {
    font-size: clamp(1.4rem, 1.2vw, 1.8rem);
  }

  /* Buttons scale slightly too */
  button,
  .btn,
  .hero-buttons a {
    font-size: 1.05rem;
    padding: 14px 26px;
  }
}

/* Ultra-wide / 4K Typography Boost */
@media (min-width: 2560px) {

  body {
    font-size: 20px;
  }

  p {
    font-size: 1.15rem;
  }

  h1 {
    font-size: clamp(3.2rem, 2vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.4rem, 1.5vw, 3.2rem);
  }
}

/* =========================================================
   4K / Large Screen Typography Boost (Heating intro-summary)
   Correct selectors based on heating_service.html structure
========================================================= */

@media (min-width: 1440px) {
  /* Kicker line */
  .intro-summary .section-kicker {
    font-size: 1.25rem !important;
    letter-spacing: 0.22em !important;
  }

  /* Main title in that section */
  .intro-summary .section-header h2 {
    font-size: 2.35rem !important;
    line-height: 1.15 !important;
  }

  /* Paragraph text */
  .intro-summary .general-summary {
    font-size: 20px !important;
    line-height: 1.9 !important;
    max-width: 860px !important;
  }

  .intro-summary .general-summary p {
    font-size: inherit !important;
    line-height: inherit !important;
  }
}

@media (min-width: 2560px) {
  .intro-summary .section-kicker {
    font-size: 1.35rem !important;
  }

  .intro-summary .section-header h2 {
    font-size: 2.9rem !important;
  }

  .intro-summary .general-summary {
    font-size: 22px !important;
    max-width: 980px !important;
  }
}

/* =========================================================
   GLOBAL LARGE-SCREEN TYPOGRAPHY SYSTEM
   Applies ONLY at >= 1440px and >= 2560px
========================================================= */

/* =========================================================
   1440px+ (Dialed Down - Balanced Desktop Scaling)
========================================================= */

@media (min-width: 1440px) {

  /* Slight base bump only */
  html { font-size: 17px; }
  body { line-height: 1.7; }

  /* Paragraphs */
  p,
  li {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  /* Headings (reduced from previous values) */
  h1 { font-size: clamp(2.4rem, 1.6vw, 3rem); }
  h2 { font-size: clamp(1.9rem, 1.3vw, 2.4rem); }
  h3 { font-size: clamp(1.4rem, 1.05vw, 1.8rem); }

  /* Buttons */
  button,
  .btn,
  a.btn,
  .hero-buttons a {
    font-size: 1rem;
    padding: 13px 24px;
  }

  /* Forms */
  input,
  select,
  textarea {
    font-size: 1rem;
  }

  /* Slightly widen content container */
  .container {
    max-width: 1180px;
  }
}

/* 2560px+ (ultra-wide / 4K) */
@media (min-width: 2560px) {
  html { font-size: 20px; }  /* stronger bump */
  body { line-height: 1.8; }

  p,
  li {
    font-size: 1.18rem;
    line-height: 1.9;
  }

  h1 { font-size: clamp(3.25rem, 1.8vw, 4.4rem); }
  h2 { font-size: clamp(2.55rem, 1.35vw, 3.4rem); }
  h3 { font-size: clamp(1.75rem, 1.05vw, 2.25rem); }

  button,
  .btn,
  a.btn,
  .hero-buttons a,
  .cta a {
    font-size: 1.12rem;
    padding: 16px 30px;
  }

  input,
  select,
  textarea {
    font-size: 1.1rem;
  }

  /* Slightly wider readable container for ultra-wide screens */
  .container { max-width: 1320px; }
}

/* =========================================================
   SERVICES FLEX SECTION (Centered, max-3 default, optional max-4)
   - Add class `services-alt--four` on the <section> for max 4 per row
   - Leftovers always center automatically
   ========================================================= */

.services-alt{
  --svc-max: 1280px;
  --svc-gap: clamp(14px, 2vw, 22px);
  --svc-radius: 18px;
  --svc-shadow: 0 14px 30px rgba(0,0,0,.12);
  --svc-border: 1px solid rgba(0,0,0,.08);
  --svc-text: #0f172a;
  --svc-muted: #475569;
  --svc-accent: #f97316;
  --svc-bg: #ffffff;

  padding: clamp(36px, 5vw, 70px) 16px;
  background: var(--svc-bg);
}

.services-alt__inner{
  max-width: var(--svc-max);
  margin: 0 auto;
}

.services-alt__header{
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.services-alt__kicker{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px 0;
  color: #b91c1c;
}

.services-alt__title{
  margin: 10px;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--svc-text);
}

.services-alt__lead{
  max-width: 70ch;
  margin: 12px auto 0 auto;
  color: var(--svc-muted);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.6;
}

.services-alt__grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--svc-gap);
  align-items: stretch;
}

.services-alt .svc-card{
  border-radius: var(--svc-radius);
  overflow: hidden;
  border: var(--svc-border);
  box-shadow: var(--svc-shadow);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;

  /* DEFAULT: max 3 per row */
  flex: 0 1 calc((100% - (2 * var(--svc-gap))) / 3);
  max-width: 360px;
}

.services-alt.services-alt--four .svc-card{
  /* OPTIONAL: max 4 per row */
  flex: 0 1 calc((100% - (3 * var(--svc-gap))) / 4);
  max-width: 500px;
}

.services-alt .svc-card__media{
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b1220;
}

.services-alt .svc-card__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .25s ease;
}

.services-alt .svc-card__media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
  opacity: .35;
  pointer-events:none;
}

.services-alt .svc-card__body{
  padding: 16px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.services-alt .svc-card__title{
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  color: var(--svc-text);
}

.services-alt .svc-card__desc{
  margin: 0;
  color: var(--svc-muted);
  line-height: 1.6;
  font-size: 14px;
  flex: 1;
}

.services-alt .svc-card__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--svc-accent);
  color: #fff;
  transition: transform .18s ease, filter .18s ease;
}

.services-alt .svc-card:hover .svc-card__media img{ transform: scale(1.06); }
.services-alt .svc-card:hover .svc-card__cta{ filter: brightness(0.98); transform: translateY(-1px); }

.services-alt .svc-card__cta:focus-visible,
.services-alt .svc-card__media:focus-visible{
  outline: 3px solid rgba(59,130,246,.45);
  outline-offset: 3px;
}

/* 1024px-ish: force 2-up */
@media (max-width: 1024px){
  .services-alt .svc-card{
    flex: 0 1 calc((100% - var(--svc-gap)) / 2);
    max-width: none;
  }
}

/* Phones: single column */
@media (max-width: 560px){
  .services-alt{
    padding-left: 12px;
    padding-right: 12px;
  }
  .services-alt .svc-card{
    flex: 0 1 100%;
    max-width: 520px;
  }
}

/* 4K: more breathing room, still centered */
@media (min-width: 2200px){
  .services-alt{
    --svc-max: 2000px;
    --svc-gap: 40px;
  }
  .services-alt .svc-card__body{
    padding: 22px 22px 24px 22px;
  }
}

/* =========================================================
   SERVICES (Flex) - TEXT ONLY MODE (no images)
   Add class: .services-alt--textonly on the section
========================================================= */

.services-alt--textonly .svc-card{
  position: relative;
}

.services-alt--textonly .svc-card__media{
  display: none !important;
}

.services-alt--textonly .svc-card::before{
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(90deg, rgba(249,115,22,1), #0056c5);
}

.services-alt--textonly .svc-card__body{
  padding-top: 18px;
}

.services-alt--textonly .svc-card__title-link{
  text-decoration: none;
  color: inherit;
}

.services-alt--textonly .svc-card__title-link:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}





/* Wrapper section so the headline spans BOTH columns */
.services-offer-section{
  padding: clamp(28px, 4vw, 56px) 0;
  background: #f6f8fb;
}

.services-offer-section__header{
  text-align: center;
  max-width: 1200px;
  margin: 0 auto clamp(18px, 3vw, 28px);
  padding: 0 16px;
}

.services-offer-section__title{
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  font-size: clamp(26px, 3vw, 44px);
  color: #0f172a;
}

/* =========================================================
   Heating Service: Services (vertical) + Offer CTA (right)
   - Add .services-offer-layout to a wrapper to enable 2-column layout
   - Add .services-alt--vertical to make services cards a vertical stack
   - Add .services-alt--no-button to hide "Go to Page" buttons
   ========================================================= */


/* =========================================================
   HOME ONLY: Services (left) + Quote form (right)
   - Uses existing .services-offer-layout but scoped to home
   ========================================================= */

.home-services-offer-layout{
  align-items: flex-start; /* override center alignment from base layout */
}

/* Keep the orange form constrained nicely in the right column */
.home-services-offer-layout .quote-request{
  margin: 0;          /* avoid pushing outside the column */
  width: 100%;
  max-width: 560px;   /* matches the offer column sizing */
}

.services-alt__header--center {
  text-align: center;
  max-width: 950px;
  margin: 0 auto 60px auto;
}

/* =========================================================
   About Us Quick Link Services
   ========================================================= */

.page{
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 28px);
}

.svc-quick{
  padding: clamp(14px, 2vw, 18px) 0;
}

.svc-quick__sr{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.svc-quick__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 48px);
  align-items: start;
  text-align: center;
}

.svc-col{
  padding: clamp(6px, 1vw, 10px) 0;
}

.svc-col__icon{
  width: clamp(56px, 6vw, 74px);
  height: clamp(56px, 6vw, 74px);
  margin: 0 auto 14px auto;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.svc-col__icon svg{
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.svc-col__title{
  margin: 0 0 10px 0;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--blue);
}

.svc-col__links{
  display: grid;
  gap: 10px;
  justify-items: center;
}

.svc-link{
  display: inline-block;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(13px, 1.4vw, 15px);
  padding: 8px 12px;
  border-radius: 999px;
  outline: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.svc-link:hover,
.svc-link:focus-visible{
  color: var(--blue-2);
  background: rgba(11, 122, 217, .08);
  box-shadow: 0 0 0 1px var(--line) inset;
  transform: translateY(-1px);
}

/* Tablet: 2 columns */
@media (max-width: 1024px){
  .svc-quick__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column */
@media (max-width: 560px){
  .svc-quick__grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .svc-link{
    width: min(360px, 100%);
    text-align: center;
  }
}


/* =====================================
   CENTER SERVICE CARDS AT 1024px DOWN
   ===================================== */

@media (max-width: 1024px) {

  /* Center the entire left column */
  .services-offer-layout__services {
    display: flex;
    justify-content: center;
  }

  /* Make grid shrink to content width */
  .services-alt__grid {
    max-width: 600px;
    width: 100%;
  }

  /* Center individual cards */
  .svc-card {
    margin-left: auto;
    margin-right: auto;
  }

}


.services-offer-layout{
  display: flex;
  align-items: center; /* vertically center the offer relative to the service list */
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 0 16px;
}

/* Inside this 2-col layout, let the services section be "transparent" (no extra white block) */
.services-offer-layout .services-alt{
  padding: 0;
  background: transparent;
}

.services-offer-layout .services-alt__inner{
  max-width: none;
  margin: 0;
}

.services-offer-layout__services{
  flex: 1 1 680px;
  min-width: 0;
}

.services-offer-layout__offer{
  flex: 0 0 min(100%, 560px);
  min-width: 280px;
  display: flex;
  justify-content: center;
  vertical-align: center;
}

.services-offer-layout__offer .offer-scope{
  width: 100%;
}

/* Stack on tablets/phones */
@media (max-width: 1024px){
  .services-offer-layout{
    flex-direction: column;
    align-items: center;
  }
  .services-offer-layout__services,
  .services-offer-layout__offer{
    width: 100%;
    flex: 1 1;
  }
}

/* Vertical services list modifier */
.services-alt--vertical .services-alt__grid{
  flex-direction: column;
  align-items: stretch;
}

.services-alt--vertical .svc-card{
  max-width: none;
  width: 100%;
}

/* Optional: tighter card spacing in vertical mode */
.services-alt--vertical .services-alt__grid{
  gap: 30px;
}

/* Hide the service card button when desired */
.services-alt--no-button .svc-card__cta{
  display: none !important;
}



/* ===== Offer CTA Widget (scoped) ===== */
.offer-scope{
  --offer-max: 560px;
  --offer-radius: 16px;
  --offer-shadow: 0 18px 40px rgba(2,6,23,.18);
  --offer-border: 1px solid rgba(2,6,23,.10);

  --offer-bg: #ffffff;
  --offer-text: #0f172a;
  --offer-muted: #475569;

  --offer-bar: #3f3f46;
  --offer-orange: #f97316;
  --offer-navy: #0b1b3a;
}

.offer-scope *{ box-sizing: border-box; }
.offer-scope .offer{
  display:flex;
  justify-content:center;
}

.offer-scope .offer__card{
  width: min(100%, var(--offer-max));
  background: var(--offer-bg);
  border-radius: var(--offer-radius);
  box-shadow: var(--offer-shadow);
  border: var(--offer-border);
  overflow: hidden;
}

.offer-scope .offer__top{
  padding: clamp(16px, 3.2vw, 26px);
  text-align: center;
}

.offer-scope .offer__price{
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.offer-scope .offer__price-currency{
  font-size: clamp(20px, 3.2vw, 28px);
  vertical-align: top;
}

.offer-scope .offer__price-amount{
  font-size: clamp(42px, 7vw, 64px);
}

.offer-scope .offer__title{
  margin: 10px auto 0 auto;
  max-width: 44ch;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--offer-text);
  line-height: 1.5;
  font-weight: 600;
}

.offer-scope .offer__toggle{
  width: 100%;
  border: none;
  background: var(--offer-bar);
  color: #fff;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.offer-scope .offer__toggle:focus-visible{
  outline: 3px solid rgba(59,130,246,.5);
  outline-offset: 3px;
}

.offer-scope .offer__chev{
  display:inline-block;
  transition: transform .2s ease;
  transform: translateY(-1px);
}

.offer-scope .offer__toggle[aria-expanded="true"] .offer__chev{
  transform: rotate(180deg) translateY(1px);
}

.offer-scope .offer__details-inner{
  padding: 16px 18px 12px 18px;
  border-bottom: var(--offer-border);
}

.offer-scope .offer__details-title{
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.offer-scope .offer__list{
  margin: 12px 0 0 0;
  padding-left: 18px;
  color: var(--offer-muted);
  line-height: 1.7;
  font-size: 14px;
}

.offer-scope .offer__fine{
  margin: 12px 0 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
}

.offer-scope .offer__actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
}

.offer-scope .offer__btn{
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 12px;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  user-select:none;
}

.offer-scope .offer__btn--primary{ background: var(--offer-orange); }
.offer-scope .offer__btn--call{ background: var(--offer-navy); }

.offer-scope .offer__btn:focus-visible{
  outline: 3px solid rgba(59,130,246,.5);
  outline-offset: 3px;
}
.offer-scope .offer__btn:hover{ filter: brightness(.98); }
.offer-scope .offer__icon{ font-size: 16px; }

@media (max-width: 360px){
  .offer__actions{ grid-template-columns: 1fr; }
}

@media (min-width: 1440px){
  .offer-scope{ --offer-max: 620px; }
}
@media (min-width: 2200px){
  .offer-scope{ --offer-max: 680px; }
}



/* Smooth expand/collapse animation */
.offer-scope .offer__details{
  overflow: hidden;
  height: 0;
  transition: height .28s ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .offer__details{ transition: none; }
  .offer__chev{ transition: none; }
}

/* ===== End Offer CTA Widget ===== */

/* Testing centering buttons on header */
@media (max-width: 1023px) {

  .header-main {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header-buttons {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 15px;
  }

}

/* ==============================
   MOBILE SLIDE DRAWER NAV (SAFE)
================================= */

/* Desktop: keep everything normal, hide drawer UI */
.nav-drawer-header,
.nav-close { display: none; }

@media (max-width: 1023px) {
  /* show burger on mobile only */
  .nav-toggle { display: inline-flex; }

  /* overlay container */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(14, 23, 55, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }
  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* drawer panel */
  .nav-drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(92vw, 380px);
    background: #0e1737;
    box-shadow: -24px 0 60px rgba(0,0,0,0.45);
    transform: translateX(102%);
    transition: transform 260ms ease;
    display: flex;
    flex-direction: column;
  }
  .main-nav.is-open .nav-drawer { transform: translateX(0); }

  /* drawer header + big close button (mobile only) */
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav-drawer-title { color: #fff; font-weight: 800; }
  .nav-close {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
  }

  /* IMPORTANT: do not break desktop nav styles, only affect within drawer */
  .nav-drawer .nav-list {
    list-style: none;
    margin: 0;
    padding: 10px 14px 22px;
    display: block;
    overflow-y: auto;
  }

  .nav-drawer .nav-list > li + li {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-drawer .nav-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
    color: #fff;
    text-decoration: none;
  }

  /* Mobile submenus slide */
  .nav-drawer .submenu {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;

    overflow: hidden;
    max-height: 0;
    transition: max-height 260ms ease;
    display: block !important;
  }
  .nav-drawer .submenu.is-open { max-height: 900px; }

  .nav-drawer .submenu a {
    display: block;
    padding: 12px 18px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
  }
}

@media (max-width: 1023px) {
  .nav-drawer .submenu,
  .nav-drawer .submenu.submenu-right {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  /* prevent horizontal scrolling caused by old positioning */
  .nav-drawer,
  .nav-drawer * {
    max-width: 100%;
  }

  .nav-drawer .nav-list {
    overflow-x: hidden;
  }
}

@media (max-width: 1023px) {
  .main-nav.is-open {
    overflow: hidden; /* overlay doesn't scroll */
  }
  .nav-drawer .nav-list {
    overflow-y: auto; /* drawer content scrolls */
    -webkit-overflow-scrolling: touch;
  }
}

html.nav-scroll-locked,
html.nav-scroll-locked body {
  overflow: hidden;
  position: relative;
  height: 100%;
}

html.nav-scroll-locked body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

@media (max-width: 1023px) {

  /* 1) Never allow sideways expansion */
  .main-nav,
  .main-nav * {
    box-sizing: border-box;
  }

  .main-nav {
    overflow-x: hidden;
  }

  /* 2) Force ONE column menu (kills grid/columns/wrap) */
  .main-nav .nav-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    column-count: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .main-nav .nav-list > li {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 3) Force submenus to STACK (kills "submenu-right" and absolute positioning) */
  .main-nav .submenu,
  .main-nav .submenu.submenu-right {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;

    width: 100% !important;
    max-width: 100% !important;
    float: none !important;

    /* makes submenu look nested */
    padding-left: 16px;
  }

  /* 4) Prevent any nested list from causing sideways scroll */
  .main-nav ul,
  .main-nav li {
    overflow-x: hidden !important;
  }
}

@media (max-width: 1023px) {
  .main-nav .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .main-nav .nav-link {
    flex: 1;
    min-width: 0;
  }

  .main-nav .submenu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: inherit;
  }

  .main-nav .submenu-toggle .chev {
    display: inline-block;
    transition: transform 200ms ease;
  }

  /* rotate when open */
  .main-nav li.has-submenu > .submenu.is-open + .submenu-toggle,
  .main-nav li.has-submenu > .nav-row .submenu-toggle[aria-expanded="true"] .chev {
    transform: rotate(180deg);
  }
}

/* Desktop: keep existing dropdown behavior */
@media (min-width: 1024px) {
  .main-nav .nav-row {
    display: contents; /* makes the wrapper not affect layout */
  }

  .main-nav .submenu-toggle {
    display: none !important; /* hide toggle button on desktop */
  }
}

@media (min-width: 1024px) {
  .main-nav li.has-submenu {
    position: relative;
  }
}

/* =====================================
   Mobile Drawer Visual Match (Navy + Separate Toggles)
===================================== */
@media (max-width: 1023px) {
  .main-nav {
    background: rgba(0, 0, 0, 0.38);
  }

  .nav-drawer {
    width: min(88vw, 340px);
    background: #06133a;
    box-shadow: -18px 0 46px rgba(0, 0, 0, 0.35);
  }

  .nav-drawer-header {
    justify-content: flex-end;
    padding: 14px 14px 8px;
    border-bottom: 0;
  }

  .nav-drawer-title {
    display: none;
  }

  .nav-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #e3e3e3;
    background: #051e3d;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
    padding-bottom: 4px;
  }

  .nav-drawer .nav-list {
    padding: 8px 22px 24px;
  }

  .nav-drawer .nav-list > li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.65);
  }

  .nav-drawer .nav-list > li > .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-drawer .nav-list > li > .nav-row > a {
    flex: 1;
    min-width: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.03rem;
    padding: 15px 0;
    text-decoration: none;
  }

  .nav-drawer .nav-list > li > .nav-row > a:hover {
    color: #ffffff;
    text-decoration: none;
  }

  .nav-drawer .nav-list > li.has-submenu > .nav-row > a::after {
    display: none;
  }

  .nav-drawer .submenu-toggle {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  .nav-drawer .submenu-toggle .chev {
    font-size: 0.8rem;
    line-height: 1;
    transition: transform 200ms ease;
  }

  .nav-drawer .submenu-toggle[aria-expanded="true"] .chev {
    transform: rotate(180deg);
  }

  .nav-drawer .submenu,
  .nav-drawer .submenu.submenu-right {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0 4px 14px !important;
    margin: 0 !important;
    overflow: hidden;
    max-height: 0;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
    transition: max-height 260ms ease;
  }

  .nav-drawer .submenu li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-drawer .submenu a {
    color: rgba(255, 255, 255, 0.95);
    padding: 11px 8px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0;
  }

  .nav-drawer .submenu a:hover {
    color: #ffffff;
    background: transparent;
    text-decoration: none;
  }
}

/* Offset anchor jumps for sticky header */
#quote {
  scroll-margin-top: 140px; /* adjust to your real header height */
}

#contactform {
  scroll-margin-top: 140px;
}

/* optional: if mobile header is taller/shorter */
@media (max-width: 1023px) {
  #quote {
    scroll-margin-top: 170px;
  }

  #contactform {
    scroll-margin-top: 170px;
  }
}

/* Blog hub page: keep 3-up on wider desktops and style pagination as buttons */
@media (min-width: 1200px) {
  .blog-hub-page #blogs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1200px;
  }
}

.blog-hub-page .pagination-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  border: 1px solid #d6dce7;
  border-radius: 10px;
  background: #ffffff;
  color: #1a2f53;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-hub-page .pagination-list a:hover {
  background: #f4f7fc;
  border-color: #9cb0d1;
  transform: translateY(-1px);
}

.blog-hub-page .pagination-list a[aria-current="page"] {
  background: #e35b00;
  border-color: #e35b00;
  color: #ffffff;
}

.blog-hub-page .pagination-list a:focus-visible {
  outline: 2px solid #1a2f53;
  outline-offset: 2px;
}

.blog-hub-page .pagination-nav {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

/* Blog post header: centered title with metadata/actions below */
.blog-post-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  text-align: center;
  padding: clamp(1.1rem, 2.2vw, 2rem) clamp(0.6rem, 1.2vw, 1rem) clamp(1.25rem, 2.5vw, 2.2rem);
  background: linear-gradient(135deg, #fff4e8 0%, #ffe8d2 52%, #f7efe6 100%);
  border-top: 1px solid #f0cda8;
  border-bottom: 1px solid #f3dcc4;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

.blog-post-header .services-alt__title {
  margin: 0;
  text-align: center;
  max-width: none;
  font-size: clamp(36px, 5vw, 64px);
  position: relative;
  padding-bottom: 0.55rem;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9), 0 8px 20px rgba(10, 28, 60, 0.16);
}

.blog-post-header .services-alt__title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d43f00 0%, #f17b2a 100%);
}

.blog-post-header__eyebrow {
  margin: 0 0 0.45rem;
  color: #1a2f53;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  text-align: center;
}

.blog-post-header__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.4rem;
}

.blog-post-header__meta {
  margin: 0;
  font-weight: 600;
  color: #1a2f53;
}

.blog-post-header__back {
  margin: 0;
}

.blog-post-header__back a {
  color: #d43f00;
  font-weight: 600;
  text-decoration: none;
}

.blog-post-header__back a:hover {
  text-decoration: underline;
}

.blog-post-content {
  --svc-bg: transparent;
  background: transparent;
  padding-top: clamp(16px, 2vw, 26px);
}

.blog-post-page .blog-post-header {
  margin-bottom: 0.5rem;
}

.blog-post-page main > .intro-summary-fullwidth:first-of-type {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.blog-post-page main > .intro-summary-fullwidth:first-of-type .section-header-fullwidth {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.blog-post-page main > .intro-summary-fullwidth:first-of-type h2 {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .blog-post-header .services-alt__title {
    max-width: none;
  }
}

/* =========================================
   Blog Hub (about-us/blogs/index.php)
   New page-specific styles added on top of the duplicated stylesheet above.
   Server-rendered by index.php + blog-posts-data.php -- no JS involved.
========================================= */

:root {
  --navy: #1a2f53;
  --accent: #e35b00;
  --border: #dde6f2;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --muted: #4b5563;

  --cat-cooling: #2563eb;
  --cat-cooling-soft: #eaf1ff;
  --cat-heating: #e35b00;
  --cat-heating-soft: #fff1e6;
  --cat-plumbing: #0d9488;
  --cat-plumbing-soft: #e6f7f5;
  --cat-water: #b45309;
  --cat-water-soft: #fdf1e2;
}

/* ---------- Page header: Editorial Underline ---------- */

.bh-editorial {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 76px) 24px;
  background: linear-gradient(180deg, var(--surface-soft) 0%, #ffffff 100%);
  text-align: center;
}

.bh-editorial__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.35;
  pointer-events: none;
}

.bh-editorial__blob--a {
  width: 220px;
  height: 220px;
  top: -60px;
  left: -40px;
  background: var(--navy);
}

.bh-editorial__blob--b {
  width: 260px;
  height: 260px;
  bottom: -100px;
  right: -60px;
  background: var(--accent);
}

.bh-editorial__badge {
  position: relative;
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.bh-editorial__kicker {
  position: relative;
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b61d1d;
}

.bh-editorial__title {
  position: relative;
  margin: 0;
  font-family: "Montserrat", Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  color: var(--navy);
}

.bh-editorial__swoosh {
  display: block;
  width: 200px;
  height: 16px;
  margin: 2px auto 0;
}

.bh-editorial__lead {
  position: relative;
  max-width: 56ch;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Category filter pills ---------- */

.bh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px 16px 48px;
}

.bh-filters__pill {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.bh-filters__pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.bh-filters__pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.bh-filters__pill--cooling:hover,
.bh-filters__pill--cooling.is-active {
  border-color: var(--cat-cooling);
}

.bh-filters__pill--cooling.is-active {
  background: var(--cat-cooling);
  color: #fff;
}

.bh-filters__pill--cooling:hover:not(.is-active) {
  color: var(--cat-cooling);
}

.bh-filters__pill--heating:hover,
.bh-filters__pill--heating.is-active {
  border-color: var(--cat-heating);
}

.bh-filters__pill--heating.is-active {
  background: var(--cat-heating);
  color: #fff;
}

.bh-filters__pill--heating:hover:not(.is-active) {
  color: var(--cat-heating);
}

.bh-filters__pill--plumbing:hover,
.bh-filters__pill--plumbing.is-active {
  border-color: var(--cat-plumbing);
}

.bh-filters__pill--plumbing.is-active {
  background: var(--cat-plumbing);
  color: #fff;
}

.bh-filters__pill--plumbing:hover:not(.is-active) {
  color: var(--cat-plumbing);
}

.bh-filters__pill--water-heaters:hover,
.bh-filters__pill--water-heaters.is-active {
  border-color: var(--cat-water);
}

.bh-filters__pill--water-heaters.is-active {
  background: var(--cat-water);
  color: #fff;
}

.bh-filters__pill--water-heaters:hover:not(.is-active) {
  color: var(--cat-water);
}

/* ---------- Grid ---------- */

.blog-grid-section {
  padding: 8px 16px clamp(56px, 6vw, 88px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ---------- Card ---------- */

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--cat-color, var(--accent));
}

.blog-card--cooling {
  --cat-color: var(--cat-cooling);
  --cat-soft: var(--cat-cooling-soft);
}

.blog-card--heating {
  --cat-color: var(--cat-heating);
  --cat-soft: var(--cat-heating-soft);
}

.blog-card--plumbing {
  --cat-color: var(--cat-plumbing);
  --cat-soft: var(--cat-plumbing-soft);
}

.blog-card--water-heaters {
  --cat-color: var(--cat-water);
  --cat-soft: var(--cat-water-soft);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border-color: #cad7e7;
}

.blog-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--cat-soft, var(--surface-soft));
  color: var(--cat-color, var(--accent));
}

.blog-card__icon svg {
  width: 24px;
  height: 24px;
}

.blog-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.blog-card__pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cat-soft, var(--surface-soft));
  color: var(--cat-color, var(--accent));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-card__date {
  color: #9aa5b1;
  font-size: 0.8rem;
}

.blog-card h2 {
  margin: 0 0 10px;
  font-family: "Montserrat", Inter, Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 700;
}

.blog-card h2 a {
  color: #0f172a;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--cat-color, var(--accent));
}

.blog-card > p {
  flex: 1 1 auto;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  color: var(--cat-color, var(--accent));
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.blog-card__link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.blog-card__link:hover svg {
  transform: translateX(4px);
}

/* ---------- Pagination ---------- */

.blog-pagination {
  max-width: 1240px;
  margin: 8px auto clamp(56px, 6vw, 88px);
  padding: 0 16px;
}

.blog-pagination__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pagination__list a,
.blog-pagination__current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.92rem;
  justify-content: center;
}

.blog-pagination__list a {
  color: var(--navy);
  background: var(--surface);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-pagination__list a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.blog-pagination__current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.blog-pagination__next,
.blog-pagination__prev {
  padding: 0 18px;
}

.blog-pagination__next svg,
.blog-pagination__prev svg {
  width: 15px;
  height: 15px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Blog Post Header (individual posts under /blog-posts/)
   Reuses .bh-editorial's blob background + title/swoosh from the hub,
   colored per category via the modifier classes below.
========================================= */

.bh-post-header--cooling {
  --cat-color: var(--cat-cooling);
  --cat-soft: var(--cat-cooling-soft);
}

.bh-post-header--heating {
  --cat-color: var(--cat-heating);
  --cat-soft: var(--cat-heating-soft);
}

.bh-post-header--plumbing {
  --cat-color: var(--cat-plumbing);
  --cat-soft: var(--cat-plumbing-soft);
}

.bh-post-header--water-heaters {
  --cat-color: var(--cat-water);
  --cat-soft: var(--cat-water-soft);
}

.bh-post-header__back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.bh-post-header__back svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.bh-post-header__back:hover {
  color: var(--navy);
}

.bh-post-header__back:hover svg {
  transform: translateX(-3px);
}

.bh-post-header__kicker {
  position: relative;
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cat-color, #b61d1d);
}

.bh-post-header__meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
}

