/* ============================================================
   Ashdown & Sons — public site design system
   Warm paper / charcoal / one amber accent. Square edges,
   hairline rules, tape-measure ticks. Cabinet Grotesk + Supreme.
   ============================================================ */

:root {
  --paper: #f2efe7;
  --paper-2: #e9e4d6;
  --ink: #211d16;
  --ink-2: #4b4536;
  --muted: #6a644f;
  --line: #d6cfbd;
  --dark: #23201a;
  --dark-2: #2d2921;
  --dark-ink: #f0ecdf;
  --dark-muted: #a89f8a;
  --accent: #e0a32e;
  --accent-deep: #a97b12;
  --accent-ink: #23201a;
  --radius: 4px;
  --radius-md: 8px;
  --shadow: 0 14px 40px -18px rgba(40, 34, 20, .35);
  --container: 1160px;
  --display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --body: 'Supreme', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; max-width: 65ch; }
.lead { font-size: 1.18rem; color: var(--ink-2); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; }
@media (max-width: 720px) { section { padding: 68px 0; } }

/* Tape-measure tick strip: the site's signature divider. */
.ticks {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--ink) 0 2px, transparent 2px 25px) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg,
      var(--ink) 0 2px, transparent 2px 100px) bottom / 100% 14px no-repeat;
  opacity: .75;
}
.ticks.on-dark { filter: invert(1); opacity: .5; }

/* small caps utility for wayfinding text (not eyebrows above headings) */
.smallcaps {
  font-family: var(--body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease-out, color .18s ease-out, transform .18s ease-out, border-color .18s ease-out;
}
.btn svg { width: 19px; height: 19px; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-ghost.on-dark { border-color: var(--dark-ink); color: var(--dark-ink); }
.btn-ghost.on-dark:hover { background: var(--dark-ink); color: var(--ink); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: gap .18s ease-out, border-color .18s ease-out;
}
.arrow-link svg { width: 18px; height: 18px; }
.arrow-link:hover { gap: 14px; border-color: var(--ink); }

/* --------------------------------------------------------------- nav */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { text-decoration: none; line-height: 1.1; }
.brand .brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  display: block;
}
.brand .brand-sub {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease-out;
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn)[aria-current="page"] { border-color: var(--accent); }
.nav-links .btn { padding: 10px 18px; font-size: .92rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.nav-phone svg { width: 18px; height: 18px; color: var(--accent-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 10px 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 8px; }
}

/* -------------------------------------------------------------- hero */
.hero { padding: 0; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: min(78vh, 760px);
}
.hero-copy {
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lead { max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin: 26px 0 40px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
}
.hero-facts div {
  padding: 16px 26px 0 0;
  margin-right: 26px;
  font-size: .92rem;
  color: var(--ink-2);
}
.hero-facts strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--ink);
  color: var(--dark-ink);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 8px 16px;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { min-height: 320px; order: -1; }
}

/* ------------------------------------------------------ section head */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head p { margin: 0; color: var(--ink-2); }
.section-head .arrow-link { flex-shrink: 0; margin-bottom: 6px; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------- services ledger */
.ledger { border-top: 2px solid var(--ink); }
.ledger-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 3fr) minmax(0, 5fr) 150px 44px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .18s ease-out;
}
.ledger-row:hover { background: var(--paper-2); }
.ledger-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent-deep);
}
.ledger-row h3 { margin: 0; }
.ledger-row p { margin: 0; font-size: .97rem; color: var(--ink-2); }
.ledger-thumb { width: 150px; height: 92px; object-fit: cover; border-radius: var(--radius); }
.ledger-go { color: var(--ink); width: 26px; height: 26px; justify-self: end; transition: transform .18s ease-out; }
.ledger-row:hover .ledger-go { transform: translate(4px, -4px); color: var(--accent-deep); }
@media (max-width: 880px) {
  .ledger-row { grid-template-columns: 48px 1fr 34px; }
  .ledger-thumb, .ledger-row p { display: none; }
  .ledger-num { font-size: 1.2rem; }
}

/* ------------------------------------------------------ statement band */
.band { background: var(--dark); color: var(--dark-ink); }
.band h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 15ch; }
.band .lead { color: var(--dark-muted); }
.band-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(36px, 5vw, 64px);
}
.band-strip img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 720px) {
  .band-strip { grid-template-columns: 1fr; }
  .band-strip img:nth-child(n+2) { display: none; }
}

/* ----------------------------------------------------------- projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.projects-grid .project-card:first-child { grid-column: 1 / -1; }
.projects-grid .project-card:first-child img { height: clamp(320px, 46vw, 520px); }
.project-card { text-decoration: none; display: block; }
.project-card img {
  width: 100%;
  height: clamp(220px, 30vw, 320px);
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.project-card:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card figcaption { padding: 16px 2px 0; }
.project-card h3 { margin: 0 0 4px; }
.project-meta { font-size: .88rem; color: var(--muted); font-weight: 500; }
.project-meta span + span::before { content: ' · '; }
@media (max-width: 720px) { .projects-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- steps */
.steps-wrap { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
}
.step { border-right: 1px solid var(--line); padding: 8px 26px 0; }
.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--accent-deep);
  display: block;
}
.step h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.step p { font-size: .95rem; color: var(--ink-2); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- quotes */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review { border-top: 2px solid var(--ink); padding-top: 22px; }
.review svg { width: 30px; height: 30px; color: var(--accent-deep); margin-bottom: 12px; }
.review blockquote { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.6; }
.review cite { font-style: normal; font-weight: 700; display: block; }
.review .review-meta { font-size: .85rem; color: var(--muted); font-weight: 500; }
@media (max-width: 880px) { .reviews { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ CTA band */
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0; max-width: 16ch; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-band .btn-ghost { border-color: var(--ink); }
.cta-band .cta-phone {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-decoration: none;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.cta-band .cta-phone svg { width: 26px; height: 26px; }
.cta-band .cta-phone:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ------------------------------------------------------------- footer */
footer.site {
  background: var(--dark);
  color: var(--dark-muted);
  padding: 72px 0 36px;
  font-size: .95rem;
}
footer.site .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
}
footer.site .brand-name { color: var(--dark-ink); }
footer.site .brand-sub { color: var(--dark-muted); }
footer.site .foot-h {
  color: var(--dark-ink);
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: var(--dark-muted); text-decoration: none; transition: color .18s ease-out; }
footer.site a:hover { color: var(--accent); }
footer.site .foot-legal {
  border-top: 1px solid var(--dark-2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .84rem;
}
@media (max-width: 880px) { footer.site .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.site .foot-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- inner page headers */
.page-head { padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 56ch; }

/* ------------------------------------------------------- services page */
.service-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 7vw, 90px) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.service-block:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.service-block:nth-child(even) .service-photo { order: 2; }
.service-photo img { width: 100%; height: clamp(280px, 34vw, 420px); object-fit: cover; border-radius: var(--radius); }
.service-copy .service-num { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--accent-deep); display: block; margin-bottom: 6px; }
.service-copy p { color: var(--ink-2); }
@media (max-width: 820px) {
  .service-block, .service-block:nth-child(even) { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-photo { order: 0; }
}

/* -------------------------------------------------------- project page */
.project-hero img { width: 100%; height: clamp(300px, 52vw, 560px); object-fit: cover; }
.facts-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.facts-ledger div { padding: 18px 20px 18px 0; }
.facts-ledger div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts-ledger .smallcaps { color: var(--muted); display: block; margin-bottom: 4px; }
.facts-ledger strong { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
@media (max-width: 720px) {
  .facts-ledger { grid-template-columns: 1fr 1fr; }
  .facts-ledger div { border-left: none !important; padding-left: 0 !important; }
}
.prose p { color: var(--ink-2); }
.prose p:first-of-type { color: var(--ink); font-size: 1.12rem; }
.gallery-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: clamp(32px, 5vw, 56px) 0; }
.gallery-pair img { width: 100%; height: clamp(220px, 30vw, 380px); object-fit: cover; border-radius: var(--radius); }
.gallery-pair img:only-child { grid-column: 1 / -1; height: clamp(260px, 40vw, 460px); }
@media (max-width: 640px) { .gallery-pair { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- about page */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 12px; }
.person { border-top: 2px solid var(--ink); padding-top: 20px; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--accent-deep); font-weight: 700; font-size: .92rem; display: block; margin-bottom: 12px; }
.person p { font-size: .97rem; color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .people { grid-template-columns: 1fr; } }

.assurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.assurance article { background: var(--paper-2); border-radius: var(--radius-md); padding: 28px; }
.assurance svg { width: 30px; height: 30px; color: var(--accent-deep); margin-bottom: 14px; }
.assurance h3 { font-size: 1.15rem; }
.assurance p { font-size: .95rem; color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .assurance { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- quote page */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .quote-grid { grid-template-columns: 1fr; } }

form.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: #fbf9f3;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .18s ease-out;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
}
.form-note { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); margin: 0; }
.form-error {
  grid-column: 1 / -1;
  background: #f7e3dc;
  color: #7c2d12;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 500;
  display: none;
}
.form-error.show { display: block; }
@media (max-width: 560px) { form.quote-form { grid-template-columns: 1fr; } }

.quote-success { display: none; background: var(--paper-2); border-radius: var(--radius-md); padding: 36px; }
.quote-success.show { display: block; }
.quote-success svg { width: 40px; height: 40px; color: var(--accent-deep); margin-bottom: 14px; }
.quote-success .ref { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }

.contact-side .contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-side .contact-item:first-child { border-top: 2px solid var(--ink); }
.contact-side .contact-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-deep); margin-top: 3px; }
.contact-side .contact-item strong { display: block; }
.contact-side .contact-item a { text-decoration: none; font-weight: 700; }
.contact-side .contact-item a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-side .contact-item p { margin: 0; font-size: .95rem; color: var(--ink-2); }
#map { height: 300px; border-radius: var(--radius); margin-top: 26px; border: 1px solid var(--line); }

/* -------------------------------------------------------------- 404 */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound .code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 15vw, 9rem); color: var(--accent-deep); line-height: 1; }

/* ------------------------------------------------------------ reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .project-card img, .ledger-go, .arrow-link { transition: none; }
}
