/* Public site (index.html). The admin panel uses main.css. */

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --cream: #F3EFEA;
  --paper: #F8F6F2;
  --stone: #E4E0D8;
  --espresso: #3A2D26;
  --espresso-deep: #29201B;
  --charcoal: #1E1C1A;
  --burgundy: #754044;
  --burgundy-hover: #5B3034;
  --olive: #77785E;          /* decorative: swatches, scrollbar */
  --olive-text: #5F604A;     /* olive for small text: ≥ 4.5:1 on cream */
  --muted: rgba(30, 28, 26, .72);
  --hairline: rgba(30, 28, 26, .14);
  --hairline-light: rgba(243, 239, 234, .22);
  --on-dark: #F8F6F2;
  --on-dark-muted: rgba(243, 239, 234, .82);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --header-h: 80px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --section-y: clamp(5rem, 9vw, 8rem);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
::selection { background: var(--espresso); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--burgundy); outline-offset: 3px; }

.container { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ── Type helpers ─────────────────────────────────────────────────────────── */
.caps, .kicker {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.5;
}
.kicker { display: block; color: var(--olive-text); margin-bottom: .75rem; }
.kicker--light { color: var(--on-dark-muted); }
.muted { color: var(--muted); font-size: 14px; line-height: 1.7; }
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.section-title--md { font-size: clamp(2.25rem, 4vw, 3rem); }
.section-title--light { color: var(--on-dark); }
.link-underline {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s;
}
.link-underline:hover { color: var(--burgundy); }

/* ── Buttons & tabs ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.75rem;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--light { background: var(--cream); color: var(--charcoal); }
.btn--light:hover { background: var(--paper); }
.btn--outline-light { border-color: rgba(243, 239, 234, .65); color: var(--on-dark); }
.btn--outline-light:hover { background: var(--cream); color: var(--charcoal); }
.btn--dark { background: var(--espresso); color: var(--on-dark); }
.btn--dark:hover { background: var(--burgundy); }
.btn--ghost { border-color: var(--hairline); color: var(--charcoal); }
.btn--ghost:hover { border-color: var(--charcoal); }
.btn:disabled { opacity: .6; cursor: progress; }

.tab {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  color: rgba(30, 28, 26, .6);
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--charcoal); }
.tab[aria-pressed="true"] { color: var(--charcoal); border-bottom-color: var(--charcoal); }
.tab--light { color: rgba(243, 239, 234, .6); }
.tab--light:hover { color: var(--on-dark); }
.tab--light[aria-pressed="true"] { color: var(--on-dark); border-bottom-color: var(--on-dark); }

/* ── Photos (static files may be missing: show a calm block instead) ──────── */
.photo { position: relative; overflow: hidden; background: var(--espresso); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--empty img { visibility: hidden; }
.photo--zoom img { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.direction:hover .photo--zoom img,
.project-card:hover .photo--zoom img { transform: scale(1.035); }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 234, .95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-nav { display: flex; gap: 2.25rem; }
.site-nav__link {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(30, 28, 26, .82);
  transition: color .2s;
}
.site-nav__link:hover { color: var(--burgundy); }
.menu-toggle { display: none; justify-self: start; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: .5rem 0; }

.brand { text-align: center; justify-self: center; }
.brand__name { display: block; font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.brand__role { display: block; margin-top: 2px; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--olive-text); }

.site-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mobile-menu a:hover { color: var(--burgundy); }
.mobile-menu__cta { align-self: flex-start; padding-top: .5rem; color: var(--burgundy); border-bottom: 1px solid var(--burgundy); }

/* Language switcher: a quiet trigger that opens on hover / focus. */
.lang-switcher { position: relative; }
.lang-trigger {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .1rem;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(30, 28, 26, .55);
  cursor: default;
  user-select: none;
  transition: color .2s;
}
.lang-switcher:hover .lang-trigger,
.lang-switcher:focus-within .lang-trigger { color: var(--charcoal); }
.lang-arrow { transition: transform .2s; }
.lang-switcher:hover .lang-arrow,
.lang-switcher:focus-within .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  min-width: 130px;
  padding: .3rem 0;
  background: var(--paper);
  border: 1px solid var(--hairline);
  z-index: 50;
}
.lang-dropdown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: .6rem; }
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown { display: block; }
.lang-option {
  display: block;
  width: 100%;
  padding: .5rem 1rem;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.lang-option:hover { background: var(--cream); color: var(--charcoal); }
.lang-option--active { color: var(--burgundy); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--espresso);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__photo { position: absolute; inset: 0; }
/* Darkens the photo so the white text stays readable: strongest behind the
   centred text, lighter towards the edges so the interior still shows, plus a
   band along the top edge for the small captions there. */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(29, 22, 18, .4) 0%, rgba(29, 22, 18, 0) 22%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(29, 22, 18, .72) 0%, rgba(29, 22, 18, .5) 100%),
    rgba(29, 22, 18, .12);
}
.hero__meta, .hero__content { position: relative; z-index: 1; }
.hero__meta {
  width: 100%;
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero__content { max-width: 56rem; margin: auto; padding: 4rem 1.5rem; text-align: center; }
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.5vw, 4.625rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero__subtitle {
  max-width: 36rem;
  margin: 2rem auto 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(243, 239, 234, .9);
}
.hero__actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; }

/* ── Directions ───────────────────────────────────────────────────────────── */
.directions { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--hairline); }
.direction {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 6vw, 5rem);
}
.direction--residential { background: var(--paper); border-right: 1px solid var(--hairline); }
.direction--commercial { background: var(--stone); }
.direction__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive-text);
}
.direction--commercial .direction__top { color: var(--muted); }
.direction__media { display: flex; align-items: center; justify-content: center; margin: 1rem 0; }
.direction__vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-right: 1rem;
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(30, 28, 26, .6);
}
.direction__photo--square { width: 100%; max-width: 28rem; aspect-ratio: 1; }
.direction__photo--portrait { width: 16rem; aspect-ratio: 3 / 4; margin: 0 auto; }
/* A taller photo loses its top (usually ceiling) rather than the furniture. */
.direction__photo--portrait img { object-position: center bottom; }
.direction__center { margin: auto 0; padding: 1rem 0; text-align: center; }
.direction__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  line-height: 1.15;
  transition: color .2s;
}
.direction__title--center { margin-bottom: 1.75rem; }
.direction:hover .direction__title,
.direction:hover .direction__link { color: var(--burgundy); }
.direction__text { margin-top: .5rem; max-width: 28rem; font-size: 13px; line-height: 1.7; color: var(--muted); }
.direction__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.direction__link { flex-shrink: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: color .2s; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
}
.section-head .caps { color: var(--muted); text-align: right; }

/* ── Projects ─────────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; }
.projects-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem 2.5rem;
}
.projects-grid > .empty, .projects-grid > .error, .projects-grid > .loader { grid-column: 1 / -1; }
.project-card { display: flex; flex-direction: column; min-width: 0; } /* the photo strip must not widen the grid column */
.project-card__link { display: flex; flex-direction: column; flex: 1; }

/* Card photos (portrait 2:3, like the cover in the case dialog): a row of slides
   that scrolls sideways — swiped on touch screens, paged with the arrows by mouse. */
.card-gallery { position: relative; aspect-ratio: 2 / 3; margin-bottom: 1.25rem; background: var(--espresso); }
.card-gallery__track {
  display: flex; height: 100%;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.card-gallery__track::-webkit-scrollbar { display: none; }
.card-gallery__track .photo { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.card-gallery__nav {
  position: absolute; top: 50%; z-index: 1;
  width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(248, 246, 242, .88); color: var(--charcoal);
  font-family: var(--serif); font-size: 1.75rem; line-height: 1;
  opacity: 0; transition: opacity .25s, background .2s;
}
.card-gallery__nav--prev { left: .75rem; }
.card-gallery__nav--next { right: .75rem; }
.card-gallery__nav:hover { background: var(--paper); }
.project-card:hover .card-gallery__nav, .card-gallery__nav:focus-visible { opacity: 1; }
/* Touch screens swipe instead. */
@media (hover: none) { .card-gallery__nav { display: none; } }
.card-gallery__dots {
  position: absolute; left: 0; right: 0; bottom: .9rem;
  display: flex; justify-content: center; gap: .35rem; pointer-events: none;
}
.card-gallery__dot {
  width: .375rem; height: .375rem; border-radius: 50%;
  background: rgba(248, 246, 242, .55); box-shadow: 0 0 3px rgba(30, 28, 26, .45);
  transition: background .3s, transform .3s;
}
.card-gallery__dot.is-active { background: var(--paper); transform: scale(1.25); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.project-card__meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive-text);
}
.project-card__title {
  margin-top: 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.25;
  transition: color .2s;
}
.project-card__body { padding-bottom: 1.25rem; }
.project-card__desc {
  margin-top: .75rem;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card__open {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .2s;
}
.project-card:hover .project-card__title,
.project-card:hover .project-card__open { color: var(--burgundy); }

/* ── Services ─────────────────────────────────────────────────────────────── */
.services { background: var(--espresso); color: var(--cream); padding: var(--section-y) 0; }
.services__head { max-width: 42rem; margin: 0 auto 3.5rem; text-align: center; }
.services__head .section-title { margin-bottom: 1.25rem; }
.services__text { font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--on-dark-muted); }
.calc {
  max-width: 56rem;
  margin: 0 auto 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline-light);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1.5rem;
  align-items: center;
}
.calc__types { display: flex; gap: 1.5rem; }
.calc__area { display: flex; align-items: center; gap: 1.25rem; }
.calc__area label { flex-shrink: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.calc__area-value { flex-shrink: 0; width: 5.5rem; text-align: right; font-family: var(--serif); font-size: 1.5rem; color: var(--on-dark); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: rgba(243, 239, 234, .35); }
input[type="range"]::-moz-range-track { height: 1px; background: rgba(243, 239, 234, .35); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; margin-top: -6.5px;
  background: var(--cream); border: 1px solid var(--espresso);
}
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: var(--cream); border: 1px solid var(--espresso); border-radius: 0; }

.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; }
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 3vw, 2.5rem);
  background: var(--paper);
  color: var(--charcoal);
}
.service-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive-text);
}
.service-card--accent .service-card__top { color: var(--burgundy); }
.service-card__title { margin: 1.5rem 0 .75rem; font-family: var(--serif); font-weight: 400; font-size: 2.125rem; line-height: 1.1; }
.service-card__note { margin-bottom: .75rem; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy); }
.service-card__text { margin-bottom: 1.5rem; font-size: 13px; line-height: 1.7; color: var(--muted); }
.service-card__items { list-style: none; margin-bottom: 2rem; display: grid; gap: .55rem; font-size: 12.5px; line-height: 1.55; }
.service-card__items li::before { content: "— "; }
.service-card__prices { padding-top: 1.5rem; border-top: 1px solid var(--hairline); display: grid; gap: .4rem; font-size: 12.5px; }
.price-row { display: flex; justify-content: space-between; gap: 1rem; }
.price-row span:first-child { color: var(--muted); }
.price-row span:last-child { font-weight: 500; }
.price-row--total { margin-top: .4rem; padding-top: .6rem; border-top: 1px solid var(--hairline); align-items: baseline; }
.price-row--total span:first-child { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive-text); }
.price-row--total span:last-child { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--burgundy); }
.service-card__actions { margin-top: 1.25rem; display: flex; gap: .75rem; }
.service-card__actions .btn:first-child { flex: 1; }

/* ── Process ──────────────────────────────────────────────────────────────── */
.process { list-style: none; border-bottom: 1px solid var(--hairline); }
.process__step {
  display: grid;
  grid-template-columns: 2fr 4fr 6fr;
  gap: 1rem;
  align-items: baseline;
  padding: 2rem 0;
  border-top: 1px solid var(--hairline);
}
.process__step:first-child { border-top: none; }
.process__stage { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy); }
.process__title { font-family: var(--serif); font-size: 1.875rem; font-weight: 400; line-height: 1.2; }
.process__text { font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ── About ────────────────────────────────────────────────────────────────── */
.about { padding: var(--section-y) 0; background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.about__kicker { margin-bottom: 3rem; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__main { display: grid; gap: 2rem; }
.about__name, .about__role {
  font-family: var(--serif);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
}
.about__name { font-size: clamp(2.5rem, 4.5vw, 3.375rem); }
.about__role { font-size: clamp(1.875rem, 3.5vw, 2.625rem); color: var(--burgundy); }
.about__portrait { width: 14rem; aspect-ratio: 3 / 4; margin: 1.25rem 0; }
.about__portrait img { object-position: top; }
.about__text { max-width: 36rem; display: grid; gap: 1rem; font-size: 14px; line-height: 1.75; color: rgba(30, 28, 26, .82); }
.about__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; color: var(--charcoal); }
#about-bio { display: grid; gap: 1rem; }
.about__facts { max-width: 36rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.about__facts dt { margin-bottom: .25rem; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive-text); }
.about__facts dd { font-size: 13px; font-weight: 500; }
.about__interior { width: 100%; max-width: 32rem; aspect-ratio: 4 / 5; justify-self: end; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 4rem; }
.faq__intro { display: grid; gap: 1rem; align-content: start; }
.faq__intro .kicker { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.faq__item + .faq__item { border-top: 1px solid var(--hairline); }
.faq__question {
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  transition: color .2s;
}
.faq__question:hover { color: var(--burgundy); }
.faq__icon { flex-shrink: 0; font-family: var(--sans); font-size: 1.25rem; font-weight: 300; color: rgba(30, 28, 26, .6); }
.faq__answer { padding: 0 2rem 1.5rem 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.faq__answer p + p { margin-top: .75em; }

/* ── Contacts & form ──────────────────────────────────────────────────────── */
.contacts { padding: var(--section-y) 0 5rem; background: var(--stone); border-top: 1px solid var(--hairline); }
.contacts__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(3.5rem, 6vw, 5rem); }
.contacts__info { display: grid; gap: 1.5rem; align-content: start; }
.contacts__info .kicker { margin-bottom: 0; }
.contact-list { margin-top: .5rem; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 13px; }
.contact-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; transition: color .2s; }
.contact-list a + a { border-top: 1px solid var(--hairline); }
.contact-list a:hover { color: var(--burgundy); }
.contact-list .caps { font-size: 10px; }

.request-form { padding: clamp(2rem, 4vw, 3rem); background: var(--paper); border: 1px solid var(--hairline); display: grid; gap: 1.75rem; }
.request-form__title { font-family: var(--serif); font-weight: 400; font-size: 1.875rem; line-height: 1.2; }
.field-grid { display: grid; gap: 1.75rem; }
.field-grid--2 { grid-template-columns: repeat(2, 1fr); }
.field-grid--3 { grid-template-columns: repeat(3, 1fr); }
.field-grid--order { grid-template-columns: 1fr 1.6fr .7fr; }
.field { display: grid; gap: .5rem; min-width: 0; border: none; }
.field > label, .pref legend { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive-text); }
.field input:not([type="file"]):not([type="radio"]), .field select, .field textarea {
  width: 100%;
  padding: .6rem 0;
  font-size: 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(30, 28, 26, .3);
  border-radius: 0;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--burgundy); }
.field textarea { resize: vertical; }
.field input[type="file"] { font-size: 13px; color: var(--muted); }
.pref legend { margin-bottom: .6rem; }
.pref__options { display: flex; flex-wrap: wrap; gap: .5rem; }
.pref__option { position: relative; cursor: pointer; }
.pref__option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pref__option span {
  display: block;
  padding: .35rem 1rem;
  border: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: .08em;
  transition: background .15s, border-color .15s, color .15s;
}
.pref__option input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--on-dark); }
.pref__option input:focus-visible + span { outline: 1px solid var(--burgundy); outline-offset: 2px; }
.consent__label { display: flex; align-items: flex-start; gap: .6rem; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent__label input { margin-top: .2rem; accent-color: var(--espresso); }
.link-button { text-decoration: underline; text-underline-offset: 2px; color: var(--charcoal); font-size: inherit; }
.consent__text { margin-top: .75rem; padding: .9rem 1rem; background: var(--cream); font-size: 12px; line-height: 1.6; color: var(--muted); }
.form-error { padding: .75rem 1rem; border-left: 2px solid var(--burgundy); background: rgba(117, 64, 68, .08); font-size: 13px; color: var(--burgundy); }
.form-success { padding-top: 1rem; border-top: 1px solid var(--olive); font-size: 14px; line-height: 1.6; }
.form-success strong { font-weight: 600; margin-right: .25rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { padding: 3rem 0 3rem; background: var(--stone); }
.site-footer .container { padding-top: 3rem; border-top: 1px solid var(--hairline); }
.site-footer__wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: -.025em;
  line-height: 1;
  user-select: none;
}
.site-footer__meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(30, 28, 26, .65);
}

/* ── Dialogs ──────────────────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(41, 32, 27, .8);
}
.dialog { max-width: 48rem; margin: 1rem auto; background: var(--paper); border: 1px solid var(--hairline); }
.dialog--wide { max-width: 64rem; }
.dialog__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.5rem, 3vw, 2.5rem);
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.dialog__bar .caps { color: var(--olive-text); }
.dialog__close { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: color .2s; }
.dialog__close:hover { color: var(--burgundy); }
.dialog__body { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 2rem; }
.dialog__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.dialog__text { font-size: 14px; line-height: 1.75; color: rgba(30, 28, 26, .85); white-space: pre-line; }
/* The main photo is limited so that its height stays within 75% of the screen. */
/* Gallery photos keep their own proportions; columns pack them like a masonry wall. */
/* Rows, not newspaper columns: photos read left to right, then top to bottom,
   in the order set in the admin panel. */
.case__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.case__gallery .photo img { height: auto; }
.case__cta { padding-top: 1.5rem; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: 13px; color: var(--muted); }

.sample-plan { width: 100%; height: auto; background: var(--cream); border: 1px solid var(--hairline); }
.sample-sheets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; font-size: 13px; }
.sample-sheets div { padding: 1rem; background: var(--cream); border: 1px solid var(--hairline); }
.sample-table-wrap { overflow-x: auto; padding: 1rem; background: var(--cream); border: 1px solid var(--hairline); }
.sample-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.sample-table th { padding: .5rem .75rem .5rem 0; font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive-text); border-bottom: 1px solid var(--hairline); }
.sample-table td { padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--hairline); }
.sample-table tr:last-child td { border-bottom: none; }
.sample-table td:nth-child(2) { font-family: ui-monospace, monospace; color: var(--burgundy); }

/* ── States ───────────────────────────────────────────────────────────────── */
.loader { width: 32px; height: 32px; margin: 3rem auto; border: 1px solid var(--hairline); border-top-color: var(--charcoal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 3rem 0; text-align: center; color: var(--muted); }
.error { padding: 2rem 0; text-align: center; color: var(--burgundy); }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--olive); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero { min-height: 88vh; }
}
@media (max-width: 1023px) {
  .case__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directions { grid-template-columns: 1fr; }
  .direction--residential { border-right: none; border-bottom: 1px solid var(--hairline); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cards { grid-template-columns: 1fr; max-width: 40rem; margin: 0 auto; }
  .calc { grid-template-columns: 1fr; }
  .about__grid, .faq, .contacts__grid { grid-template-columns: 1fr; }
  .about__interior { justify-self: start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .caps { text-align: left; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .brand__role { display: none; }
  .hero__meta-extra { display: none; }
  /* Two cards per row on large phones / small tablets, so a card never fills the screen. */
  .projects-grid { gap: 3rem 1.25rem; }
  .project-card__title { font-size: 1.375rem; }
  .process__step { grid-template-columns: 1fr; gap: .5rem; }
  .field-grid--2, .field-grid--3, .field-grid--order { grid-template-columns: 1fr; }
  .about__facts { grid-template-columns: 1fr; }
  .about__signature { text-align: center; }
  .about__portrait { margin-left: auto; margin-right: auto; }
  .direction__vertical { display: none; }
  .direction__bottom { flex-direction: column; align-items: flex-start; }
  .case__gallery { grid-template-columns: minmax(0, 1fr); }
  .sample-sheets { grid-template-columns: 1fr; }
  .service-card__actions { flex-direction: column; }
}
/* Phones: one card per row, but a shorter photo (4:5, at most ~60% of the screen),
   so the title of the card and the start of the next one are visible. */
@media (max-width: 539px) {
  .projects-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 2.5rem; }
  .card-gallery { aspect-ratio: 4 / 5; max-height: 60svh; width: 100%; }
}
