/* ==========================================================================
   Sparks Wallpaper Installer — styles.css
   Design direction: American Classic + Warm & Cozy
   Type: Libre Baskerville (headings) + DM Sans (body), self-hosted
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-baskerville-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/libre-baskerville-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (from the brief) */
  --ivory: #F7F3EB;
  --cream: #EFE6D8;
  --beige: #D8C6AC;
  --taupe: #A99A87;
  --walnut: #49372B;
  --espresso: #30251F;
  --olive: #77765E;
  --white: #FFFFFF;

  /* Derived, contrast-checked text colors */
  --ink: #30251F;          /* 13.5:1 on ivory */
  --ink-soft: #5E5044;     /* 7.0:1 on ivory, 6.3:1 on cream */
  --olive-ink: #5E5D49;    /* 6.0:1 on ivory, 5.4:1 on cream */
  --on-dark: #F7F3EB;
  --on-dark-soft: #C8B9A4; /* 7.7:1 on espresso */
  --line: #D8C6AC;
  --line-soft: #E6DCCB;
  --field-border: #8A7B6A; /* 4.1:1 on white (non-text UI ≥ 3:1) */
  --error: #9E2B1F;        /* 7.4:1 on white */
  --success: #4F5A3A;

  --font-serif: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 3px;
  --header-h: 84px;

  --shadow-sm: 0 1px 2px rgba(48, 37, 31, .06), 0 2px 8px rgba(48, 37, 31, .05);
  --shadow-md: 0 2px 6px rgba(48, 37, 31, .06), 0 14px 34px rgba(48, 37, 31, .10);
  --shadow-lg: 0 6px 18px rgba(48, 37, 31, .10), 0 28px 60px rgba(48, 37, 31, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Decorative patterns (original artwork) */
  --pattern-ogee: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='84' viewBox='0 0 60 84'%3E%3Cg fill='none' stroke='%2349372B' stroke-opacity='.075' stroke-width='1.1'%3E%3Cpath d='M0 0C0 18 30 24 30 42S0 66 0 84M60 0C60 18 30 24 30 42S60 66 60 84'/%3E%3C/g%3E%3Cg fill='%2377765E' fill-opacity='.12'%3E%3Cpath d='M0 38l4 4-4 4-4-4zM60 38l4 4-4 4-4-4zM30 -4l4 4-4 4-4-4zM30 80l4 4-4 4-4-4z'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-frieze: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22' viewBox='0 0 36 22'%3E%3Cg fill='none' stroke='%23D8C6AC' stroke-width='1.1'%3E%3Cpath d='M0 1.5H36M0 20.5H36'/%3E%3Cpath d='M18 4.5C20.5 8 23 9 23 11S20.5 14 18 17.5C15.5 14 13 13 13 11S15.5 8 18 4.5Z'/%3E%3C/g%3E%3Cg fill='%23A99A87'%3E%3Cpath d='M0 8.5l2.5 2.5L0 13.5-2.5 11zM36 8.5l2.5 2.5-2.5 2.5-2.5-2.5z'/%3E%3Ccircle cx='18' cy='11' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--walnut); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--espresso); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.005em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; }
::selection { background: var(--beige); color: var(--espresso); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  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(--espresso); color: var(--ivory); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--ivory); }

.icon {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Eyebrows, titles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--olive-ink);
}
.eyebrow__mark {
  position: relative; width: 34px; height: 9px; flex: none;
}
.eyebrow__mark::before {
  content: ""; position: absolute; left: 0; right: 12px; top: 4px; height: 1px; background: currentColor; opacity: .7;
}
.eyebrow__mark::after {
  content: ""; position: absolute; right: 1px; top: 0; width: 7px; height: 7px;
  border: 1px solid currentColor; transform: rotate(45deg); margin-top: .5px;
}
.eyebrow--light { color: var(--beige); }
.section-head--center .eyebrow__mark { display: none; }
.section-head--center .eyebrow::before,
.section-head--center .eyebrow::after {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6;
}

.section { padding-block: var(--section-y); position: relative; }
.section-title { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.85rem); margin-bottom: .55em; }
.section-lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 62ch; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--split {
  display: grid; gap: 12px 48px; align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; }
  .section-head--split .section-title { margin-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--espresso); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .95rem; font-weight: 600; letter-spacing: .03em;
  text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: .95em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { --btn-bg: var(--walnut); --btn-fg: var(--ivory); --btn-bd: var(--walnut); box-shadow: var(--shadow-sm); }
.btn--primary:hover { --btn-bg: var(--espresso); --btn-bd: var(--espresso); color: var(--ivory); box-shadow: var(--shadow-md); }
.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--espresso); --btn-bd: var(--cream); box-shadow: 0 6px 22px rgba(0, 0, 0, .18); }
.btn--cream:hover { --btn-bg: var(--ivory); --btn-bd: var(--ivory); color: var(--espresso); }
.btn--ghost-light { --btn-fg: var(--ivory); --btn-bd: rgba(247, 243, 235, .75); background: rgba(48, 37, 31, .18); }
.btn--ghost-light:hover { --btn-bg: rgba(247, 243, 235, .12); --btn-bd: var(--ivory); color: var(--ivory); }
.btn--outline { --btn-fg: var(--walnut); --btn-bd: var(--walnut); }
.btn--outline:hover { --btn-bg: var(--walnut); --btn-fg: var(--ivory); color: var(--ivory); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  color: var(--walnut); text-decoration: none;
  border-bottom: 1px solid var(--beige); padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { border-color: var(--walnut); gap: .7em; }
.link-arrow--light { color: var(--beige); border-color: rgba(216, 198, 172, .4); }
.link-arrow--light:hover { color: var(--ivory); border-color: var(--ivory); }

/* ---------- Top bar ---------- */
.topbar { background: var(--espresso); color: var(--on-dark-soft); font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__note { margin: 0; letter-spacing: .04em; }
.topbar__links { display: flex; gap: 24px; }
.topbar__links a { display: inline-flex; align-items: center; gap: .5em; color: var(--ivory); text-decoration: none; }
.topbar__links a:hover { color: var(--beige); }
.topbar .icon { color: var(--beige); width: 1em; height: 1em; }
@media (max-width: 900px) { .topbar__email { display: none; } }
@media (max-width: 600px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 235, .97);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header { background: rgba(247, 243, 235, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(48, 37, 31, .08); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--espresso); flex: none; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.42rem; letter-spacing: .01em; color: var(--espresso); }
.brand__sub {
  margin-top: 5px; font-family: var(--font-sans); font-size: .64rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--olive-ink);
}
.brand:hover .brand__name { color: var(--walnut); }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.site-nav__list a {
  position: relative; display: inline-block; padding: 8px 0;
  color: var(--espresso); text-decoration: none; font-weight: 500; font-size: .97rem; letter-spacing: .01em;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px; background: var(--walnut);
  transition: left .3s var(--ease), right .3s var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list a.is-active::after { left: 0; right: 0; }
.site-nav__list a.is-active { color: var(--walnut); }
.site-nav__mobile-extra { display: none; }
.site-header__cta { flex: none; }

.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 46px; height: 46px; margin-left: auto; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
}
.nav-toggle__bar {
  position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--espresso);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 15px; }
.nav-toggle__bar:nth-child(2) { top: 22px; }
.nav-toggle__bar:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.28rem; }
  .site-header__cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, 112px); bottom: 0;
    margin: 0; padding: 20px var(--gutter) 32px;
    background: var(--ivory); border-top: 1px solid var(--line-soft);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .site-nav.is-open {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line-soft); }
  .site-nav__list a { display: block; padding: 16px 2px; font-family: var(--font-serif); font-size: 1.3rem; }
  .site-nav__list a::after { display: none; }
  .site-nav__mobile-extra { display: grid; gap: 14px; margin-top: 28px; text-align: center; }
  .site-nav__phone { font-weight: 600; color: var(--walnut); text-decoration: none; padding: 8px; }
}
@media (max-width: 380px) {
  .brand__sub { letter-spacing: .18em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(620px, 88vh, 920px);
  padding-block: 96px 150px;
  color: var(--ivory);
  overflow: hidden;
  background: var(--espresso);
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 60% 50%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(34, 25, 20, .90) 0%, rgba(34, 25, 20, .86) 40%, rgba(38, 28, 23, .80) 58%, rgba(48, 37, 31, .45) 72%, rgba(48, 37, 31, .12) 88%, rgba(48, 37, 31, 0) 100%),
    linear-gradient(180deg, rgba(48, 37, 31, .30) 0%, rgba(48, 37, 31, 0) 22%, rgba(48, 37, 31, 0) 70%, rgba(48, 37, 31, .45) 100%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 660px; }
.hero .eyebrow { margin-bottom: 1.4rem; color: #E6D7C0; }
.hero__title {
  font-size: clamp(2.2rem, 1.35rem + 3.3vw, 3.9rem);
  line-height: 1.12; color: var(--ivory); margin-bottom: .55em; letter-spacing: -.012em;
  text-shadow: 0 2px 24px rgba(20, 14, 10, .25);
}
.hero__line { display: block; }
.hero__line--accent { font-style: italic; color: #E6D7C0; font-size: .74em; margin-top: .3em; letter-spacing: 0; }
.hero__lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); color: #F1E9DC; max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.8rem; }
.hero__locale {
  display: inline-flex; align-items: center; gap: .55em; margin: 0;
  font-size: .92rem; letter-spacing: .03em; color: #E9DFCF;
  padding-top: 1.1rem; border-top: 1px solid rgba(216, 198, 172, .35);
}
.hero__locale .icon { color: var(--beige); }

@media (min-width: 701px) and (max-width: 1099px) {
  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(34, 25, 20, .90) 0%, rgba(34, 25, 20, .85) 68%, rgba(40, 30, 24, .70) 100%),
      linear-gradient(180deg, rgba(48, 37, 31, .30) 0%, rgba(48, 37, 31, 0) 25%);
  }
}
@media (max-width: 700px) {
  .hero { align-items: flex-end; min-height: max(640px, 92svh); padding-block: 112px 120px; }
  .hero__media img { object-position: 50% 40%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(36, 27, 22, .55) 0%, rgba(36, 27, 22, .78) 22%, rgba(34, 25, 20, .88) 45%, rgba(32, 24, 19, .95) 100%);
  }
  .hero__title { font-size: clamp(2rem, 1.2rem + 4.2vw, 2.6rem); }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Hero service index card */
.hero-index { position: relative; z-index: 2; margin-top: -76px; }
.hero-index__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ivory); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-index__list::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid var(--line-soft); pointer-events: none;
}
.hero-index__list li + li { border-left: 1px solid var(--line-soft); }
.hero-index__list a {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 30px clamp(18px, 2.4vw, 32px);
  text-decoration: none; color: var(--espresso);
  transition: background-color .3s var(--ease);
}
.hero-index__list a:hover { background: var(--cream); }
.hero-index__num { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--olive-ink); }
.hero-index__label { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.35; }
@media (max-width: 900px) {
  .hero-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-index__list li:nth-child(3) { border-left: 0; }
  .hero-index__list li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 700px) {
  .hero-index { margin-top: -64px; }
  .hero-index__list a { padding: 20px 16px; gap: 10px; }
  .hero-index__label { font-size: .95rem; }
}
@media (max-width: 360px) {
  .hero-index__list { grid-template-columns: minmax(0, 1fr); }
  .hero-index__list li + li { border-left: 0; border-top: 1px solid var(--line-soft); }
  .hero-index__list a { padding: 14px 18px; }
}

/* ---------- Services ---------- */
.services { padding-top: clamp(80px, 9vw, 120px); }
.services__grid {
  display: grid; gap: clamp(20px, 2.6vw, 34px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1023px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services__grid { grid-template-columns: minmax(0, 1fr); } }

.service-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.service-card__media {
  margin: 10px 10px 0; padding: 0; overflow: hidden; position: relative;
  aspect-ratio: 4 / 3; background: var(--cream);
}
.service-card__media::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(247, 243, 235, .65); pointer-events: none;
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.045); }
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.service-card__title { font-size: 1.28rem; margin-bottom: .55em; }
.service-card__body p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.4rem; }
.service-card__body .link-arrow { margin-top: auto; align-self: flex-start; }

.services__note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px;
  margin-top: clamp(40px, 5vw, 60px); padding: 26px 28px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.services__note p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Why choose us ---------- */
.why { background-color: var(--cream); background-image: var(--pattern-ogee); background-size: 60px 84px; }
.why::before, .why::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line);
}
.why::before { top: 0; } .why::after { bottom: 0; }
.why__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .why__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .why__intro .section-title { font-size: clamp(1.85rem, 1.1rem + 1.4vw, 2.4rem); }
  .why__intro { position: sticky; top: calc(var(--header-h) + 40px); }
}
.why__intro .section-lead { margin-bottom: 1.8rem; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: var(--ivory); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.why-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 30px 28px; border-bottom: 1px solid var(--line-soft); }
.why-item:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.why-item:nth-last-child(-n+2) { border-bottom: 0; }
.why-item__icon {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-top: 4px;
  color: var(--walnut);
}
.why-item__icon::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid var(--beige); background: var(--cream);
  transform: rotate(45deg); transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.why-item:hover .why-item__icon::before { background: var(--beige); border-color: var(--taupe); }
.why-item__icon svg { position: relative; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why-item__title { font-size: 1.12rem; margin-bottom: .45em; }
.why-item p { font-size: .98rem; color: var(--ink-soft); }
@media (max-width: 700px) {
  .why__list { grid-template-columns: minmax(0, 1fr); }
  .why-item:nth-child(odd) { border-right: 0; }
  .why-item:nth-last-child(2) { border-bottom: 1px solid var(--line-soft); }
  .why-item { padding: 24px 20px; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .why-item__icon { width: 46px; height: 46px; }
  .why-item__icon svg { width: 24px; height: 24px; }
}

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: none; }
.timeline::before {
  /* the "chair rail": a double rule running behind the markers */
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 5px;
  border-top: 1px solid var(--taupe); border-bottom: 1px solid var(--taupe);
}
.timeline__step { position: relative; text-align: center; }
.timeline__marker {
  position: relative; display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 26px;
}
.timeline__marker::before {
  content: ""; position: absolute; inset: 10px; background: var(--walnut);
  transform: rotate(45deg); box-shadow: 0 0 0 7px var(--ivory), 0 0 0 8px var(--beige);
  transition: background-color .35s var(--ease);
}
.timeline__step:hover .timeline__marker::before { background: var(--espresso); }
.timeline__marker span { position: relative; font-family: var(--font-serif); font-size: 1.25rem; color: var(--ivory); line-height: 1; }
.timeline__kicker { margin-bottom: .4rem; font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); }
.timeline__title { font-size: 1.3rem; margin-bottom: .5em; }
.timeline__body p:last-child { color: var(--ink-soft); font-size: 1rem; max-width: 30ch; margin-inline: auto; }
.process__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(44px, 5vw, 64px); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 560px; margin-inline: auto; }
  .timeline::before { left: 31px; right: auto; top: 33px; bottom: 33px; width: 5px; height: auto; border: 0; border-left: 1px solid var(--taupe); border-right: 1px solid var(--taupe); }
  .timeline__step { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 22px; text-align: left; padding-bottom: 34px; }
  .timeline__step:last-child { padding-bottom: 0; }
  .timeline__marker { margin: 0; }
  .timeline__marker::before { inset: 13px; box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--beige); }
  .timeline__body { padding-top: 10px; }
  .timeline__body p:last-child { margin-inline: 0; max-width: none; }
}
@media (max-width: 480px) { .process__cta .btn { flex: 1 1 100%; } }

/* ---------- Frieze (wallpaper border) ---------- */
.frieze {
  height: 22px; background-color: var(--walnut); background-image: var(--pattern-frieze);
  background-repeat: repeat-x; background-position: center; background-size: 36px 22px;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--espresso); color: var(--on-dark); padding-top: 0; }
.gallery > .container { padding-top: var(--section-y); }
.gallery .section-title { color: var(--ivory); }
.gallery .section-lead { color: var(--on-dark-soft); }
.gallery__grid {
  display: grid; gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery__item { aspect-ratio: 4 / 3; min-width: 0; }
.gallery__item--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 1023px) {
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--feature { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery__item--feature { grid-column: auto; aspect-ratio: 4 / 3; }
}
.gallery__btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden;
  background: #241C17; border: 1px solid rgba(216, 198, 172, .22); border-radius: 0;
  text-align: left; color: var(--ivory); cursor: zoom-in;
}
.gallery__btn::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(247, 243, 235, 0);
  transition: border-color .4s var(--ease); pointer-events: none;
}
.gallery__btn:hover::after, .gallery__btn:focus-visible::after { border-color: rgba(247, 243, 235, .6); }
.gallery__btn:focus-visible { outline: 2px solid var(--beige); outline-offset: 3px; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s var(--ease); }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 44px 18px 16px;
  background: linear-gradient(180deg, rgba(36, 27, 22, 0) 0%, rgba(36, 27, 22, .78) 62%, rgba(36, 27, 22, .9) 100%);
  font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; line-height: 1.3; color: var(--ivory);
}
.gallery__cap-kicker {
  font-family: var(--font-sans); font-style: normal; font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--beige);
}
.gallery__note { margin-top: 22px; font-size: .9rem; color: var(--on-dark-soft); text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center;
  padding: 56px 12px 24px;
  background: rgba(24, 18, 14, .94);
  animation: lbIn .25s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; height: 100%; }
.lightbox__img {
  max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #241C17;
}
.lightbox__caption {
  display: flex; gap: 18px; justify-content: space-between; align-items: baseline; width: 100%; max-width: 980px;
  margin-top: 14px; color: var(--on-dark-soft); font-size: .95rem;
}
.lightbox__text { font-family: var(--font-serif); font-style: italic; color: var(--ivory); }
.lightbox__count { flex: none; letter-spacing: .12em; font-size: .8rem; }
.lightbox__close, .lightbox__nav {
  display: grid; place-items: center; width: 50px; height: 50px; padding: 0;
  background: rgba(247, 243, 235, .08); color: var(--ivory);
  border: 1px solid rgba(247, 243, 235, .35); border-radius: var(--radius);
  transition: background-color .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(247, 243, 235, .2); }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.lightbox__nav { justify-self: center; }
.lightbox .icon { width: 22px; height: 22px; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); padding: 64px 10px 84px; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: calc(50% - 62px); }
  .lightbox__nav--next { right: calc(50% - 62px); }
  .lightbox__img { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); }
  .lightbox__caption { flex-direction: column; gap: 4px; }
}

/* ---------- About ---------- */
.about__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }
.about__media { position: relative; margin: 0 22px 22px 0; }
.about__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 1px solid var(--taupe); background: var(--cream);
}
.about__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 38% 50%; box-shadow: var(--shadow-md); }
@media (min-width: 1024px) { .about__media img { aspect-ratio: 4 / 5; } }
.about { isolation: isolate; }
.about__lead { font-family: var(--font-serif); font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); line-height: 1.65; color: var(--espresso); }
.about__content > p:not(.eyebrow):not(.about__lead) { color: var(--ink-soft); }
.principles { margin: 30px 0 34px; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principles__mark {
  width: 12px; height: 12px; margin: 9px 0 0 6px; border: 1px solid var(--walnut); transform: rotate(45deg);
  background: linear-gradient(135deg, var(--beige) 50%, transparent 50%);
}
.principles h3 { font-size: 1.12rem; margin-bottom: .25em; }
.principles p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.contact-list { display: grid; gap: 0; margin: 30px 0 26px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list__icon {
  display: grid; place-items: center; width: 44px; height: 44px; color: var(--walnut);
  border: 1px solid var(--beige); background: var(--ivory);
}
.contact-list__label { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-ink); margin-bottom: 2px; }
.contact-list a, .contact-list address { font-family: var(--font-serif); font-size: 1.08rem; color: var(--espresso); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--walnut); text-decoration: underline; }
.contact-list__email { font-size: 1rem !important; }
.contact__aside { color: var(--ink-soft); font-size: 1rem; }

.form-card {
  position: relative; background: var(--white); padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.form-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line-soft); pointer-events: none; }
.form-card__head { position: relative; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.form-card__title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); margin-bottom: .25em; }
.form-card__hint { font-size: .92rem; color: var(--ink-soft); margin: 0; }

.estimate-form { position: relative; display: block; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field label { font-size: .92rem; font-weight: 600; color: var(--espresso); margin-bottom: 7px; }
.field .req { color: var(--error); }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--white); color: var(--espresso);
  border: 1px solid var(--field-border); border-radius: var(--radius);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7D6E5F; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--walnut); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--walnut); box-shadow: 0 0 0 3px rgba(169, 154, 135, .35); background: #FFFDF9;
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.6px solid var(--walnut); border-bottom: 1.6px solid var(--walnut); transform: rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Error messages: the supplied script sets an inline color (#ff6b6b), which is
   too light on white; !important lifts it to an accessible tone without
   touching the script. */
.error-message { color: var(--error) !important; font-size: .88rem !important; font-weight: 500; margin-top: 6px; line-height: 1.4; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.form-status {
  margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--error); border-left-width: 4px;
  background: #FBF1EE; color: var(--error); font-size: .95rem; line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status a { color: var(--error); font-weight: 600; }
.estimate-form__submit .spinner {
  width: 16px; height: 16px; border: 2px solid rgba(247, 243, 235, .35); border-top-color: var(--ivory);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-privacy { margin: 14px 0 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }

.form-success { display: none; position: relative; text-align: center; padding: 28px 8px 12px; }
.form-success h3 { font-size: 1.6rem; margin-bottom: .4em; }
.form-success p { color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }
.form-success__icon { width: 64px; height: 64px; margin: 0 auto 16px; fill: none; stroke: var(--success); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.form-notice { display: none; position: relative; margin-bottom: 20px; padding: 14px 16px; border-left: 4px solid; font-size: .95rem; }
.form-notice--ok { border-color: var(--success); background: #F0F1E8; color: #3D4630; }
.form-notice--err { border-color: var(--error); background: #FBF1EE; color: var(--error); }
.form-notice:target, .form-notice.is-visible { display: block; }

/* Location / map */
.location { margin-top: clamp(64px, 8vw, 104px); scroll-margin-top: calc(var(--header-h) + 20px); }
.location__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); text-align: center; margin-bottom: 30px; }
.location__title::after {
  content: ""; display: block; width: 64px; height: 7px; margin: 18px auto 0;
  border-top: 1px solid var(--taupe); border-bottom: 1px solid var(--taupe);
}
.location__grid { display: grid; gap: 0; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--white); }
@media (min-width: 900px) { .location__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.map-frame {
  position: relative; min-height: 420px; background-color: var(--cream);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 899px) { .map-frame { min-height: 0; aspect-ratio: 4 / 3; } }
.location__card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(28px, 4vw, 44px); background: var(--walnut); color: var(--on-dark);
}
.location__kicker { margin-bottom: .6rem; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--beige); }
.location__name { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.3; color: var(--ivory); margin-bottom: .6rem; }
.location__address { font-size: 1.05rem; line-height: 1.6; color: #EDE3D4; margin-bottom: 1.2rem; }
.location__links { display: grid; gap: 6px; margin-bottom: 1.6rem; }
.location__links a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(216, 198, 172, .4); overflow-wrap: anywhere; }
.location__links a:hover { border-color: var(--ivory); color: var(--ivory); }
.location__email { font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark-soft); font-size: .97rem; }
.frieze--footer { background-color: var(--walnut); }
.site-footer__grid {
  display: grid; gap: 40px; padding-block: clamp(56px, 7vw, 88px);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.brand--footer .brand__name { color: var(--ivory); }
.brand--footer .brand__sub { color: var(--beige); }
.brand--footer:hover .brand__name { color: var(--beige); }
.site-footer__brand p { margin-top: 20px; max-width: 36ch; }
.site-footer__heading {
  font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--beige); margin-bottom: 18px;
}
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a { color: var(--on-dark); text-decoration: none; }
.site-footer__col a:hover { color: var(--beige); text-decoration: underline; }
.site-footer__contact address { color: var(--on-dark-soft); }
.site-footer__email { overflow-wrap: anywhere; }
.site-footer__bottom { border-top: 1px solid rgba(216, 198, 172, .18); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__top { display: inline-flex; align-items: center; gap: .45em; color: var(--on-dark-soft); text-decoration: none; }
.site-footer__top:hover { color: var(--ivory); }

/* ---------- Reveal on scroll (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .hero-index, .lightbox, .map-frame, .nav-toggle, .estimate-form { display: none !important; }
  .hero { min-height: 0; color: #000; }
  .hero__scrim, .hero__media { display: none; }
  .hero__title, .hero__lead { color: #000; text-shadow: none; }
  .gallery, .site-footer { background: #fff; color: #000; }
}
