/* ============================================================
   LICCIARDI CONSTRUCTION — Site stylesheet
   Brand: Mitri Consulting · "Premium Residential Construction."
   Palette  Ink #111111 · White #FFFFFF · Red #EB121C
            Graphite #6E6E6E · Steel #D9D7D3 · Paper #FAFAF8
   Type     Saira (display) · Inter (body) · JetBrains Mono (data)
   Signature: the red "level line" — the datum every build starts from
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:       #111111;
  --ink-2:     #1b1b1b;   /* slightly lifted dark panel */
  --white:     #ffffff;
  --red:       #eb121c;
  --red-deep:  #c20d16;   /* hover */
  --graphite:  #6e6e6e;
  --steel:     #d9d7d3;
  --steel-2:   #ecebe8;
  --paper:     #fafaf8;

  --font-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 1px 0 rgba(17,17,17,.04), 0 18px 40px -28px rgba(17,17,17,.45);
  --shadow-sm: 0 10px 24px -18px rgba(17,17,17,.5);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
/* long, unbreakable strings (emails, urls) must wrap on narrow screens */
.info-item .i-val, .footer-contact .fc-row a, .legal a { overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .7rem 1rem;
  font: 500 .8rem/1 var(--font-mono); letter-spacing: .08em;
}
.skip-link:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--ink { background: var(--ink); color: #fff; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--steel { background: var(--steel-2); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
.h-hero { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em; }
.h-section { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.h-sub { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; }
p { max-width: 65ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--graphite); }
.section--ink .lead { color: #c9c9c9; }
strong { font-weight: 600; }

/* Eyebrow / kicker — JetBrains Mono, the "spec label" voice */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 500 .72rem/1 var(--font-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--graphite);
}
.section--ink .eyebrow { color: var(--steel); }
.eyebrow::before {
  content: ""; width: 22px; height: 3px; background: var(--red); flex: none;
}

/* The red "level line" — signature rule under headings */
.level-rule { width: 56px; height: 4px; background: var(--red); border: 0; margin: 1.1rem 0 0; }
.center .level-rule { margin-inline: auto; }

/* Data string (phone, ABN, codes) */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: .01em;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; transition: transform .15s var(--ease), background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--ink .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost, .page-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover, .cta-band .btn--ghost:hover, .page-hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color:#fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--steel-2); }
.btn--sm { padding: .6rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* arrow that nudges on hover */
.arr { width: 18px; height: 18px; flex: none; }
.btn .arr { transition: transform .15s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--steel);
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 1.6rem; }
.nav-list a {
  font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--ink);
  padding: .35rem 0; position: relative; letter-spacing: .005em;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0;
  background: var(--red); transition: width .2s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { width: 100%; }
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-cta-mobile { display: none; }   /* shown only inside the mobile menu */
.nav-list .nav-cta-mobile a { color: #fff; }  /* keep button text white (beats .nav-list a) */

.header-cta { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font: 500 .95rem/1 var(--font-mono); color: var(--ink); }
.header-phone svg { width: 16px; height: 16px; color: var(--red); }
.header-phone span.lbl { display:block; font-size:.62rem; letter-spacing:.16em; color:var(--graphite); text-transform:uppercase; }

/* Mobile controls */
.nav-toggle, .header-call-icon { display: none; }
.nav-toggle {
  width: 46px; height: 46px; border: 1px solid var(--steel); border-radius: var(--radius-sm);
  background: #fff; align-items: center; justify-content: center; flex: none;
}
.nav-toggle .bars { position: relative; width: 22px; height: 2px; background: var(--ink); transition: background .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content:""; position:absolute; left:0; width:22px; height:2px; background:var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::after { /* faint datum line across the base */
  content:""; position:absolute; left:0; right:0; bottom:0; height:4px;
  background: linear-gradient(90deg, var(--red) 0 40%, rgba(235,18,28,.15) 40% 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero h1 .accent { color: var(--red); }
.hero .lead { color: #cfcfcf; max-width: 46ch; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.8rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-trust li { display: flex; align-items: center; gap: .55rem; font: 500 .8rem/1.2 var(--font-mono); letter-spacing: .04em; color: #d7d7d7; }
.hero-trust svg { width: 16px; height: 16px; color: var(--red); flex: none; }

/* Image placeholder panel */
.media-ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 14px, transparent 14px 28px),
    var(--ink-2);
  border: 1px solid rgba(255,255,255,.10);
  display: grid; place-content: center; text-align: center; gap: .8rem;
  aspect-ratio: 4 / 3; padding: 1.5rem;
}
.media-ph--light { background:
    repeating-linear-gradient(45deg, rgba(17,17,17,.025) 0 14px, transparent 14px 28px),
    var(--steel-2);
  border: 1px solid var(--steel); }
.media-ph .ph-sym { width: 84px; opacity: .5; }
.media-ph .ph-label { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #9a9a9a; }
.media-ph--light .ph-label { color: var(--graphite); }
.media-ph .ph-tag { position: absolute; top: 12px; left: 12px; font: 500 .6rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); border: 1px solid rgba(235,18,28,.4); padding: .3rem .45rem; border-radius: 2px; }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin-top: .7rem; }
.sec-head p { margin-top: 1rem; }
.center .sec-head p { margin-inline: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--steel); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; gap: .65rem; height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfcdc8; }
.card .card-num { font: 500 .72rem/1 var(--font-mono); letter-spacing: .14em; color: var(--red); }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--graphite); font-size: .98rem; margin: 0; }
.card .card-link { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .4rem; font: 600 .92rem/1 var(--font-display); color: var(--ink); }
.card .card-link .arr { color: var(--red); transition: transform .15s var(--ease); }
.card:hover .card-link .arr { transform: translateX(3px); }
.card-ico { width: 40px; height: 40px; color: var(--red); }

/* Differentiators (why-choose) */
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .tick { flex: none; width: 26px; height: 26px; border-radius: 2px; background: rgba(235,18,28,.10); color: var(--red); display: grid; place-content: center; }
.feature .tick svg { width: 15px; height: 15px; }
.section--ink .feature .tick { background: rgba(235,18,28,.18); }
.feature h3 { font-size: 1.1rem; }
.feature p { font-size: .95rem; color: var(--graphite); margin: .2rem 0 0; }
.section--ink .feature p { color: #b8b8b8; }

/* ---------- Process steps (a true sequence -> numbered) ---------- */
.steps { counter-reset: step; display: grid; gap: clamp(1rem,2.5vw,1.5rem); grid-template-columns: repeat(4,1fr); }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  position: absolute; top: 0; left: 0; font: 700 1.05rem/1 var(--font-mono); color: var(--red);
}
.step::after { content: ""; position: absolute; top: 8px; left: 2.6rem; right: 0; height: 3px; background: var(--steel); }
.step:last-child::after { display: none; }
.section--ink .step::after { background: rgba(255,255,255,.14); }
.step h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.step p { font-size: .94rem; color: var(--graphite); margin: 0; }
.section--ink .step p { color: #b8b8b8; }

/* ---------- Service detail rows ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; padding-block: clamp(2rem,4vw,3rem); border-top: 1px solid var(--steel); }
.svc:first-of-type { border-top: 0; }
.svc.flip .svc-media { order: -1; }
.svc h3 { font-size: clamp(1.4rem,2.6vw,1.9rem); margin-top: .6rem; }
.svc ul.ticks { margin-top: 1.1rem; display: grid; gap: .55rem; }
.svc ul.ticks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; }
.ticks svg { width: 16px; height: 16px; color: var(--red); flex: none; margin-top: .28rem; }

/* ---------- Gallery / Our Work ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.filter-btn {
  font: 500 .82rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .6rem .95rem; border: 1px solid var(--steel); background: #fff; color: var(--graphite);
  border-radius: 2px; transition: all .15s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(.8rem,2vw,1.2rem); }
.tile {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(45deg, rgba(17,17,17,.03) 0 14px, transparent 14px 28px), var(--steel-2);
  border: 1px solid var(--steel); display: grid; place-content: center; gap: .5rem; text-align: center;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; padding: 1rem;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .ph-sym { width: 60px; opacity: .45; }
.tile .ph-label { font: 500 .66rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.tile .cat-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font: 500 .58rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(17,17,17,.82); padding: .3rem .45rem; border-radius: 2px; }
.tile .cat-tag.is-res { background: rgba(235,18,28,.92); }
.tile[hidden] { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(17,17,17,.92); display: none; place-content: center; padding: 1.5rem; }
.lightbox.is-open { display: grid; }
.lightbox figure { max-width: min(900px, 92vw); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: #d7d7d7; font: 400 .9rem/1.5 var(--font-body); margin-top: .9rem; text-align: center; }
.lightbox-close { position: absolute; top: 1.1rem; right: 1.1rem; width: 44px; height: 44px; border-radius: 2px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); display: grid; place-content: center; font-size: 1.4rem; }
.lightbox-close:hover { background: var(--red); border-color: var(--red); }
.lb-ph { display:grid; place-content:center; gap:1rem; padding:4rem 2rem; background:var(--ink-2); border:1px solid rgba(255,255,255,.12); border-radius:var(--radius); text-align:center; }
.lb-ph .ph-sym { width:90px; opacity:.5; margin-inline:auto; }
.lb-ph p { color:#9a9a9a; font:500 .8rem/1.5 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; margin:0; max-width:none; }

/* ---------- Testimonials ---------- */
.testi { position: relative; }
.testi-track { display: grid; }
.testi-slide { grid-area: 1/1; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease); }
.testi-slide.is-active { opacity: 1; visibility: visible; }
.testi-quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem,2.2vw,1.6rem); line-height: 1.35; max-width: 40ch; margin-inline: auto; letter-spacing: -0.01em; }
.section--ink .testi-quote { color: #fff; }
.testi-quote .qm { color: var(--red); }
.testi-meta { margin-top: 1.4rem; font: 500 .8rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.section--ink .testi-meta { color: var(--steel); }
.testi-stars { display: flex; gap: .2rem; justify-content: center; margin-bottom: 1.3rem; color: var(--red); }
.testi-stars svg { width: 18px; height: 18px; max-width: 18px; max-height: 18px; flex: none; }
.testi-track { touch-action: pan-y; }
.testi-quote, .testi-meta { overflow-wrap: anywhere; }
.testi-slide.is-long .testi-quote { font-size: clamp(1rem,1.6vw,1.25rem); line-height: 1.45; max-width: 52ch; }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 2rem; }
.testi-nav[hidden] { display: none; }
.testi-arrow { width: 44px; height: 44px; flex: none; display: grid; place-content: center; border-radius: 50%; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); transition: background .15s, border-color .15s; }
.testi-arrow svg { width: 20px; height: 20px; }
.testi-arrow:hover, .testi-arrow:focus-visible { background: var(--red); border-color: var(--red); }
.testi-dots { display: flex; flex-wrap: wrap; justify-content: center; }
/* 9px visual dot inside a 32px tap target */
.testi-dot { position: relative; width: 32px; height: 32px; background: transparent; border: 0; padding: 0; }
.testi-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--steel); transition: background .2s, width .2s; }
.section--ink .testi-dot::before { background: rgba(255,255,255,.25); }
.testi-dot.is-active::before { background: var(--red); width: 22px; border-radius: 5px; }
.testi-count { display: block; min-width: 4.5ch; text-align: center; font: 500 .85rem/1 var(--font-mono); letter-spacing: .08em; color: var(--steel); }
.testi.has-many .testi-dots { display: none; }
.testi.has-many .testi-count { display: block; }

/* ---------- Trust badges ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.badge { border: 1px solid var(--steel); border-radius: var(--radius); padding: 1.3rem; text-align: center; background: #fff; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.section--ink .badge { background: var(--ink-2); border-color: rgba(255,255,255,.12); }
.badge svg { width: 30px; height: 30px; color: var(--red); }
.badge .b-title { font: 600 1rem/1.2 var(--font-display); }
.badge .b-sub { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .06em; color: var(--graphite); text-transform: uppercase; }
.section--ink .badge .b-sub { color: var(--steel); }

/* ---------- Service areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; }
.area-chip { font: 500 .85rem/1 var(--font-mono); letter-spacing: .04em; padding: .55rem .85rem; border: 1px solid var(--steel); border-radius: 2px; background: #fff; color: var(--ink); }
.section--ink .area-chip { background: transparent; border-color: rgba(255,255,255,.2); color: #e7e7e7; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; top:0; left:0; right:0; height:4px; background: linear-gradient(90deg, rgba(235,18,28,.15) 0 60%, var(--red) 60% 100%); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-inner h2 { max-width: 20ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .4rem; }
.field label { font: 500 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--steel); border-radius: var(--radius);
  background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(235,18,28,.12); }
.field .err-msg { font: 500 .78rem/1.3 var(--font-body); color: var(--red); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field.has-error .err-msg { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font: 400 .85rem/1.5 var(--font-body); color: var(--graphite); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--graphite); }
.form-consent input { margin-top: .3rem; }

/* ---------- Leave a review ---------- */
.section--review { background: #fff; border-bottom: 1px solid var(--steel-2); }
.review-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.review-intro .lead { margin-top: 1rem; }
.field-label { font: 500 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .25rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.star-input label { cursor: pointer; color: var(--steel); transition: color .15s var(--ease), transform .15s var(--ease); line-height: 0; }
.star-input label svg { display: block; width: 30px; height: 30px; max-width: 30px; max-height: 30px; }
.star-input input:checked ~ label { color: var(--red); }
.star-input:hover label { color: var(--steel); }
.star-input:hover label:hover, .star-input:hover label:hover ~ label { color: var(--red); }
.star-input label:hover { transform: scale(1.08); }
.star-input input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
.review-status { font: 500 .9rem/1.4 var(--font-body); min-height: 1.4em; color: var(--graphite); }
.review-status.is-error { color: var(--red); }
.review-status.is-success { color: #1f7a3a; }
.review-form button[disabled] { opacity: .6; cursor: progress; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.testi-dots { flex-wrap: wrap; }
@media (max-width: 860px) { .review-wrap { grid-template-columns: 1fr; } }
@media (hover: none) {
  /* stop the hover preview "sticking" after a tap on touch screens */
  .star-input:hover label:hover, .star-input:hover label:hover ~ label { color: var(--steel); }
  .star-input:hover input:checked ~ label, .star-input:hover input:checked ~ label:hover { color: var(--red); }
  .star-input label:hover { transform: none; }
}
@media (max-width: 620px) {
  .review-wrap { gap: 1.75rem; }
  .review-intro .h-section { font-size: clamp(1.5rem, 7vw, 2rem); }
  .review-intro .lead { margin-top: .75rem; font-size: 1rem; }
  .star-input { gap: .15rem; margin-left: -6px; }
  .star-input label { padding: 6px; }          /* ~44px tap targets */
  .star-input label svg { width: 32px; height: 32px; max-width: 32px; max-height: 32px; }
  .review-form .field textarea { min-height: 150px; }
  .review-submit { width: 100%; }
  .testi-quote { font-size: 1.1rem; line-height: 1.45; }
  .testi-slide.is-long .testi-quote { font-size: 1rem; line-height: 1.55; }
  .testi-meta { margin-top: 1.1rem; }
  .testi-nav { margin-top: 1.5rem; gap: .5rem; }
}

/* ---------- Contact aside ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.info-block { display: grid; gap: 1.4rem; }
.info-item { display: flex; gap: .9rem; align-items: flex-start; }
.info-item .i-ico { flex: none; width: 40px; height: 40px; border-radius: 2px; background: rgba(235,18,28,.08); color: var(--red); display: grid; place-content: center; }
.info-item .i-ico svg { width: 18px; height: 18px; }
.info-item .i-lbl { font: 500 .68rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); margin-bottom: .25rem; }
.info-item .i-val { font-size: 1.02rem; color: var(--ink); }
.info-item a.i-val:hover { color: var(--red); }
.map-ph { position: relative; margin-top: .5rem; aspect-ratio: 16/10; border-radius: var(--radius); overflow:hidden; border: 1px solid var(--steel); background: repeating-linear-gradient(45deg, rgba(17,17,17,.03) 0 14px, transparent 14px 28px), var(--steel-2); }
.map-ph iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; gap: .7rem; text-align: center; padding: 1.5rem; }
.map-fallback .ph-sym { width: 54px; opacity: .45; margin-inline: auto; }
.map-fallback p { font: 500 .7rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); margin: 0; max-width: none; }
.map-note { display:grid; place-content:center; gap:.7rem; height:100%; background: repeating-linear-gradient(45deg, rgba(17,17,17,.03) 0 14px, transparent 14px 28px), var(--steel-2); text-align:center; padding:1.5rem; }
.map-note .ph-sym { width:54px; opacity:.45; margin-inline:auto; }
.map-note p { font:500 .7rem/1.4 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--graphite); margin:0; max-width:none; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--ink); color: #fff; position: relative; }
.page-hero::after { content:""; position:absolute; left:0; bottom:0; width:120px; height:4px; background: var(--red); }
.page-hero-inner { padding-block: clamp(3rem,6vw,4.5rem); }
.page-hero h1 { color: #fff; max-width: 18ch; margin-top: .8rem; }
.page-hero .lead { color: #cfcfcf; margin-top: 1.1rem; }
.crumbs { font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { color: var(--red); margin: 0 .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c9c9; padding-block: clamp(3rem,6vw,4.5rem) 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .92rem; color: #a8a8a8; max-width: 34ch; }
.footer-tag { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-top: 1.1rem; }
.footer-col h4 { font: 600 .78rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { font-size: .94rem; color: #b5b5b5; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-contact .fc-row { font-size: .94rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .55rem; }
.footer-contact .fc-row svg { width: 16px; height: 16px; flex: none; color: var(--red); }
.footer-contact .fc-row a:hover { color: var(--red); }
.footer-contact .mono { color: #e4e4e4; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; font: 400 .82rem/1 var(--font-body); }
.footer-legal a { color: #9a9a9a; }
.footer-legal a:hover { color: #fff; }
.footer-copy { font: 400 .82rem/1.4 var(--font-body); color: #8a8a8a; }
.footer-social { display: flex; gap: .7rem; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; display: grid; place-content: center; color: #cfcfcf; transition: all .15s; }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; max-width: 560px; margin-inline: auto;
  background: var(--ink); color: #e6e6e6; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie.is-shown { display: flex; }
.cookie::before { content:""; position:absolute; top:0; left:1.2rem; right:1.2rem; height:3px; background:var(--red); }
.cookie p { font-size: .88rem; margin: 0; flex: 1 1 240px; color: #cfcfcf; max-width: none; }
.cookie p a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: .6rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: 1.2rem; padding-block: 4rem; }
.notfound .code { font: 700 clamp(4rem,14vw,8rem)/1 var(--font-display); color: var(--ink); letter-spacing: -.03em; }
.notfound .code span { color: var(--red); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.4rem,3vw,1.9rem); margin-top: 2.6rem; }
.legal h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal p, .legal li { color: #333; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: .8rem 0; display: grid; gap: .5rem; }
.legal .meta { font: 500 .8rem/1.6 var(--font-mono); color: var(--graphite); padding: 1rem 1.2rem; background: var(--steel-2); border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 2rem; }
.legal .callout { font-size: .92rem; color: var(--graphite); padding: 1rem 1.2rem; border: 1px dashed var(--steel); border-radius: var(--radius); background: #fff; }

/* placeholder inline marker (visible cue for content to swap) */
.ph-inline { color: var(--red); border-bottom: 1px dotted var(--red); }

/* ---------- Scroll animations (JS-gated so content is never hidden without JS) ---------- */
/* Elements are tagged automatically by main.js; --rd is a per-element stagger delay */
.js .reveal {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .75s var(--ease), transform .75s var(--ease), clip-path 1.1s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js .reveal--left  { transform: translate3d(-34px, 0, 0); }
.js .reveal--right { transform: translate3d(34px, 0, 0); }
.js .reveal--zoom  { transform: scale(.95); }
/* photos "wipe" open left-to-right, like a level line being drawn */
.js .reveal--wipe  { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
.js .reveal.from-above:not(.is-visible):not(.reveal--left):not(.reveal--right):not(.reveal--zoom):not(.reveal--wipe) { transform: translate3d(0, -26px, 0); }
/* scrolling up: content drops in from above, photos wipe open right-to-left */
.js .reveal--wipe.from-above:not(.is-visible) { clip-path: inset(0 0 0 100%); }
.js .reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js .reveal.reveal-reset, .js .eyebrow.reveal.reveal-reset::before { transition: none !important; }

/* eyebrow red dash draws in after its label appears */
.js .eyebrow.reveal::before { width: 0; transition: width .6s var(--ease); transition-delay: calc(var(--rd, 0ms) + 250ms); }
.js .eyebrow.reveal.is-visible::before { width: 22px; }

/* Hero + page header entrance (plays on load) */
@keyframes lc-rise  { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes lc-wipe  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lc-draw  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-grid > div:first-child > *,
.page-hero-inner > * { animation: lc-rise .8s var(--ease) both; }
.hero-grid > div:first-child > :nth-child(2), .page-hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-grid > div:first-child > :nth-child(3), .page-hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-grid > div:first-child > :nth-child(4), .page-hero-inner > :nth-child(4) { animation-delay: .3s; }
.hero-grid > div:first-child > :nth-child(5), .page-hero-inner > :nth-child(5) { animation-delay: .4s; }
.hero-media { animation: lc-wipe 1.2s var(--ease) .25s both; overflow: hidden; border-radius: var(--radius); }
.hero .photo { will-change: transform; }
.hero::after, .page-hero::after { transform-origin: left center; animation: lc-draw 1.4s var(--ease) .45s both; }

/* Scroll progress — the red level line across the top of the viewport */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: var(--red); transform-origin: left center; transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .eyebrow.reveal::before { width: 22px !important; }
  .hero-grid > div:first-child > *, .page-hero-inner > *, .hero-media,
  .hero::after, .page-hero::after { animation: none !important; }
  .hero .photo { transform: none !important; }
  .scroll-progress { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step::after { display: none; }
}

@media (max-width: 860px) {
  /* header -> mobile */
  .nav { position: fixed; inset: 78px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--steel);
         transform: translateY(-130%); transition: transform .3s var(--ease); margin: 0; max-height: calc(100vh - 78px); overflow:auto; box-shadow: var(--shadow); }
  .nav.is-open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.4rem; }
  .nav-list li { border-bottom: 1px solid var(--steel); }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.15rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--red); }
  .nav-list .nav-cta-mobile { display: block; margin-top: 1.1rem; border: 0; }
  .header-cta .header-phone, .header-cta .btn { display: none; }
  .header-call-icon { display: grid; place-content: center; width: 46px; height: 46px; border: 1px solid var(--steel); border-radius: var(--radius-sm); background:#fff; color: var(--red); flex: none; }
  .header-call-icon svg { width: 18px; height: 18px; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 46px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero .media-ph { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 1.4rem; }
  .svc.flip .svc-media { order: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .btn { white-space: normal; }   /* long labels wrap instead of forcing overflow */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Home intro service list ---------- */
.intro-list { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .65rem 1.6rem; }
.intro-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--graphite); }
.tick-ico { color: var(--red); flex: none; margin-top: .15em; }
.tick-ico svg { width: 18px; height: 18px; }

/* Linked section heading */
.h-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; border-bottom: 2px solid transparent; transition: border-color .2s; }
.h-link:hover, .h-link:focus-visible { border-bottom-color: var(--red); }

/* ---------- Real photos (replace the .media-ph placeholders) ---------- */
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--steel); }
.hero .photo { border-color: rgba(255,255,255,.10); }

/* Before / after pair on the Our Work page */
.card.ba-card:hover { transform: none; box-shadow: none; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.4rem; }
.ba-grid figure { position: relative; margin: 0; }
.ba-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.ba-grid figcaption { position: absolute; top: .65rem; left: .65rem; background: var(--ink); color: #fff; font: 500 .62rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; padding: .4rem .55rem; border-radius: var(--radius-sm); }
.ba-grid figcaption.is-after { background: var(--red); }
