/* ==========================================================================
   MD Sheds & Gazebos — Design System
   Port Reading (Woodbridge Township), NJ — Amish-built sheds, gazebos,
   garages, animal shelters & poly furniture.
   Vanilla CSS, no build step, no framework.
   ========================================================================== */

@import 'https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700;800&display=swap';

:root {
  /* ---- Color tokens — monochrome, warm-neutral cast (no accent hue) ---- */
  --ink:            #15140F;
  --charcoal:       #201E18;
  --charcoal-soft:  #2A2822;
  --graphite:       #57534A;
  --stone:          #8C8777;
  --ash:            #B7B1A0;
  --fog:            #DDD8C9;
  --mist:           #EEEBE1;
  --paper:          #F8F6EF;
  --white:          #FFF;

  --color-bg:        var(--paper);
  --color-bg-alt:    var(--mist);
  --color-surface:   var(--white);
  --color-fg:        var(--ink);
  --color-fg-muted:  var(--graphite);
  --color-border:    var(--fog);

  --color-dark-bg:      var(--charcoal);
  --color-dark-bg-alt:  var(--charcoal-soft);
  --color-dark-fg:      var(--paper);
  --color-dark-fg-muted:var(--ash);
  --color-dark-border:  rgba(248,246,239,0.14);

  /* ---- Type ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Inter', -apple-system, blinkmacsystemfont, sans-serif;

  --step--1: clamp(0.82rem, 0.78rem + 0.18vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.55rem + 1.6vw, 2.7rem);
  --step-4:  clamp(2.4rem, 1.85rem + 2.6vw, 3.75rem);
  --step-5:  clamp(3rem, 2.1rem + 4vw, 5.4rem);
  --step-6:  clamp(3.6rem, 2.3rem + 5.8vw, 7.4rem);

  /* ---- Spacing (8px rhythm) ---- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(21,20,15,0.07);
  --shadow-md: 0 16px 40px -12px rgba(21,20,15,0.22);
  --shadow-lg: 0 30px 70px -16px rgba(21,20,15,0.34);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 650ms;

  --container: 1280px;
  --nav-h: 88px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.color-dark :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.8em 1.4em;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-2); }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 500; }
h2 { font-size: var(--step-4); font-weight: 500; }
h3 { font-size: var(--step-3); font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 700; }
p { color: var(--color-fg-muted); max-width: 62ch; }
p.lede { font-size: var(--step-1); color: var(--color-fg); }
strong { color: var(--color-fg); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentcolor;
  opacity: 0.6;
}
.color-dark .eyebrow { color: var(--dark-ash, var(--ash)); }

.numeral {
  font-family: var(--font-display);
  font-variant-numeric: oldstyle-nums;
  font-weight: 400;
  color: var(--graphite);
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-3); }
}

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-6); }

@media (max-width: 780px) {
  .section { padding-block: var(--space-6); }
  .section--tight { padding-block: var(--space-5); }
}

.tone-paper  { background: var(--paper); color: var(--ink); }
.tone-mist   { background: var(--mist); color: var(--ink); }
.tone-white  { background: var(--white); color: var(--ink); }
.tone-dark   { background: var(--charcoal); color: var(--paper); }
.tone-dark p { color: var(--dark-fg-muted, var(--ash)); }
.tone-dark h1, .tone-dark h2, .tone-dark h3, .tone-dark h4 { color: var(--paper); }
.tone-dark .color-border { border-color: var(--color-dark-border); }

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-5);
}
.section-head .eyebrow { margin-bottom: var(--space-2); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }

.section-foot {
  margin-top: var(--space-5);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) { .section-foot { justify-content: flex-start; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--graphite); }

.btn-invert { background: var(--white); color: var(--ink); }
.btn-invert:hover { background: var(--paper); }

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

.btn-outline-light { border-color: rgba(248,246,239,0.5); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

.btn-icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ==========================================================================
   Photography — signature treatment: grayscale at rest, blooms to full
   color on hover / focus / reveal. Ties the "black, white & grey" palette
   directly to the real project photography.
   ========================================================================== */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  border-radius: var(--radius-md);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(85%) contrast(1.02);
  transform: scale(1.001);
  transition: filter var(--dur-slow) var(--ease-out),
              transform 900ms var(--ease-out);
}
.photo--bloom img { filter: grayscale(0%) contrast(1.02); }

a:hover .photo img,
a:focus-visible .photo img,
.photo:hover img {
  filter: grayscale(0%) contrast(1.02);
  transform: scale(1.045);
}

.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(21,20,15,0.06);
  border-radius: inherit;
  pointer-events: none;
}

.photo-caption {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(21,20,15,0.66);
  padding: 0.5em 0.9em;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(248,246,239,0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: height var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  height: 68px;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand img { width: 44px; height: 44px; object-fit: contain; filter: none; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.brand-word small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin-top: 0.15em;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.6rem);
}

.nav-links a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  padding-block: 0.4em;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transition: right var(--dur-base) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: var(--space-2); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.nav-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 99;
  padding: var(--space-5) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  display: block;
  padding-block: 0.3em;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu .btn { align-self: flex-start; margin-top: var(--space-2); }

@media (max-width: 1310px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (min-width: 1311px) and (max-width: 1440px) {
  .nav-links { gap: 0.85rem; }
  .nav-links a { font-size: 0.76rem; }
}

@media (max-width: 640px) {
  .nav-cta .btn { display: none; }
}

@media (max-width: 560px) {
  .nav-phone span.nav-phone-text { display: none; }
}

@media (max-width: 400px) {
  .nav-cta { display: none; }
  .brand-word { font-size: 1.05rem; }
}

/* ==========================================================================
   Marquee ticker
   ========================================================================== */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid rgba(248,246,239,0.12);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85em 1.4em;
  white-space: nowrap;
}
.marquee-track span::after { content: '\2726'; opacity: 0.5; font-size: 0.7em; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Hero — full-bleed home hero
   ========================================================================== */
.hero-home {
  position: relative;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.05) brightness(0.86) saturate(1.08);
  transition: filter 1400ms var(--ease-out);
}
.hero-home.is-bloomed .hero-media img { filter: grayscale(15%) contrast(1.05) brightness(0.82) saturate(1.08); }

.hero-home .hero-glisten {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: hero-glisten-sweep 7s ease-in-out infinite;
}

@keyframes hero-glisten-sweep {
  0% { background-position: 200% 200%; }
  100% { background-position: -100% -100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-glisten { animation: none; }
}

.hero-home .hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,20,15,0.35) 0%, rgba(21,20,15,0.2) 32%, rgba(21,20,15,0.86) 100%);
}

.hero-home .container {
  position: relative;
  z-index: 1;
  padding-block: var(--space-7) var(--space-6);
  width: 100%;
}
.hero-home .eyebrow { color: var(--ash); }

.hero-home h1 {
  font-size: var(--step-6);
  font-weight: 500;
  max-width: 18ch;
  margin-block: var(--space-3) var(--space-4);
}
.hero-home p.lede { color: var(--paper); max-width: 46ch; margin-bottom: var(--space-4); }

.hero-scroll-cue {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--ash);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  z-index: 1;
}

.hero-scroll-cue::after {
  content: '';
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, currentcolor, transparent);
}

@media (max-width: 780px) { .hero-scroll-cue { display: none; } }

/* ---- Page hero (interior pages) ---- */
.hero-page {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-page .hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-page .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(70%) contrast(1.05) brightness(0.78);
}

.hero-page .hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,20,15,0.5) 0%, rgba(21,20,15,0.28) 40%, rgba(21,20,15,0.9) 100%);
}
.hero-page .container { position: relative; z-index: 1; padding-block: var(--space-6) var(--space-5); width: 100%; }
.hero-page .eyebrow { color: var(--ash); margin-bottom: var(--space-2); }
.hero-page h1 { font-size: var(--step-5); font-weight: 500; max-width: 22ch; }
.hero-page p.lede { color: var(--paper); max-width: 52ch; margin-top: var(--space-3); }

.hero-page .crumb {
  display: flex; gap: 0.5em; align-items: center;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ash); margin-bottom: var(--space-3);
}
.hero-page .crumb a { color: var(--paper); }
.hero-page .crumb a:hover { text-decoration: underline; }

/* ---- Roofline divider — signature geometric motif referencing a
   shed/gazebo roof pitch. Sits between hero and next section. ---- */
.roofline {
  height: 26px;
  width: 100%;
  background-image: linear-gradient(135deg, var(--color-bg) 25%, transparent 25%),
                     linear-gradient(225deg, var(--color-bg) 25%, transparent 25%);
  background-size: 40px 26px;
  background-position: 0 0;
  background-color: transparent;
}

.tone-dark + * .roofline,
.roofline--onto-dark { background-image: linear-gradient(135deg, var(--charcoal) 25%, transparent 25%), linear-gradient(225deg, var(--charcoal) 25%, transparent 25%); }
.roofline--onto-mist { background-image: linear-gradient(135deg, var(--mist) 25%, transparent 25%), linear-gradient(225deg, var(--mist) 25%, transparent 25%); }

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.stat h3 {
  font-size: var(--step-3);
  font-weight: 500;
  margin-bottom: 0.3em;
}
.stat p { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--color-fg-muted); }

@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); } }

/* ==========================================================================
   Category grid (home) — numbered feature tiles
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--charcoal);
}
.category-card .photo { position: absolute; inset: 0; border-radius: 0; }
.category-card .photo img { filter: grayscale(88%) contrast(1.05) brightness(0.78); }

.category-card:hover .photo img,
.category-card:focus-visible .photo img { filter: grayscale(0%) contrast(1.05) brightness(0.9); transform: scale(1.06); }

.category-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,20,15,0.05) 0%, rgba(21,20,15,0.78) 100%);
  z-index: 1;
}

.category-card .card-body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--space-3);
  color: var(--white);
}

.category-card .card-num {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: rgba(248,246,239,0.55);
}
.category-card h3 { color: var(--white); font-size: var(--step-2); margin-bottom: 0.25em; }
.category-card p { color: var(--ash); font-size: var(--step--1); max-width: 26ch; }

.category-card .card-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 0.9em; color: var(--white);
}
.category-card .card-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.category-card:hover .card-link svg { transform: translateX(4px); }
.category-card.card-wide { grid-column: span 2; aspect-ratio: auto; }

@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card.card-wide { grid-column: span 2; aspect-ratio: 16/9; }
}

@media (max-width: 620px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-card, .category-card.card-wide { aspect-ratio: 4/3.4; grid-column: auto; }
}

/* ==========================================================================
   Compare block ("built different")
   ========================================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-col { padding: var(--space-4); }
.compare-col + .compare-col { border-left: 1px solid var(--color-dark-border); }
.compare-col h4 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-3); }
.compare-col.is-us { background: rgba(248,246,239,0.04); }
.compare-col.is-us h4 { color: var(--paper); }
.compare-col.is-them h4 { color: var(--dark-fg-muted, var(--ash)); }
.compare-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding-block: 0.7em; border-top: 1px solid var(--color-dark-border); }
.compare-row:first-of-type { border-top: none; }
.compare-row .label { font-size: var(--step--1); color: var(--ash); }
.compare-row .value { font-family: var(--font-display); font-size: var(--step-1); }
.compare-col.is-us .value { color: var(--white); }
.compare-col.is-them .value { color: var(--stone); }

@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: none; border-top: 1px solid var(--color-dark-border); }
}

/* ==========================================================================
   Process steps (kit delivery / build-it-yourself / Amish-built)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.process-step { position: relative; padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.process-step .numeral { display: block; font-size: var(--step-3); margin-bottom: var(--space-2); }
.process-step h3 { font-size: var(--step-1); margin-bottom: 0.5em; }

@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; gap: var(--space-3); } }

/* ==========================================================================
   Product grid (category pages)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
}
.product-card { display: flex; flex-direction: column; gap: var(--space-2); }
.product-card .photo { aspect-ratio: 4/3; }
.product-card h3 { font-size: var(--step-2); }

.product-card .product-meta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
}

.product-card .product-tag {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone);
}
.product-grid--three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .product-grid, .product-grid--three { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Feature list (checkmark style — furniture features, spec bullets)
   ========================================================================== */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9em 2em; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.7em; font-size: var(--step-0); color: var(--color-fg); }
.feature-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.2em; color: var(--stone); }

@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Gallery scroll strip
   ========================================================================== */
.gallery-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.gallery-scroll .photo {
  flex: 0 0 auto;
  width: min(72vw, 420px);
  aspect-ratio: 4/3;
  scroll-snap-align: start;
}
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--fog); border-radius: var(--radius-pill); }

/* ==========================================================================
   Testimonial / quote block
   ========================================================================== */
.quote-block { max-width: 52rem; }

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--color-fg);
}
.quote-block cite { display: block; margin-top: var(--space-3); font-style: normal; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-fg-muted); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  background: var(--charcoal);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); max-width: 16ch; }
.cta-banner .btn-row { flex-shrink: 0; }

@media (max-width: 780px) {
  .cta-banner { padding: var(--space-5) var(--space-3); text-align: left; }
}

/* ==========================================================================
   Info cards (location / contact)
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.info-card {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.info-card svg { width: 26px; height: 26px; margin-bottom: var(--space-2); color: var(--stone); }
.info-card h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.info-card a.info-link { display: inline-block; margin-top: 0.6em; font-weight: 700; border-bottom: 1px solid currentcolor; }

@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/8;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(45%) contrast(1.05); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 0.5em; }
.field.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-fg-muted); }
.field label .req { color: var(--graphite); }

.field input, .field textarea, .field select {
  padding: 0.9em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--step-0);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(21,20,15,0.08);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .error-msg { display: none; align-items: center; gap: 0.4em; font-size: var(--step--1); color: #8A2E1F; }
.field.has-error input, .field.has-error textarea { border-color: #8A2E1F; }
.field.has-error .error-msg { display: flex; }
.form-foot { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }
.form-note { font-size: var(--step--1); color: var(--color-fg-muted); }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-6) var(--space-3);
}
.form-success.is-visible { display: block; }
.form-success svg { width: 48px; height: 48px; margin-bottom: var(--space-2); }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--ash);
  padding-block: var(--space-7) var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-dark-border);
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: var(--space-2); }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand .brand-word { color: var(--white); }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--paper); margin-top: var(--space-2); max-width: 26ch; }
.footer-col h4 { color: var(--paper); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-2); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6em; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; line-height: 1.7; }

.footer-bottom {
  padding-top: var(--space-4);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  font-size: var(--step--1);
}
.footer-bottom .service-area { display: flex; gap: 0.6em; }
.footer-bottom .service-area span { padding: 0.3em 0.8em; border: 1px solid var(--color-dark-border); border-radius: var(--radius-pill); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.to-top {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Two-column layout helper
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; direction: ltr; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.6em; margin-top: var(--space-3); }

.tag-row span {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.5em 1em; border-radius: var(--radius-pill); border: 1px solid var(--color-border); color: var(--color-fg-muted);
}
