/* ==========================================================================
   Blue Rock & Co. — Cinematic Design System v4.0
   Dark · editorial · LAVILLA-inspired. Cormorant Garamond (headings) + Geist (body).
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  --color-bg: #080B12;
  --color-surface: #0F1420;
  --color-surface-2: #141B2A;
  --color-navy: #1A2744;
  --color-gold: #C4973A;
  --color-gold-light: #E2B96A;
  --color-text-primary: #F0EDE8;
  --color-text-muted: #8A8A8A;
  --color-border: rgba(196, 151, 58, 0.2);
  --color-border-soft: rgba(240, 237, 232, 0.08);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Geist', system-ui, sans-serif;

  --container: 1280px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 12vw, 140px);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 300ms var(--ease);
  --radius: 4px;

  --z-nav: 100;
  --z-overlay: 200;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--color-gold); color: var(--color-bg); }

/* ── Layout helpers ───────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--color-surface); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
  display: inline-block;
}
/* Cormorant reads best with slightly open display tracking */
h1, h2 { letter-spacing: 0.03em; }
.heading {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.03em;
  font-size: clamp(34px, 5.5vw, 60px);
  color: var(--color-text-primary);
}
.lead { color: var(--color-text-muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; }
.text-muted { color: var(--color-text-muted); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: var(--radius);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn--outline {
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  background: transparent;
}
.btn--outline:hover { background: var(--color-gold); color: var(--color-bg); }
.btn--solid {
  background: var(--color-gold);
  color: var(--color-bg);
  border: 1px solid var(--color-gold);
}
.btn--solid:hover { background: var(--color-gold-light); border-color: var(--color-gold-light); }
.btn--ghost { color: var(--color-text-primary); border: 1px solid var(--color-border-soft); }
.btn--ghost:hover { border-color: var(--color-gold); color: var(--color-gold-light); }
.btn__arrow { transition: transform var(--t); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ── Header / Nav ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t), backdrop-filter var(--t), box-shadow var(--t), height var(--t);
}
.site-header.scrolled {
  background: rgba(8, 11, 18, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-border-soft);
  height: 70px;
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; z-index: calc(var(--z-overlay) + 1); }
.brand img { height: 46px; width: auto; border-radius: 3px; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  position: relative;
  padding-block: 6px;
  transition: color var(--t);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--color-gold);
  transition: width var(--t);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Language toggle */
.lang-switch { display: inline-flex; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.lang-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  color: var(--color-text-muted);
  transition: background var(--t), color var(--t);
}
.lang-btn[aria-pressed="true"] { background: var(--color-gold); color: var(--color-bg); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; z-index: calc(var(--z-overlay) + 1); }
.nav-toggle span { width: 26px; height: 2px; background: var(--color-text-primary); transition: transform var(--t), opacity var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: -10% 0; z-index: -2; }
.hero__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(8,11,18,0.92) 0%, rgba(8,11,18,0.75) 38%, rgba(8,11,18,0.3) 100%),
    linear-gradient(to top, rgba(8,11,18,0.85) 0%, rgba(8,11,18,0) 45%);
}
.hero__inner { padding-top: var(--header-h); max-width: 720px; }
.hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: 0.03em;
  margin: 18px 0 26px;
}
.hero__title em { font-style: italic; color: var(--color-gold-light); }
.hero__sub { max-width: 480px; margin-bottom: 38px; }
.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.hero__scroll span:last-child { width: 1px; height: 44px; background: linear-gradient(var(--color-gold), transparent); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── Stats bar ────────────────────────────────────────────────────────── */
.stats {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border-soft);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
.stat { padding: clamp(36px, 5vw, 56px) clamp(20px, 3vw, 48px); position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56px;
  background: linear-gradient(transparent, var(--color-gold), transparent);
}
.stat__num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  color: var(--color-gold-light);
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--color-text-muted); font-size: 14px; margin-top: 10px; max-width: 240px; }

/* ── Section header ───────────────────────────────────────────────────── */
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }

/* ── Services preview cards ───────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-border-soft); border: 1px solid var(--color-border-soft); }
.svc-card {
  background: var(--color-surface);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 32px);
  border-top: 2px solid transparent;
  transition: border-color var(--t), background var(--t), transform var(--t);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.svc-card:hover { border-top-color: var(--color-gold); background: var(--color-surface-2); }
.svc-card__num {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--color-gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: auto;
  transition: opacity var(--t);
}
.svc-card:hover .svc-card__num { opacity: 1; }
.svc-card__title { font-family: var(--font-heading); font-size: 26px; font-weight: 600; margin: 28px 0 12px; }
.svc-card__desc { font-size: 14.5px; color: var(--color-text-muted); line-height: 1.7; }

/* ── Bento portfolio teaser ───────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 16px;
  min-height: 560px;
}
.bento__item { position: relative; overflow: hidden; border-radius: var(--radius); }
.bento__item:first-child { grid-row: span 2; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.bento__item:hover img { transform: scale(1.05); }
.bento__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,11,18,0.7), transparent 60%);
  opacity: 0; transition: opacity var(--t);
}
.bento__item:hover::after { opacity: 1; }
.bento__cap {
  position: absolute; left: 24px; bottom: 22px; z-index: 2;
  font-family: var(--font-heading); font-style: italic; font-size: 22px;
  color: var(--color-text-primary);
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--t), transform var(--t);
}
.bento__item:hover .bento__cap { opacity: 1; transform: translateY(0); }
.bento__cap small { display: block; font-family: var(--font-body); font-style: normal; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-gold-light); margin-bottom: 4px; }

/* ── Two-column (about teaser / split) ────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.pull-quote {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pull-quote::before { content: '“'; color: var(--color-gold); }
.pull-quote::after { content: '”'; color: var(--color-gold); }

/* ── Media frame ──────────────────────────────────────────────────────── */
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4/5; }
.media-frame--wide { aspect-ratio: 3/2; }

/* ── Alternating service rows (services page) ─────────────────────────── */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.svc-row:last-child { margin-bottom: 0; }
.svc-row__media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.svc-row__media:hover img { transform: scale(1.04); }
/* Custom Home gallery (multiple beta house photos) */
.svc-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-gallery__cell { overflow: hidden; border-radius: var(--radius); }
.svc-gallery__cell--lead { grid-column: 1 / -1; aspect-ratio: 16/9; }
.svc-gallery__cell:not(.svc-gallery__cell--lead) { aspect-ratio: 1/1; }
.svc-gallery__cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms var(--ease); }
.svc-gallery__cell:hover img { transform: scale(1.04); }
.svc-row__num { font-family: var(--font-heading); font-size: 18px; color: var(--color-gold); letter-spacing: 0.1em; }
.svc-row__title { font-family: var(--font-heading); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; margin: 8px 0 20px; }
.checklist { margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--color-text-primary); }
.checklist svg { flex: none; width: 18px; height: 18px; color: var(--color-gold); margin-top: 3px; }

/* ── Service feature (text-only, e.g. Industrial) ─────────────────────── */
.svc-feature {
  margin-bottom: clamp(64px, 9vw, 120px);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.svc-feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(196,151,58,0.12), transparent 60%);
  pointer-events: none;
}
.svc-feature:last-child { margin-bottom: 0; }
.svc-feature__inner { position: relative; max-width: 760px; }
.svc-feature .eyebrow { display: inline-block; margin-bottom: 18px; }
.svc-feature .svc-row__title { margin-top: 8px; }
.svc-feature .btn { margin-top: 28px; }
.svc-feature__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin-top: 36px; }
.svc-rendering { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.svc-rendering img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; transition: transform 800ms var(--ease); }
.svc-rendering:hover img { transform: scale(1.04); }
@media (max-width: 768px) { .svc-feature__media { grid-template-columns: 1fr; } }

/* ── Portfolio page (filter + masonry) ────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 22px; border: 1px solid var(--color-border-soft); border-radius: 999px;
  color: var(--color-text-muted);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.filter-btn:hover { color: var(--color-text-primary); border-color: var(--color-border); }
.filter-btn.active { background: var(--color-gold); color: var(--color-bg); border-color: var(--color-gold); }

.masonry { columns: 3; column-gap: 16px; }
.masonry__item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.masonry__item img { width: 100%; transition: transform 700ms var(--ease); }
.masonry__item:hover img { transform: scale(1.05); }
.masonry__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,11,18,0.78), transparent 55%); opacity: 0; transition: opacity var(--t); }
.masonry__item:hover::after { opacity: 1; }
.masonry__cap { position: absolute; left: 20px; bottom: 18px; z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity var(--t), transform var(--t); }
.masonry__item:hover .masonry__cap { opacity: 1; transform: translateY(0); }
.masonry__cap em { font-family: var(--font-heading); font-style: italic; font-size: 20px; color: var(--color-text-primary); }
.masonry__cap small { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-gold-light); margin-bottom: 3px; }
.masonry__item.hide { display: none; }

/* ── Architectural rendition badge ────────────────────────────────────── */
.rendition-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-primary);
  background: rgba(8, 11, 18, 0.72);
  border: 1px solid var(--color-border-soft);
  border-radius: 999px; padding: 6px 12px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.masonry__item--rendition .masonry__cap { bottom: 50px; }

/* ── Sold Homes Selector ──────────────────────────────────────────────── */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.spec-card {
  position: relative; display: flex; flex-direction: column; text-align: left; cursor: pointer; padding: 0;
  background: var(--color-surface); border: 1px solid var(--color-border-soft);
  border-radius: calc(var(--radius) * 2); overflow: hidden; font-family: var(--font-body);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.spec-card:hover { border-color: var(--color-border); }
.spec-card.is-active {
  border: 2px solid var(--color-gold); transform: scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.spec-card:focus-visible { outline: 2px solid var(--color-gold-light); outline-offset: 3px; }
.spec-card__img { position: relative; display: block; line-height: 0; overflow: hidden; }
.spec-card__img img { width: 100%; height: 210px; object-fit: cover; opacity: 0.7; transition: transform 700ms var(--ease), opacity var(--t); }
.spec-card:hover .spec-card__img img, .spec-card.is-active .spec-card__img img { opacity: 1; }
.spec-card:hover .spec-card__img img { transform: scale(1.05); }
.spec-card__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2; line-height: 1;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-navy); background: var(--color-gold);
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.spec-card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.spec-card__name { font-family: var(--font-heading); font-size: 24px; font-weight: 600; color: var(--color-text-primary); }
.spec-card__meta { font-size: 12px; letter-spacing: 0.05em; color: var(--color-text-muted); }
.spec-card__cta {
  margin-top: 8px; align-self: flex-start; line-height: 1;
  font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-navy); background: var(--color-gold);
  padding: 9px 18px; border-radius: var(--radius);
  transition: background var(--t);
}
.spec-card:hover .spec-card__cta, .spec-card.is-active .spec-card__cta { background: var(--color-gold-light); }

/* Detail panel — vertical stack, fades in below grid */
.spec-panel { display: none; }
.spec-panel.is-active {
  display: block;
  background: var(--color-surface); border: 1px solid var(--color-border-soft);
  border-radius: calc(var(--radius) * 3); overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  animation: specFade 320ms ease-in-out;
}
@keyframes specFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.spec-panel__head { text-align: center; margin-bottom: 30px; }
.spec-panel__name { font-family: var(--font-heading); font-size: clamp(30px, 5vw, 46px); font-weight: 600; color: var(--color-text-primary); margin: 8px 0 0; letter-spacing: 0.02em; }

.spec-stats {
  list-style: none; padding: 0; margin: 0 auto 32px; max-width: 800px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.spec-stats li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 20px 8px; background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft); border-radius: calc(var(--radius) * 2);
}
.spec-stats svg { width: 24px; height: 24px; color: var(--color-gold); }
.spec-stat__label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.spec-stats strong { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--color-text-primary); line-height: 1.1; }

.spec-panel__desc { color: var(--color-text-muted); line-height: 1.75; margin: 0 auto 36px; max-width: 60ch; text-align: center; }

.spec-floorplan-wrap { text-align: center; margin-bottom: 36px; }
.spec-floorplan__label { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 16px; }
.spec-floorplan { margin: 0 auto; max-width: 680px; }
.spec-floorplan img {
  display: block; width: 100%; height: auto; cursor: zoom-in;
  background: #fff; padding: 16px; border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--color-border-soft);
}
.spec-floorplan img:focus-visible { outline: 2px solid var(--color-gold-light); outline-offset: 3px; }

.spec-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Floor-plan lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 11, 18, 0.92); padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease), visibility 240ms var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(1100px, 96vw); max-height: 92vh; width: auto; height: auto; background: #fff; padding: 12px; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 999px;
  background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-primary);
  font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--t), border-color var(--t);
}
.lightbox__close:hover { background: var(--color-surface-2); border-color: var(--color-gold); }
.lightbox__close:focus-visible { outline: 2px solid var(--color-gold-light); outline-offset: 3px; }

@media (max-width: 900px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-stats { grid-template-columns: repeat(3, 1fr); max-width: 440px; }
}
@media (max-width: 480px) {
  .spec-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Page banner (interior pages) ─────────────────────────────────────── */
.page-banner { position: relative; padding-top: calc(var(--header-h) + clamp(48px, 9vw, 110px)); padding-bottom: clamp(40px, 7vw, 80px); border-bottom: 1px solid var(--color-border-soft); overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 0%, rgba(196,151,58,0.08), transparent 60%); z-index: -1; }
.breadcrumb { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--color-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span { opacity: 0.4; margin-inline: 8px; }
.page-banner h1 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(40px, 6.5vw, 76px); line-height: 1.02; letter-spacing: 0.03em; }
.page-banner p { max-width: 560px; margin-top: 18px; }

/* ── CTA banner ───────────────────────────────────────────────────────── */
.cta-banner { position: relative; text-align: center; background: var(--color-surface); border-top: 2px solid var(--color-gold); }
.cta-banner h2 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.cta-banner p { max-width: 520px; margin: 20px auto 36px; }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.contact-info h2 { font-family: var(--font-heading); font-size: 30px; font-weight: 600; margin-bottom: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--color-border-soft); }
.contact-item__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-gold); }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 4px; }
.contact-item a, .contact-item p { font-size: 16px; color: var(--color-text-primary); }
.contact-item a:hover { color: var(--color-gold-light); }

.form-card { background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  color: var(--color-text-primary);
  padding: 13px 15px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(196,151,58,0.12); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23C4973A' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin-top: 16px; font-size: 14px; padding: 12px 16px; border-radius: var(--radius); display: none; }
.form-status.success { display: block; background: rgba(196,151,58,0.12); border: 1px solid var(--color-border); color: var(--color-gold-light); }
.form-status.error { display: block; background: rgba(200,60,60,0.12); border: 1px solid rgba(200,60,60,0.4); color: #e88; }
.form-note { font-size: 12.5px; color: var(--color-text-muted); margin-top: 16px; }

/* ── Center panel (thank-you / 404) ───────────────────────────────────── */
.center-panel { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 48px) var(--pad-x) 80px; background: radial-gradient(ellipse at top, rgba(196,151,58,0.07), transparent 60%), var(--color-bg); }
.center-panel__inner { max-width: 600px; }
.center-panel h1 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(44px, 8vw, 92px); line-height: 1; margin: 14px 0 22px; }
.center-panel .lead { margin-bottom: 36px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border-soft); padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand img { height: 48px; width: auto; margin-bottom: 18px; border-radius: 3px; }
.footer-brand p { font-size: 14px; color: var(--color-text-muted); max-width: 320px; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--color-gold-light); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h2 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-primary); margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col address { font-size: 14px; color: var(--color-text-muted); font-style: normal; transition: color var(--t); }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--color-border-soft); font-size: 12.5px; color: var(--color-text-muted); }

/* ── Scroll reveal ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }

/* ── Mobile overlay nav ───────────────────────────────────────────────── */
.nav-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(8, 11, 18, 0.98);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay a { font-family: var(--font-heading); font-size: clamp(30px, 8vw, 48px); font-weight: 500; padding: 10px 0; transition: color var(--t); }
.nav-overlay a:hover { color: var(--color-gold-light); }
.nav-overlay .lang-switch { margin-top: 28px; }

/* ══ Responsive ═══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat + .stat::before { left: 50%; top: 0; transform: translateX(-50%); width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }
  .split, .contact-grid, .svc-row { grid-template-columns: 1fr; }
  .svc-row__media { order: -1; }
  .svc-row--rev .svc-row__media { order: -1; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .bento__item { aspect-ratio: 3/2; }
  .bento__item:first-child { grid-row: auto; }
}
@media (max-width: 768px) {
  .nav-links, .nav .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .svc-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(to top, rgba(8,11,18,0.92) 8%, rgba(8,11,18,0.45) 60%, rgba(8,11,18,0.55) 100%); }
}

/* ── Small phones (≤ 640px) ───────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Hero: 46px minimum was too large for 375px screens */
  .hero__title { font-size: clamp(34px, 10vw, 88px); }
  .hero__sub { margin-bottom: 28px; }

  /* Service gallery: collapse to single column */
  .svc-gallery { grid-template-columns: 1fr; }
  .svc-gallery__cell--lead { grid-column: auto; aspect-ratio: 3/2; }
  .svc-gallery__cell:not(.svc-gallery__cell--lead) { aspect-ratio: 3/2; }

  /* Page headings: lower floor size */
  .heading { font-size: clamp(28px, 7vw, 60px); }
  .page-banner h1 { font-size: clamp(30px, 9vw, 76px); }
  .pull-quote { font-size: clamp(24px, 6.5vw, 44px); }
  .stat__num { font-size: clamp(36px, 10vw, 72px); }

  /* Buttons: allow wrap on very narrow screens */
  .btn { white-space: normal; text-align: center; justify-content: center; }

  /* Spec: smaller card image, stacked action buttons */
  .spec-card__img img { height: 160px; }
  .spec-actions { flex-direction: column; align-items: stretch; }
  .spec-actions .btn { justify-content: center; }

  /* Filter bar: tighter pills */
  .filter-btn { padding: 8px 14px; font-size: 11px; }

  /* Footer bottom: stack instead of space-between */
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* CTA: less bottom margin on paragraph */
  .cta-banner p { margin-bottom: 28px; }

  /* Masonry captions: always visible on touch (no hover) */
  .masonry__cap { opacity: 1; transform: none; }
  .masonry__item::after { opacity: 1; }

  /* Bento captions: always visible on touch */
  .bento__cap { opacity: 1; transform: none; }
  .bento__item::after { opacity: 1; }

  /* Contact form: smaller padding on card */
  .form-card { padding: 24px 20px; }
}

/* ── Extra-small phones (≤ 400px) ─────────────────────────────────────── */
@media (max-width: 400px) {
  .hero__title { font-size: clamp(30px, 10vw, 88px); }
  .spec-stats { grid-template-columns: 1fr 1fr; }
  .spec-card__name { font-size: 20px; }
  :root { --pad-x: 18px; }
}

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

/* ══════════════════════════════════════════════════════════════════════
   CHATBOT WIDGET — bilingual, navy/gold
   ══════════════════════════════════════════════════════════════════════ */
.brc {
  --brc-z: 140;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--brc-z);
  font-family: var(--font-body);
}

/* Launcher button */
.brc-launch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(226, 185, 106, 0.45);
  background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold));
  color: #0B1220;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(196, 151, 58, 0.4);
  transition: transform var(--t), box-shadow var(--t);
}
.brc-launch:hover { box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(196, 151, 58, 0.12); }
.brc-launch:focus-visible { outline: 2px solid var(--color-gold-light); outline-offset: 3px; }
.brc-launch svg { width: 28px; height: 28px; }
.brc-launch .brc-launch__close { display: none; }
.brc.is-open .brc-launch__open { display: none; }
.brc.is-open .brc-launch__close { display: block; }

/* Unread/attention pulse dot */
.brc-launch__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #E2574C;
  border: 2px solid var(--color-bg);
}
.brc.is-open .brc-launch__dot,
.brc.is-seen .brc-launch__dot { display: none; }

/* Panel */
.brc-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 370px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.brc.is-open .brc-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Header */
.brc-head {
  background: linear-gradient(135deg, var(--color-navy), var(--color-surface-2));
  border-bottom: 1px solid var(--color-border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brc-head__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold));
  color: #0B1220;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  flex-shrink: 0;
}
.brc-head__meta { flex: 1; min-width: 0; line-height: 1.25; }
.brc-head__name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.brc-head__status { font-size: 11.5px; color: var(--color-gold-light); display: flex; align-items: center; gap: 5px; }
.brc-head__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5BD18B; display: inline-block; }
.brc-head__btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t);
}
.brc-head__btn:hover { background: rgba(196, 151, 58, 0.14); border-color: var(--color-gold); }
.brc-head__close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 2px 4px;
}
.brc-head__close:hover { color: var(--color-text-primary); }

/* Messages area */
.brc-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(196,151,58,0.4) transparent;
}
.brc-body::-webkit-scrollbar { width: 6px; }
.brc-body::-webkit-scrollbar-thumb { background: rgba(196,151,58,0.4); border-radius: 3px; }

.brc-msg {
  max-width: 84%;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 14px;
  animation: brc-pop 240ms var(--ease);
}
@keyframes brc-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.brc-msg--bot {
  align-self: flex-start;
  background: var(--color-surface-2);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-soft);
  border-bottom-left-radius: 4px;
}
.brc-msg--user {
  align-self: flex-end;
  background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold));
  color: #0B1220;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

/* Quick-reply buttons */
.brc-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 2px 6px;
  align-self: stretch;
}
.brc-chip {
  background: rgba(26, 39, 68, 0.5);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.brc-chip:hover { background: rgba(196, 151, 58, 0.16); border-color: var(--color-gold-light); }
.brc-chip:focus-visible { outline: 2px solid var(--color-gold-light); outline-offset: 2px; }

/* Inline form */
.brc-form {
  align-self: stretch;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  animation: brc-pop 240ms var(--ease);
}
.brc-form label { font-size: 11.5px; font-weight: 600; color: var(--color-text-muted); display: block; margin-bottom: 3px; }
.brc-form input,
.brc-form select,
.brc-form textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 9px 11px;
  transition: border-color var(--t);
}
.brc-form input:focus,
.brc-form select:focus,
.brc-form textarea:focus { outline: none; border-color: var(--color-gold); }
.brc-form textarea { resize: vertical; min-height: 56px; }
.brc-form__err { color: #E2574C; font-size: 11.5px; min-height: 0; }
.brc-form__submit {
  background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold));
  color: #0B1220;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--t);
}
.brc-form__submit:hover { filter: brightness(1.06); }
.brc-form__submit:disabled { opacity: 0.6; cursor: default; }

/* Input row */
.brc-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-surface);
}
.brc-input input {
  flex: 1;
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: 999px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 15px;
}
.brc-input input:focus { outline: none; border-color: var(--color-gold); }
.brc-input button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold));
  color: #0B1220;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter var(--t);
}
.brc-input button:hover { filter: brightness(1.06); }
.brc-input button svg { width: 19px; height: 19px; }

/* Typing dots */
.brc-typing { display: inline-flex; gap: 4px; align-items: center; }
.brc-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-text-muted);
  animation: brc-blink 1.2s infinite ease-in-out both;
}
.brc-typing span:nth-child(2) { animation-delay: 0.18s; }
.brc-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes brc-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

@media (max-width: 480px) {
  .brc { bottom: 16px; right: 16px; }
  .brc-panel { bottom: 72px; height: calc(100vh - 110px); }
}
