/* ============================================================
   DQ CONSTRUCTION — Premium Commercial Construction
   Abbotsford, BC · Fraser Valley · Lower Mainland
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #161616;
  --ink-2: #1e1e1e;
  --ink-3: #262626;
  --paper: #fafafa;
  --paper-2: #f1f0ed;
  --concrete: #d9d9d9;
  --steel: #b7bdc5;
  --steel-dim: #8b919a;
  --gold: #c9a227;
  --gold-deep: #a8861d;
  /* Accessible gold for small text on light page backgrounds */
  --gold-text: #7d6211;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --white: #ffffff;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 14px;

  --shadow-1: 0 2px 10px rgba(22, 22, 22, 0.06);
  --shadow-2: 0 14px 40px rgba(22, 22, 22, 0.12);
  --shadow-3: 0 24px 60px rgba(22, 22, 22, 0.22);
  --shadow-gold: 0 10px 30px rgba(201, 162, 39, 0.28);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Theme surfaces — these flip in dark mode. Always-dark design
     elements (footer, .section-dark, .pillar-card, hero overlays…)
     keep using the raw --ink / --paper primitives and never flip. */
  --page-bg: var(--paper);
  --page-text: var(--ink);
  --surface: var(--white);
  --surface-2: var(--paper-2);
  --surface-border: var(--concrete);
  --on-surface: var(--ink);
  --on-surface-soft: rgba(22, 22, 22, 0.68);
  --on-surface-mute: rgba(22, 22, 22, 0.55);
  --input-bg: var(--paper);
  --outline: rgba(22, 22, 22, 0.3);
}

:root[data-theme="dark"] {
  --page-bg: #0e0f10;
  --page-text: #e9e9ec;
  --surface: #17181b;
  --surface-2: #121316;
  --surface-border: rgba(255, 255, 255, 0.11);
  --on-surface: #f3f3f5;
  --on-surface-soft: rgba(233, 233, 236, 0.74);
  --on-surface-mute: rgba(233, 233, 236, 0.52);
  --input-bg: #0b0c0d;
  --outline: rgba(255, 255, 255, 0.3);
  --concrete: rgba(255, 255, 255, 0.14);
  --gold-text: var(--gold);
}

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.09rem;
  line-height: 1.72;
  color: var(--page-text);
  background: var(--page-bg);
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); font-stretch: 118%; }
.display-lg { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.display-md { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
.display-sm { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--on-surface-soft);
  max-width: 62ch;
}
.section-dark .lede { color: var(--steel); }

/* Sheet-number eyebrow — the drawing-set label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.35rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 9px;
  flex: none;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 1.5px 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 1.5px 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat;
  opacity: 0.9;
}
.section:not(.section-dark) .eyebrow { color: var(--gold-text); }
.section:not(.section-dark) .eyebrow::before {
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) left center / 1.5px 9px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) right center / 1.5px 9px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 100% 1.5px no-repeat;
}

/* ---------- Layout shells ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--paper); }

.section-tinted { background: var(--surface-2); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head .lede { margin-top: 1.1rem; }

/* Survey crosshair corner marks on dark feature sections */
.crosshairs::before, .crosshairs::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: rgba(201, 162, 39, 0.5);
  pointer-events: none;
}
.crosshairs::before { top: 1.4rem; left: 1.6rem; }
.crosshairs::after { bottom: 1.4rem; right: 1.6rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn-outline { border: 1.5px solid rgba(250, 250, 250, 0.45); color: var(--paper); background: rgba(250, 250, 250, 0.02); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-outline-dark { border: 1.5px solid var(--outline); color: var(--page-text); }
.btn-outline-dark:hover { border-color: var(--gold-deep); color: var(--gold-deep); transform: translateY(-2px); }

.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gold-deep);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.text-link:hover { border-color: var(--gold-deep); gap: 0.8rem; }
.section-dark .text-link { color: var(--gold); }

/* ---------- Dark / light theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1.5px solid rgba(250, 250, 250, 0.28);
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.06);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: var(--ink);
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 2rem;
  color: var(--paper);
  letter-spacing: 0.04em;
}
.preloader-mark span { color: var(--gold); }
.preloader-bar {
  width: 180px;
  height: 2px;
  background: rgba(250, 250, 250, 0.15);
  overflow: hidden;
  border-radius: 2px;
}
.preloader-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold);
  animation: load-sweep 1s var(--ease) infinite;
}
@keyframes load-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(450px); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), #e3c14f);
  z-index: 250;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.15rem;
}
.site-header.scrolled {
  background: rgba(22, 22, 22, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  padding-block: 0.65rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}
.brand-text {
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--steel);
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-menu a:not(.btn) {
  position: relative;
  color: rgba(250, 250, 250, 0.85);
  font-weight: 500;
  font-size: 0.98rem;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current="page"]:not(.btn) { color: var(--paper); }
.nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav-menu .btn { padding: 0.7rem 1.5rem; min-height: 44px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 220;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -6%;
  z-index: -2;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Tuned for a bright daylight photo: keeps the left column (where the
     headline sits) very dark so light text stays easily readable, while
     the right side still shows the building. */
  background:
    linear-gradient(100deg, rgba(14, 14, 14, 0.96) 0%, rgba(14, 14, 14, 0.9) 38%, rgba(14, 14, 14, 0.62) 72%, rgba(14, 14, 14, 0.48) 100%),
    linear-gradient(to top, rgba(14, 14, 14, 0.92), rgba(14, 14, 14, 0.3) 55%, rgba(14, 14, 14, 0.45));
}
/* faint blueprint grid over hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(183, 189, 197, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 189, 197, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%);
  mask-image: linear-gradient(to bottom, transparent, black 30%);
}

.hero-content {
  max-width: 780px;
  padding-block: clamp(8rem, 16vh, 11rem) clamp(5rem, 10vh, 7rem);
}
.hero-content .eyebrow { margin-bottom: 1.6rem; }
.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.94);
  max-width: 60ch;
}
/* Extra insurance for legibility over a photographic background */
.hero-content h1,
.hero-content .hero-sub { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.hero-content .eyebrow { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* gold "level line" under the headline */
.level-line {
  display: block;
  width: 110px;
  height: 3px;
  margin-top: 1.7rem;
  background: linear-gradient(90deg, var(--gold) 0 70%, transparent 70% 82%, var(--gold) 82%);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero-scroll-cue::after {
  content: "";
  width: 1.5px;
  height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue-drop 2.2s var(--ease) infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 58vh, 560px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-media { inset: 0; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(22, 22, 22, 0.95) 8%, rgba(22, 22, 22, 0.55) 55%, rgba(22, 22, 22, 0.45));
}
.page-hero .container { padding-block: 3.5rem 3rem; }
.page-hero .lede { color: var(--steel); margin-top: 1.1rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 1.2rem;
}
.breadcrumbs a { color: var(--steel); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: rgba(183, 189, 197, 0.5); }
.breadcrumbs [aria-current] { color: var(--gold); }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }

/* ---------- Why choose cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.pillar-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid rgba(183, 189, 197, 0.14);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-3);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--steel-dim);
  display: block;
  margin-bottom: 1.4rem;
}
.pillar-card .icon { margin-bottom: 1.3rem; }
.pillar-card h3 { font-size: 1.18rem; margin-bottom: 0.7rem; color: var(--paper); }
.pillar-card p { font-size: 1.01rem; line-height: 1.66; color: var(--steel); }

.icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s var(--ease);
}
.section:not(.section-dark) .icon { color: var(--gold-deep); }
.icon svg { width: 26px; height: 26px; }
.pillar-card:hover .icon, .service-card:hover .icon, .value-card:hover .icon {
  background: var(--gold);
  color: var(--ink);
  transform: scale(1.06) rotate(-3deg);
}

/* ---------- About preview / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.split-media:hover img { transform: scale(1.05); }
.split-media .media-tag {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius-sm);
  background: rgba(22, 22, 22, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(250, 250, 250, 0.16);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.split-media .media-tag strong { color: var(--gold); }
.split-body .lede { margin-block: 1.1rem 1.4rem; }
.check-list { display: grid; gap: 0.85rem; margin-bottom: 2rem; }
.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-weight: 500;
}
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--gold-deep); margin-top: 0.2rem; }
.section-dark .check-list svg { color: var(--gold); }

/* ---------- Services grid ---------- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2);
  border-color: rgba(201, 162, 39, 0.55);
}
.service-card h3 { font-size: 1.15rem; color: var(--on-surface); }
.service-card p { font-size: 1rem; line-height: 1.62; color: var(--on-surface-soft); flex: 1; }
.service-card .text-link { font-size: 0.92rem; }

/* ---------- Featured projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.project-card:hover img { transform: scale(1.08); filter: brightness(0.55); }
.project-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(22, 22, 22, 0.92), transparent);
  transform: translateY(calc(100% - 5.6rem));
  transition: transform 0.5s var(--ease);
}
.project-card:hover figcaption, .project-card:focus-within figcaption { transform: none; }
.project-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.project-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; color: var(--paper); }
.project-loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 0.6rem;
}
.project-loc svg { width: 15px; height: 15px; color: var(--gold); }
.project-card figcaption p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.82);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.1s;
}
.project-card:hover figcaption p, .project-card:focus-within figcaption p { opacity: 1; }

/* ---------- Process timeline ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  position: relative;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.55) 0 10px, transparent 10px 18px);
}
.process-step { position: relative; text-align: center; padding-top: 0.4rem; }
.process-dot {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-2);
  border: 1.5px solid rgba(201, 162, 39, 0.6);
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 600;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.process-step:hover .process-dot {
  background: var(--gold);
  color: var(--ink);
  transform: scale(1.12);
  box-shadow: var(--shadow-gold);
}
.process-step h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; line-height: 1.6; color: var(--steel); max-width: 24ch; margin-inline: auto; }

/* ---------- Stats ---------- */
.stats-band {
  background:
    linear-gradient(rgba(22, 22, 22, 0.9), rgba(22, 22, 22, 0.94)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1800&q=60") center / cover no-repeat;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}
/* Distributes evenly no matter how many stats are shown (2, 3, or 4). */
.stats-grid > .stat-value { flex: 1 1 190px; max-width: 300px; }
.stat-value {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--paper);
  line-height: 1;
}
.stat-value .suffix { color: var(--gold); }
.stat-label {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
.stat-rule {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* ---------- Areas / map ---------- */
.areas-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.area-map-frame {
  background: var(--ink-2);
  border: 1px solid rgba(183, 189, 197, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-2);
}
.area-map-frame svg { width: 100%; height: auto; }
.area-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}
.areas-layout { align-items: stretch; }
.map-city circle { transition: fill 0.25s var(--ease); }
.map-city text { transition: fill 0.25s var(--ease); }
.map-city:hover circle { fill: #e3c14f; }
.map-city:hover text { fill: #fafafa; }

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.area-chips li {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(183, 189, 197, 0.3);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--steel);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.area-chips li:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}
.area-chips li.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- CTA band (glassmorphism) ---------- */
.cta-band {
  position: relative;
  background:
    linear-gradient(rgba(22, 22, 22, 0.72), rgba(22, 22, 22, 0.82)),
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=60") center / cover no-repeat;
  padding-block: clamp(5rem, 10vw, 8rem);
}
.cta-glass {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  background: rgba(250, 250, 250, 0.07);
  border: 1px solid rgba(250, 250, 250, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-3);
  color: var(--paper);
}
.cta-glass h2 { color: var(--paper); }
.cta-glass p { margin-top: 1rem; color: var(--steel); font-size: 1.08rem; }
.cta-glass .hero-actions { justify-content: center; margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #101010;
  color: var(--steel);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(183, 189, 197, 0.14);
}
.footer-logo-row { display: flex; align-items: center; gap: 0.7rem; }
.footer-logo-row img { width: 36px; height: 36px; flex: none; }
.footer-logo-row h4 { margin: 0; }
.footer-brand p { margin-top: 1.2rem; max-width: 34ch; line-height: 1.7; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(183, 189, 197, 0.25);
  color: var(--steel);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-social a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }

.footer-credit {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: rgba(183, 189, 197, 0.72);
}
.footer-credit a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.footer-credit a:hover { color: var(--gold-deep); text-decoration: underline; }
.footer-social svg { width: 19px; height: 19px; }

.footer-col h4 {
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 1.3rem;
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.55;
}
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 0.25rem; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  font-size: 0.82rem;
  color: var(--steel-dim);
}
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-gold);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease);
}
.floating-cta.show { transform: none; }
.floating-cta:hover { background: var(--gold-deep); }
.floating-cta svg { width: 18px; height: 18px; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.service-detail + .service-detail { border-top: 1px solid var(--concrete); }
.service-detail.flip .service-detail-media { order: 2; }
.service-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.service-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.service-detail-media:hover img { transform: scale(1.05); }
.service-detail h2 { margin-bottom: 1rem; }
.service-detail .service-desc { font-size: 1.12rem; color: var(--on-surface-soft); margin-bottom: 1.5rem; }
.service-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.service-meta h3 {
  font-family: var(--font-mono);
  font-stretch: 100%;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.service-meta ul { display: grid; gap: 0.45rem; font-size: 0.99rem; }
.service-meta li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--on-surface-soft);
}
.service-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(201, 162, 39, 0.5); }
.value-card .icon { margin-bottom: 1.2rem; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.value-card p { font-size: 1.01rem; line-height: 1.66; color: var(--on-surface-soft); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.mv-card {
  position: relative;
  border-radius: var(--radius);
  padding: 2.4rem 2.1rem;
  background: var(--ink-2);
  border: 1px solid rgba(183, 189, 197, 0.16);
  overflow: hidden;
}
.mv-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border: 1.5px solid rgba(201, 162, 39, 0.25);
  border-radius: 50%;
}
.mv-card h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 0.9rem; }
.mv-card p { color: var(--steel); line-height: 1.7; }

/* company timeline (vertical) */
.history {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 2.4rem;
}
.history::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: repeating-linear-gradient(rgba(201, 162, 39, 0.55) 0 8px, transparent 8px 15px);
}
.history-item { position: relative; padding-bottom: 2.4rem; }
.history-item:last-child { padding-bottom: 0; }
.history-item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 8px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
  transform: translateX(0.5px);
}
.history-year {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}
.history-item h3 { font-size: 1.2rem; margin-block: 0.4rem 0.5rem; }
.history-item p { color: var(--steel); font-size: 0.96rem; line-height: 1.65; max-width: 58ch; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.team-card {
  background: var(--white);
  border: 1px solid var(--concrete);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.team-card figcaption { padding: 1.4rem 1.5rem 1.6rem; }
.team-card h3 { font-size: 1.12rem; }
.team-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-block: 0.35rem 0.6rem;
}
.team-card p { font-size: 0.9rem; color: rgba(22, 22, 22, 0.68); line-height: 1.6; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.contact-info-card {
  position: sticky;
  top: 110px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.1rem;
  box-shadow: var(--shadow-2);
}
.contact-info-card h2 { font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--paper); }
.contact-info-card > p { color: var(--steel); font-size: 0.96rem; margin-bottom: 1.8rem; }
.contact-lines { display: grid; gap: 1.4rem; }
.contact-lines li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-lines .icon { width: 44px; height: 44px; flex: none; color: var(--gold); }
.contact-lines .icon svg { width: 21px; height: 21px; }
.contact-lines strong {
  display: block;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.contact-lines a, .contact-lines span { color: var(--paper); font-weight: 500; line-height: 1.5; }
.contact-lines a:hover { color: var(--gold); }

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-1);
}
.contact-form-card h2 { margin-bottom: 0.6rem; }
.contact-form-card > p { color: var(--on-surface-soft); margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.92rem; }
.form-field label .req { color: var(--gold-deep); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--on-surface);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  min-height: 48px;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.form-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--on-surface-soft);
}
.form-consent input {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--gold);
  flex: none;
}
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.4rem; }
.form-note { grid-column: 1 / -1; font-size: 0.82rem; color: var(--on-surface-mute); }
.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-status.ok { display: block; background: rgba(46, 125, 50, 0.1); border: 1px solid rgba(46, 125, 50, 0.4); color: #245c28; }
.form-status.err { display: block; background: rgba(183, 28, 28, 0.08); border: 1px solid rgba(183, 28, 28, 0.35); color: #8e1c1c; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--concrete);
}
.map-embed iframe { width: 100%; height: 440px; border: 0; display: block; }

/* FAQ accordion */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-item.open { border-color: rgba(201, 162, 39, 0.55); box-shadow: var(--shadow-1); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-q .faq-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 400;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold); color: var(--ink); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.5rem 1.3rem; color: var(--on-surface-soft); font-size: 1.03rem; line-height: 1.72; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(201, 162, 39, 0.5); }
.testimonial-stars { display: flex; gap: 0.25rem; color: var(--gold); }
.testimonial-stars svg { width: 18px; height: 18px; }
.testimonial-card blockquote { font-size: 1.06rem; line-height: 1.7; color: var(--on-surface-soft); }
.testimonial-author { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { display: block; font-size: 0.82rem; color: var(--on-surface-mute); }

/* ============================================================
   LISTINGS / PORTFOLIO PAGE
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.filter-btn {
  padding: 0.65rem 1.3rem;
  border: 1.5px solid var(--concrete);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--on-surface-soft);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.listing-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.4s var(--ease);
}
.listing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-3); }
.listing-card.is-hidden { display: none; }
.listing-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.listing-card:hover .listing-media img { transform: scale(1.08); }
.listing-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.listing-body { padding: 1.6rem 1.5rem 1.8rem; }
.listing-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.listing-loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(22, 22, 22, 0.55);
  margin-bottom: 0.8rem;
}
.listing-loc svg { width: 15px; height: 15px; color: var(--gold-deep); }
.listing-body p { font-size: 1rem; line-height: 1.62; color: var(--on-surface-soft); margin-bottom: 1.1rem; }

/* Clickable gallery trigger (replaces the static media div) */
button.listing-media {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--paper-2);
}
button.listing-media:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.listing-count {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.listing-count svg { width: 14px; height: 14px; color: var(--gold); }
.gallery-photos { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(12, 12, 12, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  width: 100%;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  transition: opacity 0.25s var(--ease);
}
.lightbox-title {
  margin-top: 1.2rem;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.lightbox-title span { color: var(--gold); }
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox-btn:hover { background: var(--gold); color: var(--ink); }
.lightbox-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-prev { left: clamp(-0.5rem, -1vw, -1.5rem); }
.lightbox-next { right: clamp(-0.5rem, -1vw, -1.5rem); }
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px;
  height: 48px;
}
.lightbox-close svg { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-btn { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.2); }
}

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4, .grid-services { grid-template-columns: repeat(2, 1fr); }
  .projects-grid, .listing-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .process-track::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .areas-layout, .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .team-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 210;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: rgba(22, 22, 22, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; }
  .nav-menu a:not(.btn) { font-size: 1.4rem; }
  .split, .service-detail, .mv-grid { grid-template-columns: 1fr; }
  .service-detail.flip .service-detail-media { order: 0; }
  .split-media img { aspect-ratio: 16 / 11; }
}

@media (max-width: 600px) {
  .grid-4, .grid-services, .projects-grid, .team-grid, .values-grid, .listing-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .stats-grid { gap: 2.5rem 1rem; }
  .form-grid, .service-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-scroll-cue { display: none; }
  .floating-cta span { display: none; }
  .floating-cta { padding: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-media { transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .floating-cta, .scroll-progress, .preloader, .hero-scroll-cue { display: none !important; }
}
