/* ==========================================================================
   Elite Closets & Glass — Site Stylesheet
   --------------------------------------------------------------------------
   Table of contents
   1. Design tokens
   2. Base & typography
   3. Layout helpers
   4. Buttons & links
   5. Header & navigation
   6. Hero
   7. Section patterns (intro strip, section headings, split, cards)
   8. Home sections (projects, process, testimonials, CTA band)
   9. Inner pages (page hero, service pages, gallery, reviews, contact)
   10. Footer
   11. Utilities, motion & responsive
   ========================================================================== */

/* 1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --cream: #f3efe9;
  --cream-2: #f8f5f0;
  --white: #ffffff;
  --paper: #fefdfc;

  --ink: #141514;
  --ink-2: #1e1d1b;
  --ink-3: #2c2a27;
  --text: #2a2825;
  --muted: #6f6a63;
  --muted-2: #928c84;

  --line: #e6dfd5;
  --line-strong: #d6cdc0;
  --line-dark: rgba(255, 255, 255, 0.14);

  --gold: #b3976b;
  --gold-2: #c9b79a;
  --gold-3: #9b7f52;
  --gold-soft: rgba(179, 151, 107, 0.14);

  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 9vw, 112px);

  --radius: 2px;
  --shadow-md: 0 18px 40px -20px rgba(20, 21, 20, 0.35);
  --shadow-lg: 0 30px 60px -24px rgba(20, 21, 20, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 88px;
}

/* 2. Base & typography
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(44px, 5.6vw, 72px); }
h2 { font-size: clamp(34px, 3.8vw, 50px); }
h3 { font-size: clamp(26px, 2.6vw, 32px); }
h4 { font-size: 22px; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

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

strong { font-weight: 600; }

.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead { font-size: 17.5px; line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Uppercase, tracked micro label used for nav, buttons, captions */
.label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--sm { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.section--cream { background: var(--cream); }
.section--cream-2 { background: var(--cream-2); }
.section--dark { background: var(--ink); color: #d9d4cc; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .eyebrow { color: var(--gold-2); }
.section--dark .muted { color: #a9a39a; }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-48 { margin-bottom: 48px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 4. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--gold-3); border-color: var(--gold-3); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); }

.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }

.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--sm { padding: 14px 22px; font-size: 11px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.link-arrow { padding: 15px 0; margin: -15px 0; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow--gold { color: var(--gold); }
.link-arrow--gold:hover { color: var(--gold-3); }
.link-arrow--light { color: #fff; }

.text-link { color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--gold-2); transition: border-color .3s, color .3s; }
.text-link:hover { color: var(--gold-3); border-color: var(--gold-3); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }

/* 5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(20,21,20,.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  min-width: 0;
}
.nav { min-width: 0; }
.nav > ul { flex-wrap: nowrap; }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; padding: 6px 0; }
.logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav > ul > li { position: relative; }

.nav a, .nav .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: color .3s var(--ease);
}
.nav > ul > li > a::after,
.nav > ul > li > .nav-toggle::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 5px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav > ul > li:hover > a::after,
.nav > ul > li.is-active > a::after,
.nav > ul > li.is-active > .nav-toggle::after,
.nav > ul > li.is-open > .nav-toggle::after { transform: scaleX(1); }

.nav-toggle svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav > ul > li.is-open > .nav-toggle svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -12px;
  min-width: 560px;
  padding: 28px 32px 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav > ul > li.is-open > .dropdown,
.nav > ul > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}
.dropdown__group { min-width: 0; }
.dropdown__title {
  display: block;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.dropdown ul { list-style: none; }
.dropdown li a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.dropdown li a:hover { color: var(--gold-3); padding-left: 6px; }
.dropdown__footer {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.dropdown__footer a { padding: 0; }

.header-cta { display: inline-flex; flex-shrink: 0; }

/* Mobile menu button */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
}
.menu-btn svg { width: 26px; height: 26px; }
.menu-btn .icon-close { display: none; }
body.menu-open .menu-btn .icon-menu { display: none; }
body.menu-open .menu-btn .icon-close { display: block; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 190;
  background: var(--paper);
  overflow-y: auto;
  padding: 24px var(--gutter) 48px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
body.menu-open .mobile-nav { transform: translateX(0); visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
@media (min-width: 1200px) { .mobile-nav { display: none; } }
.mobile-nav ul { list-style: none; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav a, .mobile-nav .m-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.mobile-nav .m-toggle svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.mobile-nav li.is-open > .m-toggle svg { transform: rotate(180deg); }
.mobile-nav .m-sub { display: none; padding: 0 0 12px 18px; }
.mobile-nav li.is-open > .m-sub { display: block; }
.mobile-nav .m-sub a {
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--text);
}
.mobile-nav .m-sub .dropdown__title { margin-top: 12px; border: 0; padding-bottom: 4px; }
.mobile-nav .mobile-nav__cta { margin-top: 28px; }
.mobile-nav .mobile-nav__contact { margin-top: 28px; font-size: 13px; color: var(--muted); }
.mobile-nav .mobile-nav__contact a { display: inline; padding: 12px 0; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.mobile-nav { padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }

/* 6. Hero (crossfading slideshow)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(580px, 76vh, 780px);
  display: flex;
  align-items: center;
  background: var(--cream);
  overflow: hidden;
  isolation: isolate;
  --hero-media-h: clamp(250px, 62vw, 400px);
}
.hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: 32%;
  z-index: -1;
  overflow: hidden;
  background: var(--cream);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide.is-leaving { opacity: 1; z-index: 0; transition: none; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}
.hero__slide.is-active img { animation: heroZoom 11s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(243,239,233,.96) 8%, rgba(243,239,233,.72) 20%, rgba(243,239,233,.28) 34%, rgba(243,239,233,0) 48%);
}

.hero__content {
  position: relative;
  max-width: 600px;
  padding: clamp(80px, 10vw, 128px) 0 clamp(96px, 11vw, 140px);
}
.hero__content h1 {
  margin-bottom: 26px;
  font-size: clamp(46px, 5.9vw, 80px);
  line-height: 1.02;
}
.hero__content h1 em { font-style: italic; font-weight: 500; }
.hero__content .lead { max-width: 470px; margin-bottom: 40px; color: var(--text); }

.eyebrow--rule { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow--rule::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__trust li { display: flex; align-items: center; }
.hero__trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin: 0 16px; }

/* Slide controls */
.hero__controls { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 2; pointer-events: none; }
.hero__controls-inner { display: flex; justify-content: flex-end; }
.hero__panel {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,21,20,.34);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
}
.hero__caption { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.35; min-width: 190px; }
.hero__caption-num { font-family: var(--font-display); font-size: 15px; letter-spacing: .14em; color: var(--gold-2); margin-bottom: 2px; }
.hero__caption-title { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero__caption-place { font-size: 12px; color: rgba(255,255,255,.7); }

.hero__progress { display: flex; gap: 6px; }
.hero__progress button {
  position: relative;
  width: 38px; height: 26px;
  padding: 0; border: 0; background: none;
  cursor: pointer;
}
.hero__progress button::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 12px; height: 2px;
  background: rgba(255,255,255,.28);
}
.hero__progress button span {
  position: absolute; left: 0; top: 12px; height: 2px; width: 0;
  background: var(--gold-2);
}
.hero__progress button.is-done span { width: 100%; }
.hero__progress button.is-active span { animation: heroProgress var(--hero-interval, 7000ms) linear forwards; }
.hero.is-paused .hero__progress button.is-active span { animation-play-state: paused; }
@keyframes heroProgress { from { width: 0; } to { width: 100%; } }

.hero__arrows { display: flex; gap: 6px; }
.hero__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.hero__arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero__arrow svg { width: 16px; height: 16px; }

/* 7. Section patterns
   -------------------------------------------------------------------------- */
/* Intro service strip (3 icon columns on cream) */
.intro-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.intro-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(40px, 5vw, 56px);
}
.intro-item { display: flex; gap: 22px; align-items: flex-start; }
.intro-item__icon { flex-shrink: 0; width: 56px; height: 56px; color: var(--gold); }
.intro-item__icon svg { width: 100%; height: 100%; }
.intro-item h3 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.intro-item p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.intro-item a.intro-item__link { display: inline-block; margin-top: 8px; }

/* Section heading (tracked uppercase w/ gold rule) */
.section-heading { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.section-heading__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.section-heading__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--gold);
}
.section--dark .section-heading__title { color: #fff; }
.section-heading__sub { max-width: 620px; margin: 22px auto 0; color: var(--muted); }
.section-heading--left { text-align: left; }
.section-heading--left .section-heading__title::after { margin-left: 0; }
.section-heading--left .section-heading__sub { margin-left: 0; }

/* Row with centered title and a right-aligned action */
.section-heading-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 56px);
}
.section-heading-row .section-heading { grid-column: 2; margin-bottom: 0; }
.section-heading-row .section-heading-row__action { grid-column: 3; justify-self: end; padding-top: 4px; }

/* Serif display heading blocks (eyebrow + h2 + text) */
.display-heading h2 { margin-bottom: 22px; }
.display-heading .lead { max-width: 560px; }

/* Split (text + framed image) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__body h2 { margin-bottom: 22px; }
.split__body p { color: var(--muted); }
.split__body p.lead { color: var(--text); }
.split__body .btn-row { margin-top: 32px; }

.framed { position: relative; }
.framed img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.framed::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-2);
  transform: translate(18px, 18px);
  pointer-events: none;
  z-index: -1;
}
.framed--portrait img { aspect-ratio: 4 / 4.6; }
.framed--tall img { aspect-ratio: 3 / 4; }

/* Checklist */
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3976b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checklist--2col { grid-template-columns: 1fr 1fr; gap: 12px 32px; }

/* Card grids */
.card { display: block; }
.card__media { position: relative; overflow: hidden; background: var(--cream); }
.card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__media--square img { aspect-ratio: 1 / 1; }
.card__media--portrait img { aspect-ratio: 4 / 5; }
.card__body { padding-top: 18px; }
.card__title {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}
.card__meta { font-size: 13px; color: var(--muted); }
.card__text { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 8px; }
.card .link-arrow { margin-top: 14px; }

/* Service cards (with serif title) */
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card .card__media img { aspect-ratio: 4 / 3; }
.service-card .card__body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 26px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--muted); flex: 1; }
.service-card .link-arrow { margin-top: 20px; }

/* Icon feature blocks */
.feature { text-align: left; }
.feature__icon { width: 52px; height: 52px; color: var(--gold); margin-bottom: 20px; }
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.feature p { font-size: 14px; color: var(--muted); }
.feature--center { text-align: center; }
.feature--center .feature__icon { margin-left: auto; margin-right: auto; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--ink); }
.stat__num span { color: var(--gold); }
.stat__label { margin-top: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.section--dark .stat__num { color: #fff; }
.section--dark .stat__label { color: #a9a39a; }

/* Photo CTA ("Send us a photo") */
.photo-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 48px);
  background: var(--cream);
  border: 1px solid var(--line);
}
.photo-cta__icon { width: 56px; height: 56px; color: var(--gold); }
.photo-cta__icon svg { width: 100%; height: 100%; }
.photo-cta h3 { font-size: 30px; margin-bottom: 8px; }
.photo-cta p { font-size: 14.5px; color: var(--muted); max-width: 640px; }

/* 8. Home sections
   -------------------------------------------------------------------------- */
/* Featured projects */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.projects-grid .card { text-align: center; }

/* Process band */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 8px 32px;
  border-left: 1px dashed rgba(201, 183, 154, 0.35);
}
.process-step:first-child { border-left: 0; padding-left: 0; }
.process-step__icon { flex-shrink: 0; width: 52px; height: 52px; color: var(--gold-2); }
.process-step__icon svg { width: 100%; height: 100%; }
.process-step h3 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
.process-step p { font-size: 13.5px; line-height: 1.7; color: #b5b0a8; }

/* Testimonials carousel */
.testimonials { position: relative; }
.testimonials__viewport { overflow: hidden; margin: 0 -14px; }
.testimonials__track { display: flex; transition: transform .7s var(--ease); will-change: transform; }
.testimonial {
  flex: 0 0 33.3333%;
  padding: 0 14px;
}
.testimonial__card {
  height: 100%;
  padding: 36px 36px 34px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.testimonial__quote-mark {
  display: block;
  height: 34px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}
.testimonial__text { font-size: 15px; line-height: 1.85; color: var(--text); flex: 1; margin: 0 0 24px; }
.testimonial__author { font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.testimonial__author span { display: block; color: var(--muted); }
.testimonials__dots { display: flex; justify-content: center; gap: 0; margin-top: 22px; }
.testimonials__dots button {
  position: relative;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.testimonials__dots button::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border: 1px solid var(--muted-2);
  border-radius: 50%;
  transition: background .3s, border-color .3s, transform .3s;
}
.testimonials__dots button.is-active::before { background: var(--ink); border-color: var(--ink); transform: scale(1.15); }
.testimonials__nav { position: absolute; top: 45%; width: 100%; left: 0; pointer-events: none; }
.testimonials__nav button {
  position: absolute;
  top: 0;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, border-color .3s;
}
.testimonials__nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.testimonials__nav button svg { width: 16px; height: 16px; }
.testimonials__nav .prev { left: -64px; }
.testimonials__nav .next { right: -64px; }

/* CTA band */
.cta-band { display: grid; grid-template-columns: 40% 1fr; background: var(--cream); }
.cta-band__media { position: relative; min-height: 300px; }
.cta-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band__body { padding: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 88px); align-self: center; }
.cta-band__body h2 { margin-bottom: 30px; font-size: clamp(30px, 3.2vw, 42px); }
.cta-band__call { font-size: 14.5px; color: var(--muted); }
.cta-band__call a { font-weight: 600; color: var(--ink); white-space: nowrap; padding: 12px 0; }
.cta-band__call a:hover { color: var(--gold-3); }

/* 9. Inner pages
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 44vh, 480px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,21,20,.18) 0%, rgba(20,21,20,.55) 55%, rgba(20,21,20,.86) 100%);
}
.page-hero .container { padding-top: 64px; padding-bottom: clamp(44px, 5vw, 64px); }
.page-hero .eyebrow { color: var(--gold-2); }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5.2vw, 66px); max-width: 820px; }
.page-hero p { max-width: 620px; margin-top: 20px; color: rgba(255,255,255,.82); font-size: 16px; }
.page-hero--compact { min-height: 300px; }
.page-hero--cream { background: var(--cream); color: var(--ink); }
.page-hero--cream::after { display: none; }
.page-hero--cream h1 { color: var(--ink); }
.page-hero--cream p { color: var(--muted); }
.page-hero--cream .eyebrow { color: var(--gold); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
  list-style: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--gold-2); }
.page-hero--cream .breadcrumb { color: var(--muted); }
.page-hero--cream .breadcrumb a:hover { color: var(--ink); }

/* Prose blocks */
.prose p { color: var(--muted); }
.prose p.lead { color: var(--text); }
.prose h3 { margin: 40px 0 14px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: 8px; }

/* Definition-style list (e.g., accessory categories) */
.def-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.def-item { padding: 26px 28px; border: 1px solid var(--line); background: #fff; }
.def-item h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink);
}
.def-item p { font-size: 14px; color: var(--muted); }

/* Finish swatches */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.swatch { text-align: center; }
.swatch__chip {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.swatch:hover .swatch__chip { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.swatch__name { margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--text); }
.swatch-group + .swatch-group { margin-top: 48px; }
.swatch-group__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* Door profiles list */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tag-list li {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  background: #fff;
}

/* Gallery */
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.filter-bar button {
  padding: 14px 16px;
  flex-shrink: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .3s;
}
.filter-bar button::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.filter-bar button:hover { color: var(--ink); }
.filter-bar button.is-active { color: var(--ink); }
.filter-bar button.is-active::after { transform: scaleX(1); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { position: relative; display: block; overflow: hidden; background: var(--cream); cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--wide img { aspect-ratio: 8 / 3; }
.gallery-item__caption {
  position: absolute; inset: auto 0 0 0;
  padding: 44px 22px 20px;
  background: linear-gradient(180deg, rgba(20,21,20,0), rgba(20,21,20,.78));
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item:hover .gallery-item__caption { opacity: 1; transform: translateY(0); }
.gallery-item__caption strong { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gallery-item__caption span { font-size: 12.5px; color: rgba(255,255,255,.75); }
.gallery-item.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(12,12,12,.94);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.lightbox__figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.lightbox__caption { margin-top: 18px; color: #fff; }
.lightbox__caption strong { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.lightbox__caption span { font-size: 13px; color: rgba(255,255,255,.65); }
.lightbox button {
  position: absolute;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s;
}
.lightbox button:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.lightbox button svg { width: 18px; height: 18px; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* Reviews page */
.reviews-columns { columns: 3; column-gap: 28px; }
.reviews-columns > * { display: inline-block; width: 100%; break-inside: avoid; margin-bottom: 28px; vertical-align: top; }
.reviews-columns .testimonial__card { height: auto; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__field { display: grid; gap: 8px; }
.form label, .form legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.form label .req { color: var(--gold); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .3s, box-shadow .3s;
  appearance: none;
  -webkit-appearance: none;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2825' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
  padding-right: 40px;
}
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .radio-row { display: flex; gap: 28px; margin-top: 6px; }
.form .radio-row label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; }
.form input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.form .file-field { position: relative; }
.form .file-field input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form .file-drop {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 16px;
  border: 1px dashed var(--line-strong);
  background: var(--cream-2);
  color: var(--muted);
  font-size: 13.5px;
  transition: border-color .3s, background .3s;
}
.form .file-drop svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; }
.form .file-field:hover .file-drop { border-color: var(--gold); background: var(--cream); }
.form .file-drop span strong { color: var(--ink); font-weight: 600; }
.form__note { font-size: 12.5px; color: var(--muted-2); }
.form__error { display: none; font-size: 12px; color: #b0443c; }
.form__field.has-error input, .form__field.has-error textarea { border-color: #b0443c; }
.form__field.has-error .form__error { display: block; }
.form__success {
  display: none;
  padding: 36px;
  border: 1px solid var(--gold-2);
  background: var(--cream);
  text-align: center;
}
.form__success h3 { margin-bottom: 8px; }
.form.is-sent > *:not(.form__success) { display: none; }
.form.is-sent .form__success { display: block; }

.contact-card { padding: clamp(28px, 3.5vw, 40px); background: var(--cream); border: 1px solid var(--line); }
.contact-card h3 { font-size: 30px; margin-bottom: 8px; }
.contact-card > p { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); margin-top: 3px; }
.contact-list strong { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-list a { font-size: 15px; color: var(--ink); padding: 12px 0; }
.contact-list a:hover { color: var(--gold-3); }
.contact-list .contact-list__phones { display: grid; gap: 4px; font-size: 14.5px; }
.contact-list .contact-list__phones span { color: var(--muted); }

/* Locations / service areas */
.area-card { padding: 30px 30px 32px; background: #fff; border: 1px solid var(--line); height: 100%; }
.area-card h3 { font-size: 26px; margin-bottom: 8px; }
.area-card p { font-size: 14px; color: var(--muted); }
.area-card__cities { margin: 16px 0 18px; font-size: 13px; line-height: 1.8; color: var(--text); }
.area-card__phone { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.area-card__phone + .area-card__phone { margin-top: 14px; }
.area-card__phone:hover { color: var(--gold-3); }
.area-card__phone span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Numbered process (process page) */
.step-list { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-size: clamp(56px, 6vw, 84px); line-height: .9; color: var(--gold-2); }
.step h3 { margin-bottom: 14px; }
.step p, .step li { color: var(--muted); }
.step ul { margin-top: 12px; }

/* FAQ / accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%;
  padding: 22px 0;
  border: 0; background: none;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.accordion__btn svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); transition: transform .35s var(--ease); }
.accordion__item.is-open .accordion__btn svg { transform: rotate(45deg); }
.accordion__panel { display: none; padding: 0 0 24px; color: var(--muted); font-size: 14.5px; max-width: 760px; }
.accordion__item.is-open .accordion__panel { display: block; }

/* 10. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b5b0a8; }
.footer-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: clamp(40px, 5vw, 56px) 0 32px;
}
.footer-logo { display: inline-block; padding: 4px 0; }
.footer-logo img { height: 36px; width: auto; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 8px; list-style: none; }
.footer-nav a {
  display: block;
  padding: 13px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #cfc9c0;
  transition: color .3s;
}
.footer-nav a:hover { color: var(--gold-2); }
.socials { display: flex; gap: 12px; list-style: none; }
.socials a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  transition: background .3s, border-color .3s, color .3s;
}
.socials a:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.socials svg { width: 16px; height: 16px; }

.footer-contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: 12.5px;
  color: #a9a39a;
}
.footer-contact span { color: #cfc9c0; }
.footer-contact a { color: #fff; padding: 12px 0; }
.footer-contact a:hover { color: var(--gold-2); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 22px 0 28px;
  font-size: 12px;
  color: #8d877f;
}
.footer-bottom a:hover { color: var(--gold-2); }

/* 11. Utilities, motion & responsive
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide img { animation: none !important; transform: none; }
  .hero__progress button.is-active span { animation: none; width: 100%; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1300px) {
  .testimonials__nav { display: none; }
}

/* Header: compact tier so logo + nav + CTA fit between 1200px and 1400px */
@media (max-width: 1400px) {
  .header-inner { gap: 20px; }
  .logo img { height: 36px; }
  .nav > ul { gap: 0; }
  .nav a, .nav .nav-toggle { padding: 12px 10px; font-size: 11px; letter-spacing: .13em; }
  .nav > ul > li > a::after, .nav > ul > li > .nav-toggle::after { left: 10px; right: 10px; }
  .header-cta { padding: 16px 20px; font-size: 11px; letter-spacing: .13em; }
  .dropdown { left: -10px; }
}

/* Header: below 1200px the full nav can no longer fit, switch to the drawer */
@media (max-width: 1199px) {
  :root { --header-h: 76px; }
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .logo img { height: 34px; }
}

@media (max-width: 1024px) {
  .hero__media { left: 0; }
  .hero__media::before { background: linear-gradient(90deg, rgba(243,239,233,.96) 0%, rgba(243,239,233,.9) 42%, rgba(243,239,233,.5) 100%); }
  .hero__caption { display: none; }
  .hero__panel { padding-left: 14px; gap: 14px; }

  .intro-strip .container { grid-template-columns: 1fr; gap: 28px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .process-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .testimonial { flex-basis: 50%; }
  .grid--3, .grid--4, .def-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
  .reviews-columns { columns: 2; }
  .contact-layout { grid-template-columns: 1fr; }
  .dropdown { min-width: 0; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; inset: auto; left: 0; height: var(--hero-media-h); z-index: 0; }
  .hero__media::before { background: linear-gradient(180deg, rgba(20,21,20,0) 55%, rgba(20,21,20,.35) 100%); }
  .hero__controls { bottom: auto; top: calc(var(--hero-media-h) - 18px); transform: translateY(-100%); }
  .hero__panel { padding: 6px 6px 6px 14px; gap: 12px; }
  .hero__progress button { width: 26px; }
  .hero__arrow { width: 38px; height: 38px; }
  .hero__content { max-width: 100%; padding: 52px 0 48px; }
  .hero__content h1 { font-size: clamp(42px, 11vw, 56px); }
  .hero__content .lead { max-width: 100%; }
  .hero__trust { margin-top: 36px; gap: 10px 0; }
  .hero__trust li + li::before { margin: 0 12px; }

  .section-heading-row { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .section-heading-row .section-heading, .section-heading-row .section-heading-row__action { grid-column: 1; justify-self: center; }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .framed::before { transform: translate(12px, 12px); }
  .checklist--2col { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-step { border-left: 0; padding: 0; }
  .testimonial { flex-basis: 100%; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__media { min-height: 240px; }

  .photo-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 20px; }
  .grid--2, .grid--3, .grid--4, .def-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-item--wide { grid-column: span 1; }
  .gallery-item--wide img { aspect-ratio: 4 / 3; }
  .reviews-columns { columns: 1; }
  .form__row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }

  .footer-main { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Mobile legibility: keep tracked labels at 12px or larger */
  .eyebrow, .btn, .link-arrow, .footer-nav a, .breadcrumb, .form label, .form legend,
  .hero__trust, .stat__label, .contact-list strong, .area-card__phone span, .dropdown__title,
  .filter-bar button, .card__title, .intro-item h3, .process-step h3, .feature h3, .def-item h4,
  .swatch-group__title, .tag-list li, .section-heading__title { font-size: 12px; }
  .footer-bottom, .footer-contact, .small, .card__meta, .gallery-item__caption span, .lightbox__caption span { font-size: 13px; }

  /* Prevent iOS focus zoom: form controls at 16px */
  .form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { font-size: 16px; }

  /* Hero: crossfade only (no zoom) on small screens */
  .hero__slide.is-active img { animation: none; }
  .hero__slide img { transform: none; }

  /* Gallery filters: one scrollable row */
  .filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { scroll-snap-align: start; white-space: nowrap; }

  /* Contact card phones: label above number */
  .contact-list .contact-list__phones { gap: 8px; }
  .contact-list .contact-list__phones div { display: block; }
  .contact-list .contact-list__phones span { display: block; margin-bottom: 1px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .contact-list .contact-list__phones a { display: inline; padding: 12px 0; }

  /* Finish swatches: tighter grid */
  .swatch-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .swatch__name { font-size: 11.5px; }

  /* Lightbox: controls below the image */
  .lightbox { padding: 16px; }
  .lightbox__figure img { max-height: 62vh; }
  .lightbox__caption { margin-bottom: 72px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
  .lightbox__close { top: 16px; right: 16px; }

  /* Sticky header slightly shorter on phones */
  .testimonial__card { padding: 30px 26px 28px; }
  .step__num { font-size: 52px; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { gap: 16px; }
  .stats { grid-template-columns: 1fr; }
}

/* Scroll lock (menu / lightbox open) — applied by main.js */
body.is-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

/* Print */
@media print {
  .site-header, .site-footer, .mobile-nav, .cta-band, .lightbox { display: none !important; }
}
