/* ==========================================================================
   Apex Painting, LLC — site stylesheet
   One stylesheet, built on the tokens below. No !important overrides.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/oswald-latin-var.woff2") format("woff2");
}

:root {
  /* Brand color: one teal (matched to the Apex trailer), gold accent from the logo */
  --teal: #42d1c1;            /* brand teal: buttons, accents on dark */
  --teal-hover: #5fdccd;
  --teal-ink: #0c7a70;        /* same hue, darkened for readable text on light backgrounds */
  --gold: #dea745;            /* logo gold: used sparingly */
  --ink: #0d1111;             /* near-black */
  --ink-2: #151b1b;
  --ink-3: #1d2525;
  --paper: #f6f3ec;           /* warm off-white */
  --white: #ffffff;
  --text: #1a2020;
  --muted: #5a6361;
  --muted-dark: #a7b1af;      /* body copy on dark */
  --line: rgba(13, 17, 17, .12);
  --line-dark: rgba(255, 255, 255, .12);

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;

  /* Shape + depth */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(13, 17, 17, .06), 0 4px 14px rgba(13, 17, 17, .06);
  --shadow-md: 0 2px 6px rgba(13, 17, 17, .06), 0 18px 44px rgba(13, 17, 17, .12);

  /* Spacing scale */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1200px;

  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200;
  background: var(--teal); color: var(--ink); font-weight: 700;
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }
.break { overflow-wrap: anywhere; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .005em;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.02; }
h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--teal); }
.section-lead { font-size: 1.0625rem; color: var(--muted); max-width: 40rem; margin-top: var(--space-5); }
.text-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--teal-ink); font-weight: 650;
  border-bottom: 1.5px solid color-mix(in srgb, var(--teal-ink) 35%, transparent);
  transition: border-color .2s, gap .2s var(--ease);
}
.text-link:hover { border-color: var(--teal-ink); gap: .55rem; }
.text-link .icon { width: 1em; height: 1em; }

/* ---------- Buttons: one primary, one secondary (outline) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.4rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 650; letter-spacing: .01em; line-height: 1;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--ink); box-shadow: 0 6px 18px rgba(66, 209, 193, .22); }
.btn-primary:hover { background: var(--teal-hover); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(66, 209, 193, .3); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-dark-outline { color: var(--ink); border-color: rgba(13, 17, 17, .28); }
.btn-dark-outline:hover { border-color: var(--ink); background: rgba(13, 17, 17, .04); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 0 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  /* Keep a solid-enough bar so the white-wordmark logo stays visible over bright hero photos */
  background: linear-gradient(to bottom, rgba(8, 11, 11, .88), rgba(8, 11, 11, .55) 72%, rgba(8, 11, 11, .2));
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(13, 17, 17, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line-dark), 0 10px 30px rgba(0, 0, 0, .18);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  height: 72px;
  width: auto;
  flex: none;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .28rem;
  line-height: .95;
  min-width: 0;
}
.brand-name,
.brand-loc {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
}
.brand-name {
  color: var(--white);
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  letter-spacing: .05em;
}
.brand-loc {
  color: #d4a64a;
  font-size: clamp(.95rem, 1.4vw, 1.25rem);
  letter-spacing: .15em;
}
.primary-nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-list a {
  position: relative; font-size: .9375rem; font-weight: 550; color: rgba(255, 255, 255, .88);
  padding: .5rem 0; transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px;
  background: var(--teal); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-list a:hover, .nav-list a.is-current { color: var(--white); }
.nav-list a:hover::after, .nav-list a.is-current::after { transform: scaleX(1); }
.nav-cta, .nav-phone-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-5); }
.header-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 650; font-size: .9375rem; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.header-phone .icon { color: var(--teal); width: 1.05em; height: 1.05em; }
.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  border: 0; background: transparent; border-radius: var(--radius-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-bar { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-bar:nth-child(2) { opacity: 0; }
.nav-open .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .header-phone span { display: none; }
  .header-phone { width: 42px; height: 42px; justify-content: center; border: 1.5px solid rgba(255,255,255,.3); border-radius: var(--radius); }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand-mark { height: 54px; }
  .brand { gap: .5rem; }
  .brand-name { font-size: 1.05rem; letter-spacing: .05em; }
  .brand-loc { font-size: .75rem; letter-spacing: .14em; }
  .menu-toggle { display: inline-flex; }
  .header-phone, .header-cta { display: none; }
  .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--space-4);
    padding: var(--space-3) var(--gutter) var(--space-6);
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line-dark); }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.0625rem; }
  .nav-list a::after { display: none; }
  .nav-cta { display: inline-flex; min-height: 52px; }
  .nav-phone-mobile { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; color: var(--white); font-weight: 600; padding: .5rem; }
  .nav-phone-mobile .icon { color: var(--teal); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100vh); min-height: max(640px, 100svh);
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden;
}
.hero picture, .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-media { object-fit: cover; object-position: 62% 60%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 11, 11, .86) 0%, rgba(8, 11, 11, .66) 38%, rgba(8, 11, 11, .18) 68%, rgba(8, 11, 11, 0) 100%),
    linear-gradient(0deg, rgba(8, 11, 11, .78) 0%, rgba(8, 11, 11, 0) 42%),
    linear-gradient(180deg, rgba(8, 11, 11, .45) 0%, rgba(8, 11, 11, 0) 22%);
}
.hero-content { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(3.5rem, 9vh, 7rem); }
.hero h1 {
  font-size: clamp(3.1rem, 7.4vw, 6.75rem);
  line-height: .94; letter-spacing: .002em;
  max-width: 11ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero h1::after {
  content: ""; display: block; width: 72px; height: 3px; margin-top: 1.6rem;
  background: var(--gold); border-radius: 3px;
}
.hero-meta {
  margin-top: 1.4rem;
  font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white);
}
.hero-meta span { color: var(--teal); margin: 0 .35em; }
.hero-lead { margin-top: .9rem; max-width: 34rem; font-size: 1.125rem; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

@media (max-width: 960px) and (min-width: 701px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 11, 11, .7) 0%, rgba(8, 11, 11, .35) 60%, rgba(8, 11, 11, .1) 100%),
      linear-gradient(0deg, rgba(8, 11, 11, .9) 0%, rgba(8, 11, 11, .55) 45%, rgba(8, 11, 11, 0) 70%),
      linear-gradient(180deg, rgba(8, 11, 11, .45) 0%, rgba(8, 11, 11, 0) 22%);
  }
}
@media (max-width: 700px) {
  .hero { min-height: max(600px, 100svh); }
  .hero-media { object-position: 50% 55%; }
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 11, 11, .95) 0%, rgba(8, 11, 11, .8) 38%, rgba(8, 11, 11, .12) 66%, rgba(8, 11, 11, .05) 82%, rgba(8, 11, 11, .5) 100%);
  }
  .hero-content { padding-bottom: calc(2.25rem + 64px); }
  .hero-eyebrow { display: none; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4rem); }
  .hero h1::after { margin-top: 1.2rem; width: 56px; }
  .hero-meta { font-size: .75rem; letter-spacing: .1em; line-height: 1.7; }
  .hero-meta span { margin: 0 .2em; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Trust row ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
}
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--radius); background: rgba(66, 209, 193, .12); color: var(--teal-ink);
}
.trust-icon .icon { width: 22px; height: 22px; }
.trust-title { font-family: var(--font-body); text-transform: none; font-size: 1rem; font-weight: 650; letter-spacing: -.005em; line-height: 1.3; }
.trust-item p { font-size: .875rem; color: var(--muted); margin-top: .25rem; line-height: 1.5; }
.trust-item a { color: var(--teal-ink); font-weight: 650; white-space: nowrap; }
@media (max-width: 1000px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(odd) { padding-left: 0; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { padding: var(--space-5) 0; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-paper { background: var(--paper); }
.section-light { background: var(--white); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-lead { color: var(--muted-dark); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }
.section-head-center .eyebrow::after { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section-foot { margin-top: var(--space-7); text-align: center; color: var(--muted); }

/* ---------- Services ---------- */
.service-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: #d9d6ce; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-body { padding: var(--space-5) var(--space-5) var(--space-6); border-top: 3px solid var(--teal); }
.service-body p, .service-mini p { color: var(--muted); font-size: .9375rem; margin-top: .45rem; line-height: 1.55; }
.service-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-5); }
.service-mini {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: var(--space-5);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.service-mini:hover { border-color: rgba(12, 122, 112, .35); box-shadow: var(--shadow-sm); }
.mini-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--radius); background: var(--ink); color: var(--teal);
}
.mini-icon .icon { width: 22px; height: 22px; }
.service-mini h3 { font-size: 1.0625rem; }
@media (max-width: 1000px) {
  .service-feature-grid, .service-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .service-feature-grid, .service-mini-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .service-mini-grid { margin-top: var(--space-4); }
}

/* ---------- Projects / gallery ---------- */
.gallery-tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2);
  margin: 0 auto var(--space-6);
}
.gallery-tab {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1rem;
  background: transparent; color: var(--muted-dark);
  border: 1.5px solid var(--line-dark); border-radius: 999px;
  font-size: .875rem; font-weight: 600; white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s;
}
.gallery-tab:hover { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.gallery-tab.is-active { color: var(--ink); background: var(--white); border-color: var(--white); }

.gallery-panels { position: relative; }
.gallery-panel[hidden] { display: none; }

.job-group + .job-group { margin-top: var(--space-7); }
.job-label {
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: var(--space-4);
}
.job-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
}
.gallery-tile {
  display: block; width: 100%; padding: 0; margin: 0;
  border: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--ink-3); cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gallery-tile:hover,
.gallery-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.gallery-tile img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Full gallery: dense multi-column, no labels */
.full-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
}
.gallery-panel-full .gallery-tile {
  border-radius: 4px;
  aspect-ratio: 1 / 1;
}
.gallery-panel-full .gallery-tile:nth-child(7n),
.gallery-panel-full .gallery-tile:nth-child(11n) {
  aspect-ratio: 3 / 4;
}

@media (max-width: 1099px) {
  .job-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .full-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .gallery-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    gap: .45rem;
  }
  .gallery-tabs::-webkit-scrollbar { display: none; }
  .gallery-tab { flex: none; padding: 0 .85rem; font-size: .8125rem; }
  .job-grid,
  .full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  .job-group + .job-group { margin-top: var(--space-6); }
}

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
}
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 11, 11, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox-dialog {
  position: relative; z-index: 1;
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  display: grid; place-items: center;
}
.lightbox-figure {
  max-width: 100%; max-height: calc(100vh - 2rem);
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
.lightbox-figure img {
  display: block; max-width: 100%; max-height: calc(100vh - 2rem);
  width: auto; height: auto; margin: 0 auto; object-fit: contain;
}
.lightbox-close {
  position: absolute; top: .5rem; right: .5rem; z-index: 2;
  background: rgba(13, 17, 17, .7); border-color: rgba(255, 255, 255, .25);
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(13, 17, 17, .7); border-color: rgba(255, 255, 255, .25);
}
.lightbox-prev { left: .25rem; }
.lightbox-next { right: .25rem; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: transparent; color: var(--white);
  border: 1.5px solid var(--line-dark); border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.icon-btn .icon { width: 20px; height: 20px; }
@media (max-width: 700px) {
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .lightbox-dialog { width: calc(100vw - .75rem); }
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.reviews-grid .section-head { margin-bottom: 0; }
.review-cta-card {
  position: relative; background: var(--ink); color: var(--white);
  border-radius: calc(var(--radius) + 4px); padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.review-cta-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal) 70%, var(--gold));
}
.review-cta-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius);
  background: rgba(66, 209, 193, .12); color: var(--teal); margin-bottom: var(--space-5);
}
.review-cta-icon .icon { width: 26px; height: 26px; }
.review-cta-card h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.08; }
.review-cta-card > p { color: var(--muted-dark); margin-top: .75rem; }
.review-cta-actions { margin-top: var(--space-6); }
.review-cta-note { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line-dark); font-size: .875rem; }
/* Ready for real quotes (see HTML comment in #reviews) */
.review-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.review-card { background: var(--white); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.review-stars { color: var(--gold); letter-spacing: .15em; }
.review-card blockquote { margin: var(--space-4) 0; font-size: 1.0625rem; }
.review-card figcaption { font-weight: 650; }
.review-card figcaption span { color: var(--muted); font-weight: 500; }
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review-list { grid-template-columns: 1fr; }
}

/* ---------- About / brand ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.about-media { border-radius: calc(var(--radius) + 4px); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.about-note { margin-top: var(--space-4); color: var(--white); font-weight: 550; padding-left: var(--space-4); border-left: 3px solid var(--gold); }
.about-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .about-actions .btn { width: 100%; }
}

/* ---------- Contact + estimate form ---------- */
.contact { position: relative; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { display: grid; gap: var(--space-5); margin: var(--space-6) 0; }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--radius); background: rgba(66, 209, 193, .12); color: var(--teal-ink);
}
.contact-icon .icon { width: 21px; height: 21px; }
.contact-list div { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list div > span:last-child { font-size: 1.0625rem; font-weight: 600; color: var(--ink); margin-top: .1rem; }
.contact-list a:hover { color: var(--teal-ink); }

.estimate-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.estimate-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; }
.estimate-sub { color: var(--muted); margin-top: .4rem; font-size: .9375rem; }
.estimate-form { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-size: .875rem; font-weight: 650; color: var(--ink); }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem;
  background: var(--white); color: var(--ink);
  border: 1.5px solid rgba(13, 17, 17, .16); border-radius: var(--radius);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a9290; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(13, 17, 17, .3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 4px rgba(66, 209, 193, .25);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.field select { padding-right: 2.5rem; cursor: pointer; }
.field select:invalid { color: #8a9290; }
.field select option { color: var(--ink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alt { text-align: center; font-size: .9375rem; color: var(--muted); }
.form-alt a { color: var(--teal-ink); font-weight: 650; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-copy .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1.35fr .7fr 1fr; gap: clamp(2rem, 4vw, 3rem); }
.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-left: -2px;
}
.footer-brand .brand-mark {
  height: 88px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.footer-brand .brand-name {
  font-size: 1.45rem;
  letter-spacing: .06em;
}
.footer-brand .brand-loc {
  font-size: .95rem;
  letter-spacing: .16em;
  color: #d4a64a;
}
.footer-brand p { margin-top: var(--space-4); max-width: 22rem; }
.footer-title { font-family: var(--font-body); text-transform: none; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: var(--muted-dark); transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.social-list a { display: inline-flex; align-items: center; gap: .6rem; }
.social-list .icon { color: var(--teal); }
.social-list .muted { color: #6f7a78; font-size: .8125rem; }
.footer-service-area {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
}
.footer-service-area p {
  margin: 0;
  max-width: 58rem;
  font-size: .75rem;
  line-height: 1.55;
  color: #6f7a78;
}
.footer-service-label {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .02em;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  margin-top: var(--space-5); padding-block: var(--space-5);
  border-top: 1px solid var(--line-dark); font-size: .8125rem; color: #7c8785;
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: .25rem; }
}

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(13, 17, 17, .08);
    transition: transform .3s var(--ease);
  }
  .mobile-bar .btn { min-height: 48px; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; scroll-behavior: auto; }
}



@media (max-width: 420px) {
  .brand-mark { height: 46px; }
  .brand-name { font-size: .95rem; }
  .brand-loc { font-size: .68rem; letter-spacing: .12em; }
}

.brand-name, .footer-brand .brand-name { color: #e6e1d6 !important; }
