/* ==========================================================================
   Tillison Cabinet Company — tillisoncabinets.com
   Design system + component styles. No build step, no dependencies.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — warm, paper-like */
  --bone:        #f0e6d5;
  --bone-2:      #e3d5bd;
  --bone-3:      #d6c6ab;
  --white:       #fdf8ef;

  /* Ink */
  --ink:         #1e1b17;
  --ink-2:       #3d372f;
  --muted:       #5f5648;
  --line:        #d8c9b0;
  --line-strong: #bda98a;

  /* Walnut + brass, pulled from the shop's own logo and rift-oak work */
  --walnut:      #2b221b;
  --walnut-2:    #3d3025;
  --brass:       #a8763f;
  --brass-deep:  #7d5228;
  --brass-soft:  #d9b380;

  /* Geometry */
  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 2px 8px -3px rgba(30, 27, 23, .18);
  --shadow:    0 20px 44px -28px rgba(30, 27, 23, .5);
  --shadow-lg: 0 40px 80px -40px rgba(30, 27, 23, .55);

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --header-h: 76px;

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

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); font-weight: 700; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0; }

p  { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

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

ul, ol { margin: 0 0 1.1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--brass-soft); color: var(--walnut); }

:focus-visible {
  outline: 2.5px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  background: var(--walnut); color: #fff; padding: .7rem 1.4rem;
  border-radius: 0 0 var(--r) var(--r); z-index: 200; font-weight: 600; font-size: .9rem;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container { width: min(1220px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - (var(--gutter) * 2)); }
.container--wide   { width: min(1500px, 100% - (var(--gutter) * 2)); }

section { padding-block: var(--section-y); position: relative; }
section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.surface-2 { background: var(--bone-2); }
.surface-dark { background: var(--walnut); color: rgba(255,255,255,.78); }
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4 { color: #fff; }
.surface-dark .eyebrow { color: var(--brass-soft); }
.surface-dark .muted { color: rgba(255,255,255,.62); }

.stack > * + * { margin-top: 1.1rem; }
.center { text-align: center; }
.muted  { color: var(--muted); }
.lead   { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--muted); }

.eyebrow {
  display: block;
  font-size: .715rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 1rem;
}
.eyebrow--rule { display: flex; align-items: center; gap: .9rem; }
.eyebrow--rule::after { content: ''; height: 1px; flex: 1; background: var(--line-strong); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.9rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brass); --btn-fg: #fff; --btn-bd: var(--brass);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.7rem;
  font-family: inherit; font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(133, 89, 44, .7); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1em; height: 1em; flex: none; }

.btn-primary:hover { --btn-bg: var(--brass-deep); --btn-bd: var(--brass-deep); }
.btn-dark   { --btn-bg: var(--walnut); --btn-bd: var(--walnut); }
.btn-dark:hover { --btn-bg: #180f0a; --btn-bd: #180f0a; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); box-shadow: none; }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn-ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--walnut); --btn-bd: #fff; box-shadow: none; }
.btn-lg { padding: 1.08rem 2.1rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .93rem; color: var(--brass-deep);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: gap .2s var(--ease), border-color .2s var(--ease);
}
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.site-header.is-solid {
  background: rgba(240, 230, 213, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px -12px rgba(30,27,23,.4);
}
body.nav-open .site-header {
  background: var(--bone);
  border-bottom-color: var(--line);
  box-shadow: none;
  /* Must stay unfiltered: a backdrop-filter here would become the containing
     block for the position:fixed drawer and clip it to the header. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: var(--header-h);
}

/* Brand lockup — the logo occupies the whole slot.
   The slot is pinned to a fixed width so resizing the logo never shifts the nav:
   the header is space-between, so a wider brand would otherwise eat the free space
   and drag the links left. The logo overflows this box to the right instead, into
   the ~112px gap that sits between the brand and "Home" at every desktop width. */
.brand { display: flex; align-items: center; flex: none; width: 152px; }
.brand-logo {
  display: block; height: 48px; width: auto;
  /* Beats the global img{max-width:100%}, which would clamp it to the slot. */
  max-width: none;
  /* The artwork is a light carved sign; a whisper of shadow lifts it off the cream header. */
  filter: drop-shadow(0 1px 2px rgba(30, 27, 23, .18));
}

/* Over-hero (transparent) state */
body:not(.nav-open) .site-header:not(.is-solid) .over-hero .nav-links > a:not(.btn) { color: #fff; }
body:not(.nav-open) .site-header:not(.is-solid) .over-hero .nav-phone { color: #fff; border-color: rgba(255,255,255,.45); }
body:not(.nav-open) .site-header:not(.is-solid) .over-hero .nav-toggle span { background: #fff; }

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav-links > a:not(.btn) {
  position: relative; font-size: .93rem; font-weight: 500; color: var(--ink-2);
  padding-block: .35rem; white-space: nowrap; transition: color .2s var(--ease);
}
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--brass-deep); }
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links > a:not(.btn)[aria-current="page"] { color: var(--brass-deep); font-weight: 600; }
.nav-links > a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .85rem; flex: none; }
.nav-quote { display: none; }
.nav-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  padding: .55rem 1.05rem; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill); transition: all .2s var(--ease);
}
.nav-phone:hover { border-color: var(--brass); color: var(--brass-deep); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .28s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; margin-top: calc(var(--header-h) * -1);
  min-height: min(92vh, 860px); display: flex; align-items: flex-end;
  padding: 0; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--walnut); }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,13,9,.72) 0%, rgba(18,13,9,.34) 48%, rgba(18,13,9,0) 78%),
    linear-gradient(to top, rgba(18,13,9,.88) 0%, rgba(18,13,9,.5) 40%, rgba(18,13,9,.18) 72%, rgba(18,13,9,.5) 100%);
}
.hero-inner {
  padding-block: clamp(3.5rem, 9vw, 6rem);
  padding-top: calc(var(--header-h) + clamp(3rem, 9vw, 6rem));
  color: #fff; max-width: 46rem;
}
.hero-inner .eyebrow { color: var(--brass-soft); }
.hero-inner h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-inner p { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.6vw, 1.24rem); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Page hero (interior pages) */
.page-hero {
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--walnut); color: rgba(255,255,255,.75);
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .3;
  background: radial-gradient(1000px 480px at 78% -10%, rgba(168,118,63,.85), transparent 65%);
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--brass-soft); }
.page-hero p { color: rgba(255,255,255,.72); max-width: 40rem; }

/* --------------------------------------------------------------------------
   7. Trust bar
   -------------------------------------------------------------------------- */
.trustbar { background: var(--walnut-2); color: rgba(255,255,255,.8); padding-block: 1.5rem; }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: .9rem 2rem;
}
.trust-item {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: .45rem; font-size: .84rem; text-align: center; line-height: 1.4;
}
.trust-item + .trust-item::before {
  content: ''; position: absolute; left: -1rem; top: 50%; transform: translateY(-50%);
  width: 1px; height: 26px; background: rgba(255,255,255,.16);
}
.trust-item strong { color: #fff; font-weight: 600; }
.trust-item .stars { color: var(--brass-soft); letter-spacing: .12em; font-size: .95rem; }

/* --------------------------------------------------------------------------
   8. Split / feature sections
   -------------------------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--wide-media { grid-template-columns: .9fr 1.1fr; }
.split-body { max-width: 34rem; }

.media-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-frame--tall img { aspect-ratio: 3 / 4; }


/* Pull-quote / tagline band */
.quote-band { text-align: center; }
.quote-band blockquote {
  margin: 0 auto; max-width: 50rem;
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.15rem); line-height: 1.35;
  color: var(--ink); letter-spacing: -.015em; text-wrap: balance;
}
.surface-dark .quote-band blockquote,
.surface-dark.quote-band blockquote { color: #fff; }
.quote-band cite {
  display: block; margin-top: 1.6rem; font-style: normal;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-deep);
}
.surface-dark .quote-band cite,
.surface-dark.quote-band cite { color: var(--brass-soft); }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .945rem; color: var(--muted); margin-bottom: 0; }
.card ul { font-size: .92rem; color: var(--muted); margin-top: .85rem; margin-bottom: 0; padding-left: 1.05rem; }
.card-ic {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 1.15rem;
  display: grid; place-items: center;
  background: var(--bone-3); color: var(--brass-deep);
}
.card-ic svg { width: 23px; height: 23px; }

/* Service card with photo */
.svc-card {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--walnut); isolation: isolate; min-height: 340px;
  display: flex; align-items: flex-end; padding: 1.6rem;
  color: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.svc-card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.svc-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(16,11,7,.88) 8%, rgba(16,11,7,.35) 52%, rgba(16,11,7,.08) 100%);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card:hover img { transform: scale(1.06); }
.svc-card h3 { color: #fff; margin-bottom: .3rem; }
.svc-card p { font-size: .9rem; color: rgba(255,255,255,.78); margin: 0; }

/* --------------------------------------------------------------------------
   10. Process steps
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 5.5rem 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.3rem);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 500; color: var(--brass); line-height: 1; letter-spacing: -.02em;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; max-width: 44rem; }

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.stat { background: var(--bone); padding: clamp(1.5rem, 3vw, 2.4rem) 1.25rem; text-align: center; }
.surface-dark .stats { background: rgba(255,255,255,.14); }
.surface-dark .stat { background: var(--walnut); }
.stat-n {
  display: block; font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; color: var(--ink);
  line-height: 1; letter-spacing: -.03em; margin-bottom: .55rem;
}
.surface-dark .stat-n { color: #fff; }
.stat-l { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Gallery
   -------------------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.filter {
  padding: .58rem 1.15rem; font: inherit; font-size: .875rem; font-weight: 500;
  color: var(--ink-2); background: transparent;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  cursor: pointer; transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--brass); color: var(--brass-deep); }
.filter[aria-pressed="true"] {
  background: var(--walnut); border-color: var(--walnut); color: #fff;
}

.masonry { columns: 3; column-gap: clamp(.9rem, 1.8vw, 1.4rem); }
.masonry .tile { break-inside: avoid; margin-bottom: clamp(.9rem, 1.8vw, 1.4rem); }

.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--bone-3); border-radius: var(--r); overflow: hidden;
  cursor: zoom-in; isolation: isolate; font: inherit; text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile img { width: 100%; transition: transform .7s var(--ease); }
.tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,11,7,.78), rgba(16,11,7,.06) 55%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile:hover img { transform: scale(1.045); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.4rem 1.25rem 1.1rem; color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: translateY(0); }
.tile-cap strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.08rem; font-weight: 600; }
.tile-cap span { font-size: .765rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-soft); }
.tile.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; place-items: center;
  background: rgba(12, 9, 6, .95);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox-fig { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 1rem; }
.lightbox-fig img {
  max-width: 100%; max-height: calc(100vh - 12rem); width: auto; margin-inline: auto;
  border-radius: var(--r); object-fit: contain;
}
.lightbox-fig figcaption { text-align: center; color: rgba(255,255,255,.82); font-size: .92rem; }
.lightbox-fig figcaption strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.15rem; color: #fff; margin-bottom: .2rem; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: clamp(.75rem, 3vw, 2rem); }
.lb-next { right: clamp(.75rem, 3vw, 2rem); }
.lb-close { top: clamp(.75rem, 3vw, 1.75rem); right: clamp(.75rem, 3vw, 1.75rem); transform: none; }
.lb-count {
  position: absolute; bottom: clamp(.75rem, 3vw, 1.75rem); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: .12em;
}

/* --------------------------------------------------------------------------
   13. Reviews
   -------------------------------------------------------------------------- */
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1rem;
}
.review .stars { color: var(--brass); letter-spacing: .14em; font-size: 1rem; }
.review blockquote { margin: 0; font-size: 1rem; color: var(--ink-2); line-height: 1.6; }
.review footer { margin-top: auto; font-size: .85rem; color: var(--muted); }
.review footer strong { display: block; color: var(--ink); font-weight: 600; }

.awards { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink-2);
  background: var(--white);
}
.surface-dark .badge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }

/* --------------------------------------------------------------------------
   14. Service area chips
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .45rem .95rem; font-size: .85rem; color: var(--ink-2);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.surface-dark .chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.8); }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--walnut); color: rgba(255,255,255,.8); text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .28;
  background: radial-gradient(900px 420px at 50% 0%, rgba(168,118,63,.9), transparent 60%);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 38rem; margin-inline: auto; color: rgba(255,255,255,.72); font-size: 1.06rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.field label .req { color: var(--brass-deep); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  padding: .8rem .95rem; background: var(--white);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23736a5d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 11px; padding-right: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(168,118,63,.16);
}
.field .err { font-size: .8rem; color: #a3352b; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c4564a; }
.field.is-invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-status {
  display: none; padding: .95rem 1.15rem; border-radius: var(--r-sm); font-size: .92rem;
  background: #eef4ec; border: 1px solid #cbdfc6; color: #2f5c35;
}
.form-status.is-visible { display: block; }

/* Contact detail list */
.contact-list { display: grid; gap: 1.4rem; }
.contact-item { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.contact-item .ic {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bone-3); color: var(--brass-deep);
}
.contact-item .ic svg { width: 19px; height: 19px; }
.contact-item h4 { margin: 0 0 .15rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-item p, .contact-item a { margin: 0; font-size: 1rem; color: var(--ink); }
.contact-item a:hover { color: var(--brass-deep); }
.contact-item .sub { font-size: .88rem; color: var(--muted); }

.map-embed { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bone-2); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }


/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--walnut); color: rgba(255,255,255,.62); padding-block: clamp(3rem, 6vw, 4.5rem) 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(1.75rem, 4vw, 3rem); }
.site-footer .brand-logo { height: auto; width: min(260px, 100%); }
.footer-col h4 { color: #fff; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--brass-soft); }
.footer-about p { max-width: 26rem; margin-top: 1.2rem; color: rgba(255,255,255,.6); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.45);
}
.footer-bottom a:hover { color: var(--brass-soft); }

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* --------------------------------------------------------------------------
   21. Online designer
   -------------------------------------------------------------------------- */
.designer-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--walnut); color: rgba(255,255,255,.78);
}
.designer-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .32;
  background:
    radial-gradient(760px 420px at 88% 12%, rgba(168,118,63,.95), transparent 62%),
    radial-gradient(620px 380px at 6% 92%, rgba(168,118,63,.5), transparent 60%);
}
.designer-band h2 { color: #fff; }
.designer-band .eyebrow { color: var(--brass-soft); }

.designer-split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}

/* Numbered steps, used on the band and on the designer page */
.dsteps { counter-reset: dstep; display: grid; gap: .85rem; }
.dstep {
  counter-increment: dstep;
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.1rem; align-items: start;
  padding: 1.25rem 1.4rem;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.dstep:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); transform: translateX(3px); }
.dstep::before {
  content: counter(dstep, decimal-leading-zero);
  font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 500;
  color: var(--brass-soft); line-height: 1.1; letter-spacing: -.02em;
}
.dstep h3 { color: #fff; font-size: 1.08rem; margin-bottom: .2rem; }
.dstep p { color: rgba(255,255,255,.66); font-size: .93rem; margin: 0; }

/* Un-numbered variant, for FAQ-style lists */
.dsteps--plain .dstep { grid-template-columns: 1fr; }
.dsteps--plain .dstep::before { content: none; }

/* Light variant for use on bone/cream sections */
.dsteps--light .dstep { background: var(--white); border-color: var(--line); }
.dsteps--light .dstep:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.dsteps--light .dstep::before { color: var(--brass); }
.dsteps--light .dstep h3 { color: var(--ink); }
.dsteps--light .dstep p { color: var(--muted); }

/* The small reassurance line that sits under a designer CTA */
.designer-note {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-top: 1.15rem; font-size: .86rem; color: rgba(255,255,255,.6);
}
.designer-note svg { width: 15px; height: 15px; flex: none; color: var(--brass-soft); }
.designer-note--dark { color: var(--muted); }
.designer-note--dark svg { color: var(--brass-deep); }

/* Inline promo card — used beside the contact form and on interior pages */
.designer-card {
  display: grid; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r);
  background: var(--walnut); color: rgba(255,255,255,.75);
  position: relative; isolation: isolate; overflow: hidden;
}
.designer-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .34;
  background: radial-gradient(520px 300px at 100% 0%, rgba(168,118,63,.95), transparent 62%);
}
.designer-card h3 { color: #fff; margin-bottom: 0; }
.designer-card p { font-size: .95rem; margin: 0; }
.designer-card .btn { justify-self: start; }

@media (max-width: 900px) {
  .designer-split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .dstep { grid-template-columns: 2.4rem 1fr; gap: .85rem; padding: 1.1rem 1.15rem; }
}

/* --------------------------------------------------------------------------
   22. Staging-only chrome
   Hidden by default, so production is the safe state. `tools/set-env.sh`
   adds `class="env-staging"` to <body> to reveal it on the preview host.
   -------------------------------------------------------------------------- */
.staging-only { display: none; }
body.env-staging .staging-only { display: block; }

.notice {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .95rem 1.1rem; margin-bottom: 1.35rem;
  background: #fdf4e3; border: 1px solid #e8cf9d; border-left: 3px solid var(--brass);
  border-radius: var(--r-sm);
  font-size: .89rem; line-height: 1.55; color: #5c4726;
}
.notice svg { width: 17px; height: 17px; flex: none; margin-top: .15rem; color: var(--brass-deep); }
.notice strong { color: #4a3719; }

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
/* Between the drawer breakpoint and ~1280 the seven nav items plus the CTA fill the
   bar; the phone pill steps aside (it's still in the footer and on every CTA band). */
@media (max-width: 1280px) {
  .nav-phone { display: none; }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1060px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }
  .nav-phone { display: none; }
  .brand { width: auto; }
  .brand-logo { height: 38px; }

  .nav-links {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--bone); border-top: 1px solid var(--line);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .38s var(--ease), opacity .28s var(--ease);
    overflow-y: auto;
  }
  body.nav-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) {
    font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--ink) !important;
    padding: .95rem 0; border-bottom: 1px solid var(--line);
  }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links > a.btn { font-family: 'Inter', sans-serif; font-size: 1rem; padding: 1.05rem 2rem; }
  .nav-links .btn { margin-top: 1.6rem; width: 100%; }
  .nav-links .btn + .btn { margin-top: .7rem; }
  .nav-quote { display: inline-flex; }
  .nav-links .btn { margin-top: 1.6rem; width: 100%; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { columns: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-media { grid-template-columns: 1fr; }
  .split.reverse > .split-body { order: 2; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3)::before { display: none; }
}

@media (max-width: 620px) {
  h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .trustbar-inner { grid-template-columns: 1fr; }
  .trust-item::before { display: none !important; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .5rem; }
  .hero { min-height: 84vh; }
  .hero-cta .btn { flex: 1 1 100%; }
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
  .lb-btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .lightbox, .hero-cta { display: none !important; }
  body { background: #fff; color: #000; }
}
