/* Jenkins Flooring Supply - brand layer on top of styles.css.
   Palette: Yale Blue #2B4162 · Dark Emerald #0B6E4F · Alabaster Grey #E0E0E2 · White.
   Loaded AFTER styles.css so these rules win. */

:root {
  /* Brand tokens - Jenkins Flooring Supply guidelines v1.0 */
  --jfs-blue: #2B4162;      /* Yale Blue - headings / primary UI */
  --jfs-emerald: #0B6E4F;   /* Dark Emerald - accent / links / CTA (used sparingly) */
  --jfs-alabaster: #E0E0E2; /* neutral - surfaces / dividers */
  --jfs-ink: #1A202C;       /* body text on white */

  /* Map brand tokens onto the shared template variables */
  --navy: #2B4162;
  --navy-2: #22344e;
  --navy-ink: #1b2a40;
  --accent: #0B6E4F;
  --accent-soft: #e6f1ec;
  --green: #0B6E4F;
  --grey-200: #E0E0E2;

  /* DM Sans for headings and body (self-hosted via next/font) */
  --font: var(--font-dm, "DM Sans"), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* DM Sans everywhere; Ink for body copy (per guidelines) */
body { font-family: var(--font); color: var(--jfs-ink); }

/* ---------- Buttons ---------- */
/* fully rounded (pill) buttons everywhere, including header CTA and .btn-sm/.btn-lg */
.btn, .btn-sm, .btn-lg { border-radius: 999px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #095b41; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Logo ---------- */
.brand-logo { height: 32px; width: auto; display: block; }
.footer-logo { height: 34px; width: auto; display: block; }

/* ---------- Top banner with prominent phone ---------- */
.topbar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: nowrap; }
.tb-short { display: none; }
.tb-phone {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-weight: 800; font-size: 13.5px; letter-spacing: .01em; color: #fff;
  background: var(--accent); padding: 4px 13px; border-radius: 999px;
  transition: background .15s;
}
.tb-phone svg { flex: none; }
.tb-phone:hover { background: #095b41; color: #fff; }
@media (max-width: 860px) {
  .topbar { justify-content: space-between; gap: 10px; padding-inline: 14px; }
  .tb-full { display: none; }
  .tb-short { display: inline; }
  .tb-tag { font-size: 11.5px; }
  .tb-phone { font-size: 13px; padding: 4px 12px; }
}

/* ---------- Header nav (desktop pills right, hamburger drawer on mobile) ---------- */
.header-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--navy);
  padding: 9px 14px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.header-nav a:hover { color: var(--accent); background: var(--accent-soft); }
/* right-align the nav on desktop without touching the mobile display:none rule */
@media (min-width: 861px) {
  .header-nav { position: static; left: auto; top: auto; transform: none; margin-left: auto; gap: 4px; }
}
.header-cta { flex: none; }
@media (max-width: 860px) { .header-cta { display: none; } }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
/* keep the drawer out of the way (and click-through) until it is open */
.mobile-menu { pointer-events: none; }
body.menu-open .mobile-menu { pointer-events: auto; }
.mm-brand { height: 26px; width: auto; display: block; margin: 2px 4px 18px; }
/* mobile nav drawer slides in from the right; hamburger moves to the right */
.mm-panel { left: auto; right: 0; transform: translateX(100%); }
body.menu-open .mm-panel { transform: none; }
@media (max-width: 860px) { .nav-toggle { margin-left: auto; } }

/* ---------- Hero (full-bleed flooring photo, navy + emerald wash) ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  /* jpg fallback first; the image-set rule below upgrades to webp where supported */
  background:
    linear-gradient(100deg, rgba(11,26,40,.90) 0%, rgba(16,38,58,.72) 40%, rgba(20,45,66,.40) 70%, rgba(11,110,79,.24) 100%),
    linear-gradient(180deg, rgba(11,26,40,.42) 0%, rgba(11,26,40,0) 30%, rgba(8,20,32,.64) 100%),
    url("hero.jpg") center/cover no-repeat,
    var(--jfs-blue);
}
.hero {
  background:
    linear-gradient(100deg, rgba(11,26,40,.90) 0%, rgba(16,38,58,.72) 40%, rgba(20,45,66,.40) 70%, rgba(11,110,79,.24) 100%),
    linear-gradient(180deg, rgba(11,26,40,.42) 0%, rgba(11,26,40,0) 30%, rgba(8,20,32,.64) 100%),
    image-set(url("hero.webp") type("image/webp"), url("hero.jpg") type("image/jpeg")) center/cover no-repeat,
    var(--jfs-blue);
}
.hero:after { opacity: .28; }
/* scroll cue */
.hero-scroll { color: #cfeadd; }
.hero-scroll:hover { color: #eaf7f0; }
.hero-scroll svg { color: #7ed7b4; }
/* keep both hero buttons on one row on mobile (shorter "Products" label) */
.hero-cta-short { display: none; }
/* the fixed bottom bar on mobile covers ~52px; pad the hero so its centered
   content sits centered in the visible area (not hidden behind the bar) */
@media (max-width: 860px) {
  .hero { padding-bottom: 52px; }
}
@media (max-width: 700px) {
  .hero-cta { flex-wrap: nowrap; }
  .hero-cta .btn-accent, .hero-cta .btn-glass { display: inline-flex; flex: 1; width: auto; min-width: 0; justify-content: center; }
  .hero-cta-full { display: none; }
  .hero-cta-short { display: inline; }
}
.hero-glow { background: radial-gradient(circle, rgba(11,110,79,.42), transparent 62%); }
.hero-eyebrow {
  color: #cdeadd; background: rgba(11,110,79,.22); border-color: rgba(19,150,107,.4);
}
.hero-pulse { background: #57c99f; }
@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0 rgba(87,201,159,.6); }
  70%  { box-shadow: 0 0 0 9px rgba(87,201,159,0); }
  100% { box-shadow: 0 0 0 0 rgba(87,201,159,0); }
}
.hero-accent {
  background: linear-gradient(100deg, #E0E0E2 0%, #bfe3d3 55%, #eaf7f0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-trust div svg { color: #7ed7b4; }

/* hero trust pills as external trust/review links (BBB, Angi, Chamber) */
.hero-trust a {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 8px 14px; font-size: 12px; color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s, transform .15s;
}
.hero-trust a:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.42); transform: translateY(-1px); }
.hero-trust a svg { color: #7ed7b4; flex: none; }
.hero-trust a b { display: inline; font-size: 13px; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.hero-trust-logo { height: 22px; width: auto; display: block; flex: none; }

/* ---------- Trust strip: static row (desktop) -> auto-looping carousel (mobile) ---------- */
.trust-strip .wrap { display: block; }
.trust-track { display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; align-items: center; }
.trust-clone { display: none; }
@media (max-width: 700px) {
  .trust-strip .wrap { overflow: hidden; padding: 14px 0; }
  .trust-track { flex-wrap: nowrap; gap: 0; width: 100%; animation: trustCycle 12s infinite; will-change: transform; }
  .trust-track .trust-item { flex: 0 0 100%; justify-content: center; }
  .trust-clone { display: flex; }
}
@keyframes trustCycle {
  0%, 18%  { transform: translateX(0%); }
  22%, 42% { transform: translateX(-100%); }
  46%, 66% { transform: translateX(-200%); }
  70%, 90% { transform: translateX(-300%); }
  100%     { transform: translateX(-400%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .trust-track { animation: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .trust-track .trust-item { scroll-snap-align: center; }
}

/* ---------- Section rhythm + headings ---------- */
.section { padding-top: clamp(48px, 7vw, 78px); padding-bottom: clamp(48px, 7vw, 78px); }
.catalog-head { display: flex; align-items: baseline; gap: 12px; }
.catalog-head h2, .cta-band h2 { letter-spacing: -.02em; }
.catalog-head h2 {
  margin: 0; color: var(--navy);
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.05rem); font-weight: 800;
}
.section-lead {
  max-width: 660px; margin: 8px 0 2px;
  color: var(--grey-500); font-size: 15.5px; line-height: 1.6;
}

/* ---------- Category cards ---------- */
.cats {
  display: grid; gap: 18px; margin-top: 26px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.cat-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  border: 1px solid var(--grey-200); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .18s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.cat-ic {
  width: 48px; height: 48px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.cat-card h3 { margin: 0; font-size: 16.5px; color: var(--navy); letter-spacing: -.01em; }
.cat-card p { margin: 0; font-size: 13.5px; color: var(--grey-500); line-height: 1.55; }
.cat-soon {
  margin-top: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
}

/* ---------- Contact CTA band ---------- */
.cta-band {
  margin-top: 8px; text-align: center; color: #fff;
  /* jpg fallback first; the image-set rule below upgrades to webp where supported */
  background:
    linear-gradient(120deg, rgba(9, 20, 32, .86), rgba(16, 38, 58, .80)),
    url("cta.jpg") center/cover no-repeat,
    var(--navy);
  border-radius: 16px; padding: clamp(30px, 5vw, 52px); box-shadow: var(--shadow-md);
}
.cta-band {
  background:
    linear-gradient(120deg, rgba(9, 20, 32, .86), rgba(16, 38, 58, .80)),
    image-set(url("cta.webp") type("image/webp"), url("cta.jpg") type("image/jpeg")) center/cover no-repeat,
    var(--navy);
}
.cta-band h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.cta-band p { max-width: 540px; margin: 0 auto 22px; color: #e4ecf5; font-size: 16px; line-height: 1.6; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
/* full-bleed variant: image + overlay span the whole width, no rounded card */
.cta-band.cta-full { margin: 0; border-radius: 0; box-shadow: none; padding: clamp(52px, 8vw, 90px) 0; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer (navy, light logo) ---------- */
.site-footer { background: var(--navy); color: #c3cede; border-top: none; }
.site-footer h4 { color: #fff; }
.site-footer a { color: #c3cede; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-tagline { color: #a6b4c8; }
.footer-copy { color: #8698b0; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 560px) {
  .header-nav a { padding: 8px 11px; font-size: 14px; }
  .brand-logo { height: 26px; }
}

/* ---------- Desktop content width ---------- */
:root { --maxw: 1440px; }

/* ---------- Catalog grid + reference product cards ---------- */
.result-count { font-size: 13px; color: var(--grey-500); white-space: nowrap; }
/* auto-fill (not auto-fit) so a single result stays card-sized instead of
   stretching across the whole row */
.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 20px; }

/* search + color-category filters */
.catalog-controls { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.catalog-search { position: relative; max-width: 420px; }
.catalog-search > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--grey-500); pointer-events: none; }
.catalog-search input { width: 100%; height: 46px; padding: 0 42px; border: 1.5px solid var(--grey-300); border-radius: 999px; font-size: 15px; font-family: var(--font); color: var(--navy-ink); background: #fff; }
.catalog-search input::-webkit-search-cancel-button { display: none; }
.catalog-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.catalog-search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: none; background: var(--grey-100); color: var(--grey-500); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.catalog-search-clear:hover { background: var(--grey-200); color: var(--navy-ink); }
.catalog-controls .filters { margin-bottom: 0; }
.chip-count { font-size: 11.5px; font-weight: 700; opacity: .55; margin-left: 2px; }
.chip.active .chip-count { opacity: .85; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* keep the color filters wrapping on mobile (the base template scrolls them) */
@media (max-width: 600px) {
  .catalog-controls .filters { flex-wrap: wrap; overflow-x: visible; margin: 0; padding: 0; }
}
.card-img { background: linear-gradient(135deg, #eef1f5, var(--jfs-alabaster)); display: grid; place-items: center; }
.card-ph { font-family: var(--font); font-weight: 800; font-size: 44px; line-height: 1; color: var(--navy); opacity: .2; }
/* hover image carousel */
.card-imgtrack { display: flex; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.card-imgtrack img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .card-imgtrack img { transform: none; }
.card-dots { position: absolute; left: 0; right: 0; bottom: 9px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.card-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 3px rgba(0, 0, 0, .35); cursor: pointer; transition: background .15s, transform .15s; }
.card-dot.on { background: #fff; transform: scale(1.3); }
/* 2-up product cards on mobile, scaled down */
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card-name { font-size: 14px; }
  .card-spec { font-size: 12px; margin-bottom: 10px; }
  .card-price { font-size: 11.5px; }
  .card-price b { font-size: 12.5px; }
  .card-cta { font-size: 12px; }
}
.card-cat { background: rgba(43, 65, 98, .92); color: #fff; border-color: transparent; }
.card-price { display: flex; flex-direction: column; }
.card-price b { font-size: 13.5px; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Featured products carousel (homepage) ---------- */
.featured-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.featured-head h2 { margin: 0; color: var(--navy); font-size: clamp(1.55rem, 1.2rem + 1vw, 2.05rem); font-weight: 800; letter-spacing: -.02em; }
.featured-head .section-lead { margin: 6px 0 0; }
.featured-viewall { white-space: nowrap; }
.featured-carousel { position: relative; margin-top: 22px; }
.featured-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: none; -ms-overflow-style: none; }
.featured-track::-webkit-scrollbar { display: none; }
.featured-track .card { width: clamp(230px, 23vw, 290px); flex: none; scroll-snap-align: start; }
.carousel-arrow { position: absolute; top: calc(50% - 8px); transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--grey-200); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); z-index: 2; transition: border-color .15s, color .15s; }
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent); }
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }
@media (max-width: 560px) { .carousel-prev { left: 2px; } .carousel-next { right: 2px; } }

/* ---------- Product detail page (PDP) ---------- */
.pdp-img { background: linear-gradient(135deg, #eef1f5, var(--jfs-alabaster)); display: grid; place-items: center; }
.pdp-ph { font-weight: 800; font-size: clamp(72px, 12vw, 108px); line-height: 1; color: var(--navy); opacity: .18; }
.pdp .lead { color: var(--jfs-ink); font-size: 16px; line-height: 1.7; max-width: 56ch; }
.feature-badges { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-badges li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--accent-soft); border: 1px solid #cfe6dc; padding: 6px 11px; border-radius: 999px; }
.feature-badges svg { color: var(--accent); flex: none; }
.pdp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 26px; }
.detail-copy { font-size: 15px; line-height: 1.75; color: var(--grey-700); margin: 0 0 14px; max-width: 74ch; }

/* product image gallery thumbnails */
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb { width: 74px; height: 74px; padding: 0; border: 1.5px solid var(--grey-200); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:hover { border-color: var(--grey-300); }
.pdp-thumb.active { border-color: var(--accent); }

/* ---------- Similar products row ---------- */
.related { margin: 56px 0 8px; }
.related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.related-head h2 { margin: 0; color: var(--navy); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; }
.related-all { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--accent); }
.related-all:hover { gap: 8px; }
.related-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (min-width: 900px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Lead-capture popup (10% off) ---------- */
.lead-pop-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10, 22, 34, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: leadFade .2s ease both;
}
.lead-pop {
  position: relative; width: 100%; max-width: 440px;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(8, 20, 32, .4);
  padding: clamp(26px, 4vw, 38px); text-align: center;
  animation: leadPop .28s cubic-bezier(.2, .7, .2, 1) both;
}
.lead-pop-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  display: grid; place-items: center; border: none; border-radius: 50%;
  background: var(--grey-100); color: var(--grey-500); cursor: pointer; transition: background .15s, color .15s;
}
.lead-pop-close:hover { background: var(--grey-200); color: var(--jfs-ink); }
.lead-pop-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.lead-pop h2 { margin: 0 0 10px; color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); line-height: 1.1; letter-spacing: -.02em; }
.lead-pop-sub { margin: 0 auto 22px; max-width: 34ch; color: var(--grey-500); font-size: 15px; line-height: 1.6; }
.lead-pop-form { display: flex; flex-direction: column; gap: 10px; }
.lead-pop-form input {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--jfs-ink);
  padding: 14px 16px; border: 1.5px solid var(--grey-300); border-radius: 12px; background: #fff;
}
.lead-pop-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lead-pop-form .btn { justify-content: center; }
.lead-pop-err { margin: 12px 0 0; color: #b23b2c; font-size: 13.5px; }
.lead-pop-decline { margin-top: 16px; background: none; border: none; color: var(--grey-500); font-family: var(--font); font-size: 13.5px; cursor: pointer; text-decoration: underline; }
.lead-pop-decline:hover { color: var(--jfs-ink); }
.lead-pop-success .lead-pop-check {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.lead-pop-code {
  margin: 0 auto 22px; display: inline-block; font-weight: 800; font-size: 22px; letter-spacing: .12em;
  color: var(--navy); background: var(--jfs-alabaster); border: 1.5px dashed var(--jfs-blue);
  padding: 12px 24px; border-radius: 12px;
}
@keyframes leadFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes leadPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lead-pop-overlay, .lead-pop { animation: none; } }

/* ---------- Homepage lead-magnet band (floats over the hero/white split) ---------- */
/* Desktop: JS sets the exact margin-top (-half the box height) so the box centers
   on the hero/white split (-100px here is the pre-hydration fallback).
   Mobile: it becomes a normal section above the products (no float). */
.lm-wrap { position: relative; z-index: 3; margin-top: -100px; margin-bottom: clamp(44px, 6vw, 72px); }
.lm-badge-mobile { display: none; }
@media (max-width: 760px) {
  /* Balance the gap: the products section below already adds its own top padding,
     so match that as the top margin and drop the bottom margin (symmetric). */
  .lm-wrap { margin-top: clamp(3.5rem, 9vw, 4.5rem); margin-bottom: 0; }
  .lead-magnet { padding: clamp(20px, 5vw, 28px); box-shadow: 0 16px 40px rgba(8, 20, 32, .28); }
  .lm-form input { height: 46px; font-size: 15px; }
  .lm-form .btn { padding: 12px 18px; }
}
@media (max-width: 640px) {
  .lm-copy h2, .lm-copy p { display: none; }
  .lm-badge-desktop { display: none; }
  .lm-badge-mobile { display: inline; }
}
.lead-magnet {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center;
  background: linear-gradient(120deg, #0b6e4f 0%, #0a5c43 55%, #094e39 100%);
  border-radius: 20px; padding: clamp(22px, 3vw, 34px); color: #fff; box-shadow: 0 26px 60px rgba(8, 20, 32, .34);
}
.lm-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #eafff5; background: rgba(255,255,255,.16); padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.lm-copy h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -.02em; color: #fff; }
.lm-copy p { margin: 0; color: #d5f0e5; font-size: 15px; line-height: 1.6; max-width: 46ch; }
.lm-form { display: grid; gap: 10px; }
.lm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lm-form input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: #fff; font-size: 16px; font-family: var(--font); }
.lm-form input::placeholder { color: rgba(255,255,255,.7); }
.lm-form input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.2); }
.lm-form .btn { width: 100%; justify-content: center; }
.lm-err { margin: 2px 0 0; font-size: 13px; color: #ffe0dc; }
.lm-success { text-align: center; }
.lm-success-label { margin: 0 0 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #d5f0e5; }
.lm-check { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; }
.lm-success-note { margin: 0; font-size: 14.5px; color: #eafff5; }
@media (max-width: 480px) { .lm-row { grid-template-columns: 1fr; } }

/* ---------- Home services cards (light brand-blue wash) ---------- */
.home-services { background: rgba(43, 65, 98, .05); padding-block: clamp(3rem, 7vw, 4.5rem); }
.home-services .card-grid-3 { margin-top: 0; }
.home-services .info-card { background: #fff; border-color: var(--grey-100); }
/* compact the service cards on mobile so all three fit on load */
@media (max-width: 640px) {
  .svc-cards { gap: 14px; }
  .svc-cards .info-card { padding: 16px 18px; }
  .svc-cards .info-card p { display: none; }
  .svc-cards .info-ic { width: 42px; height: 42px; margin-bottom: 10px; }
  .svc-cards .info-card h3 { margin-bottom: 4px; }
  .svc-cards .info-card .info-link { margin-top: 8px; }
}

/* ---------- "Why Jenkins" trust cards (below products) ---------- */
.why-sec { background: rgba(11, 110, 79, .05); padding-block: clamp(3rem, 7vw, 4.5rem); }
.why-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 40px); }
.why-head h2 { margin: 0 0 10px; color: var(--navy); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); font-weight: 800; letter-spacing: -.02em; }
.why-head p { margin: 0; color: var(--grey-500); font-size: 16px; line-height: 1.6; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--grey-100); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-sm); }
.why-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 0 16px; }
.why-card h3 { margin: 0 0 8px; color: var(--accent); font-size: 16.5px; letter-spacing: -.01em; }
.why-card p { margin: 0; color: var(--grey-500); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .lead-magnet { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Footer social (navy footer) ---------- */
.site-footer .footer-social a { background: rgba(255,255,255,.1); color: #fff; }
.site-footer .footer-social a:hover { background: var(--accent); color: #fff; }
.footer-phone { display: inline-flex; align-items: center; gap: 9px; margin: 2px 0 16px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.footer-phone svg { color: #7ed7b4; flex: none; }
.footer-phone:hover { color: #eaf7f0; }
/* prominent phone on the contact page */
.contact-phone a { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.contact-phone a:hover { color: var(--accent); }
/* contact form: even spacing on mobile (stacked cf-row gap doubled the rhythm) */
@media (max-width: 760px) {
  .contact-form .cf-row { gap: 0; }
}

/* ---------- Google review landing page (/review) ---------- */
.review-main { min-height: calc(100vh - 210px); display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) 20px; background: linear-gradient(120deg, #eef5f4 0%, #e1efee 55%, #d3e7e5 100%); }
.review-card { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--grey-200); border-radius: 22px; box-shadow: var(--shadow-lg); padding: clamp(30px, 5vw, 48px); text-align: center; }
.review-logo { height: 34px; width: auto; margin: 0 auto 22px; display: block; }
.review-stars { display: flex; justify-content: center; gap: 4px; color: #f4b400; margin: 0 0 18px; }
.review-card h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); letter-spacing: -.02em; color: var(--navy); margin: 0 0 12px; }
.review-lead { font-size: 15.5px; line-height: 1.7; color: var(--grey-700); max-width: 44ch; margin: 0 auto 26px; }
.review-cta { display: inline-flex; align-items: center; gap: 10px; }
.review-cta svg { background: #fff; border-radius: 4px; padding: 2px; }
.review-alt { margin: 22px 0 0; font-size: 13.5px; color: var(--grey-500); }
.review-alt a { color: var(--accent); font-weight: 600; }

/* ---------- Photo-background sub-page heroes (services) ---------- */
.subhero.bg-img { color: #fff; border-bottom: none; background-color: var(--navy); background-size: cover; background-position: center; background-repeat: no-repeat; }
.subhero.bg-img::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(9, 20, 32, .84) 0%, rgba(14, 32, 50, .66) 52%, rgba(11, 110, 79, .40) 100%); }
.subhero.bg-img:after { opacity: .14; }
.subhero.bg-img h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .45); }
.subhero.bg-img .subhero-eyebrow { color: #bfe3d3; }
.subhero.bg-img .subhero-sub { color: #e7eef7; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.subhero.bg-img .breadcrumb a { color: rgba(255, 255, 255, .72); }
.subhero.bg-img .breadcrumb a:hover { color: #fff; }
.subhero.bg-img .breadcrumb .crumb-sep { color: rgba(255, 255, 255, .4); }
.subhero.bg-img .breadcrumb .crumb-current { color: #fff; }
/* jpg fallback first, webp upgrade second */
.subhero.sh1 { background-image: url("sh1.jpg"); }
.subhero.sh1 { background-image: image-set(url("sh1.webp") type("image/webp"), url("sh1.jpg") type("image/jpeg")); }
.subhero.sh2 { background-image: url("sh2.jpg"); }
.subhero.sh2 { background-image: image-set(url("sh2.webp") type("image/webp"), url("sh2.jpg") type("image/jpeg")); }
.subhero.sh3 { background-image: url("sh3.jpg"); }
.subhero.sh3 { background-image: image-set(url("sh3.webp") type("image/webp"), url("sh3.jpg") type("image/jpeg")); }
.subhero.sh4 { background-image: url("sh4.jpg"); }
.subhero.sh4 { background-image: image-set(url("sh4.webp") type("image/webp"), url("sh4.jpg") type("image/jpeg")); }
.subhero.sh5 { background-image: url("sh5.jpg"); }
.subhero.sh5 { background-image: image-set(url("sh5.webp") type("image/webp"), url("sh5.jpg") type("image/jpeg")); }
.subhero.contact { background-image: url("contact.jpg"); }
.subhero.contact { background-image: image-set(url("contact.webp") type("image/webp"), url("contact.jpg") type("image/jpeg")); }
.subhero.about { background-image: url("about.jpg"); }
.subhero.about { background-image: image-set(url("about.webp") type("image/webp"), url("about.jpg") type("image/jpeg")); }

/* ---------- Breadcrumbs + structured sub-page bodies ---------- */
.subhero .breadcrumb { padding: 0 0 14px; }
.breadcrumb .crumb-current { margin: 0; color: var(--navy-ink); font-weight: 600; }

.section-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.svc-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
.svc-para { font-size: 16px; line-height: 1.8; color: var(--grey-700); margin: 0 0 16px; max-width: 62ch; }
.svc-para:last-child { margin-bottom: 0; }
.svc-h2 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); letter-spacing: -.01em; color: var(--navy); font-weight: 800; margin: 0 0 14px; }

/* flat, rounded, lightly brushed brand-tinted containers */
.panel { background: rgba(11, 110, 79, .05); border: 1px solid rgba(11, 110, 79, .14); border-radius: 16px; padding: clamp(22px, 2.5vw, 30px); }
.panel-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 18px; letter-spacing: -.01em; }
.panel-head svg { color: var(--accent); flex: none; }
.panel .btn { margin-top: 20px; }
.svc-aside { position: sticky; top: 90px; }

.svc-includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.svc-includes li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--grey-700); line-height: 1.5; }
.svc-includes svg { color: var(--accent); flex: none; margin-top: 2px; }

.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.fact-list li { display: flex; gap: 11px; align-items: center; font-size: 14.5px; color: var(--grey-700); }
.fact-list li svg { color: var(--accent); flex: none; }
.fact-list b { color: var(--navy); font-weight: 700; }

/* light-brand tint the sub-page cards/callouts to match the panels (rounded) */
.info-card { background: rgba(11, 110, 79, .04); border-color: rgba(11, 110, 79, .12); }
.info-card:hover { border-color: var(--accent); }
.info-card .info-link { margin-top: 14px; }

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
}
