/* Hartnett Upholstery — hand-built styles.
   Palette and type set once here, used everywhere. */

:root {
  --paper:      #f3ede1;   /* warm oat canvas */
  --paper-2:    #ece3d3;   /* slightly deeper panel */
  --cream:      #faf6ee;   /* card / lifted surfaces */
  --ink:        #241f18;   /* near-black, warm */
  --ink-soft:   #574e40;   /* secondary text */
  --ink-faint:  #8a7f6d;   /* captions, meta */
  --green:      #33503f;   /* heritage bottle green */
  --green-dark: #253c2e;
  --brass:      #9c6b34;   /* warm accent, used sparingly */
  --line:       #d6cab3;   /* hairline */
  --line-soft:  #e2d9c6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, system-ui, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --r: 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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.06; margin: 0;
  letter-spacing: -0.01em; font-optical-sizing: auto; }
.display { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.15; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--brass);
  display: inline-block; margin: 0 0 1.1rem;
}
.eyebrow.on-dark { color: #cBe0c9; }

.measure { max-width: 56ch; }
.measure-sm { max-width: 44ch; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em;
  line-height: 1; }
.brand-name span { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: 0.3rem; transition: color .18s ease; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn)::after { content:""; position:absolute; left:0; right:100%; bottom:0; height:1.5px;
  background: var(--brass); transition: right .22s ease; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { right: 0; }

.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 0.85rem 1.4rem; border-radius: var(--r); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .18s ease, color .18s ease, transform .12s ease, border-color .18s ease; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--green); color: var(--cream); }
.btn-solid:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

.textlink { color: var(--green); text-decoration: none; font-weight: 600;
  border-bottom: 1.5px solid color-mix(in srgb, var(--green) 35%, transparent); padding-bottom: 1px;
  transition: border-color .18s ease; }
.textlink:hover { border-color: var(--green); }
.textlink .arr { display:inline-block; transition: transform .2s ease; }
.textlink:hover .arr { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end; }
.hero-copy { padding-bottom: clamp(1rem, 4vw, 3.5rem); }
.hero-copy .display { margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero-fig { position: relative; }
.hero-fig img { width: 100%; height: clamp(360px, 52vw, 620px); object-fit: cover; border-radius: var(--r);
  border: 1px solid var(--line); }
.hero-tag { position: absolute; left: 0; bottom: -1px; transform: translateY(40%);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.7rem 1rem; max-width: 17rem; box-shadow: 0 14px 30px -22px rgba(36,31,24,.5); }
.hero-tag b { font-family: var(--serif); font-weight: 600; }
.hero-tag span { display:block; font-size: 0.82rem; color: var(--ink-faint); }

.trust { display:flex; flex-wrap: wrap; gap: 0 2.2rem; margin-top: 3.2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line); list-style: none; padding-left: 0; }
.trust li { font-size: 0.9rem; color: var(--ink-soft); display:flex; align-items:center; gap:0.5rem; padding-block:0.3rem; }
.trust li::before { content:""; width:7px; height:7px; background: var(--brass); border-radius: 1px; flex:none; rotate: 45deg; }

/* ---------- generic intro / two-col ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.sec-head { max-width: 60ch; margin-bottom: 2.8rem; }
.sec-head h2 { margin-bottom: 1rem; }

.panel-green { background: var(--green); color: #ece9df; }
.panel-green h2, .panel-green h3 { color: #fff; }
.panel-green .lede, .panel-green p { color: #d4ddd2; }
.panel-dark { background: var(--ink); color: #e7e1d6; }
.panel-dark h2 { color: #fff; }

/* ---------- services ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.svc { background: var(--paper); padding: 1.7rem 1.6rem; }
.svc h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.svc p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }
.svc .num { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--brass); display:block; margin-bottom: 0.7rem; }

/* ---------- process ---------- */
.steps { counter-reset: step; display: grid; gap: 1.6rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start;
  padding-bottom: 1.6rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step .n { counter-increment: step; font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  color: var(--green); width: 2.6rem; height: 2.6rem; border: 1.5px solid var(--green);
  border-radius: 50%; display: grid; place-items: center; flex: none; }
.panel-green .step { border-color: rgba(255,255,255,.16); }
.panel-green .step .n { color: #fff; border-color: rgba(255,255,255,.5); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.97rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: start; }
.piece { }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.piece.wide .ba img { aspect-ratio: 3/2; }
.ba .lab { position: absolute; top: 0.6rem; left: 0.6rem; font-family: var(--sans); font-size: 0.66rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.28rem 0.55rem;
  border-radius: 2px; background: color-mix(in srgb, var(--ink) 78%, transparent); color: var(--paper); }
.ba figure.after .lab { background: var(--green); }
.piece-cap { margin-top: 1rem; }
.piece-cap h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.piece-cap .meta { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass);
  font-weight: 600; margin-bottom: 0.5rem; }
.piece-cap p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }

.feat { display:grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.feat img { width:100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); border:1px solid var(--line); }

/* ---------- figures / images ---------- */
.fig { margin: 0; }
.fig img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); object-fit: cover; }
.fig.tall img { aspect-ratio: 4/5; }
.fig.wide img { aspect-ratio: 3/2; }
.fig figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- care guides ---------- */
.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.guide { background: var(--cream); padding: 1.9rem 1.8rem; }
.guide h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.guide p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.guide + .guide { }

/* ---------- quote form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; }
.field label .opt { color: var(--ink-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 0.8rem 0.9rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent); }
.field .hint { font-size: 0.82rem; color: var(--ink-faint); }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--cream);
  padding: 1.4rem; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.drag { border-color: var(--green); background: color-mix(in srgb, var(--green) 5%, var(--cream)); }
.dropzone b { font-weight: 600; }
.dropzone small { display:block; color: var(--ink-faint); margin-top: 0.3rem; font-size: 0.84rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.thumbs figure { position: relative; margin: 0; }
.thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.thumbs button { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; font-size: 0.8rem; line-height: 1; cursor: pointer; }
.honey { position: absolute; left: -9999px; }
.form-note { font-size: 0.88rem; color: var(--ink-faint); margin-top: 0.4rem; }
.form-status { padding: 1rem 1.1rem; border-radius: var(--r); font-size: 0.95rem; margin-top: 1.1rem; display: none; }
.form-status.ok { display:block; background: color-mix(in srgb, var(--green) 12%, var(--cream)); border:1px solid var(--green); color: var(--green-dark); }
.form-status.err { display:block; background: #f7e7e0; border:1px solid #b5562f; color: #8a3a1c; }

.aside-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; }
.aside-card h3 { margin-bottom: 0.9rem; }
.aside-card dl { margin: 0; display: grid; gap: 0.9rem; }
.aside-card dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--brass); font-weight: 600; }
.aside-card dd { margin: 0.1rem 0 0; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { margin-bottom: 1rem; }
.cta .lede { margin-inline: auto; margin-bottom: 2rem; }
.cta .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9bfad; }
.site-foot a { color: #e7e1d6; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 4rem 2.5rem; }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { color: #9b9281; max-width: 30ch; margin-top: 1rem; font-size: 0.95rem; }
.foot-col h4 { font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: #8f8674; font-weight: 600; margin-bottom: 1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.foot-col address { font-style: normal; font-size: 0.95rem; line-height: 1.7; color: #cabfad; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem 2.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.84rem; color: #8f8674; }

/* ---------- reveal (only hidden when JS is on, so no-JS still shows content) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--paper); flex-direction: column;
    align-items: stretch; gap: 0; padding: 0.5rem var(--gut) 1.5rem; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: 0 20px 30px -24px rgba(0,0,0,.4); }
  .nav.open { transform: none; }
  .nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav a.btn { margin-top: 1rem; border-bottom: 1.5px solid var(--green); }
  .nav a:not(.btn)::after { display: none; }
  .menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
    cursor: pointer; padding: 0.5rem; }
  .menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-fig img { height: clamp(300px, 62vw, 460px); }
  .hero-tag { position: static; transform: none; margin-top: 1rem; max-width: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .svc-list, .guides { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .display { font-size: clamp(2.3rem, 11vw, 3rem); }
}
