/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --black-900: #232020;
  --black-800: #232020;
  --charcoal:  #232020;

  --gold-500: #d1ac66;
  --gold-400: #d1ac66;
  --gold-600: #d1ac66;

  --white:     #FFFFFF;
  --off-white: #F7F5F1;
  --stone-200: #E8E4DD;
  --stone-400: #B7B1A6;
  --grey-600:  #6B6862;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --text-display: clamp(2.25rem, 5vw, 3.5rem);
  --text-h2:      clamp(1.75rem, 3vw, 2.25rem);
  --text-h3:      1.25rem;
  --text-body:    1rem;
  --text-sm:      0.875rem;
  --text-xs:      0.75rem;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1200px;
  --gap:         1.5rem;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.3s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--black-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black-900);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.75rem;
  display: block;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 { margin-bottom: 1rem; }

.section-intro {
  color: var(--grey-600);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.btn-gold { background: var(--gold-500); color: var(--black-900); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-500); }

.btn-outline-dark {
  background: transparent;
  color: var(--black-900);
  border: 1.5px solid var(--stone-200);
}
.btn-outline-dark:hover { border-color: var(--gold-500); color: var(--gold-500); }

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  background-color: var(--stone-200);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(0,0,0,0.03) 12px,
    rgba(0,0,0,0.03) 24px
  );
  width: 100%;
  height: 100%;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.scrolled {
  background: var(--black-900);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: opacity var(--dur);
}
.logo:hover { opacity: 0.85; }
.logo:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.logo-dh {
  color: var(--gold-500);
  font-weight: 700;
}

/* Desktop nav */
.main-nav { flex: 1; display: none; }

@media (min-width: 1024px) { .main-nav { display: block; } }

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--stone-400);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color var(--dur);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active { color: var(--white); }

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.main-nav a:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

@media (min-width: 768px) { .header-actions { display: flex; } }

.header-phone {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transition: color var(--dur);
}
.header-phone:hover { color: var(--gold-400); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}

@media (min-width: 1024px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem clamp(1rem, 5vw, 2rem) 3rem;
  background: var(--black-900);
  border-top: 1px solid var(--charcoal);
}

.mobile-menu.open { display: flex; }

.mobile-menu nav ul { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.5rem 0;
  display: block;
  transition: color var(--dur);
}
.mobile-menu nav a:hover { color: var(--gold-500); }

.mobile-phone {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-400);
  transition: color var(--dur);
}
.mobile-phone:hover { color: var(--gold-500); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black-900);
  /* Swap for real photo: */
  /* background-image: url('../images/hero.jpg'); background-size: cover; background-position: center; */
  background-image:
    linear-gradient(135deg, rgba(209,172,102,0.05) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.012) 40px,
      rgba(255,255,255,0.012) 41px
    );
}

/* Remove this overlay when swapping in a real photo (it compensates for the dark placeholder) */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(35,32,32,0.6) 0%, rgba(35,32,32,0.82) 100%);
}

/* Subtle gold hairline frame — optional premium detail */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(209,172,102,0.12);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  max-width: 760px;
}

.hero-content .eyebrow {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-500);
  display: inline-block;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--stone-400);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.trust-signals li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--stone-400);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--off-white);
  padding: var(--section-pad) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid var(--stone-200);
  border-top: 3px solid transparent;
  transition: border-top-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.service-card:hover {
  border-top-color: var(--gold-500);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-icon { margin-bottom: 1.25rem; }

.service-card h3 { margin-bottom: 0.625rem; color: var(--black-900); }

.service-card p { color: var(--grey-600); font-size: var(--text-sm); line-height: 1.6; }

/* ============================================================
   ABOUT / WHY US
   ============================================================ */
.about { padding: var(--section-pad) 0 0; background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: var(--section-pad);
}

@media (min-width: 768px) { .about-inner { grid-template-columns: 1fr 1fr; } }

.about-image {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  min-height: 280px;
}

.about-image .img-placeholder { height: 100%; min-height: 280px; }

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--grey-600); margin-bottom: 1rem; line-height: 1.7; }

.tick-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tick-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--black-900);
}

/* Stats strip */
.stats-strip {
  background: var(--black-900);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) { .stats-inner { grid-template-columns: repeat(4, 1fr); } }

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1;
}

.stat-label { font-size: var(--text-sm); color: var(--stone-400); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--off-white); padding: var(--section-pad) 0; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  border: 1.5px solid var(--stone-200);
  color: var(--grey-600);
  background: var(--white);
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}

.filter-btn:hover { border-color: var(--gold-500); color: var(--gold-600); }

.filter-btn.active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--black-900);
}

.filter-btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.project-card.hidden { display: none; }

.project-img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s var(--ease);
}

.project-card:hover .project-img { transform: scale(1.04); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35,32,32,0.95) 0%, rgba(35,32,32,0.6) 40%, rgba(35,32,32,0.1) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay { opacity: 1; }

.project-type {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.125rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.project-location { font-size: var(--text-sm); color: var(--stone-400); }

.projects-footer { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--black-900); padding: var(--section-pad) 0; }

.process .section-header h2 { color: var(--white); }

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
  }
}

.process-step { text-align: center; padding: 0 0.75rem; }

.step-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.process-step h3 { color: var(--white); font-size: 1.0625rem; margin-bottom: 0.625rem; }

.process-step p { color: var(--stone-400); font-size: var(--text-sm); line-height: 1.65; }

.process-connector { display: none; }

@media (min-width: 768px) {
  .process-connector {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold-600);
    margin-top: 1.875rem;
    opacity: 0.45;
  }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--off-white); padding: var(--section-pad) 0; }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-top: 3px solid var(--gold-500);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-text {
  color: var(--grey-600);
  line-height: 1.7;
  font-size: 0.9375rem;
  flex: 1;
}

.review-card footer { display: flex; flex-direction: column; gap: 0.25rem; }

.review-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--black-900);
  font-style: normal;
}

.review-area { font-size: var(--text-sm); color: var(--stone-400); }

.reviews-footer { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   AREAS
   ============================================================ */
.areas { background: var(--white); padding: var(--section-pad) 0; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0 auto 2.5rem;
  max-width: 700px;
}

@media (min-width: 640px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .areas-grid { grid-template-columns: repeat(4, 1fr); } }

.areas-grid li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--black-900);
  padding: 0.625rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--stone-200);
  border-radius: 4px;
  text-align: center;
  transition: border-color var(--dur), color var(--dur);
}

.areas-grid li:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* Interactive coverage map */
.coverage-map-wrap {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
#coverage-map {
  height: 440px;
  border-radius: 6px;
  border: 1px solid var(--stone-200);
  background: var(--off-white);
  z-index: 0;
}
.coverage-map-wrap .leaflet-container { font-family: var(--font-body); }
.coverage-pin { background: none; border: none; }
.coverage-pin svg { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }
.coverage-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 400;
  list-style: none;
  margin: 0;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--stone-200);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: var(--text-xs);
  color: var(--charcoal);
}
.coverage-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.9;
}
.coverage-legend .swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}
.coverage-legend .swatch-london { background: rgba(209,172,102,0.45); border: 1px solid var(--gold-500); }
.coverage-legend .swatch-kent   { background: rgba(209,172,102,0.30); border: 1px solid var(--gold-600); }

@media (min-width: 640px) { #coverage-map { height: 520px; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--black-800);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-text h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-text p { color: var(--stone-400); }

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .cta-actions { flex-direction: row; align-items: center; }
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
  transition: color var(--dur);
}
.cta-phone:hover { color: var(--gold-400); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--off-white); padding: var(--section-pad) 0; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}

@media (min-width: 768px) { .contact-inner { grid-template-columns: 1fr 1.4fr; } }

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--grey-600); margin-bottom: 1.5rem; line-height: 1.7; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--grey-600);
}

.contact-details a { color: var(--grey-600); transition: color var(--dur); }
.contact-details a:hover { color: var(--gold-600); }
.contact-details svg { flex-shrink: 0; margin-top: 2px; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.form-group label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black-900);
}

.form-group label span { color: var(--gold-500); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--stone-200);
  border-radius: 4px;
  background: var(--white);
  color: var(--black-900);
  font-size: var(--text-body);
  transition: border-color var(--dur);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--stone-400); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--gold-500); }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B6862' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-note { font-size: var(--text-xs); color: var(--stone-400); text-align: center; margin-top: 0.25rem; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--black-900);
  padding: calc(72px + clamp(2.5rem, 5vw, 4rem)) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--charcoal);
}

.page-hero .eyebrow { margin-bottom: 0.75rem; }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}

.page-hero p {
  color: var(--stone-400);
  max-width: 540px;
  line-height: 1.7;
  font-size: 1.0625rem;
}

/* ============================================================
   HOME TEASERS
   ============================================================ */
.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gold-500);
  transition: color var(--dur), gap var(--dur);
  margin-top: 2rem;
}

.teaser-link:hover { color: var(--gold-400); gap: 0.65rem; }

.teaser-link svg { transition: transform var(--dur); }
.teaser-link:hover svg { transform: translateX(3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--black-900); padding-top: clamp(3rem, 6vw, 5rem); }

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--gold-600);
}

@media (min-width: 640px) { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-main { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p { font-size: var(--text-sm); color: var(--stone-400); line-height: 1.65; margin-bottom: 1.25rem; }

.footer-socials { display: flex; gap: 0.75rem; }

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--charcoal);
  border-radius: 4px;
  transition: border-color var(--dur);
}
.footer-socials a:hover { border-color: var(--gold-500); }
.footer-socials a:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-col a,
.footer-col li { font-size: var(--text-sm); color: var(--stone-400); transition: color var(--dur); line-height: 1.5; }

.footer-col a:hover { color: var(--gold-400); }

.footer-bottom { padding: 1.25rem 0; }

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer-bottom p { font-size: var(--text-xs); color: var(--grey-600); }

.footer-privacy { font-size: var(--text-xs); color: var(--grey-600); transition: color var(--dur); }
.footer-privacy:hover { color: var(--gold-400); }

/* ============================================================
   FEATURED PROJECT CARDS
   ============================================================ */
.project-card-link { display: block; text-decoration: none; color: inherit; }
.project-card-link .project-overlay { opacity: 1; }

.project-card[data-featured] .project-overlay { opacity: 1; }

.project-card[data-featured] .view-project {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold-400);
  margin-top: 0.375rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.project-card[data-featured]:hover .view-project,
.project-card[data-featured]:focus-within .view-project {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PROJECT MODAL
   ============================================================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 32, 32, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--black-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.project-modal.open .modal-panel {
  transform: translateY(0) scale(1);
}

/* Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  gap: 1rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.modal-location {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1875rem;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--stone-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal-close:hover  { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.modal-close:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 50%; }

/* Body */
.modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.modal-slides {
  display: flex;
  height: 100%;
  transition: transform 0.38s var(--ease);
  will-change: transform;
}

.modal-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.slide-visual {
  flex: 1;
  min-height: 200px;
  overflow: hidden;
  position: relative;
  background: #232020;
}

@media (min-width: 640px) { .slide-visual { min-height: 320px; } }

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 12px,
    rgba(255,255,255,0.025) 12px, rgba(255,255,255,0.025) 24px
  );
  color: var(--grey-600);
  font-family: var(--font-display);
  font-size: var(--text-sm);
}

.slide-caption {
  flex-shrink: 0;
  padding: 0.875rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.slide-caption p {
  font-size: var(--text-sm);
  color: var(--stone-400);
  line-height: 1.6;
}

.slide-hint {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: rgba(209, 172, 102, 0.65);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Before / After slider */
.ba-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: col-resize;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-after {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ba-placeholder {
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(255,255,255,0.025) 10px, rgba(255,255,255,0.025) 20px
  );
}
.ba-placeholder-before { background-color: #232020; }
.ba-placeholder-after  { background-color: #232020; }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--gold-500);
  box-shadow: 0 0 12px rgba(209, 172, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.ba-handle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

.ba-label {
  position: absolute;
  bottom: 0.875rem;
  padding: 0.2rem 0.6rem;
  background: rgba(35, 32, 32, 0.72);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
}

.ba-label-before { left:  0.875rem; }
.ba-label-after  { right: 0.875rem; }

/* Modal footer / nav */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.modal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}
.modal-nav-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.modal-nav-btn:disabled { opacity: 0.25; cursor: default; }
.modal-nav-btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 50%; }

.modal-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.modal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.modal-dot.active {
  background: var(--gold-500);
  transform: scale(1.4);
}
.modal-dot:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* ============================================================
   PARENT COMPANY BLOCK (About page)
   ============================================================ */
.parent-co {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.parent-co-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.parent-co-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  display: block;
  border: 1px solid var(--stone-200);
  transition: opacity var(--dur) var(--ease);
}
.parent-co-visual:hover { opacity: 0.88; }

.parent-co-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--gold-500);
  color: var(--black-900);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}

.parent-co-text { max-width: 500px; }

.parent-co-text h2 { margin-bottom: 1rem; }

.parent-co-text h2 a {
  color: inherit;
  transition: color var(--dur) var(--ease);
}
.parent-co-text h2 a:hover { color: var(--gold-500); }

.parent-co-text p {
  color: var(--grey-600);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

@media (max-width: 767px) {
  .parent-co-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICE CARD STATES (active vs coming soon)
   ============================================================ */
.service-card { position: relative; }

.service-card.is-active {
  display: block;
  border-top-color: var(--gold-500);
}
.service-card.is-active .service-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-600);
  transition: gap var(--dur) var(--ease);
}
.service-card.is-active:hover .service-explore { gap: 0.6rem; }

.service-card.is-soon {
  opacity: 0.6;
  background: var(--off-white);
}
.service-card.is-soon:hover {
  transform: none;
  box-shadow: none;
  border-top-color: transparent;
}

.service-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.service-tag--live { color: var(--black-900); background: var(--gold-500); }
.service-tag--soon { color: var(--grey-600); background: var(--stone-200); }

/* ============================================================
   EXTENSIONS — GALLERY
   ============================================================ */
.ext-gallery { padding: var(--section-pad) 0; background: var(--white); }

.ext-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: start;            /* don't stretch items — keeps caption visible */
}
@media (min-width: 560px) { .ext-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ext-gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.ext-gallery-item {
  border: 1px solid var(--stone-200);
  border-radius: 6px;
  overflow: hidden;
  background: var(--off-white);
}
.ext-gallery-item .img-placeholder { aspect-ratio: 4 / 3; height: auto; }
.ext-gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--charcoal);
}

/* ============================================================
   EXTENSIONS — 3D COST CALCULATOR (light)
   ============================================================ */
.calc { background: var(--white); padding: var(--section-pad) 0; }
.calc .section-header h2 { color: var(--black-900); }
.calc-sub { color: var(--grey-600); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.05fr 1fr; } }

/* 3D stage */
.calc-stage {
  position: relative;
  min-height: 320px;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid rgba(209,172,102,0.35);
}
@media (min-width: 900px) { .calc-stage { min-height: 480px; } }
#calc-canvas {
  display: block;
  position: absolute;            /* fill the stage without driving its height */
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;           /* let vertical scroll pass through on mobile */
}
.calc-stage-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 0.875rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  pointer-events: none;
}
.calc-stage-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--grey-600);
  font-size: var(--text-sm);
}
.calc-stage--nogl #calc-canvas { display: none; }
.calc-stage--nogl .calc-stage-fallback { display: flex; }
.calc-stage--nogl .calc-stage-hint { display: none; }

/* Controls panel */
.calc-panel {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
/* Standalone panel (no 3D stage beside it) */
.calc-panel--solo { max-width: 560px; margin: 0 auto; }
.calc-control { margin-bottom: 1.75rem; }
.calc-control > label,
.calc-control-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 0.6rem;
}
.calc-val { color: var(--gold-400); font-size: var(--text-sm); letter-spacing: 0; }

.calc-control-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 480px) { .calc-control-row { grid-template-columns: 1fr 1fr; } }

/* Range slider — gold */
input[type="range"]#calc-size {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-600));
  outline: none;
}
#calc-size::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-400);
  border: 3px solid var(--black-900);
  box-shadow: 0 0 0 1px var(--gold-500), 0 0 14px rgba(209,172,102,0.6);
  cursor: pointer;
}
#calc-size::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-400);
  border: 3px solid var(--black-900);
  box-shadow: 0 0 0 1px var(--gold-500), 0 0 14px rgba(209,172,102,0.6);
  cursor: pointer;
}
#calc-size:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 6px; }
.calc-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  color: var(--grey-600);
}
.calc-usable {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--grey-600);
}

/* Dark selects */
.calc-select {
  width: 100%;
  padding: 0.7rem 2.4rem 0.7rem 0.9rem;
  background: var(--white);
  color: var(--black-900);
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23d1ac66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: border-color var(--dur);
}
.calc-select:focus { outline: none; border-color: var(--gold-500); }

/* Readout */
.calc-readout {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.calc-readout-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.calc-band { color: var(--grey-600); font-weight: 500; letter-spacing: 0; text-transform: none; }
.calc-band #calc-band { color: var(--gold-400); }
.calc-range {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: var(--gold-400);
  line-height: 1.1;
  margin: 0.5rem 0 0.4rem;
  letter-spacing: -0.01em;
}
.calc-readout-note { font-size: var(--text-xs); color: var(--grey-600); }

.calc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--black-900);
  cursor: pointer;
}
.calc-toggle input { width: 16px; height: 16px; accent-color: var(--gold-500); cursor: pointer; }
.calc-inc {
  margin-top: 0.85rem;
  font-size: var(--text-sm);
  color: var(--grey-600);
  line-height: 1.6;
}
.calc-inc strong { color: var(--black-900); font-weight: 600; }

.calc-disclaimer {
  margin: 1.5rem 0;
  padding: 0.875rem 1rem;
  border-left: 2px solid var(--gold-500);
  background: rgba(209,172,102,0.06);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--grey-600);
}
