/* =====================================================================
   I Know A Guy HVAC — brand layer (2026 refresh)
   Navy + sky blue, with heritage red for calls to action.
   Loaded after Bootstrap, globals.css and custom-style.css.
   ===================================================================== */
:root {
  --navy: #0B2545;
  --navy-2: #13345F;
  --navy-3: #1B4677;
  --sky: #1F6FB2;
  --sky-light: #9CC4E8;
  --mist: #E8F0F7;
  --paper: #F7FAFC;
  --red: #BA161D;
  --red-dark: #93121A;
  --gold: #FFB547;
  --ink: #15202B;
  --muted: #5B6776;
  --line: #E1E7EE;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(11, 37, 69, .12);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Bootstrap: the old brand "danger" red becomes navy for text/backgrounds */
  --bs-danger: #0B2545;
  --bs-danger-rgb: 11, 37, 69;
  --bs-link-color: #1F6FB2;
  --bs-link-color-rgb: 31, 111, 178;
  --bs-link-hover-color: #0B2545;
  --bs-link-hover-color-rgb: 11, 37, 69;
}

body { color: var(--ink); background: #fff; font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-display); text-wrap: balance; }
a { color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky-light); outline-offset: 2px; }
.visually-hidden-focusable:focus { position: fixed !important; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- Bootstrap color remap ---------- */
.text-danger { color: var(--navy) !important; }
.text-danger.gradient { background: none; -webkit-text-fill-color: currentColor; color: var(--navy) !important; }
.bg-danger { background: var(--navy) !important; }
.bg-danger.gradient,
.bg-danger.gradient-menu { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%) !important; }
.bg-danger.gradient-menu:hover { background: linear-gradient(120deg, var(--navy) 0%, var(--sky) 120%) !important; }
.border-danger { border-color: var(--navy) !important; }
.btn { border-radius: 8px; font-weight: 600; }
.btn.btn-danger, .btn-danger { color: #fff; background: var(--red); border-color: var(--red); }
.btn.btn-danger:hover, .btn-danger:hover, .btn.btn-danger:focus-visible { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.btn.btn-outline-danger { color: var(--red); border-color: var(--red); background: transparent; }
.btn.btn-outline-danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
.btn.btn-light, .btn.btn-light:hover { color: var(--navy); }
.btn-outline-light:hover { color: var(--navy); }
.fa-star, .stars { color: var(--gold) !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1030; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--navy); color: #fff; font-size: .8rem; }
.topbar .container-xl { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding-block: .4rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar b { color: var(--sky-light); font-weight: 600; }
.mainbar { padding-block: .35rem; }
.mainbar .navbar-brand { padding: 0; margin-right: 1.25rem; }
.mainbar .navbar-brand img { height: 64px; width: auto; display: block; }
.mainbar .nav-link { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--navy) !important; font-size: 1.02rem; padding-inline: .8rem !important; }
.mainbar .nav-link:hover, .mainbar .nav-link.show { color: var(--sky) !important; }
.mainbar .dropdown-toggle::after { vertical-align: .15em; }
.mainbar .dropdown-menu { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; min-width: 16rem; }
.mainbar .dropdown-item { border-radius: 8px; padding: .5rem .75rem; color: var(--ink); font-size: .95rem; }
.mainbar .dropdown-item:hover, .mainbar .dropdown-item:focus { background: var(--mist) !important; color: var(--navy); }
.mainbar .dropdown-header { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .5rem .75rem .25rem; }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-cta .btn { white-space: nowrap; }
.nav-phone { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-phone small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); line-height: 1; }
.nav-phone:hover { color: var(--red); }
.navbar-toggler { border: 0; padding: .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--sky-light); }
.hdr-call { padding: .45rem .8rem; font-size: .9rem; }
@media (max-width: 1199.98px) {
  .mainbar .navbar-brand img { height: 52px; }
  .offcanvas { max-width: 88vw; }
  .offcanvas-body .navbar-nav { gap: .25rem; }
  .offcanvas-body .nav-link { font-size: 1.2rem; padding-block: .6rem !important; border-bottom: 1px solid var(--line); }
  .offcanvas-body .dropdown-menu { box-shadow: none; background: var(--paper); }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 1.25rem; }
  .nav-cta .btn { padding-block: .8rem; }
}

/* ---------- Inner-page hero (existing .ikag-hero-intro markup) ---------- */
.ikag-hero-intro, .ikag-hero-intro.contact {
  margin-top: 0 !important; height: auto !important; min-height: 0;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(180deg, rgba(11, 37, 69, .78) 0%, rgba(11, 37, 69, .94) 55%, var(--navy) 100%),
    url(../img/ikag-wasatch-strip-1800.webp) center top / cover no-repeat,
    var(--navy) !important;
}
.ikag-hero-intro h1 { font-size: clamp(2rem, 4.2vw, 3.2rem) !important; line-height: 1.05; }
.ikag-hero-intro h4, .ikag-hero-intro .h4 { color: var(--sky-light) !important; font-size: clamp(1rem, 1.6vw, 1.25rem) !important; }
.ikag-hero-intro p { color: rgba(255, 255, 255, .9) !important; }
.ikag-hero-intro .card { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
@media (max-width: 991.98px) {
  .ikag-hero-intro { background: linear-gradient(180deg, rgba(11, 37, 69, .8), var(--navy) 60%), url(../img/ikag-wasatch-strip-1000.webp) center top / cover no-repeat, var(--navy) !important; }
}

/* Old full-bleed banners → navy */
.ikag-banner-commercial { background: linear-gradient(120deg, var(--navy), var(--navy-3)) !important; }
.ikag-banner-service-area { background: linear-gradient(180deg, rgba(11, 37, 69, .82), rgba(11, 37, 69, .92)), url(../img/ikag-wasatch-strip-1800.webp) center / cover no-repeat !important; }

/* Cards & section polish on existing pages */
.card { border-radius: var(--radius); }
.card.shadow { box-shadow: var(--shadow) !important; }
.rounded-4 { border-radius: var(--radius) !important; }

/* ---------- Shared section helpers ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.eyebrow { font: 600 .75rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.eyebrow.on-dark { color: var(--sky-light); }
.section-title { font: 700 clamp(1.75rem, 3.4vw, 2.5rem)/1.08 var(--font-display); text-transform: uppercase; color: var(--navy); margin: 0 0 .75rem; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: #fff; }

/* ---------- Homepage ---------- */
.home-hero { position: relative; background: var(--navy); color: #fff; padding-bottom: 2rem; }
.home-hero picture img { display: block; width: 100%; height: auto; max-height: 780px; object-fit: cover; object-position: 50% 0%; }
.home-hero .hero-card { position: relative; margin: -110px 0 0; width: min(620px, 100%); background: var(--navy); border-radius: 14px; padding: 2rem 2rem 1.75rem; box-shadow: 0 22px 48px rgba(0, 0, 0, .35); }
.home-hero h1 { font: 700 clamp(2.4rem, 5.4vw, 3.9rem)/.98 var(--font-display); text-transform: uppercase; margin: 0 0 1rem; }
.home-hero h1 span { color: var(--sky-light); display: block; }
.home-hero .hero-lede { color: rgba(255, 255, 255, .92); margin: 0 0 1.25rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.hero-actions .btn { padding: .8rem 1.25rem; font-size: 1rem; }
.btn-ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .85); background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; align-items: center; }
.hero-proof a { color: #fff; text-decoration: none; }
.hero-proof a:hover { text-decoration: underline; }
.hero-proof .stars { letter-spacing: 2px; margin-right: .35rem; }
@media (max-width: 767.98px) {
  .home-hero { padding-bottom: 0; }
  .home-hero picture img { max-height: 300px; object-position: 50% 30%; }
  .home-hero .hero-card { margin: 0; border-radius: 0; box-shadow: none; padding: 1.5rem 0 1.75rem; }
}

.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-bar .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-bar .item { padding: 1rem 1.25rem; border-right: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.trust-bar .item:last-child { border-right: 0; }
.trust-bar b { display: block; font: 700 1.3rem/1.1 var(--font-display); color: var(--navy); text-transform: uppercase; }
@media (max-width: 767.98px) {
  .trust-bar .grid { grid-template-columns: 1fr 1fr; }
  .trust-bar .item:nth-child(2) { border-right: 0; }
  .trust-bar .item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1199.98px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sky); border-radius: 10px; padding: 1.1rem 1.1rem 1rem; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.svc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.svc-card h3 { font: 700 1.2rem/1.15 var(--font-display); text-transform: uppercase; color: var(--navy); margin: 0; }
.svc-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.svc-card .links { margin-top: auto; padding-top: .5rem; font-size: .88rem; font-weight: 600; color: var(--sky); }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1199.98px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card { display: flex; flex-direction: column; gap: .35rem; background: var(--mist); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--ink); transition: background .15s ease; }
.tool-card:hover { background: #DCE8F3; color: var(--ink); }
.tool-card .kicker { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.tool-card h3 { font: 700 1.25rem/1.15 var(--font-display); text-transform: uppercase; color: var(--navy); margin: 0; }
.tool-card p { margin: 0; font-size: .9rem; color: #4A5563; }
.tool-card .go { margin-top: auto; padding-top: .5rem; font-weight: 600; color: var(--sky); font-size: .9rem; }

.story { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: #fff; }
.story picture img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.story .body { padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; justify-content: center; gap: .9rem; align-items: flex-start; }
.story h2 { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--font-display); text-transform: uppercase; margin: 0; }
.story p { margin: 0; color: rgba(255, 255, 255, .9); max-width: 56ch; }
@media (max-width: 767.98px) { .story { grid-template-columns: 1fr; } .story picture img { min-height: 240px; max-height: 320px; } }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.promo { border: 2px dashed var(--sky); border-radius: var(--radius); padding: 1.25rem; background: #fff; display: flex; flex-direction: column; gap: .25rem; }
.promo .amt { font: 700 2.2rem/1 var(--font-display); color: var(--red); }
.promo h3 { font: 600 1.1rem var(--font-display); text-transform: uppercase; color: var(--navy); margin: 0; }
.promo small { color: var(--muted); }

.area-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-list a { display: inline-block; padding: .45rem .9rem; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-size: .9rem; border: 1px solid rgba(255, 255, 255, .25); }
.area-list a:hover { background: #fff; color: var(--navy); }

.badges { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: center; }
.badges img { height: 64px; width: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: .92rem; }
.site-footer .container-xl { padding-block: 3rem 2rem; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr 1.35fr; gap: 2rem; }
.site-footer h2 { font: 600 1rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .4rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .foot-brand img { background: #fff; border-radius: 12px; padding: .5rem .75rem; height: 84px; width: auto; }
.site-footer .foot-brand p { margin: .75rem 0 .25rem; }
.site-footer .foot-phone { font: 700 1.35rem var(--font-display); color: #fff; }
.site-footer .foot-reviews { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1rem; }
.site-footer .foot-reviews a { display: inline-flex; gap: .45rem; align-items: center; }
.site-footer .foot-reviews img { background: #fff; border-radius: 50%; padding: 3px; width: 26px !important; height: 26px !important; margin: 0 !important; }
.site-footer .cities { columns: 2; column-gap: 1.25rem; display: block; font-size: .88rem; }
.site-footer .cities li { margin-bottom: .4rem; break-inside: avoid; }
.legal { background: #071A33; color: rgba(255, 255, 255, .6); font-size: .8rem; }
.legal .container-xl { padding-block: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
.legal a { color: rgba(255, 255, 255, .75); }
@media (max-width: 991.98px) { .site-footer .foot-grid { grid-template-columns: 1fr 1fr; } .site-footer .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call/text/book bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 991.98px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: var(--navy); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 18px rgba(0, 0, 0, .2); }
  .mobile-cta a, .mobile-cta button { display: flex; align-items: center; justify-content: center; gap: .4rem; color: #fff; text-decoration: none; font-weight: 600; padding: .85rem .5rem; border: 0; background: transparent; font-size: 1rem; }
  .mobile-cta a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
  .mobile-cta .book { background: var(--red); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Tool pages ---------- */
.tool-shell { max-width: 880px; margin-inline: auto; }
.tool-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.tool-panel label { font-weight: 600; color: var(--navy); }
.tool-result { border-radius: var(--radius); padding: 1.25rem; background: var(--mist); }
.tool-result.good { background: #E6F4EA; }
.tool-result.warn { background: #FFF4E0; }
.tool-result.bad { background: #FDE8E8; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Work gallery ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.work-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-grid figcaption { position: absolute; left: .6rem; bottom: .6rem; background: rgba(11, 37, 69, .85); color: #fff; font-size: .8rem; font-weight: 600; padding: .3rem .65rem; border-radius: 99px; }
@media (max-width: 767.98px) { .work-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- New-page hero ---------- */
.page-hero { color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(180deg, rgba(11, 37, 69, .78) 0%, rgba(11, 37, 69, .94) 60%, var(--navy) 100%), url(../img/ikag-wasatch-strip-1800.webp) center top / cover no-repeat, var(--navy); }
.page-hero h1 { font: 700 clamp(2rem, 4.6vw, 3.3rem)/1.04 var(--font-display); text-transform: uppercase; margin: 0 0 .75rem; }
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 62ch; margin: 0; font-size: 1.05rem; }
.page-hero .crumbs { font-size: .8rem; margin-bottom: .75rem; color: var(--sky-light); }
.page-hero .crumbs a { color: var(--sky-light); text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.prose { max-width: 70ch; }
.prose h2 { font: 700 1.6rem/1.15 var(--font-display); text-transform: uppercase; color: var(--navy); margin: 2rem 0 .6rem; }
.prose h3 { font: 600 1.2rem/1.2 var(--font-display); text-transform: uppercase; color: var(--navy); margin: 1.5rem 0 .5rem; }
.prose p, .prose li { line-height: 1.7; }
.callout { background: var(--mist); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.split figure { margin: 0; } .split img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.split figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 991.98px) { .split { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.values div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.values h3 { font: 700 1.15rem var(--font-display); text-transform: uppercase; color: var(--navy); margin: 0 0 .35rem; }
.values p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 767.98px) { .values { grid-template-columns: 1fr; } }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 37, 69, .12); }
.tool-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991.98px) { .tool-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tool-grid.cols-3 { grid-template-columns: 1fr; } }
