/* ===== Design tokens ===== */
:root {
  /* Charcoal Black - primary dark background */
  --charcoal: #0b0b0c;
  /* Gunmetal Grey - dark accents / secondary dark surface */
  --charcoal-2: #24262a;
  --charcoal-3: #2f3237;
  --surface: #f2f2f3;
  --white: #ffffff;
  --ink: #0b0b0c;
  /* muted body text on LIGHT surfaces (mist grey itself fails AA on white) */
  --muted: #5a5d62;
  --border: #e1e2e4;

  /* Sterling Silver - wordmark base tone */
  --silver: #acb4bf;
  /* Silver Highlight - wordmark metallic highlight */
  --silver-light: #e3e6e9;
  /* Mist Grey - tagline, secondary text & rhino watermark (on dark surfaces) */
  --mist: #949494;
  /* Gunmetal used as the icon/eyebrow accent on LIGHT surfaces */
  --accent: #24262a;
  --accent-dark: #0b0b0c;

  --font-head: 'Zilla Slab', serif;
  --font-body: 'Inter', sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(20, 22, 26, 0.08);
  --shadow-md: 0 12px 32px rgba(20, 22, 26, 0.14);
  --shadow-lg: 0 24px 64px rgba(20, 22, 26, 0.28);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); text-transform: uppercase; letter-spacing: 0.02em; }
h3 { font-size: 1.25rem; letter-spacing: 0; }

p { margin: 0 0 var(--space-2); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; margin: 0; padding: 0; }

svg { width: 20px; height: 20px; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.eyebrow--light {
  color: var(--mist);
  margin-bottom: var(--space-1);
}

.section-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.82rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  touch-action: manipulation;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover:active { transform: scale(0.97); }
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #000; box-shadow: var(--shadow-md); }
.btn--primary:focus-visible { outline: 3px solid var(--silver); outline-offset: 2px; }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(20,22,26,0.25);
  color: var(--ink);
}
.btn--ghost-light:hover { background: rgba(20,22,26,0.06); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px var(--space-3);
  gap: var(--space-3);
}

.logo { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; align-self: stretch; color: var(--white); padding-bottom: 6px; }
.logo__img { height: 91px; width: auto; }
.logo__caption {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--silver-light);
  white-space: nowrap;
  margin-top: 2px;
}

.nav { display: flex; gap: var(--space-4); }
.nav a {
  color: #d8dbe1;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 150ms ease;
  padding: 4px 2px;
}
.nav a:hover, .nav a:focus-visible { color: var(--white); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 0 auto; transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out); }
.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 ===== */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,16,20,0.94) 12%, rgba(14,16,20,0.6) 55%, rgba(14,16,20,0.4) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero h1 { max-width: 700px; }
.hero__lead { max-width: 560px; font-size: 1.1rem; color: #dde1e5; }
.hero__ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-4) 0 0; }

/* ===== Trust strip ===== */
.trust-strip { background: var(--charcoal-2); padding: var(--space-3) 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}
.trust-strip__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  color: #edeff2;
}
.trust-strip__list svg { color: var(--silver); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Services ===== */
.services { padding: var(--space-7) 0; background: var(--white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease, opacity 500ms var(--ease-out);
  border: 1px solid var(--border);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
}
.service-card__media { aspect-ratio: 4/3; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card__media img { transform: scale(1.06); }
}
.service-card__body { padding: var(--space-3); }
.service-card__body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card__body p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.services__grid--3up { grid-template-columns: repeat(3, 1fr); }
.service-card__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: var(--space-3);
}
.service-card__media--logo img { width: auto; height: 100%; max-width: 70%; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card__media--logo img { transform: none; }
}

/* ===== Why Us ===== */
.why-us { padding: var(--space-7) 0; background: var(--surface); }
.why-us__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.why-us__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3;}
.why-us__media img { width: 100%; height: 100%; object-fit: cover; }

.compare-list { margin: var(--space-4) 0; display: flex; flex-direction: column; gap: var(--space-3); }
.compare-list li { display: flex; gap: 14px; align-items: flex-start; }
.compare-list svg { color: var(--white); background: var(--accent); border-radius: 50%; padding: 4px; width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.compare-list strong { display: block; font-size: 1rem; }
.compare-list span { color: var(--muted); font-size: 0.92rem; }

/* ===== Before & After ===== */
.before-after { padding: var(--space-7) 0; background: var(--white); }
.before-after .section-lead { margin-bottom: var(--space-5); }

.ba-slider {
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  max-width: 860px;
  margin: 0 auto;
}
.ba-slider__frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  touch-action: pan-y;
}
.ba-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-slider__clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-slider__clip .ba-slider__img { position: absolute; }

.ba-slider__label {
  position: absolute;
  top: var(--space-2);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(20, 22, 26, 0.6);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}
.ba-slider__label--before { left: var(--space-2); }
.ba-slider__label--after { right: var(--space-2); }

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-slider__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 160ms var(--ease-out);
}
.ba-slider__grip svg { width: 18px; height: 18px; }
.ba-slider__frame:active .ba-slider__grip { transform: translate(-50%, -50%) scale(0.94); }

.ba-slider__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba-slider__range:focus-visible ~ .ba-slider__handle .ba-slider__grip {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.ba-slider__note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: var(--space-2) 0 0;
}

/* ===== Process (connected line) ===== */
.process { padding: var(--space-7) 0; background: var(--charcoal); color: var(--white); }
.process h2 { color: var(--white); }
.process .section-lead { color: var(--mist); }
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
  position: relative;
}
.process-line::before {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 1px;
  background: rgba(255,255,255,0.16);
}
.process-step {
  position: relative;
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--silver);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--charcoal);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--white); }
.process-step p { color: var(--mist); font-size: 0.9rem; margin: 0; }

/* ===== Gallery ===== */
.gallery { padding: var(--space-7) 0; background: var(--surface); }
.gallery .container { margin-bottom: var(--space-4); }
.gallery__title { color: var(--ink); }
.gallery__lead { color: var(--muted); max-width: 640px; font-size: 0.95rem; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.gallery__item {
  position: relative;
  border: none;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--charcoal-3);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out), filter 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .gallery__item:hover img { transform: scale(1.08); filter: brightness(1.05); }
  .gallery__item:hover::after { opacity: 1; }
}
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.35), transparent 40%);
  opacity: 0;
  transition: opacity 250ms ease;
}

/* ===== About ===== */
.about { padding: var(--space-7) 0; background: var(--white); }
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.about__content p:last-child { color: var(--ink); }
.about__stat-card {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}
.about__stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--silver-light);
  line-height: 1;
}
.about__stat-label {
  display: block;
  margin-top: var(--space-2);
  color: #c6cad1;
  font-size: 0.95rem;
}

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: var(--white);
  padding: var(--space-6) 0;
}
.cta-banner__inner { text-align: center; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto var(--space-4); }
.cta-banner__actions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }
.cta-banner .btn--primary { background: var(--charcoal); }
.cta-banner .btn--primary:hover { background: #000; }

/* ===== Contact ===== */
.contact { padding: var(--space-7) 0; background: var(--surface); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
}
.contact-list { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list svg { color: var(--accent); flex-shrink: 0; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-field { margin-bottom: var(--space-3); display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  min-height: 44px;
  color: var(--ink);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63,124,179,0.18);
}
.form-field.has-error input,
.form-field.has-error select { border-color: #d92d20; }
.form-error { color: #d92d20; font-size: 0.8rem; min-height: 1em; }
.form-success { color: #067647; font-weight: 600; margin-top: var(--space-2); min-height: 1.2em; }

/* ===== Footer ===== */
.site-footer { background: var(--charcoal); color: var(--mist); padding-top: var(--space-6); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.footer__logo-img { width: 286px; height: auto; }
.footer__brand p { margin-top: var(--space-2); font-size: 0.88rem; max-width: 260px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.footer__col a, .footer__col span { color: var(--mist); font-size: 0.9rem; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-3) var(--space-3); font-size: 0.82rem; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,11,13,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 0s;
}
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 220ms var(--ease-out);
}
.lightbox.is-open img {
  transform: scale(1);
  opacity: 1;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms var(--ease-out);
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }
.lightbox__close:active { transform: scale(0.92); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-5); }
  .process-line::before { display: none; }
  .why-us__grid { grid-template-columns: 1fr; }
  .why-us__media { order: -1; }
  .about__grid { grid-template-columns: 1fr; }
  .about__stat-card { max-width: 320px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-auto-rows: 160px; }
}

@media (max-width: 720px) {
  .nav { position: fixed; top: 0; right: 0; height: 100dvh; width: min(320px, 80vw);
    background: var(--charcoal); flex-direction: column; padding: 96px var(--space-4) var(--space-4);
    gap: var(--space-3); transform: translateX(100%); transition: transform 320ms var(--ease-drawer); }
  .nav.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .header__actions .btn--primary { display: none; }
  .hero { min-height: 100dvh; }
  .services__grid { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall { grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
