/* ═══════════════════════════════════════════════════════
   Better Built — Shared styles
   ═══════════════════════════════════════════════════════ */

:root {
  --plaster: #ECEAE4;   /* page background */
  --board:   #FAFAF7;   /* raised surfaces, form */
  --spruce:  #1E3B34;   /* dark sections, headings */
  --spruce-2:#2C5047;   /* hover on dark */
  --ink:     #1B1F1D;   /* body text */
  --ink-2:   #4A524E;   /* secondary text */
  --line:    #CFCBC2;   /* hairlines on plaster */
  --orange:  #F18717;   /* logo orange: CTAs, measure ticks */
  --orange-2:#A04210;   /* text-safe orange on light backgrounds */
  --orange-3:#DB740C;   /* button hover */
  --oak:     #A8784C;   /* timber tone for photo slots */

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--spruce); outline-offset: 3px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--spruce); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Type scale ───────────────────────────────────────── */
h1, h2, h3, .display {
  font-family: var(--font);
  color: var(--spruce);
  margin: 0 0 .5em;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1, .display {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  font-variation-settings: "wdth" 118;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  line-height: 1.2;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 54ch; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em;
  font: 700 1rem/1 var(--font); font-variation-settings: "wdth" 112;
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-3); }
.btn-ghost { border-color: var(--spruce); color: var(--spruce); background: transparent; }
.btn-ghost:hover { background: var(--spruce); color: #fff; }
.on-dark .btn-ghost { border-color: #fff; color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--spruce); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--plaster);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
}
.brand-logo { display: block; width: 60px; height: 60px; }
.footer-brand .brand-logo { width: 88px; height: 88px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--spruce);
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-weight: 800; font-size: 1.35rem; line-height: 1;
  font-variation-settings: "wdth" 125; letter-spacing: -0.02em;
}
.brand-name small {
  display: block; font-size: .72rem; font-weight: 500; letter-spacing: .02em;
  font-variation-settings: "wdth" 100; color: var(--ink-2); margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-weight: 600; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--line); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--orange); }
.header-call { min-height: 44px; }
.hamburger {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px;
  color: var(--spruce); cursor: pointer;
}
.hamburger svg { width: 28px; height: 28px; }
.mobile-nav { display: none; }

@media (max-width: 880px) {
  .nav-links, .header-call { display: none; }
  .hamburger { display: block; }
  .mobile-nav {
    display: block; position: fixed; inset: 84px 0 0 0; z-index: 49;
    background: var(--plaster); padding: 24px var(--gutter);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .mobile-nav.open { opacity: 1; transform: none; visibility: visible; }
  .mobile-nav ul { list-style: none; margin: 0 0 24px; padding: 0; }
  .mobile-nav li { border-bottom: 1px solid var(--line); }
  .mobile-nav a.mobile-link {
    display: block; padding: 18px 0; text-decoration: none;
    font-size: 1.6rem; font-weight: 800; color: var(--spruce);
    font-variation-settings: "wdth" 120;
  }
}

/* ── Tape-measure rule (signature device) ─────────────── */
.tape {
  position: relative; height: 30px; color: var(--orange);
  background-image:
    linear-gradient(to right, currentColor 2px, transparent 2px),
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to right, currentColor 1px, transparent 1px);
  background-size: 100px 30px, 50px 18px, 10px 9px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0, 0 0;
  border-top: 2px solid currentColor;
}
.tape-labels {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px;
  padding-top: 14px; font-weight: 600; color: var(--spruce);
}
.tape-labels span { white-space: nowrap; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-dark { background: var(--spruce); color: #E4ECE8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: #C3D1CB; }
.section-board { background: var(--board); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: clamp(36px, 6vw, 72px) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.hero h1 { margin-bottom: .35em; }
.hero .lede { margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { aspect-ratio: 4 / 5; }
.hero-tape { margin-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 64px); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* ── Photo slots (until Luke's photos arrive) ─────────── */
.photo {
  margin: 0;
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,.05) 0 3px, transparent 3px 11px),
    repeating-linear-gradient(97deg, rgba(0,0,0,.06) 0 1px, transparent 1px 23px),
    linear-gradient(160deg, #B98A5C, var(--oak) 55%, #8E6239);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption, .photo .photo-note {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: .85rem; font-weight: 600; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.photo[data-placeholder] .photo-note::before { content: "Photo to come: "; opacity: .8; font-weight: 500; }

/* ── Who we work with ─────────────────────────────────── */
.clients {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--spruce);
}
.client { padding: 28px 28px 8px 0; }
.client + .client { padding-left: 28px; border-left: 1px solid var(--line); }
.client h3 { margin-bottom: .45em; }
.client p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 980px) {
  .clients { grid-template-columns: 1fr 1fr; }
  .client:nth-child(3) { padding-left: 0; border-left: 0; }
  .client:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .clients { grid-template-columns: 1fr; }
  .client, .client + .client { padding: 24px 0 4px; border-left: 0; }
  .client + .client { border-top: 1px solid var(--line); }
}

/* ── Service list (rows, not cards) ───────────────────── */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.22); }
.service-row {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2fr 13rem; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.22);
  text-decoration: none; color: inherit;
}
.service-row h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.service-row p { margin: 0; color: #C3D1CB; }
.service-row .more { justify-self: end; color: #fff; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--orange); }
.service-row:hover h3 { color: #FFD2B3; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 6px; }
  .service-row .more { justify-self: start; }
}

/* ── Feature / testimonial ────────────────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature .photo { aspect-ratio: 1 / 1; }
blockquote.quote { margin: 0 0 1.5em; padding: 0; }
blockquote.quote p {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 500;
  color: var(--spruce); font-variation-settings: "wdth" 104;
}
.quote-by { font-weight: 700; color: var(--ink); }
.quote-by span { display: block; font-weight: 400; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ── Steps (a real sequence) ──────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--spruce); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; font-weight: 800; font-size: 2.2rem; line-height: 1;
  color: var(--orange-2); font-variation-settings: "wdth" 125; margin-bottom: 12px;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ── CTA band ─────────────────────────────────────────── */
.cta-section { background: var(--orange); color: var(--ink); }
.cta-section h2 { color: var(--ink); }
.cta-section .btn-primary { background: var(--ink); color: #fff; }
.cta-section .btn-primary:hover { background: var(--spruce); }
.cta-section .btn-ghost { border-color: var(--ink); color: var(--ink); }
.cta-section .btn-ghost:hover { background: var(--ink); color: #fff; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Page header (inner pages) ────────────────────────── */
.page-head { padding: clamp(40px, 7vw, 88px) 0 0; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.page-head .tape { margin-top: clamp(32px, 5vw, 56px); }

/* ── Services page ────────────────────────────────────── */
.service-block {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px);
  padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.service-block:last-child { border-bottom: 0; }
.service-block .photo { aspect-ratio: 4 / 3; }
.service-block:nth-child(even) .photo { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .photo { order: 0; }
}

/* ── Projects page ────────────────────────────────────── */
.project { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.project:last-child { border-bottom: 0; }
.project-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.project-head h2 { margin: 0; }
.project-tag { font-weight: 600; color: var(--orange-2); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.gallery .photo:first-child { grid-row: span 2; aspect-ratio: 4 / 3; }
.gallery .photo { min-height: 140px; }
.project-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.project-body h3 { font-size: 1.05rem; margin-bottom: .4em; }
.project-body p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery .photo:first-child { grid-column: span 2; grid-row: auto; }
  .gallery .photo { aspect-ratio: 4 / 3; min-height: 0; }
  .project-body { grid-template-columns: 1fr; gap: 8px; }
}

/* ── About page ───────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-grid .photo { aspect-ratio: 4 / 5; position: sticky; top: 100px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.values li { border-top: 1px solid var(--line); padding: 20px 0; }
.values h3 { margin-bottom: .3em; }
.values p { color: var(--ink-2); font-size: 1rem; margin: 0; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .photo { position: static; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ── Contact page ─────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-details { list-style: none; margin: 0 0 32px; padding: 0; }
.contact-details li { border-top: 1px solid var(--line); padding: 16px 0; }
.contact-details strong { display: block; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.contact-details a { font-weight: 700; font-size: 1.15rem; color: var(--spruce); text-decoration-color: var(--orange); text-underline-offset: 4px; }
.contact-details span { font-weight: 600; font-size: 1.05rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--board); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--orange-2); }
.hint { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid #B9B4A9; border-radius: var(--radius);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--spruce); box-shadow: 0 0 0 3px rgba(217,97,26,.35); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .9rem; margin-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 10px 14px; border: 1.5px solid #B9B4A9; border-radius: var(--radius);
  background: #fff; font-weight: 500; cursor: pointer;
}
.chips input { accent-color: var(--orange); width: 18px; height: 18px; margin: 0; }
.chips label:has(input:checked) { border-color: var(--spruce); background: #EDF2F0; }
.chips label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.form-note { font-size: .9rem; color: var(--ink-2); margin: 14px 0 0; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.error { color: #B3261E; }
.form-success { display: none; }
.form-success h2 { font-size: 1.8rem; }
.hp { position: absolute; left: -9999px; }

/* ── Prose (privacy) ──────────────────────────────────── */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; font-variation-settings: "wdth" 110; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--spruce); color: #C3D1CB; padding: 64px 0 32px; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 1rem; color: #fff; font-variation-settings: "wdth" 100; font-weight: 700; margin-bottom: .8em; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5em; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-name small { color: #C3D1CB; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.18); margin-top: 48px; padding-top: 20px; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Mobile call bar ──────────────────────────────────── */
.call-bar { display: none; }
@media (max-width: 880px) {
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--board); border-top: 1px solid var(--line);
  }
  .call-bar .btn { min-height: 48px; padding: 0 .8em; }
  body { padding-bottom: 78px; }
}

/* ── One orchestrated entrance: the hero ──────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero-actions { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lede { animation-delay: .08s; }
  .hero-actions { animation-delay: .16s; }
  .hero-tape .tape { animation: draw 1.1s cubic-bezier(.4,0,.2,1) .2s both; transform-origin: left; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.project-quote { margin-top: 32px; }
.values-head { margin-top: 1.4em; }

/* ── Long testimonial (Dean) ──────────────────────────── */
.long-quote { display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.long-quote-by { position: sticky; top: 110px; border-top: 2px solid var(--spruce); padding-top: 20px; }
.long-quote-by h2 { margin-bottom: .6em; }
.quote-long { margin: 0; max-width: 62ch; }
.quote-long p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; font-weight: 450; color: var(--ink); font-variation-settings: "wdth" 100; }
.quote-long p:first-child { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4; font-weight: 600; color: var(--spruce); font-variation-settings: "wdth" 104; }
@media (max-width: 860px) {
  .long-quote { grid-template-columns: 1fr; }
  .long-quote-by { position: static; }
}
