/* === Red Barn Media Group - TAP Heating and Cooling === */

/* === CSS Custom Properties === */
:root {
  /* Brand Colors — TAP Heating and Cooling (Figma homepage 26056-388 + style guide 2001-206) */
  --color-midnight: #092345;     /* Figma Brand/Navy Blue — darkest / dominant bg */
  --color-azure: #1A315E;        /* Figma Brand/Deep Blue — primary structural blue */
  --color-sky: #236494;          /* Figma Brand/Sky — brighter accent blue */
  --color-heat-red: #E4272F;     /* Figma Brand/Tap Red — accent / CTA */
  --color-light: #EEFFEE;        /* Figma Brand/Light — pale off-white wash (homepage frames) */

  /* Brand Hover Tints (mix base with 20% white: c x 0.8 + 51) */
  --color-midnight-hover: #3A4F6A;
  --color-azure-hover: #485A7E;
  --color-sky-hover: #4F83A9;
  --color-heat-red-hover: #E95259;

  /* Deep accent shades — darker variants for white-label button hovers and
     accessible red text on light surfaces (WCAG 2.1 AA). */
  --color-heat-red-deep: #C81E24;   /* white on this = 5.73:1 */
  --color-sky-deep: #1F587F;        /* white on this = 7.61:1 */

  /* Subtle Sky — derived light wash for card backgrounds (not a brand token) */
  --color-sky-subtle: #E4F0FA;
  --color-sky-subtle-opacity-50: rgba(228, 240, 250, 0.5);

  /* Generic */
  --color-white: #FFFFFF;
  --color-white-hover: #F0F0F0; /* pure white cannot be tinted; slight shade */
  --color-white-opacity-15: rgba(255, 255, 255, 0.15);
  --color-white-opacity-60: rgba(255, 255, 255, 0.6);
  --color-white-opacity-80: rgba(255, 255, 255, 0.8);
  --color-black: #000000;
  --color-black-hover: #333333; /* 20% white mix into black */

  /* Neutrals */
  --color-neutral-50: #EEF0F5;
  --color-neutral-100: #E5E7EA;
  --color-neutral-200: #DDDEE1;
  --color-neutral-300: #CCCED6;
  --color-neutral-400: #C1C3CB;
  --color-neutral-500: #A9ABB4;
  --color-neutral-600: #8D919A;
  --color-neutral-700: #656870;

  /* Neutral Hover Tints (mix base with 10% white: c x 0.9 + 25.5) */
  --color-neutral-50-hover: #F0F2F6;
  --color-neutral-100-hover: #E8EAEC;
  --color-neutral-200-hover: #E1E1E4;
  --color-neutral-300-hover: #D1D3DA;
  --color-neutral-400-hover: #C7C9D0;
  --color-neutral-500-hover: #B2B3BB;
  --color-neutral-600-hover: #989CA4;
  --color-neutral-700-hover: #74777E;

  /* Dark Mode */
  --color-dm-00dp: #121212;
  --color-dm-01dp: #1E1E1E;
  --color-dm-02dp: #222222;
  --color-dm-03dp: #252525;
  --color-dm-04dp: #272727;
  --color-dm-06dp: #2C2C2C;
  --color-dm-08dp: #2E2E2E;
  --color-dm-12dp: #333333;
  --color-dm-16dp: #353535;
  --color-dm-24dp: #383838;

  /* Gradients — Moment = Figma "Depression": Deep Blue (azure) -> Navy (midnight) */
  --gradient-moment-0:   linear-gradient(0deg,   var(--color-azure), var(--color-midnight));
  --gradient-moment-45:  linear-gradient(45deg,  var(--color-azure), var(--color-midnight));
  --gradient-moment-90:  linear-gradient(90deg,  var(--color-azure), var(--color-midnight));
  --gradient-moment-135: linear-gradient(135deg, var(--color-azure), var(--color-midnight));
  --gradient-moment-180: linear-gradient(180deg, var(--color-azure), var(--color-midnight));
  --gradient-moment-270: linear-gradient(270deg, var(--color-azure), var(--color-midnight));
  --gradient-moment: var(--gradient-moment-90);

  /* Gradients — Sunset: Azure -> Heat Red */
  --gradient-sunset-0:   linear-gradient(0deg,   var(--color-azure), var(--color-heat-red));
  --gradient-sunset-45:  linear-gradient(45deg,  var(--color-azure), var(--color-heat-red));
  --gradient-sunset-90:  linear-gradient(90deg,  var(--color-azure), var(--color-heat-red));
  --gradient-sunset-135: linear-gradient(135deg, var(--color-azure), var(--color-heat-red));
  --gradient-sunset-180: linear-gradient(180deg, var(--color-azure), var(--color-heat-red));
  --gradient-sunset: var(--gradient-sunset-90);

  /* Typography — Adobe Fonts (kit-loaded family names, lowercase) */
  --font-heading: nunito, sans-serif;
  --font-body: "inter-18pt", sans-serif;
  --font-weight-bold: 700;
  --font-weight-semibold: 600;
  --font-weight-medium: 500;
  --font-weight-regular: 400;

  /* Layout */
  --hero-height: fit-content;
  --hero-padding-top: 16rem;
  --transition-standard: 0.25s;
  --border-radius-standard: 0.75rem;
  --border-radius-large: 1.25rem;
  --border-radius-card: 1rem;
  --box-shadow-dropdown: 0 3rem 3rem rgba(0, 0, 0, 0.175);
  --margin-standard: 1rem;

  /* Drop Shadows (Figma tokens) */
  --shadow-sm: 0 0 8px rgba(0, 0, 0, 0.05);  /* Figma Drop Shadow/Light + Small */
  --shadow-md: 0 0 8px rgba(0, 0, 0, 0.20);  /* Figma Drop Shadow/Medium */
}

/* === Base Styles === */
html,
body {
  width: 100%;
  height: 100%;
}

body {
  color: var(--color-midnight);
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  background-color: var(--color-neutral-50);
}

/* === Typography === */
h1,
.h1 {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  line-height: 56px;
}
h2,
.h2 {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 40px;
  line-height: 48px;
}
h3,
.h3 {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 32px;
  line-height: 40px;
}
h4,
.h4 {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 24px;
  line-height: 32px;
}
h5,
.h5 {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  line-height: 28px;
}
h6,
.h6 {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  line-height: 18px;
}

/* === Display === */
.display-large {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 64px;
  line-height: 72px;
  text-transform: uppercase;
}
.display-small {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 56px;
  line-height: 64px;
  text-transform: uppercase;
}
@media (max-width: 1199px) {
  .display-small {
    font-size: 40px;
    line-height: 48px;
  }
}
@media (max-width: 575px) {
  .display-small {
    font-size: 32px;
    line-height: 40px;
  }
}

/* === Overline === */
.overline,
.overline-large {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
}
.overline-small {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  font-weight: var(--font-weight-bold);
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
}

.font-heading {
  font-family: var(--font-heading);
}
.font-body {
  font-family: var(--font-body);
}
.bold {
  font-weight: var(--font-weight-bold);
}
.semibold {
  font-weight: var(--font-weight-semibold);
}
.medium {
  font-weight: var(--font-weight-medium);
}
.regular {
  font-weight: var(--font-weight-regular);
}
p,
ul li,
ol li,
table {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--font-weight-regular);
}
.fs-7 {font-size: 14px; line-height: 22px;}
.fs-8 {font-size: 12px; line-height: 18px;}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  justify-content: center;
}
/* === QAM Navigation === */

/* Menu Container */
.menu-container {
  background: var(--color-white);
  margin-top: 0 !important;
  z-index: 1030;
}

/* Homepage — nav overlays the hero: transparent at the top so the hero bg
   shows behind it; reverts to solid navy once scrolled (shrink-menu). */
.tap-home .menu-container:not(.shrink-menu) {
  background: transparent;
}
.tap-home .menu-container:not(.shrink-menu) .bg-midnight {
  background-color: transparent !important;
}

/* Sub Nav Row */
.tap-sub-nav-row {
  padding: 8px 16px;
}
.tap-sub-nav-col p {
  margin-bottom: 0;
}
.tap-sub-nav-col p a {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  line-height: 18px;
  color: var(--color-neutral-50);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition-standard);
}
.tap-sub-nav-col p a:is(:hover, :focus) {
  color: var(--color-midnight);
}
.tap-callout {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  line-height: 18px;
  color: var(--color-white);
  text-transform: uppercase;
}
.tap-callout-icon {
  margin-right: 8px;
  color: var(--color-sky);
}
.tap-star {
  color: var(--color-heat-red);
  margin: 0 4px;
}
.tap-social-row a {
  color: var(--color-white);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition-standard);
}
.tap-social-row a:is(:hover, :focus) {
  color: var(--color-midnight);
}

    #small-contact-form label {
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 0.25rem;
        letter-spacing: 0.02em;
    }
/* Main Nav — red border-bottom removed per client (read as a "weird" red bar on scroll) */
.tap-main-nav {
  border-bottom: none;
}
/* Mobile / tablet layout (below xl). At desktop the navbar runs inline and
   the desktop logo lives in its own col, so these rules don't apply there. */
@media (max-width: 1199.98px) {
  /* Main nav stays navy on all breakpoints (light logo on navy). */
  /* Hamburger left, phone right, logo absolutely centered between them. */
  .tap-main-nav .navbar {
    justify-content: space-between;
    min-height: 81px; /* 65px logo + ~16px breathing room */
  }
  .tap-mobile-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .tap-mobile-logo img {
    height: 65px;
    transition: height var(--transition-standard);
  }
  /* Shrink-on-scroll: smaller logo, tighter navbar (still tall enough to
     contain the shrunk logo without overflow). */
  .menu-container.shrink-menu .tap-main-nav .navbar {
    min-height: 60px; /* 50px logo + 10px breathing room */
  }
  .menu-container.shrink-menu .tap-mobile-logo img {
    height: 50px;
  }
}

/* Bottom Banner — Midnight strip below main nav */
.tap-menu-bottom-banner {
  height: 10px;
}
.tap-main-nav-padding {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Desktop Logo — centered in white column spanning both bars */
.tap-logo-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
}
.tap-logo-desktop {
  max-width: 100%;
  height: auto;
  transition: all var(--transition-standard);
}

/* Nav Links — White on Azure */
.menu-container .navbar-dark .navbar-nav .nav-link {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  font-size: 16px;
  line-height: 18px;
}
.menu-container .navbar-dark .navbar-nav .nav-link:is(:hover, :active) {
  color: var(--color-sky-subtle);
}

/* Dropdown Styles */
.nav-item .dropdown-item {
  color: var(--color-midnight);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
}
.nav-item .dropdown-item:is(:hover, :active) {
  background-color: var(--color-neutral-50);
  border-radius: var(--border-radius-standard);
  color: var(--color-azure) !important;
}
.navbar-expand-xl .navbar-nav .dropdown-menu {
  background: var(--color-white);
  border: 0;
  box-shadow: var(--box-shadow-dropdown);
  padding: 0.5rem;
}
.navbar-expand-xl .navbar-nav .dropdown-menu.main-dropdown {
  border-radius: var(--border-radius-standard);
}

/* Mega Dropdown — hide Bootstrap's default caret; use inline Font Awesome chevrons (.tap-caret) instead */
.menu-container .navbar-nav .dropdown-toggle::after {
  display: none !important;
}
.menu-container .navbar-nav .dropdown-toggle .tap-caret {
  font-size: 0.75em;
  margin-left: 0.45em;
  color: var(--color-white);
  vertical-align: middle;
  transition: transform var(--transition-standard), color var(--transition-standard);
  display: inline-block;
}
.menu-container .navbar-nav .dropdown-toggle:is(:hover, :focus) .tap-caret,
.menu-container .navbar-nav .dropdown-toggle[aria-expanded="true"] .tap-caret {
  color: var(--color-sky);
}
.menu-container .navbar-nav .dropdown-toggle[aria-expanded="true"] .tap-caret {
  transform: rotate(180deg);
}
.navbar-expand-xl .navbar-nav .dropdown-menu.mega-dropdown {
  background: var(--color-white);
  border: 0;
  box-shadow: var(--box-shadow-dropdown);
  border-radius: var(--border-radius-standard);
  padding: 0.5rem;
  margin-top: 0;
}
.navbar-expand-xl .navbar-nav .nav-item.dropdown.position-static > .dropdown-menu.mega-dropdown {
  width: 100%;
  left: 0;
  right: 0;
}
.navbar-expand-xl .navbar-nav .nav-item.dropdown:not(.position-static) > .dropdown-menu.mega-dropdown {
  min-width: 280px;
  /* Match the vertical position of the position-static H&C dropdown.
     Containing block here is the <li> (whose bottom sits 1rem above the
     navbar's bottom because of navbar py-3). Adding 1rem compensates. */
  top: calc(100% + 1rem);
}
/* Rightmost dropdown (Service Areas): align to the toggle's right edge so it
   opens leftward and never overflows the right screen edge. */
.navbar-expand-xl .navbar-nav .dropdown-menu.mega-dropdown.dropdown-menu-end {
  left: auto;
  right: 0;
}
.tap-mega-dropdown-row {
  border-radius: var(--border-radius-standard);
}
/* Multi-card dropdown rows: use a thick transparent border on each col as
   "outer spacing" (so cards have visible gaps between them) while keeping the
   card's internal padding intact for content breathing room. background-clip:
   padding-box stops the bg from painting under the transparent border, so the
   border area shows the dropdown's bg through as the visible gap.
   Hover border-color is forced transparent so the 0.5rem border stays invisible
   on hover — the bg opacity change is enough indication. */
.tap-mega-dropdown-row > .tap-mega-dropdown-group {
  /* Transparent border on horizontal axes only — creates the visible
     inter-card gap. No top/bottom border so outer top/bottom spacing is just
     the dropdown's own 0.5rem padding (matching the single-panel dropdowns). */
  border-width: 0 0.5rem;
  background-clip: padding-box;
  /* Outer radius bumped to large so the visible inner radius (where the bg
     ends, at padding-box) matches --border-radius-standard like the other
     dropdowns. Math: 1.25rem outer − 0.5rem border = 0.75rem visible. */
  border-radius: var(--border-radius-large);
  position: relative;
}
/* Hover-border indicator via a positioned pseudo-element. inset:0 makes it fill
   the parent's padding-box exactly (= the visible bg area), so its 1px border
   traces the bg's rounded boundary on all four sides — matching the 1px border
   the single-panel dropdowns show on hover. */
.tap-mega-dropdown-row > .tap-mega-dropdown-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--border-radius-standard);
  pointer-events: none;
  transition: border-color var(--transition-standard);
}
.tap-mega-dropdown-row > .tap-mega-dropdown-group:is(:hover, :focus-within) {
  border-color: transparent;
}
.tap-mega-dropdown-row > .tap-mega-dropdown-group:is(:hover, :focus-within)::before {
  border-color: var(--color-azure-hover);
}
.tap-mega-dropdown-group {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-standard);
  background-color: var(--color-sky-subtle-opacity-50);
  border: 1px solid transparent;
  transition: background-color var(--transition-standard),
              border-color var(--transition-standard);
}
.tap-mega-dropdown-group:is(:hover, :focus-within) {
  background-color: var(--color-sky-subtle);
  border-color: var(--color-azure-hover);
}
.tap-mega-dropdown-group > p {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--color-azure);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tap-mega-dropdown-group > p i {
  color: var(--color-sky);
}
.tap-mega-dropdown-group > p > a {
  color: inherit;
  font: inherit;
  text-transform: inherit;
  text-decoration: none;
  transition: color var(--transition-standard);
}
.tap-mega-dropdown-group > p > a:is(:hover, :focus) {
  color: var(--color-azure-hover);
}
.tap-mega-dropdown-group a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  color: var(--color-midnight);
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  padding: 0.25rem 0;
  text-decoration: none;
  transition: color var(--transition-standard);
}
.tap-mega-dropdown-group a i {
  font-size: 0.75em;
  opacity: 0.6;
  transition: transform var(--transition-standard), opacity var(--transition-standard);
}
.tap-mega-dropdown-group a:is(:hover, :focus) {
  color: var(--color-azure);
}
.tap-mega-dropdown-group a:is(:hover, :focus) i {
  opacity: 1;
  transform: translateX(2px);
}
.tap-mega-dropdown-group > a {
  position: relative;
}
.tap-mega-dropdown-group > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-heat-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-standard);
}
.tap-mega-dropdown-group > a:is(:hover, :focus)::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Shrink Menu on Scroll */
.menu-container,
.menu-container .tap-sub-nav,
.menu-container .tap-logo-wrap,
.menu-container .tap-logo-desktop,
.menu-container .tap-main-nav .navbar,
.menu-container .tap-main-nav .nav-link {
  transition: all var(--transition-standard) ease;
}
.menu-container.shrink-menu .tap-sub-nav-row {
  padding-top: 0;
  padding-bottom: 0;
}
.menu-container.shrink-menu .tap-sub-nav .tap-callout,
.menu-container.shrink-menu .tap-sub-nav .tap-sub-nav-col p a {
  font-size: 12px;
  line-height: 16px;
}
.menu-container.shrink-menu .tap-logo-wrap {
  padding: 4px 10px;
}
.menu-container.shrink-menu .tap-logo-desktop {
  width: 140px;
  height: auto;
}
.menu-container.shrink-menu .tap-main-nav .navbar {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.menu-container.shrink-menu .tap-main-nav .navbar-nav .nav-link {
  font-size: 14px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}


/* Mobile Logo Placeholder */
.tap-logo-place {
  text-align: center;
  padding: 0.5rem 0;
}
.tap-logo {
  display: inline-block;
  background: url(/img/tap-logo.svg) no-repeat center;
  background-size: contain;
  width: 150px;
  height: 50px;
}

/* Mobile offcanvas */
@media (max-width: 1199px) {
  .menu-container .navbar-dark .navbar-nav .nav-link {
    color: var(--color-white);
    font-size: 1.1rem;
  }
  .offcanvas-body {
    background: var(--color-midnight);
  }
  .navbar {
    height: 60px;
  }
  /* Offcanvas dropdown carets — recolor for dark bg, nudge to right */
  .menu-container .offcanvas-body .navbar-nav .dropdown-toggle .tap-caret {
    color: var(--color-sky);
    font-size: 0.9em;
    margin-left: 0.6em;
    float: right;
    margin-top: 0.35em;
  }
  .menu-container .offcanvas-body .navbar-nav .dropdown-toggle:is(:hover, :focus) .tap-caret,
  .menu-container .offcanvas-body .navbar-nav .dropdown-toggle[aria-expanded="true"] .tap-caret {
    color: var(--color-heat-red);
  }
}
/* === QAM Hero === */
.tap-hero {
  position: relative;
  height: var(--hero-height);
  padding-top: var(--hero-padding-top);
  padding-bottom: 3rem;
  overflow: hidden;
  background-color: var(--color-midnight);
  background-image: url('/img/tap-hero-1200-1000.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.tap-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 35, 69, 0.8) 0px, rgba(9, 35, 69, 0.5) 130px, rgba(9, 35, 69, 0) 260px),
    linear-gradient(-3.59deg, var(--color-midnight) 21%, rgba(0, 84, 171, 0) 94%);
  pointer-events: none;
  z-index: 1;
}
.tap-hero > * {
  position: relative;
  z-index: 2;
}

/* Responsive hero image swaps (matches /img/tap-hero-*.webp sizes) */
@media (max-width: 575px) {
  .tap-hero {
    background-image: url('/img/tap-hero-800-800.webp');
  }
}
@media (min-width: 1600px) {
  .tap-hero {
    background-image: url('/img/tap-hero-2560-1200.webp');
  }
}

/* Hero Responsive */
@media (max-width: 1199px) {
  .tap-hero {
    padding-top: 10rem;
  }
}
@media (max-width: 575px) {
  .tap-hero {
    padding-top: 7rem;
  }
}

/* Hero mascot — overlaps lower-right of hero on xl+.
   The asset is a bust cropped at the overalls; tuck that crop line just below the
   hero's bottom edge (clipped by .tap-hero overflow:hidden) so solid body meets the
   seam and he reads as grounded/emerging from behind the accreditation bar, not floating. */
.tap-hero-mascot {
  position: absolute;
  right: 3%;
  bottom: -2.25rem;
  width: clamp(280px, 26vw, 400px);
  height: auto;
  z-index: 3;
  pointer-events: none;
}
/* Homepage hero has the estimate form on the right — nudge the mascot ~40px right so it clears the form inputs */
.tap-hero-mascot-home { transform: translateX(40px); }

/* === Brand Accreditation Bar (below hero) === */
.tap-accred .row { row-gap: 0.5rem; }
.tap-accred-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 0.75rem;
}
@media (min-width: 992px) {
  .tap-accred-item + .tap-accred-item {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }
}
.tap-accred-icon {
  font-size: 28px;
  color: var(--color-white);
  flex-shrink: 0;
}
.tap-accred-label {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.15;
}
.tap-accred-stars {
  color: var(--color-heat-red);
  font-size: 14px;
  letter-spacing: 2px;
}
.tap-accred-link {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: 13px;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
}
.tap-accred-link:is(:hover, :focus) { color: var(--color-sky); }
.tap-accred-bbb {
  color: var(--color-white);
  text-decoration: none;
}
.tap-accred-bbb:is(:hover, :focus) { color: var(--color-sky); }
.tap-accred-brand { max-width: 100%; height: auto; }

/* === Opening Section (below hero) === */
.tap-opening {
  background-color: var(--color-neutral-100);
  padding-block: 3.75rem;
}
.tap-opening-intro {
  max-width: 820px;          /* comfortable reading measure for the copy above the banner */
}
.tap-banner-team-img {
  display: block;
  width: 100%;               /* spans the full container; each breakpoint is served its matched source */
  height: auto;
  aspect-ratio: 1296 / 400;  /* shared banner ratio — reserves space to prevent layout shift */
  object-fit: cover;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-sm);
}

/* === Veterans / first-responder discount callout (homepage opening) ===
   Navy coupon-style callout that pops against the light .tap-opening band.
   Echoes the /specials coupon: gradient + faint stars motif + heat-red flare. */
.tap-vet-callout {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--gradient-moment-90);
  border-radius: var(--border-radius-large);
  border-left: 5px solid var(--color-heat-red);
  box-shadow: var(--shadow-md);
}
.tap-vet-callout::before {          /* stars pattern watermark (solid-fill asset; opacity set here) */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/img/tap-stars-callout.svg');
  background-size: 88px auto;
  opacity: 0.09;
  pointer-events: none;
}
.tap-vet-callout > * { position: relative; z-index: 1; }
.tap-vet-callout-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  padding: 10px;
  border-radius: 50%;
  background: var(--color-heat-red);
  color: var(--color-white);
  box-shadow: 0 0 0 4px var(--color-white-opacity-15);
  line-height: 1;
}
.tap-vet-callout-badge i { font-size: 18px; margin-bottom: 5px; }
.tap-vet-callout-badge span {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 22px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.tap-vet-callout-badge small { font-size: 11px; letter-spacing: 0.5px; }
.tap-vet-callout-eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  color: var(--color-sky-subtle);   /* light on navy — heat-red would fail contrast here */
}
.tap-vet-callout-body { color: var(--color-white); }
.tap-vet-callout-body p { color: var(--color-white); }
@media (max-width: 575px) {
  .tap-vet-callout { flex-direction: column; text-align: center; align-items: center; gap: 1rem; }
}

/* === About / Our Story === */
.tap-about {
  background-color: var(--color-neutral-50);
  padding-top: 5rem;
  padding-bottom: 3.75rem;
}
.tap-about-img {
  width: 100%;
  height: auto;
  max-width: 717px;          /* Figma xxl image width */
  aspect-ratio: 717 / 680;   /* Figma xxl ratio */
  object-fit: cover;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-sm);
}

/* === Financing (Service Finance) === */
.tap-financing-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.tap-financing-logo {
  width: 191px;
  height: auto;
  max-width: 100%;
}
.tap-financing-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tap-financing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-bottom: 1px solid var(--color-sky);
  color: var(--color-white);
}
.tap-financing-item i {
  width: 24px;
  font-size: 24px;
  text-align: center;
  flex-shrink: 0;
}
.tap-financing-item span {
  font-size: 18px;
  line-height: 26px;
}

/* === Maintenance Plan + Trust Closer (navy + stars + gradient) === */
.tap-mplan,
.tap-trust {
  background-image: url('/img/tap-stars-bg.svg'), linear-gradient(180deg, var(--color-midnight) 0%, #172E59 100%);
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  background-position: center center;
}
.tap-mplan-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background-color: var(--color-azure);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: transform var(--transition-standard), box-shadow var(--transition-standard),
              background-color var(--transition-standard), border-color var(--transition-standard);
}
.tap-mplan-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.tap-mplan-icon {
  color: var(--tap-icon, var(--color-heat-red));
  font-size: 32px;
  line-height: 1;
  transition: transform var(--transition-standard);
}
.tap-mplan-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  line-height: 16px;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
}
.tap-mplan-desc {
  font-size: 12px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}
/* Maintenance-plan benefit cards — hover (lift + heat-red top bar + icon pop) */
.tap-mplan-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background-color: var(--color-heat-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-standard);
}
.tap-mplan-card:hover {
  transform: translateY(-5px);
  background-color: #234072;
  border-color: var(--color-heat-red);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.35);
}
.tap-mplan-card:hover::before { transform: scaleX(1); }
.tap-mplan-card:hover .tap-mplan-icon { transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) {
  .tap-mplan-card, .tap-mplan-card::before, .tap-mplan-icon { transition: none; }
  .tap-mplan-card:hover { transform: none; }
  .tap-mplan-card:hover::before { transform: scaleX(1); }
  .tap-mplan-card:hover .tap-mplan-icon { transform: none; }
}

/* === Specials & Promos (Veterans discount coupon) === */
.tap-specials-card {
  position: relative;
  overflow: hidden;
  padding: 40px 28px;
  border: 4px dashed var(--color-heat-red);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-sm);
}
.tap-specials-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.tap-specials-text {
  max-width: 650px;
}
.tap-specials-flag {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(240px, 30%, 460px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 575px) {
  .tap-specials .display-large {
    font-size: 44px;
    line-height: 52px;
  }
}

/* === Service Areas (navy + map) === */
.tap-loc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  text-decoration: none;
  color: var(--color-white); /* was inheriting Bootstrap blue → made the icon blue on the dark map section */
}
.tap-loc-item i {
  width: 28px;
  font-size: 24px;
  text-align: center;
  flex-shrink: 0;
  transition: color var(--transition-standard);
}
.tap-loc-item span {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  line-height: 16px;
  color: var(--color-white);
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-standard);
}
/* Service-area links — icon turns red + underline fades in on hover (no motion) */
.tap-loc-item:hover i,
.tap-loc-item:focus-visible i {
  color: var(--color-heat-red) !important;
}
.tap-loc-item:hover span,
.tap-loc-item:focus-visible span {
  text-decoration-color: var(--color-heat-red);
}
/* Light-background variant: location chips as small white cards (under the service-area page map) */
.tap-loc-grid-light .tap-loc-item {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--border-radius-standard);
  padding: 10px 16px;
  justify-content: center; /* center icon+label inside the equal-width grid cards */
  transition: border-color var(--transition-standard);
}
.tap-loc-grid-light .tap-loc-item span { color: var(--color-azure); }
.tap-loc-grid-light .tap-loc-item:hover,
.tap-loc-grid-light .tap-loc-item:focus-visible { border-color: var(--color-heat-red); }
.tap-loc-callout {
  padding: 20px;
  border-radius: var(--border-radius-large);
}
.tap-service-area-map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-md);
}

/* === Trust Closer (photo gallery + trust strip) === */
.tap-trust-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.tap-trust-gallery > [class*="col-"]:nth-child(2) {
  margin-top: 24px; /* staggered middle photo (Figma offset) */
}
.tap-trust-strip {
  background-color: var(--color-midnight);
  border-radius: var(--border-radius-large);
  padding-inline: 10px;
}
.tap-trust-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  padding: 20px 10px;
}

/* === Footer === */
.tap-footer {
  position: relative;
  overflow: hidden;
  background: var(--gradient-moment-135);
  color: var(--color-white);
}
.tap-footer .container {
  position: relative;
  z-index: 1;
}
.tap-footer-waves {
  position: absolute;
  top: 28px;
  left: 0;
  width: clamp(160px, 18vw, 260px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.tap-footer-logo {
  width: 240px;
  height: auto;
  max-width: 100%;
}
.tap-footer-heading {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  line-height: 18px;
  color: var(--color-heat-red);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.tap-footer-text {
  color: var(--color-white);
}
.tap-footer-links li {
  margin-bottom: 0.5rem;
}
.tap-footer-link {
  color: var(--color-white);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  transition: color var(--transition-standard);
}
.tap-footer-link:is(:hover, :focus) {
  color: var(--color-sky-subtle);
}
.tap-footer-social a {
  color: var(--color-white);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition-standard);
}
.tap-footer-social a:is(:hover, :focus) {
  color: var(--color-heat-red);
}
.tap-footer-mascot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(220px, 20vw, 300px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* === Star Pattern Divider Strip === */
.tap-star-strip {
  height: 42px;
  background-image: url('/img/tap-stars.svg'), var(--gradient-moment-0);
  background-repeat: repeat-x, no-repeat;
  background-size: auto 42px, cover;
  background-position: center center;
}

/* === Services Rollover (left rail + right detail panel) === */
.tap-services { padding-block: 5rem; position: relative; overflow: hidden; }
.tap-services > .container { position: relative; z-index: 1; }
.tap-services-waves {
  position: absolute;
  top: 60px;
  right: 0;
  width: clamp(280px, 30vw, 420px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.tap-services-intro { max-width: 717px; }
.tap-svc-rail { display: flex; flex-direction: column; }
.tap-svc-rail .tap-svc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-azure);
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--color-white);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-standard), color var(--transition-standard);
}
.tap-svc-rail .tap-svc-item > i:first-child { font-size: 24px; width: 28px; text-align: center; flex-shrink: 0; }
.tap-svc-rail .tap-svc-item .tap-svc-rail-arrow { margin-left: auto; font-size: 20px; }
.tap-svc-rail .tap-svc-item.active {
  background: var(--color-neutral-200);
  border-radius: 12px;
  border-bottom-color: transparent;
  color: var(--color-heat-red);
}
.tap-svc-rail .tap-svc-item.active i { color: var(--color-heat-red); }
.tap-svc-rail .tap-svc-item:not(.active):hover,
.tap-svc-rail .tap-svc-item:not(.active):hover i { color: var(--color-sky); }

/* Right detail panel card */
.tap-svc-panel-card {
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tap-svc-panel-img { display: block; width: 100%; height: 300px; object-fit: cover; }
.tap-svc-panel-body { background: var(--color-neutral-100); padding: 2rem; }
/* Service-rollover dropdown — FA chevron only (button has no .dropdown-toggle class, so Bootstrap renders no caret) */
.tap-svc-panel-body .tap-caret {
  font-size: 0.8em; margin-left: 0.4em; vertical-align: middle; display: inline-block;
  transition: transform var(--transition-standard);
}
.tap-svc-panel-body [aria-expanded="true"] .tap-caret { transform: rotate(180deg); }
.tap-svc-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.tap-svc-checklist li { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--color-azure); font-size: 16px; line-height: 24px; }
.tap-svc-checklist li > i { color: var(--color-heat-red); font-size: 22px; line-height: 24px; flex-shrink: 0; }
.tap-svc-checklist li b { color: var(--color-heat-red); font-weight: var(--font-weight-semibold); }

/* === Reviews — navy star background (Elfsight widget unchanged) === */
.tap-reviews {
  background-color: var(--color-midnight);
  background-image: url('/img/tap-stars-bg.svg');
  background-repeat: repeat;
}

/* === Why Choose Us — Advantage Cards === */
.tap-advantage-card {
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}
.tap-advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.tap-advantage-icon-wrap {
  background-color: var(--color-white);
  transition: background-color var(--transition-standard);
}
.tap-advantage-icon-wrap > i {
  color: var(--color-azure);
  transition: color var(--transition-standard);
}
.tap-advantage-card:hover .tap-advantage-icon-wrap {
  background-color: var(--color-sky);
}
.tap-advantage-card:hover .tap-advantage-icon-wrap > i {
  color: var(--color-white);
}

/* === QAM Services Section — Tabbed Rollover === */

/* Tab nav (top — Heating & Cooling / Commercial / Indoor Air Quality) */
.tap-svc-tabs.nav-tabs {
  border-bottom: 0;
  gap: 1.875rem;
}
.tap-svc-tabs.nav-tabs .nav-link {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 5px solid var(--color-white);
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  color: var(--color-white);
  padding: 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  line-height: 18px;
  text-transform: uppercase;
  transition: border-color var(--transition-standard);
}
.tap-svc-tabs.nav-tabs .nav-link.active {
  background: transparent;
  color: var(--color-white);
  border-bottom-color: var(--color-heat-red);
}

/* Tab icon — regular by default, swap to solid on hover or when tab is active */
.tap-svc-tabs.nav-tabs .nav-link .tap-svc-tab-icon {
  display: block;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}
.tap-svc-tabs.nav-tabs .nav-link .tap-svc-tab-icon-regular {
  display: inline-block;
}
.tap-svc-tabs.nav-tabs .nav-link .tap-svc-tab-icon-solid {
  display: none;
}
.tap-svc-tabs.nav-tabs .nav-link:hover .tap-svc-tab-icon-regular,
.tap-svc-tabs.nav-tabs .nav-link.active .tap-svc-tab-icon-regular {
  display: none;
}
.tap-svc-tabs.nav-tabs .nav-link:hover .tap-svc-tab-icon-solid,
.tap-svc-tabs.nav-tabs .nav-link.active .tap-svc-tab-icon-solid {
  display: inline-block;
}

/* Sub-service list (left column accordion-style) */
.tap-svc-item {
  border-bottom: 2px solid var(--color-white);
  transition: background var(--transition-standard);
}
.tap-svc-item .tap-svc-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--color-white);
  cursor: pointer;
}
.tap-svc-item .tap-svc-btn > i:first-child {
  font-size: 18px;
}
.tap-svc-item .tap-svc-toggle {
  margin-left: auto;
  font-size: 16px;
}
.tap-svc-item .tap-svc-toggle-close { display: none; }
.tap-svc-item.active {
  background: var(--color-neutral-50);
  border-bottom-color: transparent;
  border-radius: var(--border-radius-standard);
}
.tap-svc-item:has(+ .tap-svc-item.active) {
  border-bottom-color: transparent;
}
.tap-svc-item.active .tap-svc-btn,
.tap-svc-item.active .tap-svc-btn > i {
  color: var(--color-midnight);
}
.tap-svc-item.active .tap-svc-toggle-open { display: none; }
.tap-svc-item.active .tap-svc-toggle-close { display: inline-block; }
.tap-svc-desc {
  display: none;
  padding: 0 1.25rem 0.75rem;
  color: var(--color-midnight);
  font-size: 14px;
  line-height: 22px;
}
.tap-svc-item.active .tap-svc-desc {
  display: block;
}

/* Sub-service icon — regular by default, swap to solid on hover or when item is active */
.tap-svc-item .tap-svc-icon {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  line-height: 1;
}
.tap-svc-item .tap-svc-icon-solid {
  display: none;
}
.tap-svc-item .tap-svc-btn:hover .tap-svc-icon-regular,
.tap-svc-item.active .tap-svc-icon-regular {
  display: none;
}
.tap-svc-item .tap-svc-btn:hover .tap-svc-icon-solid,
.tap-svc-item.active .tap-svc-icon-solid {
  display: inline-block;
}

/* Right detail panel — image with overlaid action cards */
.tap-svc-card {
  position: relative;
  height: 100%;
  min-height: 600px;
  background-image: var(--tap-svc-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius-standard);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.tap-svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
  pointer-events: none;
}
.tap-svc-card > * {
  position: relative;
  z-index: 1;
}

/* Per-service background images (desktop / large) */
.tap-svc-bg-central-ac     { --tap-svc-bg: url('/img/tap-service-bg-air-conditioner-1600-1200.webp'); }
.tap-svc-bg-heat-pump      { --tap-svc-bg: url('/img/tap-service-bg-heat-pump-1600-1200.webp'); }
.tap-svc-bg-mini-split     { --tap-svc-bg: url('/img/tap-service-bg-mini-split-1600-1200.webp'); }
.tap-svc-bg-furnace        { --tap-svc-bg: url('/img/tap-service-bg-furnace-1600-1200.webp'); }
.tap-svc-bg-package-unit   { --tap-svc-bg: url('/img/tap-service-bg-package-unit-1600-1200.webp'); }
.tap-svc-bg-mobile-modular { --tap-svc-bg: url('/img/tap-service-bg-mobile-modular-1600-1200.webp'); }
.tap-svc-bg-commercial     { --tap-svc-bg: url('/img/tap-service-bg-commercial-1600-1200.webp'); }
.tap-svc-bg-air-quality    { --tap-svc-bg: url('/img/tap-service-bg-air-quality-1600-1200.webp'); }
.tap-svc-bg-ductwork       { --tap-svc-bg: url('/img/tap-service-bg-ductwork-1600-1200.webp'); }
/* Non-service hub pages reuse the homepage hero image for visual continuity */
.tap-svc-bg-financing,
.tap-svc-bg-services       { --tap-svc-bg: url('/img/tap-hero-2560-1200.webp'); }

/* Smaller image variants below xxl */
@media (max-width: 1599px) {
  .tap-svc-bg-central-ac     { --tap-svc-bg: url('/img/tap-service-bg-air-conditioner-1200-900.webp'); }
  .tap-svc-bg-heat-pump      { --tap-svc-bg: url('/img/tap-service-bg-heat-pump-1200-900.webp'); }
  .tap-svc-bg-mini-split     { --tap-svc-bg: url('/img/tap-service-bg-mini-split-1200-900.webp'); }
  .tap-svc-bg-furnace        { --tap-svc-bg: url('/img/tap-service-bg-furnace-1200-900.webp'); }
  .tap-svc-bg-package-unit   { --tap-svc-bg: url('/img/tap-service-bg-package-unit-1200-900.webp'); }
  .tap-svc-bg-mobile-modular { --tap-svc-bg: url('/img/tap-service-bg-mobile-modular-1200-900.webp'); }
  .tap-svc-bg-commercial     { --tap-svc-bg: url('/img/tap-service-bg-commercial-1200-900.webp'); }
  .tap-svc-bg-air-quality    { --tap-svc-bg: url('/img/tap-service-bg-air-quality-1200-900.webp'); }
  .tap-svc-bg-ductwork       { --tap-svc-bg: url('/img/tap-service-bg-ductwork-1200-900.webp'); }
  .tap-svc-bg-financing,
  .tap-svc-bg-services       { --tap-svc-bg: url('/img/tap-hero-1200-1000.webp'); }
}
@media (max-width: 575px) {
  .tap-svc-bg-financing,
  .tap-svc-bg-services       { --tap-svc-bg: url('/img/tap-hero-800-800.webp'); }
}

/* On mobile, drop the image and gradient so action cards render plainly */
@media (max-width: 991px) {
  .tap-svc-card {
    background-image: none;
    min-height: 0;
    padding: 0;
  }
  .tap-svc-card::before { display: none; }
}

/* Action card row (Install / Maintenance / Repair) */
.tap-svc-action-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.tap-svc-action-card {
  flex: 1 1 0;
  min-width: 220px;
  background: var(--color-neutral-100);
  border-radius: var(--border-radius-standard);
  padding: 0.75rem 1.25rem;
}
.tap-svc-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tap-svc-action-header > h5 {
  flex: 1 1 0;
  min-width: 0;
}
.tap-svc-action-title-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.tap-svc-action-title-link:hover,
.tap-svc-action-header:hover .tap-svc-action-title-link {
  color: var(--color-midnight-hover);
}
.tap-svc-action-header > p {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--color-midnight);
  margin: 0;
}
.tap-svc-action-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--color-midnight);
  font-size: 16px;
}
.tap-svc-action-toggle .tap-svc-action-toggle-close { display: none; }
.tap-svc-action-toggle[aria-expanded="true"] .tap-svc-action-toggle-open { display: none; }
.tap-svc-action-toggle[aria-expanded="true"] .tap-svc-action-toggle-close { display: inline-block; }

/* Toggle icon weight — regular by default; on header hover (collapsed cards) swap + to solid; when expanded keep the solid x. */
.tap-svc-action-toggle .tap-svc-action-toggle-icon-solid {
  display: none;
}
.tap-svc-action-header:hover .tap-svc-action-toggle:not([aria-expanded="true"]) .tap-svc-action-toggle-open.tap-svc-action-toggle-icon-regular {
  display: none;
}
.tap-svc-action-header:hover .tap-svc-action-toggle:not([aria-expanded="true"]) .tap-svc-action-toggle-open.tap-svc-action-toggle-icon-solid {
  display: inline-block;
}
.tap-svc-action-toggle[aria-expanded="true"] .tap-svc-action-toggle-close.tap-svc-action-toggle-icon-regular {
  display: none;
}
.tap-svc-action-card ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 0;
  color: var(--color-midnight);
  font-size: 14px;
  line-height: 22px;
}
.tap-svc-action-card ul li + li {
  margin-top: 0.25rem;
}
.tap-svc-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-neutral-700);
  font-size: 12px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.5rem;
}
.tap-svc-read-more:hover {
  color: var(--color-midnight);
}

/* === QAM Equipment Brands — Marquee === */
.tap-marquee {
  overflow: hidden;
}
.tap-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3rem;
  animation: tap-marquee-scroll 30s linear infinite;
}
.tap-marquee-track > img {
  flex-shrink: 0;
}
.tap-marquee:hover .tap-marquee-track {
  animation-play-state: paused;
}
@keyframes tap-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tap-marquee-track {
    animation: none;
  }
}

/* === Button Styles === */
.btn {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  border-radius: 8px;
  font-size: 16px;
  line-height: 18px;
  gap: 8px;
  margin-bottom: 1rem;
  transition: all var(--transition-standard);
  text-transform: uppercase;
}

.btn.btn-menu {
  padding: 0.5rem;
  font-size: 0.85rem;
}
.btn.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* AZURE BTN (primary) */
.btn-azure {
  color: var(--color-white);
  background: var(--color-azure);
  border-color: var(--color-azure);
}
.btn-azure:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-azure-hover);
  border-color: var(--color-azure-hover);
}
.btn-outline-azure {
  color: var(--color-azure);
  background: transparent;
  border-color: var(--color-azure);
}
.btn-outline-azure:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-azure-hover);
  border-color: var(--color-azure-hover);
}

/* SKY BTN */
.btn-sky {
  color: var(--color-white);
  background: var(--color-sky);
  border-color: var(--color-sky);
}
.btn-sky:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-sky-deep);
  border-color: var(--color-sky-deep);
}
.btn-outline-sky {
  color: var(--color-sky);
  background: transparent;
  border-color: var(--color-sky);
}
.btn-outline-sky:is(:hover, :active, :focus) {
  color: var(--color-midnight);
  background: var(--color-sky-hover);
  border-color: var(--color-sky-hover);
}

/* MIDNIGHT BTN */
.btn-midnight {
  color: var(--color-white);
  background: var(--color-midnight);
  border-color: var(--color-midnight);
}
.btn-midnight:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-midnight-hover);
  border-color: var(--color-midnight-hover);
}
.btn-outline-midnight {
  color: var(--color-midnight);
  background: transparent;
  border-color: var(--color-midnight);
}
.btn-outline-midnight:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-midnight-hover);
  border-color: var(--color-midnight-hover);
}

/* HEAT RED BTN (accent/CTA) */
.btn-heat-red {
  color: var(--color-white);
  background: var(--color-heat-red);
  border-color: var(--color-heat-red);
}
.btn-heat-red:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-heat-red-deep);
  border-color: var(--color-heat-red-deep);
}
.btn-outline-heat-red {
  color: var(--color-heat-red);
  background: transparent;
  border-color: var(--color-heat-red);
}
.btn-outline-heat-red:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-heat-red-deep);
  border-color: var(--color-heat-red-deep);
}

/* TRANSLUCENT WHITE BTN */
.btn-white {
  color: var(--color-white);
  background: var(--color-white-opacity-15);
  border-color: var(--color-white);
}
.btn-white:is(:hover, :active, :focus) {
  color: var(--color-midnight);
  background: var(--color-white-opacity-60);
  border-color: var(--color-white-hover);
}

/* NEUTRAL 50 BTN — light on dark backgrounds */
.btn-neutral-50 {
  color: var(--color-midnight);
  background: var(--color-neutral-50);
  border-color: var(--color-neutral-50);
}
.btn-neutral-50:is(:hover, :active, :focus) {
  color: var(--color-midnight);
  background: var(--color-neutral-50-hover);
  border-color: var(--color-neutral-50-hover);
}
.btn-outline-neutral-50 {
  color: var(--color-neutral-50);
  background: transparent;
  border-color: var(--color-neutral-50);
}
.btn-outline-neutral-50:is(:hover, :active, :focus) {
  color: var(--color-midnight);
  background: var(--color-neutral-50-hover);
  border-color: var(--color-neutral-50-hover);
}

/* NEUTRAL 500 BTN */
.btn-neutral-500 {
  color: var(--color-white);
  background: var(--color-neutral-500);
  border-color: var(--color-neutral-500);
}
.btn-neutral-500:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-neutral-500-hover);
  border-color: var(--color-neutral-500-hover);
}
.btn-outline-neutral-500 {
  color: var(--color-neutral-500);
  background: transparent;
  border-color: var(--color-neutral-500);
}
.btn-outline-neutral-500:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-neutral-500-hover);
  border-color: var(--color-neutral-500-hover);
}

a.link-azure {color:var(--color-azure);}
a.link-azure:is(:hover, :focus, :active) {color:var(--color-azure-hover);}

a.link-sky {color:var(--color-sky);}
a.link-sky:is(:hover, :focus, :active) {color:var(--color-sky-hover);}

a.link-midnight {color:var(--color-midnight);}
a.link-midnight:is(:hover, :focus, :active) {color:var(--color-midnight-hover);}

a.link-heat-red {color:var(--color-heat-red);}
a.link-heat-red:is(:hover, :focus, :active) {color:var(--color-heat-red-hover);}

a.link-white {color:var(--color-white);}
a.link-white:is(:hover, :focus, :active) {color:var(--color-white-hover);}

a.link-black {color:var(--color-black);}
a.link-black:is(:hover, :focus, :active) {color:var(--color-black-hover);}

a.link-neutral-500 {color:var(--color-neutral-500);}
a.link-neutral-500:is(:hover, :focus, :active) {color:var(--color-neutral-500-hover);}

.nzt-hover-effect-01 {
    box-shadow: 0 0 0 rgba(0,0,0,.15);
    transition: var(--transition-standard)
}

.nzt-hover-effect-01:is(:hover,:focus,:active) {
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.15)
}

.nzt-hover-effect-02 {
    box-shadow: 0 .125rem .5rem rgba(0,0,0,.15);
    transition: var(--transition-standard)
}

.nzt-hover-effect-02:is(:hover,:focus,:active) {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)
}

/* === Color Utility Classes === */

/* AZURE */
.border-azure { border-color: var(--color-azure) !important; }
.text-azure { color: var(--color-azure) !important; }
.bg-azure { background-color: var(--color-azure) !important; }

/* SKY */
.border-sky { border-color: var(--color-sky) !important; }
.text-sky { color: var(--color-sky) !important; }
.bg-sky { background-color: var(--color-sky) !important; }

/* MIDNIGHT */
.border-midnight { border-color: var(--color-midnight) !important; }
.text-midnight { color: var(--color-midnight) !important; }
.bg-midnight { background-color: var(--color-midnight) !important; }

/* HEAT RED */
.border-heat-red { border-color: var(--color-heat-red) !important; }
.text-heat-red { color: var(--color-heat-red) !important; }
.bg-heat-red { background-color: var(--color-heat-red) !important; }

/* WHITE */
.border-white { border-color: var(--color-white) !important; }
.text-white { color: var(--color-white) !important; }
.bg-white { background-color: var(--color-white) !important; }

/* WHITE OPACITY 15 */
.border-white-opacity-15 { border-color: var(--color-white-opacity-15) !important; }
.text-white-opacity-15 { color: var(--color-white-opacity-15) !important; }
.bg-white-opacity-15 { background-color: var(--color-white-opacity-15) !important; }

/* WHITE OPACITY 60 */
.border-white-opacity-60 { border-color: var(--color-white-opacity-60) !important; }
.text-white-opacity-60 { color: var(--color-white-opacity-60) !important; }
.bg-white-opacity-60 { background-color: var(--color-white-opacity-60) !important; }

/* WHITE OPACITY 80 */
.border-white-opacity-80 { border-color: var(--color-white-opacity-80) !important; }
.text-white-opacity-80 { color: var(--color-white-opacity-80) !important; }
.bg-white-opacity-80 { background-color: var(--color-white-opacity-80) !important; }
.text-white-opacity-80:is(:hover, :active, :focus) { color: var(--color-white); transition: var(--transition-standard); }

/* NEUTRAL 600 (replaces gray-666) */
.border-666 { border-color: var(--color-neutral-600) !important; }
.text-666 { color: var(--color-neutral-600) !important; }
.bg-666 { background-color: var(--color-neutral-600) !important; }

/* BLACK */
.border-black { border-color: var(--color-black) !important; }
.text-black { color: var(--color-black) !important; }
.bg-black { background-color: var(--color-black) !important; }

/* NEUTRAL 50 */
.border-neutral-50 { border-color: var(--color-neutral-50) !important; }
.text-neutral-50 { color: var(--color-neutral-50) !important; }
.bg-neutral-50 { background-color: var(--color-neutral-50) !important; }

/* NEUTRAL 100 */
.border-neutral-100 { border-color: var(--color-neutral-100) !important; }
.text-neutral-100 { color: var(--color-neutral-100) !important; }
.bg-neutral-100 { background-color: var(--color-neutral-100) !important; }

/* NEUTRAL 200 */
.border-neutral-200 { border-color: var(--color-neutral-200) !important; }
.text-neutral-200 { color: var(--color-neutral-200) !important; }
.bg-neutral-200 { background-color: var(--color-neutral-200) !important; }

/* NEUTRAL 300 */
.border-neutral-300 { border-color: var(--color-neutral-300) !important; }
.text-neutral-300 { color: var(--color-neutral-300) !important; }
.bg-neutral-300 { background-color: var(--color-neutral-300) !important; }

/* NEUTRAL 400 */
.border-neutral-400 { border-color: var(--color-neutral-400) !important; }
.text-neutral-400 { color: var(--color-neutral-400) !important; }
.bg-neutral-400 { background-color: var(--color-neutral-400) !important; }

/* NEUTRAL 500 */
.border-neutral-500 { border-color: var(--color-neutral-500) !important; }
.text-neutral-500 { color: var(--color-neutral-500) !important; }
.bg-neutral-500 { background-color: var(--color-neutral-500) !important; }

/* NEUTRAL 600 */
.border-neutral-600 { border-color: var(--color-neutral-600) !important; }
.text-neutral-600 { color: var(--color-neutral-600) !important; }
.bg-neutral-600 { background-color: var(--color-neutral-600) !important; }

/* NEUTRAL 700 */
.border-neutral-700 { border-color: var(--color-neutral-700) !important; }
.text-neutral-700 { color: var(--color-neutral-700) !important; }
.bg-neutral-700 { background-color: var(--color-neutral-700) !important; }

/* DARK MODE 00DP */
.border-dm-00dp { border-color: var(--color-dm-00dp) !important; }
.text-dm-00dp { color: var(--color-dm-00dp) !important; }
.bg-dm-00dp { background-color: var(--color-dm-00dp) !important; }

/* DARK MODE 01DP */
.border-dm-01dp { border-color: var(--color-dm-01dp) !important; }
.text-dm-01dp { color: var(--color-dm-01dp) !important; }
.bg-dm-01dp { background-color: var(--color-dm-01dp) !important; }

/* DARK MODE 02DP */
.border-dm-02dp { border-color: var(--color-dm-02dp) !important; }
.text-dm-02dp { color: var(--color-dm-02dp) !important; }
.bg-dm-02dp { background-color: var(--color-dm-02dp) !important; }

/* DARK MODE 03DP */
.border-dm-03dp { border-color: var(--color-dm-03dp) !important; }
.text-dm-03dp { color: var(--color-dm-03dp) !important; }
.bg-dm-03dp { background-color: var(--color-dm-03dp) !important; }

/* DARK MODE 04DP */
.border-dm-04dp { border-color: var(--color-dm-04dp) !important; }
.text-dm-04dp { color: var(--color-dm-04dp) !important; }
.bg-dm-04dp { background-color: var(--color-dm-04dp) !important; }

/* DARK MODE 06DP */
.border-dm-06dp { border-color: var(--color-dm-06dp) !important; }
.text-dm-06dp { color: var(--color-dm-06dp) !important; }
.bg-dm-06dp { background-color: var(--color-dm-06dp) !important; }

/* DARK MODE 08DP */
.border-dm-08dp { border-color: var(--color-dm-08dp) !important; }
.text-dm-08dp { color: var(--color-dm-08dp) !important; }
.bg-dm-08dp { background-color: var(--color-dm-08dp) !important; }

/* DARK MODE 12DP */
.border-dm-12dp { border-color: var(--color-dm-12dp) !important; }
.text-dm-12dp { color: var(--color-dm-12dp) !important; }
.bg-dm-12dp { background-color: var(--color-dm-12dp) !important; }

/* DARK MODE 16DP */
.border-dm-16dp { border-color: var(--color-dm-16dp) !important; }
.text-dm-16dp { color: var(--color-dm-16dp) !important; }
.bg-dm-16dp { background-color: var(--color-dm-16dp) !important; }

/* DARK MODE 24DP */
.border-dm-24dp { border-color: var(--color-dm-24dp) !important; }
.text-dm-24dp { color: var(--color-dm-24dp) !important; }
.bg-dm-24dp { background-color: var(--color-dm-24dp) !important; }

/* GRADIENTS — Moment (Azure -> Midnight) */
.bg-gradient-moment     { background: var(--gradient-moment)     !important; }
.bg-gradient-moment-0   { background: var(--gradient-moment-0)   !important; }
.bg-gradient-moment-45  { background: var(--gradient-moment-45)  !important; }
.bg-gradient-moment-90  { background: var(--gradient-moment-90)  !important; }
.bg-gradient-moment-135 { background: var(--gradient-moment-135) !important; }
.bg-gradient-moment-180 { background: var(--gradient-moment-180) !important; }
.bg-gradient-moment-270 { background: var(--gradient-moment-270) !important; }
.gradient-moment-icon {
  background: var(--gradient-moment);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* GRADIENTS — Sunset (Azure -> Heat Red) */
.bg-gradient-sunset     { background: var(--gradient-sunset)     !important; }
.bg-gradient-sunset-0   { background: var(--gradient-sunset-0)   !important; }
.bg-gradient-sunset-45  { background: var(--gradient-sunset-45)  !important; }
.bg-gradient-sunset-90  { background: var(--gradient-sunset-90)  !important; }
.bg-gradient-sunset-135 { background: var(--gradient-sunset-135) !important; }
.bg-gradient-sunset-180 { background: var(--gradient-sunset-180) !important; }
.gradient-sunset-icon {
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* STRIPES — hard-stop two-color backgrounds (for decorative section dividers) */
.bg-stripe-white-heat-red {
  background: linear-gradient(to right, var(--color-white) 0 30%, var(--color-heat-red) 30% 100%);
}

/* Extra border width — Bootstrap's border-{1..5} caps at 5px */
.border-10 { border-width: 10px !important; }

/* Rebate-card logo cap (Amana / ENERGY STAR on the rebates page) */
.tap-logo-cap {
  max-height: 60px;
  width: auto;
}

/* Step-list circle badge (32x32, used on maintenance-plans How to Join list) */
.tap-step-badge {
  width: 32px;
  height: 32px;
}

/* Service area row — fill Azure on hover, recolor icons, nudge chevron right */
.tap-service-area-link {
  transition: background-color var(--transition-standard), color var(--transition-standard);
}
.tap-service-area-link:hover,
.tap-service-area-link:focus {
  background-color: var(--color-azure);
  color: var(--color-white) !important;
}
.tap-service-area-link:hover i,
.tap-service-area-link:focus i,
.tap-service-area-link:hover *,
.tap-service-area-link:focus * {
  color: var(--color-white) !important;
}
.tap-service-area-link i:last-child {
  transition: transform var(--transition-standard);
}
.tap-service-area-link:hover i:last-child,
.tap-service-area-link:focus i:last-child {
  transform: translateX(4px);
}

/* === Component Styles === */
.img-fluid {
  margin-bottom: 2rem;
}

ul.list-group,
ol.list-group,
.card,
.table-responsive,
table.table-bordered {
  border-radius: var(--border-radius-card);
  margin-bottom: 1.5rem;
}
.card.h-100 {
  margin-bottom: 0;
}
.card .card-body {
  padding: 1.5rem;
}
.bg-dm-00dp ul li strong, .accordion ul li strong {
  color: var(--color-sky);
}
.accordion-button .fa-solid {
  transition: transform 0.3s ease-in-out;
}
.accordion-button:not(.collapsed) .faq-icon {
  transform: rotate(45deg);
}

.accordion {
  background: transparent;
  border: none;
  color: var(--color-midnight);
}
.accordion-item,
.accordion-header,
.accordion-button {
  background: transparent;
  border: none;
  color: var(--color-midnight);
}
.accordion-item {
  border-bottom: 0.25px solid var(--color-neutral-600);
}
.accordion-button {
  font-size: 0.9rem;
}
.accordion-body {
  font-size: 0.8rem;
}

/* OPTIMIZED: Grouped accordion radius resets */
.accordion-item:last-of-type,
.accordion-item:last-of-type .accordion-button,
.accordion-item:last-of-type .accordion-collapse {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.accordion-button:not(.collapsed) {
  color: var(--color-azure);
  box-shadow: none;
  background: transparent;
}
.accordion-button::after {
  display: none !important;
}

/* TAP FAQ — scoped accordion overrides (Figma 26056-3368) */
.tap-faq.accordion .accordion-item {
  border-bottom: 1px solid var(--color-sky);
}
.tap-faq .accordion-button {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: 18px;
  line-height: 26px;
  color: var(--color-azure);
  padding: 0.75rem 0;
  gap: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tap-faq .accordion-button:not(.collapsed) {
  color: var(--color-azure);
}
.tap-faq .accordion-button > span:first-child {
  flex: 1 1 0;
  text-align: left;
}
.tap-faq .faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-azure);
  font-size: 16px;
  transition: transform 0.3s ease-in-out;
}
.tap-faq .accordion-body {
  padding: 0 0 0.75rem 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-midnight);
}


.icon-stacked {
    display: inline-flex;
    position: relative;
    width: 2em;
    height: 2em;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border-radius: 50%;
    transition: box-shadow var(--transition-standard)
}

.icon-stacked::before {
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    content: "\f111";
    font-size: 2em;
    position: absolute;
    line-height: 1
}

.icon-stacked>i,.icon-stacked>svg {
    position: relative;
    z-index: 1;
    font-size: 1em
}

.icon-stacked {
    color: var(--color-sky)
}

.icon-stacked::before {
    color: var(--color-midnight)
}

.icon-stacked.light-base {
    color: var(--color-midnight)
}

.icon-stacked.light-base::before {
    color: var(--color-sky)
}

.icon-stacked.gradient-red {
    color: var(--color-white);
    box-shadow: 0 0 0 2px var(--color-dm-00dp)
}

.icon-stacked.gradient-moment::before {
    background: var(--gradient-moment);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent
}

.icon-stacked.xs {
    font-size: .5rem
}

.icon-stacked.sm {
    font-size: .75rem
}

.icon-stacked.md {
    font-size: 1rem
}

.icon-stacked.lg {
    font-size: 1.5rem
}

.icon-stacked.xl {
    font-size: 2rem
}

.icon-stacked.xxl {
    font-size: 3rem
}

.icon-stacked.shadow::before {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2))
}

.nzt-hover-effect-02:is(:hover,:focus,:active) .icon-stacked {
    box-shadow: 0 0 0 2px var(--color-sky);
    border-radius: 50%
}

.icon-stacked.hoverable {
    cursor: pointer;
    transition: transform .15s ease
}

.icon-stacked.hoverable:hover {
    transform: scale(1.1)
}

.icon-stacked.hoverable:active {
    transform: scale(.95)
}

.isolate {
    isolation: isolate
}

/* === Utility Classes === */
em,
u {
  font-style: inherit !important;
  text-decoration: inherit !important;
}
a {
  text-decoration: none;
}

/* === Links: brand colors only — never Bootstrap default blue (client directive) ===
   Bootstrap 5.3 colors bare <a> via --bs-link-color-rgb; re-point it to brand azure so
   any un-classed content link is brand-colored, not #0d6efd blue. Buttons, nav, and the
   .link-* helpers set their own color and are unaffected. */
:root {
  --bs-link-color: var(--color-azure);
  --bs-link-color-rgb: 26, 49, 94;          /* #1A315E azure */
  --bs-link-hover-color: var(--color-heat-red);
  --bs-link-hover-color-rgb: 228, 39, 47;   /* #E4272F heat-red */
}
/* Inline prose links (inside a paragraph) get an underline for affordance.
   Scoped to <p> only so card/grid links that wrap a whole block (<a> inside <li>) stay un-underlined. */
p a:not([class]):not(.menu-container a) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* === Link color by parent SURFACE (WCAG safety net) ===
   Every background surface PUBLISHES an inherited link-color pair via custom props;
   class-less content links CONSUME the nearest pair. Because custom properties inherit,
   the NEAREST surface always wins — a white card nested inside a dark band gets azure
   links (the old flat .bg-azure rule painted them white → white-on-white).
   :where() keeps publisher specificity at 0 so any explicit color still wins.
   Exclude the nav (.menu-container a): the mega-dropdown sits inside a .bg-midnight
   wrapper but its panel is light — dropdown headers keep their inherited azure. */
:where(body, .bg-white, .bg-neutral-50, .bg-neutral-100,
       .tap-warn-card, .tap-tech-callout, .tap-loc-callout, .tap-opening,
       .tap-svc-panel-body, .accordion-item) {
  --tap-link: var(--color-azure);
  --tap-link-hover: var(--color-heat-red-deep);
}
:where(.bg-midnight, .bg-azure, .bg-sky, footer, .tap-footer,
       .bg-gradient-moment-90, .bg-gradient-moment-135, .bg-gradient-moment-270,
       .tap-hero, .tap-repair-card, .tap-aside-card, .tap-mplan-card,
       .tap-specials-card, .tap-trust, .tap-cta-final, .tap-reviews, .tap-vet-callout) {
  --tap-link: var(--color-white);
  --tap-link-hover: var(--color-sky-subtle);
}
a:not([class]):not(.menu-container a) {
  color: var(--tap-link, var(--color-azure));
}
a:not([class]):not(.menu-container a):is(:hover, :focus) {
  color: var(--tap-link-hover, var(--color-heat-red));
}

/* === Accent-icon color by parent SURFACE (WCAG safety net, part B) ===
   Same publisher pattern as links: brand heat-red on light surfaces, white on
   dark surfaces. Components consume var(--tap-icon) instead of hardcoding red,
   so a red accent built for a white card can never go near-invisible on an
   azure/sky/midnight band (was 1.4-2.8:1 on aside/mplan/repair/trust cards). */
:where(body, .bg-white, .bg-neutral-50, .bg-neutral-100,
       .tap-warn-card, .tap-tech-callout, .tap-loc-callout, .tap-opening,
       .tap-svc-panel-body, .accordion-item) {
  --tap-icon: var(--color-heat-red);
}
:where(.bg-midnight, .bg-azure, .bg-sky, footer, .tap-footer,
       .bg-gradient-moment-90, .bg-gradient-moment-135, .bg-gradient-moment-270,
       .tap-hero, .tap-repair-card, .tap-aside-card, .tap-mplan-card,
       .tap-specials-card, .tap-trust, .tap-cta-final, .tap-reviews, .tap-vet-callout) {
  --tap-icon: var(--color-white);
}

.border-radius-standard {
  border-radius: var(--border-radius-standard);
}

/* === QAM Breadcrumb (sub-page) === */
.tap-breadcrumb {
  --bs-breadcrumb-divider: '\203A'; /* › chevron */
  margin-bottom: 0;
}
.tap-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--color-white);
}
.tap-breadcrumb .breadcrumb-item.active {
  color: var(--color-sky);
}

/* Sub-page breadcrumb — sits at the top of the first content run (dark azure bg) */
.tap-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin: 0; font-size: 12px; line-height: 1.2;
}
.tap-crumb a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: #fff; font-weight: var(--font-weight-bold);
  text-decoration: none; transition: color var(--transition-standard);
}
.tap-crumb a:hover, .tap-crumb a:focus { color: var(--color-heat-red); }
.tap-crumb-sep { display: inline-flex; color: rgba(255, 255, 255, 0.4); font-size: 10px; }
.tap-crumb-current { color: rgba(255, 255, 255, 0.65); font-weight: var(--font-weight-bold); }
/* Light-background variant (e.g. privacy/terms body sections) */
.tap-crumb-light a { color: var(--color-azure); }
.tap-crumb-light a:hover, .tap-crumb-light a:focus { color: var(--color-heat-red); }
.tap-crumb-light .tap-crumb-sep { color: var(--color-neutral-400); }
.tap-crumb-light .tap-crumb-current { color: var(--color-neutral-700); }

/* === Service sub-page sections (AC Repair, etc.) === */

/* Why-choose feature cards (light) */
.tap-why-card {
  padding: 28px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-sm);
}
.tap-why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-sky-subtle);
  color: var(--color-heat-red);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 16px;
}
.tap-why-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  line-height: 24px;
  color: var(--color-azure);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Warning-sign cards (light, heat-red accent) */
.tap-warn-card {
  padding: 28px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-card);
  border-left: 4px solid var(--color-heat-red);
  box-shadow: var(--shadow-sm);
}
.tap-warn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-sky-subtle);
  color: var(--color-heat-red);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 16px;
}
.tap-warn-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  line-height: 24px;
  color: var(--color-azure);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Repair process steps (azure cards — sit on the light run background) */
.tap-step {
  display: flex;
  gap: 1rem;
  padding: 24px;
  background-color: var(--color-azure);
  border-radius: var(--border-radius-card);
}
.tap-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-heat-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  line-height: 1;
}
.tap-step-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  line-height: 24px;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tap-step-desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-white-opacity-80);
}

/* Common-repair cards (light, CTA link) */
.tap-repair-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background-color: var(--color-azure);
  border: 1px solid transparent;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-sm);
}
.tap-repair-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  line-height: 24px;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tap-repair-desc { margin-bottom: 16px; color: rgba(255, 255, 255, 0.85); }
.tap-repair-link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--tap-link, var(--color-heat-red));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition-standard), color var(--transition-standard);
}
.tap-repair-link:hover { color: var(--color-heat-red-hover); gap: 12px; }

/* Other-services link cards (light) */
.tap-other-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background-color: var(--color-neutral-50);
  border-radius: var(--border-radius-card);
  text-decoration: none;
  transition: background-color var(--transition-standard), transform var(--transition-standard);
}
.tap-other-card:hover {
  background-color: var(--color-sky-subtle);
  transform: translateY(-4px);
}
.tap-other-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-sky-subtle);
  color: var(--color-heat-red);
  font-size: 22px;
  line-height: 1;
}
.tap-other-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  line-height: 24px;
  color: var(--color-azure);
  text-transform: uppercase;
}
.tap-other-desc { font-size: 14px; line-height: 22px; color: var(--color-neutral-700); }

/* Final CTA band */
.tap-cta-final {
  padding-block: 4rem;
  background: var(--gradient-moment-135);
  border-bottom: 6px solid var(--color-heat-red);
}

/* Icon checklist (Why-Trust) — white text on the dark run */
.tap-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.tap-checklist > li { display: flex; gap: 1rem; align-items: flex-start; }
.tap-checklist > li > i {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background-color: var(--color-heat-red); color: var(--color-white);
  font-size: 18px; line-height: 1;
}
.tap-checklist p { color: var(--color-white-opacity-80); }
.tap-checklist strong { color: var(--color-white); }

/* Numbered process list (Process) — white text on the dark run */
.tap-steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.tap-steps-list > li { display: flex; gap: 1.25rem; align-items: flex-start; }
.tap-steps-list-title {
  font-family: var(--font-heading); font-weight: var(--font-weight-bold);
  font-size: 18px; line-height: 24px; color: var(--color-azure);
  text-transform: uppercase; margin-bottom: 6px;
}
.tap-steps-list-desc { font-size: 14px; line-height: 22px; color: var(--color-neutral-700); }

/* Related-services link list (Other Services) — on the light run */
.tap-link-list { list-style: none; margin: 0; padding: 0; }
.tap-link-list > li { border-top: 1px solid var(--color-neutral-200); }
.tap-link-list > li:first-child { border-top: 0; }
.tap-link-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 0;
  text-decoration: none; transition: padding-left var(--transition-standard);
}
.tap-link-list a:hover { padding-left: 0.5rem; }
.tap-link-list-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background-color: var(--color-sky-subtle); color: var(--color-heat-red);
  font-size: 18px; line-height: 1;
  transition: background-color var(--transition-standard), color var(--transition-standard);
}
.tap-link-list a:hover .tap-link-list-icon { background-color: var(--color-heat-red); color: var(--color-white); }
.tap-link-list-text { flex: 1 1 auto; min-width: 0; }
.tap-link-list-text strong {
  display: block; font-family: var(--font-heading); font-weight: var(--font-weight-bold);
  font-size: 16px; line-height: 22px; color: var(--color-azure); text-transform: uppercase;
}
.tap-link-list-desc { display: block; font-size: 14px; line-height: 20px; color: var(--color-neutral-700); }
.tap-link-list-arrow { color: var(--color-heat-red); flex-shrink: 0; transition: transform var(--transition-standard); }
.tap-link-list a:hover .tap-link-list-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .tap-link-list a, .tap-link-list-icon, .tap-link-list-arrow { transition: none; }
  .tap-link-list a:hover { padding-left: 0; }
  .tap-link-list a:hover .tap-link-list-arrow { transform: none; }
}

/* AC Repair hero image override (Adobe Stock AdobeStock_225613373) */
.tap-hero-ac {
  background-image: url('/img/tap-hero-ac-repair-1200-1000.webp');
  background-position: center 62%; /* shift down off the brick top to the condenser/tools */
}
@media (max-width: 575px) {
  .tap-hero-ac { background-image: url('/img/tap-hero-ac-repair-800-800.webp'); }
}
@media (min-width: 1600px) {
  .tap-hero-ac { background-image: url('/img/tap-hero-ac-repair-2560-1200.webp'); }
}

/* Per-category hero image overrides (Adobe Stock). Default 1200×1000;
   swap to 800×800 on phones and 2560×1200 on wide screens (mirrors .tap-hero-ac). */
.tap-hero-air-quality { background-image: url('/img/tap-hero-air-quality-1200-1000.webp'); background-position: center center; }
.tap-hero-furnace     { background-image: url('/img/tap-hero-furnace-1200-1000.webp');     background-position: center center; }
.tap-hero-heat-pump   { background-image: url('/img/tap-hero-heat-pump-1200-1000.webp');   background-position: center center; }
.tap-hero-mini-split  { background-image: url('/img/tap-hero-mini-split-1200-1000.webp');  background-position: center center; }
.tap-hero-geothermal  { background-image: url('/img/tap-hero-geothermal-1200-1000.webp');  background-position: center center; }
.tap-hero-package-unit{ background-image: url('/img/tap-hero-package-unit-1200-1000.webp');background-position: center center; }
@media (max-width: 575px) {
  .tap-hero-air-quality { background-image: url('/img/tap-hero-air-quality-800-800.webp'); }
  .tap-hero-furnace     { background-image: url('/img/tap-hero-furnace-800-800.webp'); }
  .tap-hero-heat-pump   { background-image: url('/img/tap-hero-heat-pump-800-800.webp'); }
  .tap-hero-mini-split  { background-image: url('/img/tap-hero-mini-split-800-800.webp'); }
  .tap-hero-geothermal  { background-image: url('/img/tap-hero-geothermal-800-800.webp'); }
  .tap-hero-package-unit{ background-image: url('/img/tap-hero-package-unit-800-800.webp'); }
}
@media (min-width: 1600px) {
  .tap-hero-air-quality { background-image: url('/img/tap-hero-air-quality-2560-1200.webp'); }
  .tap-hero-furnace     { background-image: url('/img/tap-hero-furnace-2560-1200.webp'); }
  .tap-hero-heat-pump   { background-image: url('/img/tap-hero-heat-pump-2560-1200.webp'); }
  .tap-hero-mini-split  { background-image: url('/img/tap-hero-mini-split-2560-1200.webp'); }
  .tap-hero-geothermal  { background-image: url('/img/tap-hero-geothermal-2560-1200.webp'); }
  .tap-hero-package-unit{ background-image: url('/img/tap-hero-package-unit-2560-1200.webp'); }
}

/* Shared "about" hero (tech + homeowner + TAP van). Source is panoramic (2.39:1),
   so crops stay WIDE + focal point biased down to the people/van. maintenance, financing, service-area */
.tap-hero-about { background-image: url('/img/tap-hero-about-1600-800.webp'); background-position: center 88%; }
@media (max-width: 575px) {
  .tap-hero-about { background-image: url('/img/tap-hero-about-1000-800.webp'); }
}
@media (min-width: 1600px) {
  .tap-hero-about { background-image: url('/img/tap-hero-about-2560-1200.webp'); }
}

/* Commercial hero (two techs servicing a rooftop unit) — commercial-hvac */
.tap-hero-commercial { background-image: url('/img/tap-hero-commercial-1200-1000.webp'); background-position: center center; }
@media (max-width: 575px) {
  .tap-hero-commercial { background-image: url('/img/tap-hero-commercial-800-800.webp'); }
}
@media (min-width: 1600px) {
  .tap-hero-commercial { background-image: url('/img/tap-hero-commercial-2560-1200.webp'); }
}

/* Mobile/modular home hero (manufactured home + deck) — mobile-modular-home */
.tap-hero-mobile { background-image: url('/img/tap-hero-mobile-1200-1000.webp'); background-position: center 60%; }
@media (max-width: 575px) {
  .tap-hero-mobile { background-image: url('/img/tap-hero-mobile-800-800.webp'); }
}
@media (min-width: 1600px) {
  .tap-hero-mobile { background-image: url('/img/tap-hero-mobile-2560-1200.webp'); }
}

/* New-construction hero (real TAP jobsite — duct trunk in new framing) — new-construction */
.tap-hero-new-construction { background-image: url('/img/tap-hero-new-construction-1200-1000.webp'); background-position: center center; }
@media (max-width: 575px) {
  .tap-hero-new-construction { background-image: url('/img/tap-hero-new-construction-800-800.webp'); }
}
@media (min-width: 1600px) {
  .tap-hero-new-construction { background-image: url('/img/tap-hero-new-construction-2560-1200.webp'); }
}

/* Sticky sidebar — the 1/3 column on the 2/3 + 1/3 service-page runs.
   Sticky on lg+, static (stacks) below lg. */
.tap-aside { position: sticky; top: 10rem; } /* clears the fixed nav (~148px) + small gap */
@media (max-width: 991.98px) {
  .tap-aside { position: static; }
}
.tap-aside-card {
  background-color: var(--color-sky);
  border-radius: var(--border-radius-card);
  padding: 24px;
}
/* Technician graphic + speech-bubble callout at the bottom of Run 1 (xl+).
   In-flow side-by-side (col-auto img + col callout) so they stay together at any width. */
.tap-tech-img {
  display: block;
  width: clamp(320px, 30vw, 460px);
  height: auto;
}
/* Tech column sits on the section's bottom edge (bleeds through the py-5 bottom padding) */
.tap-tech-col {
  align-self: flex-end;
  margin-bottom: -3rem;
}
.tap-tech-callout {
  position: relative;
  max-width: 460px;
  background: var(--color-white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.tap-tech-callout::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 14px 15px 14px 0;
  border-color: transparent var(--color-white) transparent transparent;
}

/* Small technician mascot peeking from the bottom-right of the call-now card (xl+) */
.tap-aside-card.tap-has-mascot { position: relative; overflow: hidden; }
.tap-aside-mascot {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 116px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 1200px) {
  .tap-aside-card.tap-has-mascot { padding-bottom: 104px; }
}
.tap-aside-icon {
  color: var(--tap-icon, var(--color-heat-red));
  font-size: 36px;
  line-height: 1;
  margin-bottom: 12px;
}
.tap-aside-list { list-style: none; margin: 0; padding: 0; }
.tap-aside-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--color-white-opacity-15);
  color: var(--color-white);
  font-size: 14px;
  line-height: 20px;
}
.tap-aside-list li i {
  color: var(--tap-icon, var(--color-heat-red));
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.tap-aside-list a { color: var(--color-white); text-decoration: none; }
.tap-aside-list a:hover { text-decoration: underline; }

/* Secondary sidebar widgets (hours / rating / discount) — light cards for variety */
.tap-aside-mini {
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--border-radius-card);
  padding: 20px;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.tap-aside-hours > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--color-neutral-200);
  font-size: 14px;
}
.tap-aside-hours > div:first-child { border-top: 0; }
.tap-aside-hours strong { color: var(--color-azure); }
.tap-aside-stars { color: var(--color-heat-red); letter-spacing: 2px; }
.tap-aside-pct {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  line-height: 1;
  color: var(--color-heat-red);
}

/* === Card rollover / hover effects (service sub-page cards) === */
.tap-why-card,
.tap-warn-card,
.tap-repair-card,
.tap-step {
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}
.tap-why-card:hover,
.tap-warn-card:hover,
.tap-repair-card:hover,
.tap-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 1.5rem rgba(9, 35, 69, 0.22);
}
/* Icon badge fills heat-red (icon turns white) on hover */
.tap-why-icon,
.tap-warn-icon,
.tap-other-icon {
  transition: background-color var(--transition-standard), color var(--transition-standard), transform var(--transition-standard);
}
.tap-why-card:hover .tap-why-icon,
.tap-warn-card:hover .tap-warn-icon,
.tap-other-card:hover .tap-other-icon {
  background-color: var(--color-heat-red);
  color: var(--color-white);
  transform: scale(1.08);
}
/* Repair cards (blue): bg lightens + heat-red accent bar draws across the top */
.tap-repair-card { position: relative; overflow: hidden; transition: transform var(--transition-standard), box-shadow var(--transition-standard), background-color var(--transition-standard); }
.tap-repair-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background-color: var(--color-heat-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-standard);
}
.tap-repair-card:hover { background-color: #234072; }
.tap-repair-card:hover::before { transform: scaleX(1); }
.tap-repair-card:hover .tap-repair-link { gap: 12px; }
@media (prefers-reduced-motion: reduce) {
  .tap-why-card, .tap-warn-card, .tap-repair-card, .tap-step,
  .tap-why-icon, .tap-warn-icon, .tap-other-icon, .tap-repair-title, .tap-repair-card::before { transition: none; }
  .tap-why-card:hover, .tap-warn-card:hover, .tap-repair-card:hover, .tap-step:hover { transform: none; }
  .tap-why-card:hover .tap-why-icon, .tap-warn-card:hover .tap-warn-icon, .tap-other-card:hover .tap-other-icon { transform: none; }
  .tap-repair-card:hover::before { transform: scaleX(1); }
}
