/* =========================================================
   2nd Gen Plumbing & Leak Detection — spec preview
   Design system + layout
   ========================================================= */

:root {
  /* Brand */
  --navy:    #0E2A47;
  --navy-deep: #081B30;
  --blue:    #1C6FB5;
  --blue-bright: #2E8FD6;
  --brass:   #C8872E;
  --brass-light: #E0A647;

  /* Neutrals */
  --ink:     #11202E;
  --slate:   #46586a;
  --mist:    #eef3f7;
  --paper:   #f7f9fb;
  --white:   #ffffff;
  --line:    #d8e1ea;

  /* Semantic */
  --bg:        var(--white);
  --text:      var(--ink);
  --muted:     var(--slate);

  /* Type */
  --display: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --fs-body:    clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  --fs-lead:    clamp(1.12rem, 1rem + 0.7vw, 1.4rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-h1:      clamp(2.3rem, 1.45rem + 4.4vw, 5rem);
  --fs-display: clamp(3rem, 1.8rem + 6vw, 7rem);

  /* Space scale */
  --s-1: 0.5rem;
  --s-2: 0.85rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;

  --maxw: 1240px;
  --gutter: clamp(1.15rem, 4vw, 4rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -22px rgba(8, 27, 48, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(8, 27, 48, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; }
p { text-wrap: pretty; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: ""; flex: none;
  width: clamp(20px, 3vw, 32px); height: 2px;
  background: currentColor; opacity: 0.55;
}
.section-title { font-size: var(--fs-h2); color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
.btn-accent {
  background: var(--brass); color: #1c1206;
  box-shadow: 0 12px 26px -14px rgba(200, 135, 46, 0.9);
}
.btn-accent:hover { background: var(--brass-light); transform: translateY(-3px); box-shadow: 0 18px 32px -14px rgba(200, 135, 46, 0.95); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-3px); }
.btn-call { background: var(--blue); color: #fff; }
.btn-call:hover { background: var(--blue-bright); transform: translateY(-2px); }

.text-link {
  font-family: var(--sans); font-weight: 700; color: var(--blue);
  border-bottom: 2px solid transparent; transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
  align-self: flex-start;
}
.text-link:hover { color: var(--navy); border-color: var(--brass); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: clamp(0.6rem, 1.4vw, 1.1rem) 0;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}
/* Top scrim keeps nav legible over a bright hero sky before scroll */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,18,31,0.6) 0%, rgba(6,18,31,0) 100%);
  opacity: 1; transition: opacity 0.35s var(--ease);
}
.site-header.scrolled::before { opacity: 0; }
.primary-nav a { text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.site-header.scrolled {
  background: rgba(8, 27, 48, 0.93);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.8);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: var(--s-3); justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; }
.brand-mark {
  width: 46px; height: 46px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 4px;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--display); font-size: 1.16rem; letter-spacing: -0.01em; }
.brand-name em {
  font-style: normal; font-family: var(--sans);
  font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--brass-light); font-weight: 700;
}
.primary-nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.primary-nav a {
  color: rgba(255,255,255,0.86); font-weight: 600; font-size: 0.95rem;
  position: relative; padding: 0.3rem 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brass-light); transition: width 0.3s var(--ease);
}
.primary-nav a:hover { color: #fff; }
.primary-nav a:hover::after { width: 100%; }
.header-call { flex-direction: column; gap: 0; padding: 0.55rem 1.2rem; line-height: 1.1; }
.header-call .call-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.85; }
.header-call .call-number { font-size: 1rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: min(90svh, 900px);
  display: grid; align-items: center;
  padding: clamp(8rem, 15vh, 9.5rem) var(--gutter) clamp(3rem, 7vh, 5rem);
  isolation: isolate;
  color: #fff;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  transform: scale(1.06);
  /* Strip the cold snapshot to monochrome so the duotone can recolor it.
     Brighter than before so the jobsite reads as a real image, not a void. */
  filter: grayscale(1) contrast(1.06) brightness(1.02);
}
/* Navy duotone: a multiply wash maps the literal van photo into the brand
   palette so it reads as deliberate jobsite texture, not a snapshot. Lighter
   mid-tones keep the subject visible on the right where copy doesn't sit. */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(176deg, #3f6f9e 0%, #1d4671 52%, #0a1f38 100%);
  mix-blend-mode: multiply;
}
/* Scrim anchored to the LEFT so the headline column stays crisp while the
   image opens up under the proof card on the right. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(6,18,31,0.95) 0%, rgba(8,27,48,0.78) 34%, rgba(8,27,48,0.32) 66%, rgba(8,27,48,0.55) 100%),
    linear-gradient(180deg, rgba(6,18,31,0.55) 0%, rgba(8,27,48,0) 32%, rgba(8,27,48,0.06) 60%, rgba(6,18,31,0.72) 100%),
    radial-gradient(120% 90% at 4% 96%, rgba(46,143,214,0.26) 0%, rgba(46,143,214,0) 52%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-content { max-width: 50rem; position: relative; }

/* Frosted proof card — the right-side counterweight, real rating + license */
.hero-card {
  justify-self: end; width: 100%; max-width: 360px;
  display: flex; flex-direction: column; gap: 1.15rem;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  border-radius: 20px;
  background: linear-gradient(158deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 34px 64px -32px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}
.hc-rating { display: flex; align-items: center; gap: 1rem; }
.hc-score { font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 0.9; color: #fff; }
.hc-stack { display: flex; flex-direction: column; gap: 0.3rem; }
.hc-stars { color: var(--brass-light); letter-spacing: 0.16em; font-size: 1.04rem; }
.hc-source { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.72); }
.hc-points {
  list-style: none; padding: 1.15rem 0 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hc-points li {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.96rem; color: rgba(255,255,255,0.92);
}
.hc-points li::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass-light); box-shadow: 0 0 0 4px rgba(224,166,71,0.2);
}
.hc-meta { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.13em; color: rgba(255,255,255,0.56); }
.hero .eyebrow { color: var(--brass-light); flex-wrap: wrap; }
.hero .eyebrow::before { background: var(--brass-light); opacity: 0.9; }
.hero-title {
  font-size: var(--fs-h1);
  letter-spacing: -0.028em;
  text-shadow: 0 10px 48px rgba(0,0,0,0.55);
  max-width: 15ch;
  margin-top: 0.2rem;
  overflow-wrap: break-word;
}
.hero-sub {
  font-size: var(--fs-lead); max-width: min(48ch, 100%); margin-top: var(--s-3);
  color: rgba(255,255,255,0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.hero-stats {
  list-style: none; padding: 0; margin-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 5vw, 3.25rem);
  padding-top: var(--s-4); position: relative;
}
/* brass-accented divider above the stat row */
.hero-stats::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--brass-light) 0 56px, rgba(255,255,255,0.2) 56px);
}
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-family: var(--display); font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); color: #fff; line-height: 1; }
.stat-cap { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em; color: rgba(255,255,255,0.74); margin-top: 0.45rem; }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust { background: var(--navy); color: #fff; }
.trust-list {
  max-width: var(--maxw); margin: 0 auto; list-style: none; padding: var(--s-3) var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-4);
}
.trust-list li {
  font-family: var(--sans); font-weight: 700; font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1rem);
  text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 0.6rem;
  color: rgba(255,255,255,0.92);
}
.trust-list li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brass-light); box-shadow: 0 0 0 4px rgba(224,166,71,0.18);
  flex: none;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, var(--s-7)) var(--gutter);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.about-figure { position: relative; }
.about-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-badge {
  position: absolute; right: clamp(-0.5rem, -1vw, -1.5rem); bottom: clamp(1rem, 4vw, 2.5rem);
  background: var(--brass); color: #1c1206;
  padding: 1.1rem 1.4rem; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; max-width: 200px; box-shadow: var(--shadow-soft);
}
.badge-num { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.badge-text { font-family: var(--sans); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }
.about-copy { display: flex; flex-direction: column; gap: var(--s-2); }
.about-copy p { color: var(--muted); }
.about-copy .text-link { margin-top: var(--s-2); }

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.services-head, .offers-head, .gallery-head, .reviews-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, var(--s-7)) var(--gutter) var(--s-4);
}
.services-head { max-width: 760px; }
.services-lead { color: var(--muted); font-size: var(--fs-lead); margin-top: var(--s-2); }
.services-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, var(--s-7));
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem);
}
.svc {
  position: relative; grid-column: span 2; overflow: hidden;
  border-radius: var(--radius); min-height: 300px; color: #fff;
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.svc-lg { grid-column: span 4; min-height: 420px; }
.svc-wide { grid-column: span 4; min-height: 340px; }
.svc img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,27,48,0) 30%, rgba(8,27,48,0.4) 60%, rgba(8,27,48,0.92) 100%);
  transition: background 0.4s var(--ease);
}
.svc:hover img { transform: scale(1.07); }
.svc:hover::after { background: linear-gradient(180deg, rgba(14,42,71,0.1) 20%, rgba(14,42,71,0.55) 55%, rgba(8,27,48,0.96) 100%); }
.svc-body { padding: clamp(1.3rem, 2.5vw, 2rem); }
.svc-body h3 { font-size: var(--fs-h3); color: #fff; }
.svc-body p { margin-top: 0.45rem; color: rgba(255,255,255,0.88); font-size: 0.96rem; max-width: 44ch; }

/* =========================================================
   OFFERS
   ========================================================= */
.offers { background: var(--navy); color: #fff; }
.offers-head { text-align: center; max-width: 720px; }
.offers-head .eyebrow { color: var(--brass-light); }
.offers-head .section-title { color: #fff; }
.offers-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, var(--s-7));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem);
}
.offer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.offer:hover { transform: translateY(-6px); border-color: var(--brass-light); background: rgba(255,255,255,0.07); }
.offer-feature { background: rgba(200,135,46,0.12); border-color: rgba(224,166,71,0.5); }
.offer-amount { font-family: var(--display); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.4rem); color: var(--brass-light); line-height: 1; }
.offer h3 { font-size: var(--fs-h3); color: #fff; }
.offer p { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.offer .btn { margin-top: 0.6rem; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-head { max-width: 720px; }
.gallery-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, var(--s-7));
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: clamp(0.8rem, 1.5vw, 1.2rem);
}
.gallery figure { overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery figure:hover img { transform: scale(1.08); }
.g-1 { grid-column: span 2; grid-row: span 2; }
.g-2 { grid-column: span 2; }
.g-3 { grid-column: span 1; }
.g-4 { grid-column: span 1; }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { background: var(--mist); }
.reviews-head { max-width: 720px; }
.reviews-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, var(--s-7));
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.8rem);
}
.review {
  background: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.review p { font-size: 1.05rem; line-height: 1.55; color: var(--ink); max-width: 60ch; }
.stars { color: var(--brass); letter-spacing: 0.18em; font-size: 1.05rem; }
.review cite {
  font-style: normal; font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--blue);
}

/* =========================================================
   SERVICE AREAS
   ========================================================= */
.areas {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, var(--s-7)) var(--gutter);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.areas-copy { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; }
.areas-copy p { color: var(--muted); }
.areas-copy .btn { margin-top: var(--s-2); }
.areas-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem;
}
.areas-list li {
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem; color: var(--navy);
  padding: 0.6rem 0.75rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.areas-list li:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative; isolation: isolate; color: #fff;
  background: var(--navy-deep);
  overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(28,111,181,0.4) 0%, rgba(28,111,181,0) 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(200,135,46,0.22) 0%, rgba(200,135,46,0) 55%);
}
.contact-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.contact-copy { max-width: 640px; display: flex; flex-direction: column; gap: var(--s-2); }
.contact-copy .eyebrow { color: var(--brass-light); }
.contact-title { font-size: var(--fs-h2); color: #fff; }
.contact-copy > p { color: rgba(255,255,255,0.85); font-size: var(--fs-lead); }
.phone-cta {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem); color: #fff;
  line-height: 1; margin-top: var(--s-2); align-self: flex-start;
  border-bottom: 4px solid var(--brass); padding-bottom: 0.2rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.phone-cta:hover { color: var(--brass-light); border-color: var(--brass-light); }
.contact-meta { font-family: var(--sans); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); margin-top: var(--s-2); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #06121f; color: rgba(255,255,255,0.78); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) var(--s-4);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }
.footer-brand p { font-family: var(--display); font-size: 1.15rem; color: #fff; max-width: 18ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.footer-cols h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brass-light); margin-bottom: 0.7rem; }
.footer-cols a, .footer-cols span { display: block; font-size: 0.92rem; color: rgba(255,255,255,0.72); padding: 0.18rem 0; }
.footer-cols a { transition: color 0.2s var(--ease); }
.footer-cols a:hover { color: #fff; }
.copyright {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--s-3) var(--gutter); border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}

/* Sticky mobile call button */
.mobile-call {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  display: none; text-align: center;
  background: var(--brass); color: #1c1206; font-weight: 800; letter-spacing: 0.02em;
  padding: 1rem; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6);
}

/* =========================================================
   SPEC FOOTER (mandatory)
   ========================================================= */
.spec-footer {
  background: #0a0a0a; color: #c9c9c9; text-align: center;
  font-family: var(--sans); font-size: 0.82rem; line-height: 1.6;
  padding: 1.2rem 1.5rem;
}
.spec-footer a { color: var(--brass-light); text-decoration: underline; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
/* stagger within a group */
[data-reveal].is-in { transition-delay: var(--reveal-delay, 0s); }

/* Hero on-load: handled by .loaded toggle so content shows even without observer */
.hero .reveal { transition-duration: 0.8s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .primary-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-figure { max-width: 520px; }
  .about-badge { right: 1rem; }
  .areas { grid-template-columns: 1fr; }
  .svc-lg, .svc-wide { grid-column: span 6; }
  .svc { grid-column: span 3; min-height: 280px; }
  .offers-grid { grid-template-columns: 1fr; max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-call .call-label { display: none; }
  .header-call { padding: 0.55rem 1rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .svc, .svc-lg, .svc-wide { grid-column: span 1; min-height: 260px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-1 { grid-column: span 2; grid-row: span 2; }
  .g-2 { grid-column: span 2; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .mobile-call { display: block; }
  body { padding-bottom: 4.5rem; }
  .hero { min-height: 92svh; }
  .hero .eyebrow { letter-spacing: 0.1em; gap: 0.5rem; font-size: 0.66rem; }
  .hero-title { max-width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .hero-stats { gap: 1.15rem 1.6rem; }
  .hero-stats li { flex: 1 1 28%; }
  .areas-list { grid-template-columns: 1fr; }
}

/* =========================================================
   REDUCED MOTION + NO-JS FALLBACK
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-img { transform: none; }
}

/* If JS never runs, reveal everything (class added by app.js when JS present) */
html:not(.js) .reveal { opacity: 1; transform: none; }
