@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html.js { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--s2);
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 var(--s2); max-width: var(--measure); }
p.wide { max-width: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ground);
  padding: .8em 1.4em; z-index: 200; font-weight: 600;
  text-decoration: none; border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

/* ---------- layout shells ---------- */
.wrap {
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.measure { max-width: var(--measure); }
.section { padding-top: var(--s5); padding-bottom: var(--s5); }
.section-tight { padding-top: var(--s4); padding-bottom: var(--s4); }
.flush-top { padding-top: 0; }

.eyebrow-free { display: none; } /* placeholder to ensure no eyebrow labels are reintroduced */

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter-r) 1.1rem var(--gutter-l);
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex; flex-direction: column; gap: 0.1rem;
  text-decoration: none;
}
.brand-name {
  font-family: var(--display); font-size: 1.2rem; font-weight: 600;
  color: var(--ink); letter-spacing: .01em;
}
.brand-sub {
  font-size: .74rem; color: var(--ink-dim); letter-spacing: .03em;
}
.site-nav {
  display: flex; align-items: center; gap: var(--s3);
}
.site-nav a {
  text-decoration: none; color: var(--ink-dim); font-size: .95rem;
  transition: color .2s var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-bright); }
.nav-call {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--gold); color: var(--ground);
  padding: .6em 1.2em; border-radius: 4px; font-weight: 600;
  text-decoration: none; font-size: .92rem;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-call:hover, .nav-call:focus-visible { background: var(--gold-bright); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 86vh;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,.35) 0%, rgba(20,17,13,.25) 40%, rgba(18,15,11,.92) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 0 var(--gutter-r) var(--s5) var(--gutter-l);
  width: 100%;
}
.hero-content h1 { max-width: 14ch; }
.hero-ridge {
  display: block; width: 240px; height: auto; margin: var(--s2) 0 var(--s3);
  color: var(--gold);
}
.hero-dek {
  font-size: 1.2rem; color: var(--ink-dim); max-width: 46ch; margin-bottom: var(--s3);
}
.hero-ctas { display: flex; gap: var(--s2); flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95em 1.8em; border-radius: 4px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--ground); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(243,239,230,.4); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-on-paper { background: var(--ground); color: var(--paper); }
.btn-on-paper:hover, .btn-on-paper:focus-visible { background: #35291a; }

/* ---------- intro / split copy ---------- */
.intro {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s5);
  align-items: start;
}
.intro .lede { font-size: 1.35rem; font-family: var(--display); font-weight: 400; color: var(--ink); }
.intro .facts { display: flex; flex-direction: column; gap: var(--s3); }
.fact dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-bright); margin-bottom: .3em; font-weight: 600; }
.fact dd { margin: 0; color: var(--ink-dim); }

/* ---------- full-bleed photo bands ---------- */
.photo-band {
  position: relative; width: 100%;
  overflow: hidden;
}
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band.h-tall { aspect-ratio: 16/10; }
.photo-band.h-wide { aspect-ratio: 21/9; }
.photo-band.h-square { aspect-ratio: 4/3; }
.caption {
  font-size: .88rem; color: var(--ink-dim); padding: .8em var(--gutter-r) 0 var(--gutter-l);
  max-width: 62ch;
}
.caption strong { color: var(--ink); font-weight: 600; }

.region-media {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px;
  margin-top: var(--s3);
}
.region-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}

.region-pair {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s2);
  margin-top: var(--s3);
}
.region-pair > div { aspect-ratio: 3/4; overflow: hidden; border-radius: 6px; }
.region-pair img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .region-pair { grid-template-columns: 1fr; }
  .region-pair > div { aspect-ratio: 16/10; }
}

/* ---------- two-up photo + copy ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  align-items: stretch;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-media { position: relative; min-height: 420px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s5) var(--s5);
}
.split-copy h2 { margin-bottom: var(--s2); }

/* ---------- categories grid (equipment/estate/etc, photo-led not icon-led) ---------- */
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2);
}
.category-card {
  position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 6px;
  display: flex; align-items: flex-end;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.category-card:hover img { transform: scale(1.04); }
.category-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,0) 40%, rgba(15,13,10,.88) 100%);
}
.category-label {
  position: relative; z-index: 1; padding: var(--s2); color: var(--ink);
  font-family: var(--display); font-size: 1.15rem; font-weight: 600;
}

/* ---------- steps (consign process) — plain ordered list, not 01/02/03 ghost numerals ---------- */
.process-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.process-list li {
  display: grid; grid-template-columns: 5ch 1fr; gap: var(--s3);
  padding: var(--s3) 0; border-top: 1px solid var(--rule);
}
.process-list li:last-child { border-bottom: 1px solid var(--rule); }
.process-word { font-family: var(--display); color: var(--gold-bright); font-size: 1rem; padding-top: .15em; }
.process-list h3 { margin-bottom: .35em; }
.process-list p { color: var(--ink-dim); margin-bottom: 0; }

/* ---------- inverted paper block: address / hours / consign form ---------- */
.paper-block {
  background: var(--paper); color: var(--ink-on-paper);
}
.paper-block h2, .paper-block h3 { color: var(--ink-on-paper); }
.paper-block .fact dt { color: var(--rust); }
.paper-block .fact dd { color: var(--ink-on-paper-dim); }
.paper-block a { color: var(--ink-on-paper); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5);
}
.contact-info dl { margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: var(--s2); }
.hours-table td { padding: .4em 0; border-top: 1px solid var(--rule-on-paper); }
.hours-table td:last-child { text-align: right; color: var(--ink-on-paper-dim); }

.field { margin-bottom: var(--s2); }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4em; color: var(--ink-on-paper); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8em .9em; border: 1px solid rgba(34,29,23,.28);
  border-radius: 4px; background: #fff; font-family: var(--body); font-size: 1rem;
  color: var(--ink-on-paper);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--rust); outline-offset: 1px;
}
.form-note { font-size: .85rem; color: var(--ink-on-paper-dim); margin-top: var(--s2); }
.form-status { margin-top: var(--s2); font-size: .92rem; font-weight: 600; }
.form-status[data-state="error"] { color: #8a2f22; }
.form-status[data-state="ok"] { color: #2f5d2e; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- quote / on-record ---------- */
.record {
  border-top: 1px solid var(--rule);
  padding-top: var(--s4);
}
.record-figure { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 400; max-width: 42ch; }
.record-cite { color: var(--ink-dim); font-size: .95rem; margin-top: var(--s2); }

/* ---------- sticky mobile call bar ---------- */
.call-bar {
  display: none;
}
@media (max-width: 720px) {
  .call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    background: var(--ground-2); border-top: 1px solid var(--rule);
  }
  .call-bar a {
    flex: 1; text-align: center; padding: .95em 0; text-decoration: none;
    font-weight: 600; font-size: .95rem;
  }
  .call-bar a.call-primary { background: var(--gold); color: var(--ground); }
  .call-bar a.call-secondary { color: var(--ink); }
  body { padding-bottom: 58px; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 2px solid var(--gold);
  padding: var(--s4) var(--gutter-r) var(--s3) var(--gutter-l);
  background: var(--ground-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s4);
  padding-bottom: var(--s3);
}
.footer-grid h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-bright); margin-bottom: .8em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5em; }
.footer-grid a { text-decoration: none; color: var(--ink-dim); }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid var(--rule); padding-top: var(--s2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2);
  font-size: .82rem; color: var(--ink-dim);
}
.footer-bottom a { text-decoration: underline; }

/* ---------- reveal (gated behind js + prefers-reduced-motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; gap: var(--s4); }
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 320px; }
  .split-copy { padding: var(--s4) var(--gutter-r) var(--s4) var(--gutter-l); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter-l: 6vw; --gutter-r: 6vw; }
  .site-nav { gap: var(--s2); }
  .site-nav a:not(.nav-call) { display: none; }
  .hero { min-height: 92vh; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .process-list li { grid-template-columns: 1fr; gap: .4em; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s3); }
  h1 { max-width: none !important; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 1rem; }
}
