/* ==========================================================================
   Wholeheart Home LLC — styles.css
   Palette picked from logo.png: cream #F7EFE4, terracotta #C17049,
   cocoa #6B3A28, taupe #A98C77. Derived shades pass WCAG AA where used as text.
   ========================================================================== */

:root {
  /* Color — from the logo */
  --cream: #F7EFE4;
  --linen: #FDF9F3;
  --sand: #EFE3D3;
  --terracotta: #C17049;        /* logo brand — marks, large accents (3.2:1) */
  --terracotta-deep: #A85B37;   /* buttons — white text 4.98:1 */
  --terracotta-text: #9E5432;   /* small accent text on cream 4.9:1 */
  --cocoa: #6B3A28;             /* headings, wordmark 8.2:1 */
  --espresso: #3F2A22;          /* body 11.8:1 */
  --muted: #6F5546;             /* secondary text 6.0:1 on cream, 5.4:1 on sand */
  --taupe: #A98C77;             /* decorative only */
  --line: rgba(107, 58, 40, 0.14);
  --line-strong: rgba(107, 58, 40, 0.28);
  --shadow-sm: 0 1px 2px rgba(63, 42, 34, 0.06), 0 2px 8px rgba(63, 42, 34, 0.06);
  --shadow-md: 0 4px 14px rgba(63, 42, 34, 0.10), 0 12px 32px rgba(63, 42, 34, 0.10);
  --shadow-lg: 0 20px 60px rgba(63, 42, 34, 0.18);

  /* Type */
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.3rem, 1.15rem + 0.6vw, 1.5rem);
  --text-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  --text-h2: clamp(1.9rem, 1.35rem + 2vw, 2.85rem);
  --text-h1: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 8vw, 7.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-wipe: cubic-bezier(0.65, 0, 0.2, 1);
  --dur: 0.32s;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--cocoa); letter-spacing: -0.005em; }
h1 { font-size: var(--text-h1); line-height: 1.04; }
h2 { font-size: var(--text-h2); line-height: 1.1; }
h3 { font-size: var(--text-h3); line-height: 1.22; }
strong { font-weight: 700; }
::selection { background: rgba(193, 112, 73, 0.28); color: var(--cocoa); }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  padding: 0.75rem 1rem; background: var(--cocoa); color: var(--cream);
  border-radius: var(--radius-sm); font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 800px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Type utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--terracotta); border-radius: 2px; }
.eyebrow--plain::before { display: none; }

.lede { font-size: var(--text-xl); line-height: 1.5; color: var(--espresso); }
.muted { color: var(--muted); }
.accent { color: var(--terracotta); }
.measure { max-width: 62ch; }

.section-head { display: grid; gap: 1rem; max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lede { color: var(--muted); font-size: var(--text-lg); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--text-base); line-height: 1.2;
  white-space: nowrap; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--terracotta-deep); color: #fff; box-shadow: 0 6px 18px -8px rgba(168, 91, 55, 0.7); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cocoa);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.42s var(--ease-wipe);
}
.btn--primary:hover::before, .btn--primary:focus-visible::before { transform: scaleX(1); }
.btn--primary:hover { box-shadow: 0 10px 24px -8px rgba(107, 58, 40, 0.6); }

.btn--secondary { background: transparent; color: var(--cocoa); border: 1.5px solid var(--line-strong); }
.btn--secondary:hover { border-color: var(--cocoa); background: rgba(107, 58, 40, 0.05); }

.btn--light { background: var(--cream); color: var(--cocoa); }
.btn--light::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleX(0); transform-origin: left center; transition: transform 0.42s var(--ease-wipe); }
.btn--light:hover::before { transform: scaleX(1); }

.btn--sm { min-height: 2.75rem; padding: 0.6rem 1.2rem; font-size: var(--text-sm); }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; color: var(--terracotta-text);
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0% 2px; background-position: left bottom;
  transition: background-size 0.4s var(--ease-wipe), color var(--dur) var(--ease);
}
.text-link svg { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.text-link:hover { background-size: 100% 2px; color: var(--cocoa); }
.text-link:hover svg { transform: translateX(3px); }

.phone-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--cocoa); }
.phone-link svg { width: 1.1rem; height: 1.1rem; color: var(--terracotta); }
.phone-link:hover { color: var(--terracotta-text); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* Blur lives on a pseudo-element so the header never becomes the containing
   block for the fixed-position mobile nav (backdrop-filter would do that). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 239, 228, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px -12px rgba(63, 42, 34, 0.18); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--cocoa); }
.brand__mark { width: 2.25rem; height: 2.25rem; flex: none; transition: transform 0.5s var(--ease); }
.brand:hover .brand__mark { transform: scale(1.06) rotate(-4deg); }
.brand__name { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1; }
.brand__tag { display: block; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; font-weight: 600; }

.site-nav ul { display: flex; gap: 0.25rem; }
.site-nav a {
  display: inline-block; padding: 0.55rem 0.9rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--text-sm); color: var(--espresso);
  position: relative; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--cocoa); background: rgba(107, 58, 40, 0.06); }
.site-nav a[aria-current="page"] { color: var(--cocoa); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.3rem; height: 2px;
  background: var(--terracotta); border-radius: 2px;
}
.site-nav__contact { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 1.25rem; }
.site-header__actions .phone-link { font-size: var(--text-sm); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--cocoa); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.icon-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
  color: var(--terracotta-deep); background: rgba(193, 112, 73, 0.12);
}
.icon-btn svg { width: 1.2rem; height: 1.2rem; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.5rem; }
.hero__copy h1 { max-width: 12ch; }
.hero__copy .lede { max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.hero__area { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-sm); color: var(--muted); font-weight: 600; }
.hero__area svg { width: 1rem; height: 1rem; color: var(--terracotta); flex: none; }

.hero__frame { position: relative; }
.hero__frame::before {
  content: ""; position: absolute; inset: 0; transform: translate(14px, 14px);
  background: var(--sand); border-radius: var(--radius); z-index: 0;
}
.hero__frame .compare { position: relative; z-index: 1; box-shadow: var(--shadow-lg); }
.hero__caption { margin-top: 1.1rem; font-size: var(--text-sm); color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.hero__caption svg { width: 1rem; height: 1rem; color: var(--terracotta); flex: none; }

/* Load-in choreography */
[data-hero] { opacity: 0; transform: translateY(16px); animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
[data-hero="wipe"] { transform: none; opacity: 1; clip-path: inset(0 100% 0 0); animation: wipe 1s var(--ease-wipe) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
[data-hero="visual"] { transform: translateY(0) scale(0.985); animation: settle 1.1s var(--ease) both; animation-delay: 300ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 -2% 0 0); } }
@keyframes settle { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Compare (before / after "wipe") — the signature element
   -------------------------------------------------------------------------- */
.compare {
  --pos: 50;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--sand);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.compare--square { aspect-ratio: 1; }
.compare--portrait { aspect-ratio: 3 / 4; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 0 0 calc(var(--pos) * 1%)); will-change: clip-path; }
.compare__range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100%; }
.compare__range::-moz-range-thumb { width: 56px; height: 100%; border: 0; background: transparent; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); z-index: 2;
  width: 0; pointer-events: none; will-change: left;
}
.compare__blade {
  position: absolute; top: 0; bottom: 0; left: -2px; width: 4px;
  background: var(--cream); box-shadow: 0 0 0 1px rgba(63, 42, 34, 0.12), 0 0 18px rgba(63, 42, 34, 0.35);
}
.compare__grip {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--cream); color: var(--cocoa);
  display: flex; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 2px 4px rgba(63, 42, 34, 0.18), 0 8px 24px rgba(63, 42, 34, 0.28), inset 0 0 0 2px var(--terracotta);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.compare__grip svg { width: 20px; height: 20px; }
.compare:hover .compare__grip, .compare.is-dragging .compare__grip { transform: translate(-50%, -50%) scale(1.06); }
.compare__range:focus-visible ~ .compare__handle .compare__grip { box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--terracotta); }
.compare__label {
  position: absolute; top: 0.9rem; z-index: 2; pointer-events: none;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(63, 42, 34, 0.62); color: var(--cream);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.compare__label--after { left: 0.9rem; background: rgba(168, 91, 55, 0.92); }
.compare__label--before { right: 0.9rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--sand { background: var(--sand); }
.section--linen { background: var(--linen); }
.section--cocoa { background: var(--cocoa); color: var(--cream); }
.section--cocoa h2, .section--cocoa h3 { color: var(--cream); }
.section--cocoa .eyebrow { color: var(--terracotta); }
.section--cocoa .eyebrow::before { background: var(--terracotta); }

/* Trust strip */
.trust { border-block: 1px solid var(--line); padding-block: 1.35rem; }
.trust ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.trust li {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.trust li svg { width: 0.9rem; height: 0.9rem; color: var(--terracotta); flex: none; }

/* Service cards (home) */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem; border-radius: var(--radius); background: var(--linen);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(193, 112, 73, 0.35); }
.service-card--featured { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
.service-card--featured h3 { color: var(--cream); }
.service-card--featured .service-card__meta { color: rgba(247, 239, 228, 0.7); }
.service-card--featured .text-link { color: var(--cream); }
.service-card--featured .text-link:hover { color: #fff; }
.service-card--featured .price { color: var(--cream); }
.service-card--featured .price__from { color: rgba(247, 239, 228, 0.7); }
.service-card__body { display: grid; gap: 0.75rem; }
.service-card__meta { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.service-card__body p:not(.service-card__meta) { color: inherit; opacity: 0.92; }
.service-card__foot { display: grid; gap: 0.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.service-card--featured .service-card__foot { border-top-color: rgba(247, 239, 228, 0.18); }
.price { font-family: var(--font-display); font-size: 1.85rem; line-height: 1; color: var(--cocoa); font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.price__from { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.services-note { margin-top: 1.75rem; color: var(--muted); font-size: var(--text-sm); display: flex; gap: 0.6rem; align-items: flex-start; }
.services-note svg { width: 1.1rem; height: 1.1rem; color: var(--terracotta); flex: none; margin-top: 0.15rem; }

/* Difference (editorial two-column) */
.difference { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.difference__intro { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.25rem; }
.difference__intro h2 { max-width: 14ch; }
.difference__intro .measure { color: var(--muted); }
.difference__list { display: grid; }
.difference__item {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; align-items: start;
  padding-block: 1.75rem; border-top: 1px solid var(--line);
}
.difference__item:last-child { border-bottom: 1px solid var(--line); }
.difference__icon {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(193, 112, 73, 0.12); color: var(--terracotta-deep);
}
.difference__icon svg { width: 1.35rem; height: 1.35rem; }
.difference__item h3 { font-size: var(--text-xl); margin-bottom: 0.4rem; }
.difference__item p { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery figure { margin: 0; display: grid; gap: 0.8rem; }
.gallery figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--text-sm); color: var(--muted); }
.gallery figcaption strong { color: var(--cocoa); font-weight: 700; }
.gallery .compare { box-shadow: var(--shadow-sm); }
.gallery-hint { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 2rem; font-size: var(--text-sm); color: var(--muted); }
.gallery-hint svg { width: 1.1rem; height: 1.1rem; color: var(--terracotta); }

/* Process (a real sequence — numbers are earned) */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.process__step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--line); display: grid; gap: 0.75rem; align-content: start; }
.process__step::before {
  content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--terracotta);
  transition: width 1s var(--ease-wipe); transition-delay: calc(var(--i, 0) * 180ms);
}
.process__step.is-in::before { width: 100%; }
.process__num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--terracotta); }
.process__step h3 { font-size: var(--text-xl); }
.process__step p { color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem 4rem; align-items: center; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: rgba(247, 239, 228, 0.8); max-width: 48ch; margin-top: 1rem; font-size: var(--text-lg); }
.cta-band__actions { display: grid; gap: 1rem; justify-items: start; }
.cta-band__actions .phone-link { color: var(--cream); font-size: var(--text-lg); }
.cta-band__actions .phone-link:hover { color: #fff; }
.cta-band__actions .phone-link svg { color: var(--terracotta); }
.cta-band__mark {
  position: absolute; right: -4%; bottom: -30%; width: clamp(280px, 36vw, 520px); opacity: 0.08; pointer-events: none;
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero__inner { display: grid; gap: 1.25rem; max-width: 820px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { color: var(--muted); max-width: 58ch; }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--linen); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.price-table th, .price-table td { padding: 1.15rem 1.5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table th { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(107, 58, 40, 0.04); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:first-child { font-family: var(--font-display); font-size: var(--text-xl); color: var(--cocoa); }
.price-table td:last-child { font-family: var(--font-display); font-size: var(--text-xl); color: var(--cocoa); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table tbody tr { transition: background-color var(--dur) var(--ease); }
.price-table tbody tr:hover { background: rgba(193, 112, 73, 0.06); }
.price-table small { display: block; font-family: var(--font-body); font-size: var(--text-sm); color: var(--muted); margin-top: 0.25rem; }
.price-table a { color: var(--terracotta-text); font-weight: 700; }
.price-table a:hover { color: var(--cocoa); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.service-detail + .service-detail { margin-top: var(--section); }
.service-detail:nth-of-type(even) .service-detail__media { order: 2; }
.service-detail__copy { display: grid; gap: 1.25rem; }
.service-detail__copy h2 { max-width: 14ch; }
.service-detail__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; background: rgba(193, 112, 73, 0.12); color: var(--terracotta-text); }
.service-detail__price { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.service-detail__price .price { font-size: 2.2rem; }
.service-detail__price span:last-child { color: var(--muted); font-size: var(--text-sm); }
.service-detail__media { position: relative; }
.service-detail__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.service-detail__media figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); background: rgba(63, 42, 34, 0.7); color: var(--cream); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
.checklist h3 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta-text); margin-bottom: 0.6rem; }
.checklist ul { display: grid; gap: 0.35rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--text-sm); color: var(--espresso); }
.checklist li svg { width: 1rem; height: 1rem; color: var(--terracotta); flex: none; margin-top: 0.3rem; }
.checklist--wide { grid-template-columns: repeat(3, 1fr); }
.checklist-card { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist-card > p { margin-bottom: 1.5rem; color: var(--muted); }

.frequency { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.frequency__item { padding: 1.75rem; border-radius: var(--radius); background: var(--linen); border: 1px solid var(--line); display: grid; gap: 0.5rem; align-content: start; }
.frequency__item h3 { font-size: var(--text-xl); }
.frequency__item p { color: var(--muted); font-size: var(--text-sm); }
.frequency__item--highlight { border-color: rgba(193, 112, 73, 0.5); box-shadow: 0 0 0 3px rgba(193, 112, 73, 0.12); }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.about-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-intro__copy { display: grid; gap: 1.25rem; }
.about-intro__copy p { color: var(--espresso); }
.about-intro__media { position: relative; }
.about-intro__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.about-intro__media::before { content: ""; position: absolute; inset: 0; transform: translate(-14px, 14px); background: var(--sand); border-radius: var(--radius); z-index: -1; }

.promise { text-align: center; display: grid; gap: 1.5rem; justify-items: center; }
.promise blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.25; color: var(--cocoa); max-width: 22ch; }
.promise blockquote span { color: var(--terracotta); }
.promise cite { font-style: normal; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.expertise { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.expertise__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.expertise__media img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.expertise__media img:nth-child(2) { margin-top: 2.5rem; }
.expertise__copy { display: grid; gap: 1.25rem; }
.expertise__copy p { color: var(--espresso); }
.big-number { font-family: var(--font-display); font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; color: var(--terracotta); }
.big-number small { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 0.6rem; }

.area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.area__copy { display: grid; gap: 1rem; }
.area__list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area__list li { padding: 0.5rem 1rem; border-radius: var(--radius-pill); background: var(--linen); border: 1px solid var(--line); font-weight: 600; font-size: var(--text-sm); color: var(--cocoa); }
.area__list li.is-home { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fff; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__info { display: grid; gap: 2rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.contact__info h1 { max-width: 12ch; }
.contact__info .lede { color: var(--muted); }
.contact__channels { display: grid; gap: 1rem; }
.contact__channel { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--linen); border: 1px solid var(--line); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.contact__channel:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(193, 112, 73, 0.4); }
.contact__channel-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: rgba(193, 112, 73, 0.12); color: var(--terracotta-deep); flex: none; }
.contact__channel-icon svg { width: 1.25rem; height: 1.25rem; }
.contact__channel small { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact__channel strong { display: block; font-size: var(--text-lg); color: var(--cocoa); }
.contact__next { display: grid; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact__next h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta-text); }
.contact__next ol { display: grid; gap: 0.6rem; counter-reset: next; }
.contact__next li { display: flex; gap: 0.8rem; color: var(--muted); font-size: var(--text-sm); }
.contact__next li::before { counter-increment: next; content: counter(next); flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--sand); color: var(--cocoa); font-weight: 700; font-size: 0.75rem; display: grid; place-items: center; }

.form-card { padding: clamp(1.5rem, 3.5vw, 2.75rem); background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: var(--text-h3); margin-bottom: 0.4rem; }
.form-card > p { color: var(--muted); font-size: var(--text-sm); margin-bottom: 1.75rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--text-sm); color: var(--cocoa); }
.field label .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: 0.75rem 1rem;
  font: inherit; font-size: 1rem; color: var(--espresso);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B3A28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(193, 112, 73, 0.18); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #B23A2E; }
.field .hint { font-size: var(--text-xs); color: var(--muted); }
.form-actions { grid-column: 1 / -1; display: grid; gap: 0.9rem; margin-top: 0.5rem; }
.form-actions .hint { font-size: var(--text-xs); color: var(--muted); text-align: center; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-success, .form-error { display: none; padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.form-success { background: rgba(193, 112, 73, 0.12); border: 1px solid rgba(193, 112, 73, 0.4); color: var(--cocoa); }
.form-error { background: rgba(178, 58, 46, 0.09); border: 1px solid rgba(178, 58, 46, 0.42); color: #8A2B22; }
.form-success.is-visible, .form-error.is-visible { display: flex; gap: 0.75rem; align-items: flex-start; }
.form-success:focus-visible, .form-error:focus-visible { outline-offset: 2px; }
.form-success svg, .form-error svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.15rem; }
.form-success svg { color: var(--terracotta-deep); }
.form-error svg { color: #B23A2E; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2rem; background: var(--cream); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 2.5rem 3rem; align-items: start; }
.site-footer__brand img { width: 200px; height: auto; margin-left: -12px; }
.site-footer__brand p { color: var(--muted); max-width: 32ch; margin-top: 0.75rem; font-size: var(--text-sm); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta-text); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer li a { color: var(--espresso); font-weight: 600; font-size: var(--text-sm); transition: color var(--dur) var(--ease); }
.site-footer li a:hover { color: var(--terracotta-text); }
.site-footer address { font-style: normal; display: grid; gap: 0.55rem; font-size: var(--text-sm); }
.site-footer address a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.site-footer address a:hover { color: var(--terracotta-text); }
.site-footer address svg { width: 1rem; height: 1rem; color: var(--terracotta); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--muted); }
.site-footer__bottom .credit a {
  color: var(--muted); font-weight: 700; padding-bottom: 1px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0% 1px; background-position: left bottom;
  transition: background-size 0.4s var(--ease-wipe), color var(--dur) var(--ease);
}
.site-footer__bottom .credit a:hover { color: var(--cocoa); background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound { padding-block: clamp(4rem, 12vw, 9rem); text-align: center; }
.notfound__inner { display: grid; gap: 1.25rem; justify-items: center; max-width: 620px; margin-inline: auto; }
.notfound h1 { max-width: 16ch; }
.notfound .lede { color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: center; margin-top: 0.5rem; }
.notfound__links { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); width: 100%; }
.notfound__links h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta-text); margin-bottom: 1rem; }
.notfound__links ul { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.notfound__links li a { display: inline-block; padding: 0.5rem 1rem; border-radius: var(--radius-pill); background: var(--linen); border: 1px solid var(--line); font-weight: 600; font-size: var(--text-sm); color: var(--cocoa); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.notfound__links li a:hover { border-color: rgba(193, 112, 73, 0.5); background: rgba(193, 112, 73, 0.08); }
@media (max-width: 640px) {
  .notfound__actions .btn { width: 100%; }
}

/* Mobile sticky CTA bar */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(247, 239, 228, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.mobile-bar .btn { min-height: 3rem; font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-wipe); }
[data-reveal="wipe"].is-in { clip-path: inset(0 -2% 0 0); }
[data-reveal="scale"] { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   Responsive — tablet & phone are laid out, not shrunk
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card:last-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .checklist--wide { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 5rem; }
  body.no-mobile-bar { padding-bottom: 0; }

  .site-header__actions .phone-link, .site-header__actions .btn { display: none; }
  .icon-btn, .nav-toggle { display: inline-flex; }
  .site-header__actions { gap: 0.4rem; }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--cream); padding: 1.5rem var(--gutter) 2rem;
    display: grid; align-content: start; gap: 2rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { display: block; padding: 1.1rem 0; font-family: var(--font-display); font-size: 1.85rem; color: var(--cocoa); border-radius: 0; }
  .site-nav ul a:hover { background: none; }
  .site-nav a[aria-current="page"]::after { left: 0; right: auto; width: 2rem; bottom: 0.9rem; }
  .site-nav__contact { display: grid; gap: 1rem; }
  .site-nav__contact .phone-link, .site-nav__contact .mail-link { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--text-lg); font-weight: 700; color: var(--cocoa); }
  .site-nav__contact svg { width: 1.2rem; height: 1.2rem; color: var(--terracotta); }
  .site-nav__contact .btn { justify-self: start; }
  body.nav-open { overflow: hidden; }

  .hero { padding-top: 1.75rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__copy h1 { max-width: none; }
  .hero__actions .btn { width: 100%; }
  .hero__frame::before { transform: translate(8px, 8px); }

  .difference { grid-template-columns: 1fr; }
  .difference__intro { position: static; }
  .difference__item { grid-template-columns: 2.5rem 1fr; gap: 1rem; padding-block: 1.4rem; }
  .difference__icon { width: 2.5rem; height: 2.5rem; }

  .process { grid-template-columns: 1fr; gap: 0; }
  .process__step { grid-template-columns: auto 1fr; column-gap: 1.25rem; padding-block: 1.5rem; border-top: 0; border-left: 2px solid var(--line); padding-left: 1.5rem; }
  .process__step::before { top: 0; left: -2px; width: 2px; height: 0; transition: height 1s var(--ease-wipe); }
  .process__step.is-in::before { width: 2px; height: 100%; }
  .process__num { grid-row: 1 / 3; font-size: 2rem; }
  .process__step h3, .process__step p { grid-column: 2; }

  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions .btn { width: 100%; }
  .cta-band__actions { justify-items: stretch; }
  .cta-band__actions .phone-link { justify-content: center; }

  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-of-type(even) .service-detail__media { order: 0; }
  .frequency { grid-template-columns: 1fr; }

  .about-intro, .expertise, .area { grid-template-columns: 1fr; }
  .expertise__media { order: -1; }

  .contact { grid-template-columns: 1fr; }
  .contact__info { position: static; }

  .mobile-bar { display: grid; }
  body.no-mobile-bar .mobile-bar { display: none; }
}

@media (max-width: 640px) {
  :root { --text-base: 1rem; }
  .hero__copy .lede { font-size: 1.125rem; }
  .hero__copy { gap: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid .service-card:last-child { grid-column: auto; }
  .service-card { padding: 1.5rem; gap: 1.25rem; }
  .service-card__foot { flex-direction: row; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .gallery { grid-template-columns: 1fr; gap: 1.25rem; }
  .trust ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
  .trust li { font-size: 0.72rem; letter-spacing: 0.1em; }
  .checklist, .checklist--wide { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .expertise__media img:nth-child(2) { margin-top: 1.5rem; }
  /* Phone: the "best for" column is restated in each service section below,
     so the glance table collapses to service + price. */
  .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; }
  .price-table th, .price-table td { padding: 1rem 1.1rem; }
  .price-table td:first-child { font-size: 1.2rem; }
  .price-table td:last-child { font-size: 1.15rem; text-align: right; }
  .price-table th:last-child { text-align: right; }
  .contact__channel strong { font-size: 1rem; overflow-wrap: anywhere; }
  .contact__channel { padding: 1rem 1.1rem; }
  .compare__grip { width: 42px; height: 42px; }
}

/* --------------------------------------------------------------------------
   Reduced motion — everything still works, nothing moves
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  [data-hero], [data-hero="wipe"], [data-hero="visual"] { opacity: 1; transform: none; clip-path: none; animation: none; }
  [data-reveal], [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: none; }
  .process__step::before { width: 100%; }
}
