/* Barrett Plastering: drying-skim pink, chalk and graphite. One light theme; every background token has an --on-* partner. */
:root {
  --chalk: #f4f3ef;      --on-chalk: #24272b;   --on-chalk-soft: #50555c;
  --card: #fbfbf9;       --on-card: #24272b;
  --skim: #ecd2c7;       --on-skim: #24272b;    --on-skim-soft: #4d4442;
  --graphite: #24272b;   --on-graphite: #efeeea; --on-graphite-soft: #c4c2bd;
  --terra: #9a4636;      --on-terra: #fbfbf9;
  --stone: #dcd8d2;      --on-stone: #24272b;
  --error: #9e2a2a;
  --line: #8a8580;
  --r: 4px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--on-chalk);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2.25rem; } }

.ribbon {
  background: var(--graphite);
  color: var(--on-graphite);
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.45rem 1rem;
}

/* Buttons: one sharp-ish radius everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border-radius: var(--r); border: 1.5px solid transparent;
  font: 500 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-terra { background: var(--terra); color: var(--on-terra); }
.btn-terra:hover { background: #853b2d; color: var(--on-terra); }
.btn-ghost { background: transparent; color: var(--on-chalk); border-color: var(--on-chalk); }
.btn-ghost:hover { background: var(--on-chalk); color: var(--chalk); }
.btn-ghost-dark { background: var(--graphite); color: var(--on-graphite); border-color: var(--on-graphite-soft); }

/* Header */
.top { background: var(--chalk); color: var(--on-chalk); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 600 1.35rem/1 var(--serif); margin-right: auto; }
.top nav { display: none; gap: 1.6rem; font-size: .95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-call { display: none; min-height: 42px; padding: .5rem 1rem; }
@media (min-width: 900px) { .top nav { display: flex; } .top-call { display: inline-flex; } }

/* Hero */
.hero { display: grid; gap: 2rem; padding-block: 1.5rem 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1.04; max-width: 13ch; }
.hero h1 em { font-weight: 500; color: var(--terra); }
.lede { margin-top: 1.1rem; font-size: 1.15rem; color: var(--on-chalk-soft); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.wall { margin: 0; aspect-ratio: 1 / 1; max-height: 70vh; width: 100%; overflow: hidden; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(80, 60, 52, .45); }
.wall svg { width: 100%; height: 100%; }
.sweep { transform: translateX(400px); }
.trowel { transform: translateX(392px); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 4rem; padding-block: 3.5rem 6rem; min-height: calc(100dvh - 110px); }
  .wall { aspect-ratio: 4 / 5; max-height: 640px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sweep { animation: sweep 2.6s cubic-bezier(.45, .05, .25, 1) .4s both; }
  .trowel { animation: trowel 2.6s cubic-bezier(.45, .05, .25, 1) .4s both; }
  .hero-copy > * { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .2s; }
}
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(400px); } }
@keyframes trowel { from { transform: translateX(-40px); } to { transform: translateX(392px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Reviews */
.proof { background: var(--skim); color: var(--on-skim); padding-block: 4rem; }
.proof-in { display: grid; gap: 2rem; align-items: center; }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--on-skim-soft); }
.figures { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.fig { display: grid; }
.num { font: 600 clamp(4.5rem, 20vw, 8.5rem)/.9 var(--serif); letter-spacing: -.03em; }
.lbl { font-size: 1rem; font-weight: 500; color: var(--on-skim-soft); margin-top: .35rem; }
.from { font: italic 500 1.75rem/1 var(--serif); padding-bottom: 2.4rem; color: var(--on-skim-soft); }
.proof-copy h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); max-width: 18ch; }
.proof-copy p { margin-top: .9rem; max-width: 42ch; }
.text-link { display: inline-block; margin-top: 1.1rem; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--terra); padding-block: .4rem; }
@media (min-width: 900px) {
  .proof { padding-block: 5.5rem; }
  .proof-in { grid-template-columns: auto 1fr; column-gap: 5rem; }
  .eyebrow { grid-column: 1 / -1; }
}

/* Services: asymmetric 2x2, each tile shows its own surface */
.services { padding-block: 4.5rem; }
.section-title { font-size: clamp(2rem, 6vw, 3.2rem); max-width: 16ch; }
.svc-grid { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
.svc { background: var(--card); color: var(--on-card); border-radius: var(--r); padding: 0 0 1.4rem; overflow: hidden; }
.svc h3 { font-size: 1.85rem; margin: 1.2rem 1.4rem 0; }
.svc p { margin: .4rem 1.4rem 0; color: var(--on-chalk-soft); max-width: 38ch; }
.swatch { height: 120px; background: var(--stone); }
.swatch svg { width: 100%; height: 100%; }
.svc-skim .swatch { background: linear-gradient(115deg, #ecc9bb, #e2b4a2 55%, #d9a894); }
.svc-board .swatch {
  background-color: #e4e2de;
  background-image:
    radial-gradient(circle, #8a8580 1.6px, transparent 2px),
    linear-gradient(90deg, transparent calc(50% - 1px), #b7b2ab calc(50% - 1px), #b7b2ab calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 40px 30px, 100% 100%;
  background-position: 20px 15px, 0 0;
}
.svc-cove .swatch { background: var(--stone); }
.svc-note { margin-top: 1.75rem; color: var(--on-chalk-soft); }
@media (min-width: 768px) {
  .services { padding-block: 6.5rem; }
  .svc-grid { grid-template-columns: 7fr 5fr; }
  .svc-board { order: 4; }
  .svc-cove { order: 3; }
  .swatch { height: 160px; }
}

/* Before and after plates */
.work { background: var(--card); color: var(--on-card); padding-block: 4.5rem; }
.plates { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
.plate { margin: 0; }
.plate figcaption { margin-top: .7rem; font-size: .95rem; color: var(--on-chalk-soft); }
.pair { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; }
.half { position: relative; }
.half svg { width: 100%; height: 100%; }
.half span { position: absolute; left: .8rem; bottom: .7rem; background: var(--graphite); color: var(--on-graphite); font-size: .8rem; font-weight: 500; padding: .2rem .55rem; border-radius: var(--r); }
.after { background: linear-gradient(140deg, #ecc9bb, #dfae9b); }
.clip { aspect-ratio: 9 / 12; background: var(--graphite); border-radius: var(--r); display: grid; place-items: center; max-height: 520px; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--on-graphite-soft); position: relative; }
.play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 20px solid var(--on-graphite-soft); border-block: 12px solid transparent; }
@media (min-width: 768px) {
  .work { padding-block: 6.5rem; }
  .plates { grid-template-columns: 2fr 1fr; align-items: start; }
  .pair { aspect-ratio: auto; height: 420px; }
  .clip { height: 420px; aspect-ratio: auto; }
}

/* Quote */
.quote { display: grid; gap: 2.5rem; padding-block: 4.5rem 5rem; }
.quote-side h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.quote-side p { margin-top: .8rem; color: var(--on-chalk-soft); }
.contact { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .5rem; }
.contact a { font-weight: 500; text-underline-offset: 4px; display: inline-block; padding-block: .3rem; }
.contact li:first-child a { font: 600 2rem/1.1 var(--serif); text-decoration: none; }
.form { background: var(--card); color: var(--on-card); border-radius: var(--r); padding: 1.4rem; display: grid; gap: 1.1rem; box-shadow: 0 20px 50px -30px rgba(80, 60, 52, .35); }
.field { display: grid; gap: .4rem; }
label { font-weight: 500; }
.opt { font-weight: 400; color: var(--on-chalk-soft); }
input, select, textarea {
  font: inherit; color: var(--on-card); background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--r);
  padding: .7rem .8rem; width: 100%; min-height: 48px;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--terra); }
[aria-invalid="true"] { border-color: var(--error); }
.help { font-size: .9rem; color: var(--on-chalk-soft); }
.err { font-size: .9rem; color: var(--error); font-weight: 500; }
.form .btn { justify-self: start; }
.done { background: var(--skim); color: var(--on-skim); border-radius: var(--r); padding: 1.2rem; }
.done-title { font: 600 1.6rem/1.1 var(--serif); margin-bottom: .4rem; }
@media (min-width: 900px) {
  .quote { grid-template-columns: 1fr 1.2fr; gap: 5rem; padding-block: 7rem; align-items: start; }
  .form { padding: 2rem; }
}

/* Footer */
.foot { background: var(--graphite); color: var(--on-graphite); padding-block: 2.5rem 6.5rem; }
.foot-in { display: grid; gap: .6rem; }
.foot-brand { font: 600 1.6rem/1 var(--serif); }
.privacy { color: var(--on-graphite-soft); font-size: .9rem; max-width: 60ch; margin-top: .6rem; }
.foot a { text-underline-offset: 3px; }
@media (min-width: 900px) { .foot { padding-bottom: 2.5rem; } }

/* Mobile dock: call + quote, always reachable */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 2fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--graphite); color: var(--on-graphite);
}
.dock .btn { padding-inline: .5rem; }
@media (min-width: 900px) { .dock { display: none; } }

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