/* ==========================================================================
   South Reno Wallpaper Hanger — Contemporary Editorial
   --------------------------------------------------------------------------
   1. Fonts            6. Hero               11. About
   2. Tokens           7. Services           12. Contact + form
   3. Base / reset     8. Why choose us      13. Map
   4. Layout helpers   9. Process            14. Footer
   5. Header + menu   10. Gallery + lightbox 15. Motion, print
   ========================================================================== */

/* 1. Fonts — self-hosted variable fonts (SIL OFL, see assets/fonts) -------- */
@font-face {
  font-family: "Imbue";
  src: url("../assets/fonts/imbue-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../assets/fonts/mona-sans-latin-variable.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../assets/fonts/mona-sans-latin-variable-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Brief palette */
  --ivory: #F5F1E9;        /* Warm Ivory — page background        */
  --beige: #E8DFD2;        /* Soft Beige — alternate bands        */
  --charcoal: #252522;     /* Deep Charcoal — text + dark bands   */
  --taupe: #A99B89;        /* Muted Taupe — rules, on-dark text   */
  --white: #FCFAF6;        /* Warm White — panels and cards       */
  --olive: #535C49;        /* Dark Olive — accent + buttons       */

  /* Derived, contrast-checked (see README) */
  --olive-deep: #424A39;   /* button hover                        */
  --text: #2C2B27;         /* body copy on light                  */
  --muted: #5E574C;        /* secondary copy on light (≥5.5:1)    */
  --line: #D3C8B8;         /* hairlines (decorative)              */
  --line-strong: #8C8070;  /* form field borders (≥3:1 UI)        */
  --on-dark: #F5F1E9;
  --on-dark-muted: #C2B8AA;
  --sage: #BCC4AC;         /* olive accent, lifted for dark bands */
  --error: #A3271F;

  --serif: "Imbue", "Bodoni 72", Didot, "Didot LT STD", "Libre Bodoni", Georgia, "Times New Roman", serif;
  --sans: "Mona Sans", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.4vw, 64px);
  --maxw: 1480px;
  --header-h: 68px;
  --section-y: clamp(80px, 10vw, 168px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

/* 3. Base / reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--olive); color: var(--white); }

:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.process :focus-visible, .site-footer :focus-visible, .map-card :focus-visible, .lightbox :focus-visible { outline-color: var(--ivory); }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--charcoal); color: var(--ivory); padding: 10px 16px; text-decoration: none;
  font-size: .9rem;
}
.skip-link:focus { top: 12px; }

/* 4. Layout helpers + shared type ---------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.label {
  display: flex; align-items: center; gap: .9em;
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 560;
  font-size: .7rem;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(18px, 2vw, 28px);
}
.label-num {
  display: inline-flex; align-items: center; gap: .9em;
  color: var(--olive);
  font-weight: 700;
}
.label-num::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.label-rule { width: 34px; height: 1px; background: var(--olive); flex: none; }
.label--plain { margin-bottom: 10px; }
.label--light { color: var(--on-dark-muted); }
.label--light .label-num { color: var(--sage); }

.display {
  font-family: var(--serif);
  font-weight: 340;
  font-optical-sizing: auto;
  font-size: clamp(2.75rem, 1.4rem + 5.2vw, 6.6rem);
  line-height: .94;
  letter-spacing: -.012em;
  color: var(--charcoal);
  text-wrap: balance;
}
.display--md { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.9rem); }
.accent { color: var(--olive); }
.process .accent, .map-card .accent { color: var(--sage); }

.sec-head { margin-bottom: clamp(48px, 7vw, 104px); max-width: 1100px; }
.sec-intro { color: var(--muted); max-width: 46ch; margin-top: 24px; font-size: 1.02rem; }
.sec-head--split { max-width: none; display: grid; gap: 28px; }
.sec-head--split .sec-intro { margin-top: 0; }
@media (min-width: 1024px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
    align-items: end;
  }
  .sec-head--split .sec-head-meta { padding-bottom: .6rem; }
  .sec-head--split .display { grid-column: 2; grid-row: 1; }
  .sec-head--split .sec-head-meta { grid-column: 1; grid-row: 1; }
}

/* Buttons */
.btn {
  --btn-bg: transparent; --btn-fg: var(--charcoal); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 54px;
  padding: 0 1.75em;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 620;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  border-radius: 0;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { min-height: 46px; padding: 0 1.35em; font-size: .74rem; }
.btn-block { width: 100%; }
.btn-primary { --btn-bg: var(--olive); --btn-fg: var(--white); --btn-bd: var(--olive); }
.btn-primary:hover { --btn-bg: var(--olive-deep); --btn-bd: var(--olive-deep); }
.btn-outline { --btn-fg: var(--charcoal); --btn-bd: var(--charcoal); }
.btn-outline:hover { --btn-bg: var(--charcoal); --btn-fg: var(--ivory); }
.btn-light { --btn-bg: var(--ivory); --btn-fg: var(--charcoal); --btn-bd: var(--ivory); }
.btn-light:hover { --btn-bg: var(--white); --btn-bd: var(--white); }
.btn-icon { width: 18px; height: 18px; flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--sans); font-stretch: 112%; font-weight: 620; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-block: 4px;
}
.text-link:hover { color: var(--olive); }
.text-link--light { color: var(--on-dark); }
.text-link--light:hover { color: var(--sage); }

/* Crop-mark frames (editorial print detail) */
.framed { position: relative; }
.frame { position: relative; }
.crop-marks { display: none; }
@media (min-width: 768px) {
  .crop-marks { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; color: var(--taupe); }
  .crop-marks i {
    position: absolute; width: 22px; height: 22px;
    background:
      linear-gradient(currentColor, currentColor) no-repeat,
      linear-gradient(currentColor, currentColor) no-repeat;
  }
  /* each mark: a horizontal stub on the image edge line + a vertical stub, both short of the corner */
  .crop-marks i:nth-child(1) { top: -22px; left: -22px; background-size: 15px 1px, 1px 15px; background-position: left bottom, right top; }
  .crop-marks i:nth-child(2) { top: -22px; right: -22px; background-size: 15px 1px, 1px 15px; background-position: right bottom, left top; }
  .crop-marks i:nth-child(3) { bottom: -22px; left: -22px; background-size: 15px 1px, 1px 15px; background-position: left top, right bottom; }
  .crop-marks i:nth-child(4) { bottom: -22px; right: -22px; background-size: 15px 1px, 1px 15px; background-position: right top, left bottom; }
}
figcaption, .hero-caption {
  font-family: var(--sans); font-style: italic; font-size: .84rem; color: var(--muted);
  margin-top: 14px; line-height: 1.45;
}

/* 5. Header + mobile menu ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(37, 37, 34, .45); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); margin-right: auto; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 380; font-size: 1.62rem; letter-spacing: .005em; line-height: .9; }
.brand-sub {
  font-family: var(--sans); font-stretch: 125%; font-weight: 600; font-size: .56rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 5px;
}

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: clamp(18px, 2vw, 34px); }
.primary-nav a {
  position: relative;
  font-family: var(--sans); font-stretch: 110%; font-weight: 520; font-size: .86rem;
  text-decoration: none; color: var(--charcoal); padding-block: 8px;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="true"] { color: var(--olive); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
.header-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); color: var(--charcoal);
}
.header-call svg { width: 20px; height: 20px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px; border: 1px solid var(--charcoal); background: var(--charcoal); color: var(--ivory);
  font-family: var(--sans); font-stretch: 115%; font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
.menu-toggle-bars { position: relative; width: 18px; height: 10px; display: block; }
.menu-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle-bars span:first-child { top: 0; }
.menu-toggle-bars span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-menu-list li { border-bottom: 1px solid var(--line); }
.mobile-menu-list a {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0;
  font-family: var(--serif); font-weight: 360; font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1;
  color: var(--charcoal); text-decoration: none;
}
.mobile-menu-list a span { font-family: var(--sans); font-stretch: 125%; font-size: .66rem; font-weight: 640; letter-spacing: .16em; color: var(--olive); }
.mobile-menu-foot { display: grid; gap: 14px; }
.mobile-menu-line { color: var(--charcoal); font-size: .95rem; text-decoration: none; overflow-wrap: anywhere; }

/* Small phones: icon-only menu button, tighter brand */
@media (max-width: 419px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .menu-toggle { width: 44px; padding: 0; justify-content: center; }
  .menu-toggle-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (max-width: 359px) {
  .brand { gap: 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1.45rem; }
  .brand-sub { letter-spacing: .14em; font-stretch: 110%; }
}

/* Without JavaScript the drawer can't open, so show the primary nav inline instead */
.no-js .menu-toggle { display: none; }
.no-js .mobile-menu { display: none; }
@media (max-width: 1179px) {
  .no-js .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 12px; }
  .no-js .primary-nav { display: block; width: 100%; order: 3; }
  .no-js .primary-nav ul { flex-wrap: wrap; gap: 6px 18px; }
}

@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
  .header-call { display: none; }
}
@media (min-width: 1180px) {
  .primary-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
  .brand-name { font-size: 1.85rem; }
  .brand-mark { width: 38px; height: 38px; }
}

/* 6. Hero ----------------------------------------------------------------- */
.hero { position: relative; padding-bottom: clamp(48px, 7vw, 104px); }
.hero-stage { position: relative; }
.hero-media {
  position: relative; overflow: hidden; background: var(--beige);
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 56vh;
  max-height: 56svh;
  min-height: 300px;
}
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 55%; }
@media (min-width: 1024px) { .hero-img { object-position: 50% 40%; } }
.hero-body { position: relative; z-index: 2; margin-top: -64px; }
.hero-panel {
  background: var(--white);
  padding: 30px 22px 28px;
  box-shadow: 0 30px 60px -40px rgba(37, 37, 34, .45);
  max-width: 760px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 330;
  font-optical-sizing: auto;
  font-size: clamp(2.9rem, 1.6rem + 5.2vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.015em;
  color: var(--charcoal);
  margin-bottom: 22px;
}
.hero-foot { margin-top: 36px; }
.hero-title .line { display: block; }
.hero-text { color: var(--muted); font-size: 1.06rem; max-width: 44ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero-actions .btn { white-space: nowrap; } }
.hero-aside { display: grid; gap: 18px; align-content: end; }
.hero-caption { margin-top: 0; }
.hero-glance { border-top: 1px solid var(--line); }
.hero-glance li {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--text);
}
.hero-glance span {
  font-family: var(--sans); font-stretch: 125%; font-weight: 640; font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--olive);
}

@media (min-width: 700px) {
  .hero-media { aspect-ratio: auto; height: clamp(420px, 60vh, 720px); max-height: none; }
  .hero-body { margin-top: -150px; }
  .hero-panel { padding: 44px 44px 40px; }
  .hero-foot { margin-top: 44px; }
  .hero-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 40px; align-items: start; }
}
/* Desktop: the cover fills the first screen; the solid text panel sits in its
   lower-left corner and overhangs the photo's bottom edge. */
@media (min-width: 1024px) {
  .hero-media {
    height: clamp(600px, calc(100vh - var(--header-h) - 56px), 1000px);
    height: clamp(600px, calc(100svh - var(--header-h) - 56px), 1000px);
  }
  .hero { --panel-w: 72%; }
  .hero-body { position: absolute; left: 0; right: 0; bottom: -56px; margin: 0; pointer-events: none; }
  .hero-panel { pointer-events: auto; max-width: var(--panel-w); padding: 50px 60px 48px; }
  .hero-title { font-size: clamp(4rem, 1rem + 5vw, 6.4rem); }
  .hero-foot {
    margin-top: 0; padding-top: 30px;
    display: grid; grid-template-columns: var(--panel-w) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 80px);
  }
  .hero-aside { grid-column: 2; grid-template-columns: 1fr; }
}
@media (min-width: 1280px) {
  .hero { --panel-w: min(64%, 900px); }
}
@media (min-width: 1024px) and (max-height: 780px) {
  .hero-panel { padding: 38px 48px 36px; }
  .hero-title { font-size: 4.3rem; margin-bottom: 16px; }
  .hero-text { margin-bottom: 22px; }
}

/* 7. Services ------------------------------------------------------------- */
.services { padding-top: clamp(40px, 6vw, 96px); }
.service-grid { display: grid; gap: 28px; counter-reset: svc; }
.service-card { display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: start; }
.service-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--beige); }
.service-media picture, .service-media img { width: 100%; height: 100%; }
.service-media img { object-fit: cover; transition: transform 1.1s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.045); }
.service-body { border-top: 1px solid var(--charcoal); padding-top: 12px; }
.service-num {
  display: block; font-family: var(--sans); font-stretch: 125%; font-weight: 640; font-size: .66rem;
  letter-spacing: .16em; color: var(--olive); margin-bottom: 8px;
}
.service-body h3 {
  font-family: var(--serif); font-weight: 420; font-size: 1.62rem; line-height: 1.02;
  color: var(--charcoal); margin-bottom: 10px; letter-spacing: -.005em;
}
.service-body p { font-size: .95rem; line-height: 1.6; color: var(--muted); }
/* Wall preparation photo: keep the wall and baseboard, crop away the floor */
.service-media img[src*="wall-prep"] { object-position: 30% 15%; }

@media (min-width: 560px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
  .service-card { grid-template-columns: 1fr; gap: 0; }
  .service-media { aspect-ratio: 4 / 5; margin-bottom: 20px; }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 36px); row-gap: 72px; }
  /* editorial stagger: the 2nd and 4th columns sit lower */
  .service-card:nth-child(4n+2), .service-card:nth-child(4n+4) { margin-top: 72px; }
  .service-body h3 { font-size: clamp(1.6rem, 1rem + .9vw, 2rem); }
}
.services-foot {
  margin-top: clamp(56px, 7vw, 112px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
}
.services-foot p { text-wrap: balance; font-family: var(--serif); font-weight: 360; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); line-height: 1.1; color: var(--charcoal); max-width: 34ch; }

/* 8. Why choose us -------------------------------------------------------- */
.why { background: var(--beige); }
.why-rows { display: grid; gap: clamp(64px, 9vw, 150px); }
.why-row { display: grid; align-items: center; }
.why-media { position: relative; }
.why-media picture { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ivory); }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-card {
  position: relative; z-index: 3;
  background: var(--white);
  margin: -48px 12px 0;
  padding: 30px 22px;
  display: grid; gap: 28px;
  box-shadow: 0 30px 60px -44px rgba(37, 37, 34, .5);
}
.why-point { display: grid; gap: 8px; }
.why-point + .why-point { padding-top: 28px; border-top: 1px solid var(--line); }
.why-num { font-family: var(--sans); font-stretch: 125%; font-weight: 640; font-size: .66rem; letter-spacing: .16em; color: var(--olive); }
.why-point h3 { font-family: var(--serif); font-weight: 420; font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.4rem); line-height: 1; color: var(--charcoal); }
.why-point p { color: var(--muted); font-size: .98rem; }
.why-media figcaption { padding-left: 2px; }
/* below desktop the overlapping card would sit on top of the caption */
@media (max-width: 1023px) { .why-media figcaption { display: none; } }

@media (min-width: 768px) {
  .why-card { margin: -96px 48px 0 auto; max-width: 560px; padding: 44px 44px; }
  .why-row--reverse .why-card { margin-left: 48px; margin-right: auto; }
}
@media (min-width: 1024px) {
  .why-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .why-media { grid-column: 1 / span 7; grid-row: 1; }
  .why-media picture { aspect-ratio: 5 / 4; }
  .why-card { grid-column: 7 / span 6; grid-row: 1; margin: 0; max-width: none; padding: 56px 56px; }
  .why-row--reverse .why-media { grid-column: 6 / span 7; }
  .why-row--reverse .why-card { grid-column: 1 / span 6; margin: 0; }
  .why-row:first-child .why-media picture { aspect-ratio: 1 / 1; }
}

/* 9. Process (dark band) -------------------------------------------------- */
.process { background: var(--charcoal); color: var(--on-dark); overflow: hidden; }
.process .display { color: var(--on-dark); }
.process .label { color: var(--on-dark-muted); }
.process .label-num { color: var(--sage); }
.process .sec-intro { color: var(--on-dark-muted); }

.timeline { position: relative; display: grid; gap: 44px; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: rgba(245, 241, 233, .28);
}
.step { position: relative; }
.step-node {
  position: absolute; left: -36px; top: 6px; width: 13px; height: 13px;
  border: 1px solid var(--sage); background: var(--charcoal); transform: rotate(45deg);
}
.step-num {
  display: block; font-family: var(--serif); font-weight: 220; font-size: clamp(4rem, 2.8rem + 4vw, 7.5rem);
  line-height: .8; color: var(--taupe); margin-bottom: 18px; letter-spacing: -.02em;
}
.step h3 { font-family: var(--serif); font-weight: 420; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.25rem); line-height: 1.02; color: var(--on-dark); margin-bottom: 12px; }
.step p { color: var(--on-dark-muted); font-size: .97rem; max-width: 34ch; }

@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); padding-left: 0; padding-top: 44px; }
  .timeline::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .step-node { left: 0; top: -44px; }
}
.process-foot {
  margin-top: clamp(56px, 7vw, 104px); padding-top: 32px; border-top: 1px solid rgba(245, 241, 233, .22);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
}
.process-foot p { font-family: var(--serif); font-weight: 360; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1; margin-right: auto; }

/* 10. Gallery + lightbox -------------------------------------------------- */
.gallery-grid { display: grid; gap: 28px; }
.g-item { min-width: 0; display: flex; flex-direction: column; }
.g-link { position: relative; display: block; overflow: hidden; background: var(--beige); aspect-ratio: 4 / 3; cursor: zoom-in; }
.g-link picture, .g-link img { width: 100%; height: 100%; }
.g-link img { object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.g-link:hover img { transform: scale(1.035); }
.g-zoom {
  position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px;
  background: var(--white); opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.g-zoom::before, .g-zoom::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--charcoal); transform: translate(-50%, -50%); }
.g-zoom::before { width: 14px; height: 1px; }
.g-zoom::after { width: 1px; height: 14px; }
.g-link:hover .g-zoom, .g-link:focus-visible .g-zoom { opacity: 1; transform: none; }
.g-cap { display: flex; gap: 12px; margin-top: 12px; font-size: .86rem; line-height: 1.45; color: var(--muted); font-style: italic; }
.g-cap span { font-style: normal; font-family: var(--sans); font-stretch: 125%; font-weight: 640; font-size: .64rem; letter-spacing: .14em; color: var(--olive); padding-top: .25em; }
/* desert toile has a ceiling fan at the top edge — favor the wall */
.g-e img { object-position: 50% 85%; }

@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 36px; }
  .g-a, .g-h { grid-column: 1 / -1; }
  .g-a .g-link, .g-h .g-link { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 1.6vw, 28px);
    row-gap: clamp(28px, 3vw, 48px);
  }
  .g-link { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
  .g-a { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .g-a .g-link { aspect-ratio: auto; }
  .g-b { grid-column: 8 / span 5; grid-row: 1; }
  .g-c { grid-column: 8 / span 5; grid-row: 2; }
  .g-b .g-link, .g-c .g-link { aspect-ratio: 16 / 10; }
  .g-d { grid-column: 1 / span 4; }
  .g-e { grid-column: 5 / span 4; margin-top: 64px; }
  .g-f { grid-column: 9 / span 4; }
  .g-d .g-link, .g-e .g-link, .g-f .g-link { aspect-ratio: 4 / 5; }
  .g-g { grid-column: 1 / span 5; }
  .g-h { grid-column: 6 / span 7; }
  .g-g .g-link, .g-h .g-link { aspect-ratio: auto; flex: none; height: clamp(320px, 30vw, 500px); }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(22, 22, 20, .96);
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center;
  padding: 64px 8px 24px;
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-visible { opacity: 1; }
.lb-figure { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lb-img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; background: #1b1b19; }
.lb-cap { display: flex; gap: 16px; align-items: baseline; color: var(--on-dark-muted); font-style: normal; font-size: .92rem; margin-top: 16px; text-align: center; }
.lb-count { font-stretch: 125%; font-weight: 640; font-size: .68rem; letter-spacing: .16em; color: var(--sage); white-space: nowrap; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: transparent; border: 1px solid rgba(245, 241, 233, .35); color: var(--on-dark);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.lb-btn:hover { background: rgba(245, 241, 233, .1); border-color: var(--on-dark); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { position: absolute; top: 12px; right: 12px; }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }
@media (max-width: 699px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 64px 12px 20px; row-gap: 16px; }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .lb-next { grid-column: 2; grid-row: 2; justify-self: end; }
  .lb-img { max-height: calc(100vh - 220px); max-height: calc(100svh - 220px); }
}

/* 11. About --------------------------------------------------------------- */
.about { background: var(--white); }
.about-grid { display: grid; gap: clamp(48px, 6vw, 96px); align-items: center; }
.about-media picture { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--beige); }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.about-lede { font-size: 1.08rem; color: var(--text); margin-top: 28px; max-width: 54ch; }
.about-location { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-location address { font-family: var(--serif); font-weight: 380; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; color: var(--charcoal); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
@media (min-width: 700px) {
  .about-media picture { aspect-ratio: 16 / 11; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .about-media picture { aspect-ratio: 4 / 5; }
}

/* 12. Contact + form ------------------------------------------------------ */
.contact { background: var(--beige); }
.contact-grid { display: grid; gap: clamp(48px, 6vw, 88px); align-items: start; }
.contact-lede { color: var(--muted); font-size: 1.08rem; max-width: 40ch; margin-top: 24px; }
.contact-list { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.contact-list > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--sans); font-stretch: 125%; font-weight: 640; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { font-size: 1.02rem; color: var(--charcoal); overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-list a:hover { color: var(--olive); border-color: var(--olive); }
@media (min-width: 560px) {
  .contact-list > div { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .contact-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

.form-card { background: var(--white); padding: 30px 20px; box-shadow: 0 40px 80px -56px rgba(37, 37, 34, .55); }
@media (min-width: 700px) { .form-card { padding: 48px 48px 44px; } }
.form-card-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.6rem); line-height: 1; color: var(--charcoal); }
.form-sub { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.req { color: var(--error); }

/* The form element itself stays display:block — the supplied script restores
   form.style.display = 'block' after a successful send, so the grid lives inside. */
.estimate-form { display: block; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 22px; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label {
  font-family: var(--sans); font-stretch: 112%; font-weight: 600; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px;
  padding: 13px 14px;
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--charcoal);
  font-size: 1rem; /* ≥16px avoids iOS zoom-on-focus */
  line-height: 1.4;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E6557; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--charcoal); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--olive); background: var(--white); box-shadow: 0 0 0 3px rgba(83, 92, 73, .22);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--charcoal); border-bottom: 1.5px solid var(--charcoal); transform: rotate(45deg); pointer-events: none;
}
.field select { padding-right: 44px; cursor: pointer; }
/* Error messages created by the supplied script use inline color #ff6b6b
   (2.4:1 on white) — lift them to an AA-compliant red without touching the script. */
.estimate-form .error-message { color: var(--error) !important; font-size: .86rem !important; line-height: 1.4; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-submit { min-width: 260px; position: relative; }
.form-note { font-size: .86rem; color: var(--muted); flex: 1 1 200px; }
.btn-spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(252, 250, 246, .35); border-top-color: var(--white);
}
.estimate-form.is-sending .btn-spinner { display: inline-block; animation: spin .8s linear infinite; }
.estimate-form.is-sending .form-submit { cursor: progress; opacity: .92; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 559px) { .form-submit { width: 100%; min-width: 0; } }

.form-success { padding: 12px 0 6px; text-align: left; }
.form-success:focus { outline: none; }
.form-success-mark { width: 52px; height: 52px; color: var(--olive); margin-bottom: 22px; }
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.8rem); line-height: 1.02; color: var(--charcoal); margin-bottom: 14px; }
.form-success p { color: var(--muted); }
.form-success a { color: var(--charcoal); }

/* 13. Map ----------------------------------------------------------------- */
.location { padding-top: 0; background: var(--beige); }
.location-grid { display: grid; gap: 0; }
.map-frame {
  position: relative; width: 100%; min-width: 0; height: clamp(300px, 75vw, 440px);
  background-color: #DDD3C4;
  background-image:
    linear-gradient(rgba(37, 37, 34, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 37, 34, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card { background: var(--charcoal); color: var(--on-dark); padding: 36px 24px; display: flex; flex-direction: column; gap: 18px; }
.map-title { font-family: var(--serif); font-weight: 380; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: .95; color: var(--on-dark); }
.map-address { font-size: 1.05rem; color: var(--on-dark); line-height: 1.6; }
.map-line { color: var(--on-dark-muted); text-decoration: none; border-bottom: 1px solid rgba(245, 241, 233, .3); align-self: flex-start; }
.map-line:hover { color: var(--on-dark); }
@media (min-width: 900px) {
  .location-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .map-frame { height: auto; min-height: 480px; }
  .map-card { padding: 48px 40px; justify-content: center; }
}

/* 14. Footer -------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); padding: clamp(64px, 8vw, 112px) 0 28px; font-size: .95rem; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  padding-bottom: clamp(36px, 5vw, 64px); border-bottom: 1px solid rgba(245, 241, 233, .18);
}
.footer-wordmark { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 1.6rem + 6vw, 7.8rem); line-height: .86; color: var(--on-dark); letter-spacing: -.015em; }
.footer-wordmark span { display: block; color: var(--sage); }
.footer-grid { display: grid; gap: 36px; padding-block: clamp(36px, 5vw, 64px); }
.footer-label { font-family: var(--sans); font-stretch: 125%; font-weight: 640; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.footer-about p:not(.footer-label) { max-width: 44ch; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--sage); text-decoration: underline; }
.footer-links address { color: var(--on-dark-muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px;
  border-top: 1px solid rgba(245, 241, 233, .18); font-size: .84rem;
}
.back-top { color: var(--on-dark); text-decoration: none; }
.back-top:hover { color: var(--sage); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 48px; }
}

/* 15. Motion (progressive enhancement) ------------------------------------
   Content is visible by default. main.js adds .js-reveal to <html> only when
   IntersectionObserver exists; motion only runs when the visitor allows it. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
  .js-reveal .service-grid .reveal:nth-child(4n+2) { transition-delay: .08s; }
  .js-reveal .service-grid .reveal:nth-child(4n+3) { transition-delay: .16s; }
  .js-reveal .service-grid .reveal:nth-child(4n+4) { transition-delay: .24s; }
  .js-reveal .timeline .step:nth-child(2) { transition-delay: .12s; }
  .js-reveal .timeline .step:nth-child(3) { transition-delay: .24s; }
  .js-reveal .timeline .step:nth-child(4) { transition-delay: .36s; }

  /* image wipe: the observed figure stays in place; only its picture is clipped */
  .js-reveal .img-reveal picture { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
  .js-reveal .img-reveal.is-in picture { clip-path: inset(0 0 0 0); }
  .js-reveal .img-reveal picture img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
  .js-reveal .img-reveal.is-in picture img { transform: none; }
  .js-reveal .service-card:hover .img-reveal.is-in img { transform: scale(1.045); }

  .js-reveal .timeline::before { transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease); }
  .js-reveal .timeline.is-in::before { transform: none; }
  @media (min-width: 1024px) {
    .js-reveal .timeline::before { transform: scaleX(0); transform-origin: left; }
    .js-reveal .timeline.is-in::before { transform: none; }
  }

  .hero-img { animation: hero-settle 2.2s var(--ease) both; }
  .hero-panel { animation: rise .9s .15s var(--ease) both; }
  .hero-aside { animation: fade 1s .45s var(--ease) both; }
  @keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

@media print {
  .site-header, .mobile-menu, .lightbox, .map-frame, .menu-toggle, .hero-actions, .estimate-form, .skip-link { display: none !important; }
  .reveal, .img-reveal picture, .img-reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  body { background: #fff; }
  .process, .site-footer, .map-card { background: #fff !important; color: #000 !important; }
  .process *, .site-footer *, .map-card * { color: #000 !important; }
}
