/* ============================================================
   Murray Home Improvement — Homepage concept
   Dark architectural editorial · Murray blue as the one accent
   ============================================================ */

/* Fonts are self-hosted — every page links site/fonts.css before this file. */

/* ---------- TOKENS (dark default) ---------- */
:root {
  --accent:        #007bff;          /* Murray blue — tweakable        */
  --accent-soft:   color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line:   color-mix(in srgb, var(--accent) 42%, transparent);

  --bg:            #090b0e;
  --bg-2:          #0e1216;
  --surface:       #12171c;
  --surface-2:     #171d24;
  --line:          rgba(255,255,255,0.10);
  --line-strong:   rgba(255,255,255,0.20);
  --text:          #f1f4f7;
  --text-dim:      #9aa4af;
  --text-faint:    #626b75;
  --on-accent:     #ffffff;

  --font-display:  "Space Grotesk", "Archivo", sans-serif;
  --font-body:     "Hanken Grotesk", system-ui, sans-serif;

  --container:     1240px;
  --gutter:        clamp(20px, 5vw, 64px);
  --radius:        4px;
  --radius-lg:     10px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-card:   0 24px 60px -24px rgba(0,0,0,0.7);
  color-scheme: dark;
}

/* ---------- LIGHT THEME ---------- */
:root[data-theme="light"] {
  --accent-soft:   color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-line:   color-mix(in srgb, var(--accent) 30%, transparent);
  --bg:            #eceeec;
  --bg-2:          #f4f6f4;
  --surface:       #ffffff;
  --surface-2:     #f4f6f4;
  --line:          rgba(16,22,28,0.12);
  --line-strong:   rgba(16,22,28,0.22);
  --text:          #14181d;
  --text-dim:      #545d66;
  --text-faint:    #8b939b;
  --shadow-card:   0 24px 60px -28px rgba(20,30,45,0.28);
  color-scheme: light;
}

/* ---------- font personality tweak ---------- */
:root[data-display="archivo"] { --font-display: "Archivo", sans-serif; }
:root[data-display="roboto"]  { --font-display: "Roboto", sans-serif; }
:root[data-body="roboto"]     { --font-body: "Roboto", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.section-lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 46ch;
  line-height: 1.65;
}

.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }

/* index numerals used as architectural markers */
.idx {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */
/* ---------- liquid glass buttons ---------- */
.btn {
  --b: var(--accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 26px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 13px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.7);
  backdrop-filter: blur(16px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), inset 0 -8px 18px rgba(0,0,0,0.18), 0 10px 28px -10px rgba(0,0,0,0.55);
  transition: transform .28s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
/* top specular sheen */
.btn::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52%;
  border-radius: 13px 13px 40% 40% / 13px 13px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.02));
  opacity: 0.9; pointer-events: none; z-index: -1;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -8px 18px rgba(0,0,0,0.20), 0 16px 38px -10px rgba(0,0,0,0.62); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, transparent), color-mix(in srgb, var(--accent) 94%, transparent));
  border-color: color-mix(in srgb, var(--accent) 50%, rgba(255,255,255,0.5));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -10px 20px color-mix(in srgb, var(--accent) 40%, transparent), 0 10px 30px -8px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, white 10%), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -10px 22px color-mix(in srgb, var(--accent) 45%, transparent), 0 16px 40px -8px color-mix(in srgb, var(--accent) 85%, transparent);
}
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* light-theme glass tuning */
:root[data-theme="light"] .btn { border-color: rgba(20,30,45,0.16); background: rgba(255,255,255,0.5); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -8px 16px rgba(20,30,45,0.06), 0 10px 26px -12px rgba(20,30,45,0.3); }
:root[data-theme="light"] .btn::before { background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.05)); }
:root[data-theme="light"] .btn-ghost { background: rgba(20,30,45,0.04); border-color: rgba(20,30,45,0.18); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(20,30,45,0.09); }
:root[data-theme="light"] .hero h1, :root[data-theme="light"] .hero-sub, :root[data-theme="light"] .hero-eyebrow { text-shadow: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center;
  height: 84px;
  transition: background .4s var(--ease), height .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 68px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--accent);
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: 22px; line-height: 1;
  box-shadow: 0 0 0 1px var(--accent-line), 0 8px 22px -8px var(--accent);
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-transform: uppercase; }
.brand-name span { font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-dim); letter-spacing: 0.01em; transition: color .25s; position: relative; }
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; height:1px; width:0; background: var(--accent); transition: width .3s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--font-display); font-weight:600; font-size:15px; letter-spacing:.02em; color: var(--text); }
.header-phone .lab { display:block; font-family: var(--font-body); font-size:9.5px; letter-spacing:.24em; text-transform:uppercase; color: var(--text-faint); font-weight:600; }
@media (max-width: 900px) { .nav, .header-phone { display: none; } }

/* ---------- mobile menu ---------- */
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); color: var(--text); width: 44px; height: 44px; border-radius: var(--radius); font-size: 18px; cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-header .header-cta { display: none; }
  .mobile-menu {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; left: 0; right: 0; top: 0; z-index: 55;
    padding: 92px clamp(20px,5vw,40px) 32px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .42s var(--ease), opacity .42s var(--ease);
    max-height: 100svh; overflow-y: auto;
  }
  .mobile-menu.open, .site-header.menu-open .mobile-menu { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; text-transform: uppercase; letter-spacing: -0.01em; color: var(--text); padding: 13px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-of-type { border-bottom: none; }
  .mobile-menu .btn { margin-top: 18px; justify-content: center; }
  .mobile-menu .mm-phone { font-family: var(--font-display); font-size: 1.05rem; color: var(--accent); border: none; display: inline-flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; }
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-start; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero-grad {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 36%, color-mix(in srgb, var(--bg) 24%, transparent) 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 60%, transparent) 0%, transparent 20%, transparent 52%, var(--bg) 100%),
    color-mix(in srgb, var(--bg) 26%, transparent);
}
/* hero-lead is the positioning context for the truck: the truck is pinned to its
   bottom edge, which is the bottom of the CTA buttons (buttons are the last item
   in the lead). z-index -1 keeps the truck behind the copy but above the cube
   field, so it rides up beside the headline without covering text. */
.hero-lead { position: relative; }
.hero-truck {
  position: absolute; z-index: -1; pointer-events: none; height: auto;
  right: 0; bottom: 0;
  width: min(82vw, 420px);
  filter: drop-shadow(0 18px 38px rgba(0,0,0,0.55));
  animation: hero-truck-in 0.9s cubic-bezier(.2,.7,.2,1) both;
}
/* Animate the independent `translate` property (not `transform`), leaving the
   transform free for any future positioning tweak. */
@keyframes hero-truck-in { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero-truck { animation: none; } }
/* Desktop: float the truck on the right, near the buttons line, sized and nudged
   right so it sits in the clear zone beside the headline without overlapping any
   text. */
@media (min-width: 1000px) {
  .hero-truck { width: clamp(420px, 46vw, 640px); right: clamp(-72px, -4.5vw, -44px); bottom: clamp(-96px, -7vw, -56px); }
}
/* Below the desktop split, there's no empty space to float into, so drop the
   truck back into the flow beneath the buttons (stacked, centred). */
@media (max-width: 999.98px) {
  .hero-truck {
    position: static; z-index: auto;
    right: auto; bottom: auto;
    width: min(82vw, 420px);
    margin: clamp(8px, 3vh, 28px) auto clamp(8px, 3vh, 24px);
  }
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vh, 100px); padding-top: 120px; }
.hero-inner[data-align="center"] { text-align: center; }
.hero-inner[data-align="center"] .eyebrow { justify-content: center; }
.hero-inner[data-align="center"] .hero-sub { margin-inline: auto; }
.hero-inner[data-align="center"] .hero-actions { justify-content: center; }
.hero-inner[data-align="center"] .hero-stats { justify-content: center; }
.hero-eyebrow { margin-bottom: 26px; text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 9vw, 8.2rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 28px;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.45);
}
.hero h1 .thin { font-weight: 400; color: var(--text-dim); }
.hero h1 .accent { color: var(--accent); }
.hero-sub { max-width: 50ch; color: var(--text-dim); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; margin-bottom: 38px; text-shadow: 0 1px 16px rgba(0,0,0,0.55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px);
  margin-top: clamp(48px, 8vh, 92px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--text-dim); letter-spacing: 0.02em; margin-top: 8px; display: block; max-width: 18ch; }
.stat b .accent { color: var(--accent); }

.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(48px,8vh,100px); z-index: 2; display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-faint); }
.scroll-cue .bar { width: 1px; height: 56px; background: linear-gradient(var(--accent), transparent); }
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ---------- marquee strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.strip-track { display: flex; gap: 56px; padding: 20px 0; white-space: nowrap; animation: marquee 38s linear infinite; }
.strip-track span { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); display: inline-flex; align-items: center; gap: 56px; }
.strip-track span::after { content: "◆"; color: var(--accent); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
  isolation: isolate;
}
.svc:hover { transform: translateY(-6px); border-color: var(--accent-line); }
.svc-img { position: absolute; inset: 0; z-index: -2; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); filter: saturate(0.92); }
.svc:hover .svc-img img { transform: scale(1.06); }
.svc-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,8,11,0) 30%, rgba(6,8,11,0.5) 62%, rgba(6,8,11,0.95) 100%); }
.svc-body { padding: 28px; color: #fff; }
.svc-num { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.svc h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; margin-bottom: 12px; }
.svc p { color: rgba(255,255,255,0.78); font-size: 14.5px; line-height: 1.55; max-width: 34ch; }
.svc-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.svc-link .ico { color: var(--accent); transition: transform .3s var(--ease); }
.svc:hover .svc-link .ico { transform: translateX(5px); }

/* secondary services grid */
.svc-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 860px) { .svc-more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .svc-more-grid { grid-template-columns: 1fr; } }
.svc-mini { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); }
.svc-mini:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--surface-2); }
.svc-mini-ico { width: 46px; height: 46px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); font-size: 19px; }
.svc-mini-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.svc-mini-body b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--text); }
.svc-mini-body span { font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.svc-mini-arrow { color: var(--accent); font-size: 14px; flex: none; transition: transform .3s var(--ease); }
.svc-mini:hover .svc-mini-arrow { transform: translateX(4px); }
/* an orphaned last card alone on its row spans full width so it reads intentional */
.svc-more-grid .svc-mini:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 860px) { .svc-more-grid .svc-mini:last-child:nth-child(3n+1) { grid-column: auto; } .svc-more-grid .svc-mini:last-child:nth-child(2n+1) { grid-column: 1 / -1; } }
@media (max-width: 520px) { .svc-more-grid .svc-mini:last-child:nth-child(2n+1) { grid-column: auto; } }

/* ---------- WORK gallery ---------- */
.work { background: var(--bg-2); border-block: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 180px; gap: 14px; }
.work-grid figure { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-grid figure:hover img { transform: scale(1.07); }
.work-grid figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); }
.work-grid figure::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 50%, rgba(6,8,11,0.8)); opacity: 0; transition: opacity .4s var(--ease); }
.work-grid figure:hover figcaption { opacity: 1; transform: none; }
.work-grid figure:hover::after { opacity: 1; }
.w-a { grid-column: span 7; grid-row: span 2; }
.w-b { grid-column: span 5; grid-row: span 2; }
.w-c { grid-column: span 5; grid-row: span 2; }
.w-d { grid-column: span 7; grid-row: span 2; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } .w-a,.w-b,.w-c,.w-d { grid-column: span 1; grid-row: span 1; } }

/* ---------- WHY / process ---------- */
.why-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
@media (max-width: 920px) { .why-layout { grid-template-columns: 1fr; } }
.feat-list { display: flex; flex-direction: column; }
.feat {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.feat:last-child { border-bottom: 1px solid var(--line); }
.feat-ico { width: 52px; height: 52px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 21px; border: 1px solid var(--accent-line); }
.feat h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 6px; }
.feat p { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }

.process { display: flex; flex-direction: column; gap: 2px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .4s var(--ease), background .4s var(--ease); }
.step:hover { border-color: var(--accent-line); background: var(--surface-2); }
.step .n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 4px; }
.step p { color: var(--text-dim); font-size: 14px; line-height: 1.5; }
/* The static service/town pages hard-code an inline 4-column grid on .process,
   which overflows the screen on phones. Collapse it responsively — !important is
   required to override the inline style. Targets only those pages ([style]); the
   homepage .process is a flex column and is left untouched. */
@media (max-width: 900px) { .process[style] { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 560px) { .process[style] { grid-template-columns: 1fr !important; } }

/* ---------- CONTACT ---------- */
.contact { position: relative; }
.contact-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-card);
}
@media (max-width: 880px) { .contact-card { grid-template-columns: 1fr; } }
.contact-aside { padding: clamp(32px, 4vw, 52px); background: var(--surface-2); border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.contact-aside h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; margin-bottom: 18px; }
.contact-aside p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-bottom: 30px; max-width: 34ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.contact-actions .btn { flex: 1 1 160px; justify-content: center; }
.contact-or { font-size: 13px !important; color: var(--text-faint) !important; margin-bottom: 22px !important; max-width: none !important; }
.contact-detail { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-top: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail .ico { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); font-size: 16px; flex: none; }
/* Let the text column shrink so the long email wraps instead of being clipped by
   the aside's overflow:hidden on narrow screens. */
.contact-detail > div { min-width: 0; }
.contact-detail b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.contact-detail span { font-size: 12px; color: var(--text-faint); letter-spacing: 0.16em; text-transform: uppercase; }

.contact-form { padding: clamp(32px, 4vw, 52px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; min-height: 320px; }
.form-success .success-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-size: 26px; }
.form-success h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: -0.01em; }
.form-success p { color: var(--text-dim); font-size: 15px; line-height: 1.6; max-width: 42ch; }
.form-success a { color: var(--accent); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.field select { appearance: none; cursor: pointer; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.form-note .ico { color: var(--accent); }
.form-sent { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: 15px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; max-width: 34ch; margin-top: 20px; }
.footer-logo { height: 40px; width: auto; }
.foot-col h5 { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.foot-col a, .foot-col p { display: block; color: var(--text-dim); font-size: 14.5px; padding: 7px 0; transition: color .25s; }
.foot-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0 34px; flex-wrap: wrap; }
.footer-bottom small { color: var(--text-faint); font-size: 13px; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--text-dim); transition: all .25s; }
.footer-bottom .socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-bottom .foot-legal { width: auto; height: auto; border: none; border-radius: 0; color: var(--text-faint); font-size: 13px; padding: 0; display: inline-flex; align-items: center; }
.footer-bottom .foot-legal:hover { color: var(--accent); transform: none; border: none; }

/* reveal on scroll — content is VISIBLE by default; .in only plays an
   entrance animation, so nothing can ever get stuck invisible. */
/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; box-shadow: var(--shadow-card); }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.about-badge {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px); border: 1px solid var(--line-strong);
}
.about-badge b { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: #fff; }
.about-badge span { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,0.82); letter-spacing: 0.02em; }
.about-body .eyebrow { margin-bottom: 22px; }
.about-body .section-title { margin-bottom: 26px; }
.about-body p { color: var(--text-dim); font-size: 16px; line-height: 1.7; margin-bottom: 18px; max-width: 52ch; }
.about-body p b { color: var(--text); font-weight: 600; }
.about-foot { margin-top: 30px; }
.signature { font-family: var(--font-slab); font-weight: 600; font-size: 1.7rem; color: var(--text); line-height: 1; }
.sig-role { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-top: 8px; display: block; }
.cred-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cred { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); padding: 9px 15px; border: 1px solid var(--line); border-radius: var(--radius); }
.reg-line { margin: 18px 0 0; font-size: 12px; letter-spacing: 0.04em; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ---------- TESTIMONIALS ---------- */
.testimonials { background: var(--bg-2); border-block: 1px solid var(--line); }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .reviews-grid { grid-template-columns: 1fr; } }
.review {
  position: relative; margin: 0; padding: 34px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  display: flex; flex-direction: column; gap: 24px;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.review:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.review-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); padding: 7px 13px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.review blockquote { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--text); }
.review:first-child blockquote { font-size: 1.05rem; }
.review figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.review-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; background: var(--accent); }
.review-meta b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.review-meta span { font-size: 12.5px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.review-meta .fa-facebook-official { color: var(--accent); }
.g-rating { display: inline-flex; align-items: center; gap: 11px; margin-top: 22px; align-self: center; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text-dim); transition: border-color .25s, transform .25s; }
.g-rating:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.g-rating .stars { display: inline-flex; gap: 2px; color: var(--accent); font-size: 13px; }
.g-rating b { color: var(--text); font-family: var(--font-display); }

/* ---------- BRAND BAND (truck) ---------- */
.brandband { position: relative; min-height: clamp(440px, 66vh, 720px); display: flex; align-items: flex-end; overflow: hidden; border-block: 1px solid var(--line); isolation: isolate; }
.brandband img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.brandband-veil { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 38%, transparent 64%),
    linear-gradient(0deg, var(--bg) 2%, transparent 46%); }
.brandband .wrap { position: relative; z-index: 1; }
.brandband-inner { padding-block: clamp(36px, 6vw, 72px); max-width: 620px; }
.brandband-inner .eyebrow { margin-bottom: 20px; }
.brandband-inner .section-title { color: var(--text); margin-bottom: 20px; }
.brandband-inner p { color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 46ch; margin-bottom: 26px; }
.reg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.reg-chips span { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text); padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }

/* ---------- BEFORE/AFTER showcase (homepage) ---------- */
.transformation { background: var(--bg-2); border-block: 1px solid var(--line); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-grid figure { margin: 0; }
.ba-grid before-after { box-shadow: var(--shadow-card); }
.ba-grid figcaption { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }

/* reveal on scroll — content is ALWAYS visible; .in only adds a slide-up.
   No opacity fade, so nothing can ever render blank (frozen anim / JS-off safe). */
.reveal { opacity: 1; }
.reveal.in { animation: none; }
@keyframes revealUp {
  from { transform: translateY(24px); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal.in { animation: none; }
}
