/* ============================================================
   SQFT Contracting — design system
   Layout mirrors reference (see CLAUDE.md); brand: black/white/green,
   Clash Display (headings) + Satoshi (body).
   ============================================================ */

@import url('../fonts/fonts.css');

:root {
  --bg: #ffffff;
  --bg-a: #f6f7f8;
  --bg-b: #eceef1;
  --bg-c: #e4e7ea;
  --card: #ffffff;
  --card-border: #e3e6ea;
  --accent: #22C55E;
  --accent-tint: rgba(34, 197, 94, 0.10);
  --accent-tint-border: rgba(34, 197, 94, 0.22);
  --text: #14171a;
  --text-2: #40474e;
  --text-muted: #667080;
  --font-display: 'Clash Display', 'Arial Narrow', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
  --container: 1280px;
  --radius: 8px;
}

/* header + footer keep the dark palette so they stay black */
.site-header,
.site-footer {
  --card: #262626;
  --card-border: #333333;
  --text: #ffffff;
  --text-2: #dfdfdf;
  --text-muted: #9ca3af;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.5px;
  overflow-wrap: break-word;
  color: var(--text);
}

h1 { font-size: clamp(44px, 6.5vw, 92px); }
h2 { font-size: clamp(36px, 5vw, 72px); }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: 1px; }

p { color: var(--text-2); }
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--text);
}

.sec-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.sec-head .kicker { margin-top: 20px; display: block; }
.sec-head .sub { margin-top: 12px; color: var(--text-muted); font-size: 17px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--green { background: var(--accent); color: #000; }
.btn--green:hover { background: #2ee06f; }

.btn--black { background: #000; color: #fff; border-color: #3a3a3a; }
.btn--black:hover { border-color: #fff; }

.btn--link {
  padding: 0; border: 0; background: none;
  color: var(--accent); text-transform: capitalize;
  font-size: 15px; letter-spacing: 0;
}
.btn--link:hover { transform: none; text-decoration: underline; }

/* ---------- Service icons (Flaticon PNGs tinted via mask) ---------- */

.svc-ico {
  display: block; width: 24px; height: 24px;
  background: var(--accent);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.svc-ico--paint      { --m: url('../icons/paint.png'); }
.svc-ico--drywall    { --m: url('../icons/drywall.png'); }
.svc-ico--flooring   { --m: url('../icons/flooring.png'); }
.svc-ico--demolition { --m: url('../icons/demolition.png'); }
.svc-ico--moulding   { --m: url('../icons/moulding.png'); }
.svc-ico--finishing  { --m: url('../icons/finishing.png'); }
.svc-ico--focus      { --m: url('../icons/why-focus.png'); }
.svc-ico--shield     { --m: url('../icons/why-shield.png'); }
.svc-ico--quote      { --m: url('../icons/why-quote.png'); }
.svc-ico--guarantee  { --m: url('../icons/why-guarantee.png'); }

.hero__badge .svc-ico { width: 28px; height: 28px; }
.related .ico .svc-ico { width: 18px; height: 18px; }

/* ---------- Placeholder imagery ---------- */
/* Per brand decision: no photos yet — black block with "PLACEHOLDER" label. */

.ph {
  background: #050505;
  border: 1px solid #1e1e1e;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a3a3a;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  min-height: 180px;
  user-select: none;
}
.ph::after { content: 'Placeholder'; }
/* aspect-ratio + min-height fight on narrow screens and blow past the viewport */
.strip .ph, .b-card .ph, .g-item .ph { min-height: 0; }

/* real photo backgrounds (heroes / CTA sections) */
.hero-photo, .cta-photo { background-size: cover; background-position: center; }

/* gallery photos */
.g-item .g-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border: 1px solid #1e1e1e;
  transition: transform .45s ease;
}
.g-item:hover .g-img { transform: scale(1.04); }

.ph-bg { position: relative; background: #050505; }
.ph-bg::before {
  content: 'Placeholder image';
  position: absolute;
  top: 24px; right: 24px;
  color: #2c2c2c;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  pointer-events: none;
}

/* ---------- Header ---------- */

.site-header {
  height: 92px;
  background: #000;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #161616;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%;
}

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__img { height: 40px; width: auto; display: block; transition: opacity .2s ease; }
.logo:hover .logo__img { opacity: .85; }
.logo__mark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 30px; letter-spacing: 1px; color: #fff;
}
.logo__mark span { color: var(--accent); }
.logo__sub {
  font-size: 9px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--text-muted); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav > li { position: relative; }
.nav > li > a {
  font-size: 17px; font-weight: 500; color: #fff; padding: 34px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > li > a:hover { color: var(--accent); }
.nav .caret { font-size: 10px; color: var(--text-muted); }

.dropdown {
  position: absolute; top: 100%; left: -16px;
  background: #0d0d0d; border: 1px solid var(--card-border); border-radius: var(--radius);
  min-width: 280px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 15px; color: var(--text-2);
}
.dropdown a:hover { color: var(--accent); background: #161616; }
.dropdown .svc-ico { width: 18px; height: 18px; flex: none; }

/* Mega menu (Services) */
.has-mega { position: static !important; }
.megamenu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #0d0d0d;
  border-top: 1px solid #1e1e1e; border-bottom: 1px solid var(--card-border);
  padding: 36px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.has-mega:hover .megamenu, .has-mega:focus-within .megamenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.megamenu .megamenu__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.megamenu__head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #222;
  margin-bottom: 10px;
}
.megamenu__parent {
  display: flex; align-items: center; gap: 10px; flex: 1;
  font-weight: 700; font-size: 16px; color: #fff;
  padding-bottom: 12px;
}
.mm-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--text-muted); font-size: 13px;
  padding: 10px 14px; transition: transform .2s;
}
.megamenu__col.open .mm-toggle { transform: rotate(180deg); color: var(--accent); }
.megamenu__parent:hover { color: var(--accent); }
.megamenu__parent .svc-ico { width: 18px; height: 18px; flex: none; }
.megamenu__col li a {
  display: block; padding: 6px 0; font-size: 14.5px; color: var(--text-muted);
}
.megamenu__col li a:hover { color: var(--accent); }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ''; position: absolute; left: 8px; width: 24px; height: 2px;
  background: #fff; transition: all .2s;
}
.burger span { top: 19px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }

/* ---------- Hero ---------- */

.hero {
  min-height: 720px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero--service { min-height: 620px; }
.hero--short { min-height: 380px; }

.hero__inner { padding: 90px 24px; width: 100%; }
.hero .kicker { margin-top: 22px; }

.hero__lede {
  max-width: 640px; margin-top: 26px; padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-2); font-size: 18px;
}

.hero__actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.hero__badge {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--accent-tint); border: 1px solid var(--accent-tint-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 28px;
}

.scroll-btn {
  width: 56px; height: 56px; margin-top: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #000; border-radius: 6px; font-size: 20px;
}

/* ---------- Video hero ---------- */
.hero--video {
  position: relative; overflow: hidden;
  --text: #ffffff; --text-2: #e8eaed; --text-muted: #c9ced4;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero--video::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.75) 100%);
}
.hero--video .hero__inner { position: relative; z-index: 2; }

/* ---------- Brand / trust marquee ---------- */
.marquee {
  background: #0b0d0f; border-top: 1px solid #1c1f22; border-bottom: 1px solid #1c1f22;
  overflow: hidden; padding: 16px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.mq {
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 15px; white-space: nowrap; padding: 0 26px; color: #9aa2ab;
}
.mq--brand { color: #fff; font-family: var(--font-display); letter-spacing: 1px; font-size: 17px; }
.mq--badge { color: var(--accent); }
.mq--city { color: #8c949d; }
.mq__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Recent work showcase ---------- */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.showcase__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 1 / 1; display: block;
  border: 1px solid var(--card-border);
}
.showcase__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.showcase__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.72) 100%);
}
.showcase__item:hover img { transform: scale(1.06); }
.showcase__tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .3px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* ---------- Sections ---------- */

.sec { padding: 96px 0; }
.bg-a { background: var(--bg-a); }
.bg-b { background: var(--bg-b); }
.bg-c { background: var(--bg-c); }

/* Intro (two columns) */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.intro .where {
  display: flex; align-items: center; gap: 14px; margin-top: 36px;
  color: var(--text-2); font-size: 17px;
}
.intro .where .dot {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--accent-tint); border: 1px solid var(--accent-tint-border);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.intro p + p { margin-top: 16px; }

/* Service area: text + aerial photo */
.where-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.where-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--card-border);
}

/* Image strip — full-bleed row: 95% of the viewport, always one row of 3 */
.strip-full { width: 95%; margin: 0 auto; padding-bottom: 96px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strip .ph { aspect-ratio: 4 / 3; }
.strip-img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: contain;
  background: #0d0d0d;
  border: 1px solid var(--card-border); border-radius: var(--radius);
  transition: transform .4s ease;
}
.strip-img:hover { transform: scale(1.02); }
.strip-img--cover { object-fit: cover; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
/* 5 cards: 3 on top, 2 centered below (flex wraps + centers the last row) */
.cards--five { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cards--five > .card { width: calc((100% - 40px) / 3); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
}
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 22px;
}
.card h3 { margin-bottom: 14px; }
.card p { font-size: 16px; color: var(--text-2); }
.card .btn--link { margin-top: 18px; display: inline-block; }

/* Homepage service cards with photo backgrounds (must follow base .card so the
   .card background shorthand doesn't reset background-size back to auto) */
.card--photo {
  position: relative; overflow: hidden;
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background-size: cover; background-position: center;
  --text: #ffffff; --text-2: #eef1f3;
}
.card--photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,.72) 74%, rgba(0,0,0,.93) 100%);
  transition: background .3s ease;
}
.card--photo:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(34,197,94,.12) 40%, rgba(0,0,0,.78) 76%, rgba(0,0,0,.95) 100%);
}
.card--photo:hover { transform: translateY(-4px); }
.card--photo > * { position: relative; z-index: 1; }
.card--photo .card__icon {
  position: absolute; top: 22px; left: 22px; margin: 0;
  background: rgba(0,0,0,.5);
}
.card--photo h3 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.card--photo p { color: #eef1f3; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.card--photo .btn--link { color: #4ade80; margin-top: 14px; }

.center-link { text-align: center; margin-top: 44px; }

/* Testimonials */
.t-card .quote-mark { color: var(--accent); font-size: 40px; font-family: Georgia, serif; line-height: 1; margin-bottom: 14px; }
.t-card blockquote { font-style: italic; color: var(--text-2); font-size: 17px; }
.t-card .who { margin-top: 20px; font-weight: 700; color: var(--accent); }
.t-card .who span { display: block; color: var(--text-muted); font-weight: 400; font-size: 13px; margin-top: 2px; }

/* Google-style reviews */
.reviews-summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: -8px auto 44px; max-width: 660px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 18px 26px; box-shadow: 0 1px 3px rgba(20,23,26,.06);
}
.g-logo { display: inline-block; width: 34px; height: 34px; flex: none; }
.rev-rate { display: flex; align-items: center; gap: 10px; }
.rev-rate strong { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--text); }
.stars { color: #FBBC04; letter-spacing: 1px; font-size: 17px; }
.rev-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.rev-cta { margin-left: auto; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  display: block; color: inherit;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 3px rgba(20,23,26,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,23,26,.12); border-color: rgba(34,197,94,.4); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--c, var(--accent)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 19px;
}
.review__who { flex: 1; line-height: 1.25; min-width: 0; }
.review__who strong { color: var(--text); font-size: 15px; }
.review__who span { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.review__g { width: 20px; height: 20px; }
.review .stars { display: block; margin-bottom: 10px; font-size: 16px; }
.review__text { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #3a3a3a; }
.faq-item button {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; text-align: left;
  color: #fff; font-family: var(--font-body); font-size: 18px; font-weight: 500;
}
.faq-item button .chev { transition: transform .2s; color: var(--text-muted); font-size: 13px; }
.faq-item.open button { color: var(--accent); }
.faq-item.open button .chev { transform: rotate(180deg); }
.faq-item .answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item .answer p { padding: 0 4px 22px; font-size: 17px; }

/* Blog cards */
.b-card { overflow: hidden; padding: 0; }
.b-card .ph { aspect-ratio: 16 / 10; border: 0; border-bottom: 1px solid var(--card-border); }
.b-card__body { padding: 26px; }
.b-card__body h3 { text-transform: none; font-family: var(--font-body); font-weight: 700; font-size: 20px; letter-spacing: 0; }
.b-card__body p { margin-top: 10px; font-size: 16px; }
.b-card__body .date { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* CTA section */
.cta-sec { padding: 110px 0; }
.cta-sec .panel {
  border: 1px solid var(--accent-tint-border);
  background: rgba(0,0,0,.65);
  border-radius: var(--radius);
  text-align: center;
  padding: 72px 40px;
}
.cta-sec p { max-width: 620px; margin: 20px auto 0; }
.cta-sec .hero__actions { justify-content: center; margin-top: 32px; }

/* ---------- Service page layout ---------- */

.service-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 48px;
  align-items: start;
}
.service-main .cards--2 { margin-top: 40px; }

.why-box {
  margin-top: 48px;
  background: var(--bg-a);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.why-box h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.why-box p { max-width: 720px; margin: 0 auto; }

.service-main .faq-title { font-size: clamp(26px, 3vw, 36px); margin: 64px 0 8px; }

.sidebar { position: sticky; top: 24px; display: grid; gap: 24px; }
.cta-box {
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-border);
  border-radius: var(--radius);
  padding: 32px;
}
.cta-box h3 { margin-bottom: 6px; }
.cta-box .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.cta-box p { font-size: 16px; }
.cta-box .btn { width: 100%; justify-content: center; margin-top: 20px; }
.cta-box .call-line { margin-top: 14px; text-align: center; font-size: 15px; color: var(--text-muted); }
.cta-box .call-line a { color: #fff; font-weight: 700; }

.related { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 32px; }
.related h3 { margin-bottom: 18px; }
.related li a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; font-size: 16px; color: var(--text-2);
}
.related li a:hover { color: var(--accent); }
.related .ico {
  width: 34px; height: 34px; border-radius: 6px; flex: none;
  background: rgba(34,197,94,.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* ---------- Sub-service page components ---------- */

.crumbs { font-size: 15px; color: var(--text-muted); margin-bottom: 22px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; color: #3a3a3a; }

.checklist {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 28px;
}
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 17px; color: var(--text-2);
}
.checklist li::before {
  content: '✓'; color: var(--accent); font-weight: 700; flex: none;
}

.steps { counter-reset: none; display: grid; gap: 14px; margin-top: 28px; }
.steps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 20px 22px;
}
.steps .num {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--accent); flex: none; width: 36px;
}
.steps strong { color: #fff; display: block; margin-bottom: 4px; }
.steps p { font-size: 16px; }

.sub-h2 { font-size: clamp(26px, 3vw, 38px); margin: 64px 0 8px; }
.sub-h2:first-child { margin-top: 0; }

@media (max-width: 720px) {
  .checklist { grid-template-columns: 1fr; }
  .sub-h2 { font-size: 22px; margin-top: 48px; }
}

/* ---------- Gallery ---------- */

.tabs { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 48px; }
.tabs button {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-2); padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-item { position: relative; }
.g-item .ph { aspect-ratio: 4 / 3; width: 100%; }
.g-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 16px; font-size: 15px; color: var(--text-2);
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  opacity: 0; transition: opacity .2s;
}
.g-item:hover .cap { opacity: 1; }

/* ---------- Footer ---------- */

.site-footer { background: #000; border-top: 1px solid #1a1a1a; }
.site-footer .top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px 0; flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer nav a {
  font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-2);
}
.site-footer nav a:hover { color: var(--accent); }
.site-footer .legal {
  border-top: 1px solid #1a1a1a; padding: 18px 0;
  font-size: 14px; color: var(--text-muted);
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 40px; }
.form-card label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin: 18px 0 8px; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; background: #101010; border: 1px solid var(--card-border); border-radius: 6px;
  color: #fff; font-family: var(--font-body); font-size: 17px; padding: 13px 14px;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  outline: none; border-color: var(--accent);
}
.form-card .btn { width: 100%; justify-content: center; margin-top: 28px; }

/* ---------- Micro-animations & hover interactions ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes chevBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* hero entrance */
.hero__inner > * { animation: fadeUp .6s ease both; }
.hero__inner > *:nth-child(2) { animation-delay: .12s; }
.hero__inner > *:nth-child(3) { animation-delay: .24s; }
.hero__inner > *:nth-child(4) { animation-delay: .36s; }

.scroll-btn { animation: fadeUp .6s ease .36s both, chevBounce 2.2s ease-in-out 1.2s infinite; }

/* scroll reveal (class added by main.js) */
.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.will-reveal.revealed { opacity: 1; transform: none; }

/* nav underline */
.nav > li > a { position: relative; }
.nav > li > a::after {
  content: ''; position: absolute; left: 0; bottom: 24px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav > li > a:hover::after { transform: scaleX(1); }

/* logo */
.logo .logo__mark { transition: letter-spacing .25s ease; }
.logo:hover .logo__mark { letter-spacing: 2.5px; }

/* buttons */
.btn { transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.btn--green:hover { box-shadow: 0 8px 24px rgba(34, 197, 94, .35); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--link { transition: transform .18s ease, color .18s ease; display: inline-block; }
.btn--link:hover { transform: translateX(4px); text-decoration: none; color: #2ee06f; }

/* cards */
.card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, .4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}
.card__icon { transition: transform .25s ease, background .25s ease; }
.card:hover .card__icon { transform: scale(1.1) rotate(-3deg); background: rgba(34, 197, 94, .22); }

/* steps */
.steps li { transition: border-color .25s ease, transform .25s ease; }
.steps li:hover { border-color: rgba(34, 197, 94, .35); transform: translateX(4px); }

/* sidebar related list */
.related li a { transition: color .18s ease, padding-left .18s ease; }
.related li a:hover { padding-left: 6px; }
.related .ico { transition: background .18s ease; }
.related li a:hover .ico { background: rgba(34, 197, 94, .25); }

/* megamenu links */
.megamenu__col li a { transition: color .15s ease, padding-left .15s ease; }
.megamenu__col li a:hover { padding-left: 6px; }
.dropdown a { transition: color .15s ease, padding-left .15s ease; }
.dropdown a:hover { padding-left: 26px; }

/* gallery */
.g-item { overflow: hidden; }
.g-item .ph { transition: transform .45s ease, border-color .3s ease; }
.g-item:hover .ph { transform: scale(1.04); border-color: rgba(34, 197, 94, .35); }

/* FAQ */
.faq-item button { transition: color .2s ease, padding-left .2s ease; }
.faq-item button:hover { color: var(--accent); }
.faq-item .chev { transition: transform .25s ease, color .2s ease; }

/* tabs */
.tabs button { transition: color .2s ease, border-color .2s ease; }

/* footer */
.site-footer nav a { transition: color .18s ease; }

/* form */
.form-card input, .form-card textarea, .form-card select { transition: border-color .2s ease, box-shadow .2s ease; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }

/* accessibility: kill motion for users who ask */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .will-reveal { opacity: 1; transform: none; }
}

/* ---------- Light-theme adjustments ---------- */

/* photo heroes / CTAs have a dark gradient overlay → keep their text light */
.hero-photo, .cta-photo {
  --text: #ffffff;
  --text-2: #e8eaed;
  --text-muted: #c9ced4;
}

/* placeholder hero / CTA (homepage, no photo) → dark backdrop, white + green text */
.hero.ph-bg, .cta-sec.ph-bg {
  background: linear-gradient(180deg, #141719, #0b0d0f);
  --text: #ffffff;
  --text-2: #e8eaed;
  --text-muted: #c9ced4;
}
.ph-bg::before { color: #2c2c2c; }
/* placeholder image blocks (image strip, blog thumbs) sit on the light body → light grey */
.ph { background: #e7eaed; border-color: #dbdfe3; color: #a2a8af; }

/* cards use shadow depth instead of dark contrast */
.card { box-shadow: 0 1px 3px rgba(20, 23, 26, .06); }
.card:hover { box-shadow: 0 14px 30px rgba(20, 23, 26, .12); border-color: rgba(34, 197, 94, .5); }

/* FAQ */
.faq-item { border-bottom-color: #dde1e5; }
.faq-item button { color: #14171a; }

/* gallery captions sit over a dark gradient → keep light */
.g-item .cap { color: #ffffff; }

/* contact form inputs → light fields */
.form-card input, .form-card textarea, .form-card select {
  background: #f4f6f8; color: #14171a;
}
.form-card input::placeholder, .form-card textarea::placeholder { color: #98a0a8; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .cards--five > .card { width: calc((100% - 20px) / 2); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .service-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .intro { grid-template-columns: 1fr; gap: 32px; }
  .where-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 92px; left: 0; right: 0;
    background: #0a0a0a; border-bottom: 1px solid var(--card-border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 24px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > li { width: 100%; }
  .nav > li > a { padding: 14px 0; width: 100%; }
  .dropdown, .megamenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; background: none; min-width: 0; padding: 0 0 6px 16px;
    display: none;
  }
  .nav li.open > .dropdown, .nav li.open > .megamenu { display: block; }
  /* main services stack vertically on mobile */
  .megamenu .megamenu__grid { grid-template-columns: 1fr; gap: 4px; padding: 0; }
  .megamenu__head { border-bottom: 0; margin-bottom: 0; }
  .megamenu__parent { padding: 10px 0; }
  .mm-toggle { display: block; }
  /* sub-service lists are collapsed until the chevron is tapped */
  .megamenu__col ul { display: none; padding: 0 0 8px 28px; }
  .megamenu__col.open ul { display: block; }
  .megamenu__col li a { padding: 8px 0; font-size: 16px; }
  .burger { display: block; }
  .header-cta { display: none; }
}

@media (max-width: 720px) {
  /* Mobile type scale — big display sizes come way down */
  h1 { font-size: clamp(28px, 8.5vw, 36px); line-height: 1.05; }
  h2 { font-size: clamp(22px, 6.5vw, 28px); line-height: 1.1; }

  /* Mobile alignment: center headings and standalone text blocks */
  h1, h2, .kicker, .crumbs { text-align: center; }
  .sec-head .sub { text-align: center; }
  .sec > .container > p,
  .service-main > p,
  .intro { text-align: center; }
  .intro .where { justify-content: center; }
  .center-link { text-align: center; }
  .cta-box, .related, .card, .steps li, .checklist li, .faq-item button,
  .b-card__body, .t-card { text-align: left; }
  .cta-box .btn { justify-content: center; }

  h3 { font-size: 16px; }
  .kicker { font-size: 11px; letter-spacing: 1.5px; }
  .hero__lede { font-size: 17px; }
  .why-box { padding: 32px 22px; }
  .why-box h2 { font-size: 22px; }
  .service-main .faq-title { font-size: 22px; }
  .cta-sec { padding: 72px 0; }
  .cta-sec .panel { padding: 48px 22px; }
  .hero--short { min-height: 320px; }
  .sec { padding: 64px 0; }
  .cards--2, .cards--3, .cards--4, .g-grid { grid-template-columns: 1fr; }
  .cards--five > .card { width: 100%; }
  .showcase { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-summary { flex-direction: column; text-align: center; }
  .rev-cta { margin: 4px auto 0; }
  .marquee { padding: 13px 0; }
  .mq { font-size: 13px; padding: 0 18px; }
  .mq--brand { font-size: 15px; }
  /* on mobile the 3-photo strip stacks vertically (3-across squashes/breaks) */
  .strip { grid-template-columns: 1fr; gap: 12px; }
  .strip-full { width: 100%; padding: 0 16px 64px; }
  .hero, .hero--service { min-height: 480px; text-align: center; }
  /* home hero on mobile: full height, content vertically centered */
  .hero:not(.hero--service):not(.hero--short) { min-height: 100vh; min-height: 100dvh; }
  .hero:not(.hero--service):not(.hero--short) .hero__inner { padding-top: 40px; padding-bottom: 40px; }
  /* kicker: show only the location on mobile, hide the pipe service list */
  .hero .kicker { font-size: 12px; letter-spacing: 2px; }
  .kicker__svc { display: none; }
  .hero__lede { margin-left: auto; margin-right: auto; text-align: left; }
  .hero__actions { justify-content: center; }
  .hero__badge, .scroll-btn { margin-left: auto; margin-right: auto; }
  .site-footer .top { justify-content: center; text-align: center; }
}

/* ---------- Ultra-narrow screens (down to 200px) ---------- */

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { white-space: normal; text-align: center; padding: 13px 20px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .card { padding: 24px 18px; }
  .why-box { padding: 28px 16px; }
  .cta-sec .panel { padding: 40px 16px; }
  .form-card { padding: 26px 16px; }
  .steps li { padding: 16px 14px; gap: 12px; }
  .checklist { gap: 10px 0; }
  .b-card__body { padding: 20px 16px; }
  .tabs { gap: 16px; }
  .site-footer nav { gap: 16px; justify-content: center; }
  .cta-box, .related { padding: 24px 16px; }
}

@media (max-width: 320px) {
  .container { padding: 0 12px; }
  body { font-size: 17px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 15px; }
  .kicker { font-size: 10px; letter-spacing: 1px; }
  .logo__mark { font-size: 24px; }
  .logo__img { height: 30px; }
  .logo__sub { letter-spacing: 2.5px; font-size: 8px; }
  .hero, .hero--service { min-height: 420px; }
  .hero__inner { padding: 56px 12px; }
  .btn { font-size: 12.5px; padding: 12px 14px; letter-spacing: .5px; }
  .card__icon { width: 40px; height: 40px; }
  .steps .num { width: 26px; font-size: 16px; }
  .megamenu__col ul { padding-left: 16px; }
  .form-card input, .form-card textarea, .form-card select { padding: 11px 10px; font-size: 15px; }
  .ph { letter-spacing: 1.5px; font-size: 11px; }
  .ph-bg::before { display: none; }
}

@media (max-width: 240px) {
  .container { padding: 0 8px; }
  body { font-size: 16px; }
  h1 { font-size: 20px; }
  h2 { font-size: 17px; }
  p { font-size: 15px; }
  .btn { font-size: 11.5px; padding: 11px 10px; gap: 6px; }
  .burger { width: 34px; }
  .site-header .container { gap: 8px; }
  .steps li { flex-direction: column; gap: 6px; }
  .checklist li { font-size: 15px; }
  .faq-item button { font-size: 16px; padding: 16px 2px; }
  .crumbs { font-size: 11px; }
}
