/* =========================================================
   US Roof & Restoration - modernized site
   Brand: red #eb2d2e · navy #002e5b · white
   ========================================================= */

:root {
  --red: #eb2d2e;          /* brand red: graphics, icons, display type */
  --red-dark: #c81f20;
  /* Brand red is only 4.24:1 against white and 3.1:1 on the page background,
     which fails WCAG AA for text. Two derived reds carry the text load:
     --red-strong sits behind white text, --red-ink is red text on a light
     surface. Both stay close enough to the logo to read as the same red. */
  --red-strong: #d92223;   /* red fill behind white text: 5.0:1 */
  --red-ink: #a81a1b;      /* red text on light surfaces: 4.5:1+ everywhere */
  --red-ink-dark: #8b1314;
  --navy: #002e5b;
  --navy-dark: #001d3a;
  --navy-light: #143e6d;
  --ink: #1c2430;
  --muted: #4a5464;
  --line: #b3bfd0;
  --bg: #d5dde9;
  --bg-soft: #cbd4e2;
  --bg-alt: #c1cbdb;
  --white: #ffffff;
  --surface: #eaeff6;   /* card/panel faces: off-white, still lifts off --bg */
  --shadow-sm: 0 1px 3px rgba(0, 32, 70, .08), 0 1px 2px rgba(0, 32, 70, .06);
  --shadow-md: 0 6px 20px rgba(0, 32, 70, .10);
  --shadow-lg: 0 18px 50px rgba(0, 32, 70, .18);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1200px;
  --header-h: 86px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--red-ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-ink-dark); }
/* links sitting inside a run of text need more than colour to be identifiable */
.prose a, .area-note a, .lead a, .footer-bottom a, .info-list a { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .5px;
  color: var(--navy);
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: clamp(56px, 8vw, 110px) 0; }

/* ---------- utility / kicker ---------- */
.kicker {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1rem;
  color: var(--red-ink);
  margin-bottom: 14px;
}
.kicker::before { content: "★ "; }

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.lead { font-size: 1.18rem; color: var(--muted); }
.text-center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  font-size: 1.15rem;
  padding: 14px 30px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--red-strong); color: #fff; box-shadow: 0 8px 22px rgba(235, 45, 46, .35); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(235, 45, 46, .45); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .92rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--red); }
.topbar .tb-left { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-item svg { width: 16px; height: 16px; fill: var(--red); flex: none; }
.topbar .tb-social a { display: inline-flex; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #dde4ee;
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand img { height: 68px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 12px 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600; font-size: 1.18rem; letter-spacing: .5px;
  text-transform: uppercase; color: var(--navy);
  white-space: nowrap;
}
.nav-menu > li > a:hover, .nav-menu > li.current > a { color: var(--red-ink); }
.nav-menu > li.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 6px; color: var(--muted); }

/* dropdown */
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; list-style: none; margin: 0; padding: 8px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s var(--ease);
}
.nav-menu > li.has-sub:hover .submenu,
.nav-menu > li.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: 9px 14px; border-radius: 7px;
  font-family: "Barlow Condensed", sans-serif; font-size: 1.08rem; letter-spacing: .4px;
  text-transform: uppercase; color: var(--navy); font-weight: 600;
}
.submenu a:hover { background: var(--bg-soft); color: var(--red-ink); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 1.5rem; color: var(--navy); letter-spacing: .5px;
}
.nav-phone:hover { color: var(--red); }

/* hamburger */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero {
  position: relative; min-height: clamp(500px, 68vh, 640px);
  display: grid;
  color: #fff; overflow: hidden; isolation: isolate;
  padding: 0;   /* override the global section padding so slides go edge-to-edge */
}
/* full-bleed backdrop carousel behind the copy */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-photo.active { opacity: 1; }
/* darkening veil so the headline stays readable over motion */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.44) 50%, rgba(0,0,0,.28) 100%),
    linear-gradient(to top, rgba(0,8,18,.68) 0%, rgba(0,8,18,.10) 55%, rgba(0,8,18,0) 80%);
}
.hero-slide {
  grid-area: 1 / 1; position: relative; z-index: 2;
  display: flex; align-items: flex-end;
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-top: 40px; padding-bottom: 56px;
}
/* Bottom-anchored editorial block: small right-aligned support line, then an
   oversized two-line headline whose second line is indented, with the CTA
   sitting on that second line. */
/* Bottom-anchored editorial block, after the ROVEN reference: a small
   right-aligned support line beside the first headline line, an oversized
   two-line headline whose second line kicks back left past the support
   column, and a pill CTA sharing that second line.
   The <h1> is display:contents so its two lines become inline-level siblings
   of the CTA and share one line box - that is what makes the CTA hug the
   end of line 2 no matter how long the headline is. */
.hero-copy {
  --sup-w: 235px;                     /* support column */
  --sup-gap: 34px;
  --sup-col: calc(var(--sup-w) + var(--sup-gap));
  --head-size: clamp(2.9rem, 7.2vw, 6.6rem);
  --head-lh: .9;
  position: relative;
  padding-left: var(--sup-col);
}
.hero-support {
  position: absolute; left: 0; top: 0; margin: 0;
  width: var(--sup-w); text-align: right;
  /* as tall as headline line 1, so the text bottoms out on its baseline */
  height: calc(var(--head-size) * var(--head-lh));
  display: flex; flex-direction: column; justify-content: flex-end;
  font-size: .98rem; line-height: 1.45; color: rgba(255,255,255,.82);
}
.hero-head, .hero .hero-head-alt { display: contents; }
.hero-head .hl-1, .hero-head .hl-2 {
  font-family: "Barlow Condensed", "Inter", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
  font-size: var(--head-size); line-height: var(--head-lh);
  color: var(--red); text-shadow: 0 3px 30px rgba(0,0,0,.6);
}
.hero-head .hl-1 { display: block; }
.hero-head .hl-2 {
  display: inline;
  margin-left: calc(clamp(0px, 6.5vw, 96px) - var(--sup-col));
}
/* inline pill CTA riding the second headline line */
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  vertical-align: baseline; margin-left: 28px;
  background: #fff; color: var(--ink);
  font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px; font-size: 1.05rem;
  padding: 9px 9px 9px 24px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hero-cta:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.hero-cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--red);
}
.hero-cta-arrow svg { width: 18px; height: 18px; fill: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-strong); color: #fff; font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; font-size: .95rem; margin-bottom: 26px;
}
/* trust strip */
.trust-strip { background: var(--navy); color: #fff; }
.trust-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.trust-item { text-align: center; }
.trust-item .num { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 2.6rem; color: #fff; line-height: 1; }
.trust-item .num span { color: var(--red); }
.trust-item .lbl { text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; color: rgba(255,255,255,.75); margin-top: 6px; }

/* =========================================================
   GENERIC LAYOUT HELPERS
   ========================================================= */
.bg-soft { background: var(--bg-soft); }
.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .lead { color: rgba(255,255,255,.85); }
.bg-navy .kicker { color: #ff8a8b; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(235,45,46,.10); color: var(--red);
}
.card .icon svg { width: 30px; height: 30px; fill: currentColor; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* feature with image */
.feature-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-float { display: inline-flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow-md); }
.badge-float img { height: 70px; width: auto; }
.badge-float .bf-num { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 2.2rem; color: var(--navy); line-height: 1; }
.badge-float .bf-num span { color: var(--red); }

/* spec list */
.spec-list { list-style: none; padding: 0; margin: 0 0 28px; }
.spec-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list svg { width: 22px; height: 22px; fill: var(--red); flex: none; margin-top: 3px; }

/* ---------- video section ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-card video { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 9; }
.video-card .vc-label {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(0,29,58,.82); color: #fff; padding: 8px 16px; border-radius: 999px;
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem;
}
.video-card .mute-toggle {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,29,58,.7); color: #fff; display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.video-card .mute-toggle:hover { background: var(--red); }
.video-card .mute-toggle svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- testimonials ---------- */
.quote-card { background: var(--surface); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; }
.quote-card::before { content: "“"; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: rgba(235,45,46,.18); position: absolute; top: 6px; left: 20px; }
.quote-card .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 12px; }
.quote-card p { font-size: 1.05rem; color: var(--ink); position: relative; z-index: 1; }
.quote-card .author { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); margin-top: 8px; }

/* ---------- portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.portfolio-item:hover img { transform: scale(1.07); }
.portfolio-item .pi-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff;
  background: linear-gradient(to top, rgba(0,29,58,.88) 0%, rgba(0,29,58,.20) 55%, transparent 100%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.portfolio-item:hover .pi-overlay { opacity: 1; }
.portfolio-item .pi-overlay h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.portfolio-item .pi-overlay span { color: #ff8a8b; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; font-family: "Barlow Condensed", sans-serif; }

/* ---------- booking ---------- */
.booking-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.booking-grid .form { margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-embed iframe { width: 100%; border: 0; min-height: 720px; display: block; border-radius: var(--radius); }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- service area ---------- */
.town-grid { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 920px; }
.town-grid li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 10px; text-align: center;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.12rem;
  letter-spacing: .5px; text-transform: uppercase; color: var(--navy);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.town-grid li:hover { transform: translateY(-3px); color: var(--red); border-color: var(--red); }
.town-grid li a { display: block; color: inherit; }
.town-grid li:hover a { color: var(--red); }
/* ---------- service-area map ---------- */
.area-map-wrap { max-width: 1000px; margin: 0 auto; }
.area-map { display: block; width: 100%; height: auto; overflow: hidden; }
.am-land { fill: var(--surface); stroke: var(--navy); stroke-width: 2.2; }
.am-wy { fill: #c3cddc; stroke-width: 1.8; }
/* the 150-mile radius around the Billings shop */
.am-ring {
  fill: none; stroke: var(--red);
  stroke-width: 1.6; stroke-dasharray: 7 7;
}
.am-state {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em;
  font-size: 34px; fill: var(--navy); opacity: .16;
}
.am-state-wy { font-size: 26px; opacity: .2; }
/* markers sit outside the fade mask so labels stay legible */
.am-dot { fill: var(--navy); stroke: var(--surface); stroke-width: 1.6; }
.am-leader { stroke: var(--navy); stroke-width: 1; opacity: .45; }
.am-label {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  font-size: 15px; fill: var(--navy); dominant-baseline: middle;
}
.am-city { cursor: pointer; }
.am-city .am-dot, .am-city .am-label { transition: fill .2s var(--ease); }
.am-city:hover .am-dot { fill: var(--red); }
.am-city:hover .am-label { fill: var(--red); }
.am-home .am-dot { fill: var(--red); r: 7; }
.am-home .am-label { font-size: 19px; font-weight: 700; fill: var(--red); }

/* the map needs room for 20 labels; below that, fall back to the pill list */
.town-grid-compact { display: none; }
@media (max-width: 860px) {
  .area-map-wrap { display: none; }
  .town-grid-compact { display: grid; }
}

.area-note { text-align: center; margin: 30px auto 0; max-width: 640px; color: var(--muted); }
@media (max-width: 760px) { .town-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .town-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- services: staggered cards ---------- */
/* Four cards on one row, alternately dropped, each with a thin line icon,
   a short blurb and a photo at the bottom. */
.svc-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  align-items: start; padding-bottom: 56px;
}
.svc-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* margin, not transform: .reveal.in resets transform and would cancel it */
.svc-card:nth-child(even) { margin-top: 56px; }
.svc-card:hover { box-shadow: var(--shadow-md); }
.svc-ico { display: block; color: var(--red); margin-bottom: 16px; }
.svc-ico svg { width: 38px; height: 38px; }
.svc-card h3 { font-size: 1.32rem; margin: 0 0 8px; }
.svc-card p { color: var(--muted); font-size: .97rem; line-height: 1.55; margin: 0 0 20px; }
.svc-media { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
/* dark overlay so the card photos sit in the same register as the hero */
.svc-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,8,18,.58) 0%, rgba(0,8,18,.34) 100%);
}
.svc-media img { width: 100%; height: 210px; object-fit: cover; object-position: center 62%; }
/* roofworker.jpg is a 1500x664 panorama: centering crops to empty sky between
   the two crew members, so frame the left of the shot instead */
.svc-media-low img { object-position: 14% center; }

@media (max-width: 980px) {
  .svc-row { grid-template-columns: repeat(2, 1fr); padding-bottom: 40px; }
  .svc-card:nth-child(even) { margin-top: 40px; }
}
@media (max-width: 620px) {
  .svc-row { grid-template-columns: 1fr; padding-bottom: 0; }
  .svc-card:nth-child(even) { margin-top: 0; }
  .svc-media img { height: 200px; }
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red-strong) 0%, var(--red-dark) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 620px; margin: 0 auto 28px; }
.cta-band .btn-white { background: #fff; color: var(--red-ink); }
.cta-band .btn-white:hover { background: var(--navy); color: #fff; }

/* ---------- page banner ---------- */
.page-banner { position: relative; color: #fff; padding: clamp(70px, 12vw, 130px) 0 clamp(50px, 8vw, 90px); background-size: cover; background-position: center; isolation: isolate; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,29,58,.93), rgba(0,46,91,.72)); z-index: -1; }
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.8); font-size: 1rem; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); margin: 0 6px; }

/* prose */
.prose p { color: var(--ink); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink); }
.prose ul li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(0,46,91,.08); display: grid; place-items: center; flex: none; }
.info-list .ico svg { width: 22px; height: 22px; fill: var(--navy); }
.info-list .it-label { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-size: .9rem; }
.info-list .it-value { font-weight: 600; color: var(--navy); }
.info-list a.it-value { color: var(--navy); }
.info-list a.it-value:hover { color: var(--red); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.form label .req { color: var(--red); }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; background: var(--bg-soft); transition: border .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,46,91,.12); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: .85rem; color: var(--muted); }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- blog ---------- */
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .pc-img { aspect-ratio: 16/10; overflow: hidden; }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card .pc-meta { text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; color: var(--red); font-family: "Barlow Condensed", sans-serif; margin-bottom: 8px; }
.post-card h3 { font-size: 1.35rem; }
.post-card p { color: var(--muted); }
.post-card .pc-link { margin-top: auto; font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.78); padding-top: 72px; }
.site-footer h3 { color: #fff; font-size: 1.35rem; margin-bottom: 18px; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.site-footer .f-logo { background: #fff; padding: 14px 18px; border-radius: 12px; display: inline-block; margin-bottom: 18px; }
.site-footer .f-logo img { height: 56px; }
.site-footer p { color: rgba(255,255,255,.72); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.78); }
.footer-links a:hover { color: var(--red); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact svg { width: 20px; height: 20px; fill: var(--red); flex: none; margin-top: 4px; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: var(--red); }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.10); display: grid; place-items: center; transition: background .2s var(--ease); }
.social-row a:hover { background: var(--red); }
.social-row svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; text-align: center; font-size: .9rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: #fff; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo { transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* condensed desktop nav - keep everything on one line between the
   mobile breakpoint (900px) and full width */
@media (min-width: 901px) and (max-width: 1280px) {
  .nav { gap: 14px; }
  .nav-menu { gap: 0; }
  .nav-menu > li > a { padding: 10px 9px; font-size: 1.02rem; letter-spacing: .3px; }
  .nav-phone { display: none; }   /* still shown in the top bar */
  .brand img { height: 58px; }
}

@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-cta .nav-phone { display: none; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; gap: 0; padding: 12px 18px 28px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    /* keep the closed menu fully off-screen and non-rendering so its white
       panel can't peek over the top bar and hide the phone number */
    transform: translateY(-120%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
    border-top: 1px solid var(--line);
  }
  body.nav-open .nav-menu { transform: translateY(0); visibility: visible; transition: transform .35s var(--ease), visibility 0s linear 0s; }
  .nav-menu > li > a { padding: 14px 6px; font-size: 1.4rem; border-bottom: 1px solid var(--line); }
  .nav-menu > li.has-sub > a::after { float: right; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 16px; }
  .grid-3, .grid-4, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .video-grid, .contact-grid { grid-template-columns: 1fr; }
  .split .split-media { order: -1; }
  /* .hero-inner overrides the container's side padding to 0; restore a gutter
     on smaller screens so the hero heading and buttons don't run edge-to-edge */
  .hero-inner { padding-left: 24px; padding-right: 24px; }
  .hero-copy { padding-left: 0; }
  .hero-support {
    position: static; width: auto; height: auto; text-align: left;
    display: block; margin-bottom: 16px; max-width: 34ch;
  }
  .hero-head .hl-1, .hero-head .hl-2 { display: block; margin-left: 0; }
  .hero-cta { margin-left: 0; margin-top: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { display: none; }   /* hide the contact bar on phones - it looks cluttered wrapped */
  .nav-cta .btn-primary { display: none; }  /* hamburger + topbar phone cover the CTA on small screens */
  .brand img { height: 54px; }
  .topbar .tb-left { gap: 14px; }
  .topbar { font-size: .82rem; }
  .grid-2, .grid-3, .grid-4, .portfolio-grid { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .trust-strip .container { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   LARGE DESKTOPS / ULTRAWIDE
   At 1200px the shell left a third of a 2560px monitor empty on
   each side, so the hero read as a short letterbox with the copy
   floating mid-screen. Widen the shell in two steps and let the
   hero and its headline grow with it. Copy measure is unaffected:
   .section-head, .town-grid and .area-map-wrap have their own caps.
   ========================================================= */
@media (min-width: 1440px) {
  :root { --maxw: 1340px; }
  .hero { min-height: clamp(640px, 44vw, 780px); }
  .hero-copy { --sup-w: 262px; --head-size: clamp(2.9rem, 7.2vw, 7.6rem); }
  .trust-item .num { font-size: 3rem; }
  .trust-strip .container { padding-top: 40px; padding-bottom: 40px; }
}
@media (min-width: 1800px) {
  :root { --maxw: 1520px; }
  .hero-copy { --head-size: 8.4rem; }
  .hero-support { font-size: 1.05rem; }
}
