/* ==========================================================================
   Design system: [Brand] — factory-direct custom furniture
   Colours are checked for WCAG AA contrast. Change the tokens below to restyle.
   ========================================================================== */


:root {
  --ink: #2E241C;          /* main text */
  --muted: #5C4C3E;        /* secondary text (7.1:1 on cream) */
  --label: #76563A;        /* small caps labels (5.7:1 on cream) */
  --cream: #F4EEE4;        /* page background */
  --cream-2: #FBF8F2;      /* alternate sections */
  --line: #D9CDBB;         /* borders */
  --tone: #E3D6C3;         /* image placeholders */
  --dark: #1E1611;         /* hero & dark sections */
  --on-dark: #F4EEE4;
  --on-dark-muted: #E0D4C3;
  --on-dark-label: #D8B48A;
  --accent: #8A5A32;       /* buttons (white text 5.5:1) */
  --accent-strong: #6F4626;
  --focus: #C7792F;

  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-display: calc(clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem) * var(--fs-scale, 1));
  --fs-page: calc(clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem) * var(--fs-scale, 1));
  --fs-section: calc(clamp(1.9rem, 1.4rem + 1.8vw, 3rem) * var(--fs-scale, 1));
  --fs-card: calc(clamp(1.45rem, 1.3rem + .5vw, 1.75rem) * var(--fs-scale, 1));
  --fs-lead: calc(clamp(1.05rem, 1rem + .25vw, 1.2rem) * var(--fs-scale, 1));
  --space-section: clamp(64px, 8vw, 104px);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: calc(1rem * var(--fs-scale, 1)); line-height: 1.7; color: var(--ink); background: var(--cream); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Type ---------- */
.eyebrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--label); font-weight: 500; }
.h-display, .h-page, .h-section, .h-card, .h-sub, .card__title, .logo { font-family: var(--font-display); }
.h-display { font-size: var(--fs-display); line-height: 1.04; color: var(--on-dark); }
.h-page { font-size: var(--fs-page); line-height: 1.08; color: var(--on-dark); max-width: 22ch; }
.h-page--dark { color: var(--ink); max-width: none; }
.h-section { font-size: var(--fs-section); line-height: 1.1; }
.h-section--light { color: var(--on-dark); }
.h-sub { font-size: 1.9rem; margin-bottom: 18px; }
.h-card { font-size: var(--fs-card); line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--muted); max-width: 62ch; }
.lead--light { color: var(--on-dark-muted); }
.muted-light { color: var(--on-dark-muted); }
.muted-light a { color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font: 500 .98rem/1.2 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #FFF; }
.btn--accent:hover { background: var(--accent-strong); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--outline-light { border-color: var(--on-dark); color: var(--on-dark); }
.btn--outline-light:hover { background: var(--on-dark); color: var(--dark); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--note { margin-top: 36px; gap: 18px; }
.btn-row--note span { color: var(--muted); }
.more-link { margin-top: 28px; }
.more-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent-strong); text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { background: var(--dark); color: var(--on-dark); position: relative; z-index: 10; }
.site-header--overlay { position: absolute; inset: 0 0 auto 0; background: transparent; }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.logo { display: inline-flex; text-decoration: none; color: var(--on-dark); margin-right: auto; }
.logo img { height: 30px; width: auto; }
.nav-desktop ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a, .nav-mobile a { text-decoration: none; font-size: .95rem; letter-spacing: .03em; color: var(--on-dark); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current] { border-color: var(--on-dark-label); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(244,238,228,.5); border-radius: 999px; cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, 86vw); background: var(--dark); border: 1px solid rgba(244,238,228,.2); border-radius: 12px; padding: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li a { display: block; padding: 12px 14px; border-radius: 8px; }
.nav-mobile li a:hover { background: rgba(244,238,228,.08); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: flex-end; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.6) 0%, rgba(20,14,10,.38) 38%, rgba(20,14,10,.9) 100%); }
.hero__inner { position: relative; z-index: 1; padding-top: 150px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero .eyebrow { color: var(--on-dark-label); }
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: breathe 18s ease-in-out infinite alternate; }
  .hero__copy > :not(h1) { animation: rise .7s ease-out both; }
  .hero__copy > .lead { animation-delay: .08s; }
  .hero__copy > .btn-row { animation-delay: .16s; }
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes rise { from { opacity: .01; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.facts__label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.facts__value { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; }
.facts--hero { background: rgba(244,238,228,.2); border: 1px solid rgba(244,238,228,.2); }
.facts--hero li { background: rgba(30,22,17,.78); }
.facts--hero .facts__label { color: var(--on-dark-label); }
.facts--panel { background: var(--line); border: 1px solid var(--line); align-self: start; }
.facts--panel li { background: var(--cream-2); }
.facts--panel .facts__label { color: var(--label); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero__inner { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 18px; }
.page-hero .eyebrow { color: var(--on-dark-label); }
.page-hero--slim .page-hero__inner { padding-top: 20px; padding-bottom: 20px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--on-dark); text-underline-offset: 3px; }

/* ---------- Sections & layout ---------- */
.section { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--cream-2); }
.section--dark { background: var(--dark); color: var(--on-dark); border-top: 0; }
.section--dark .eyebrow { color: var(--on-dark-label); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
.split .section-head { margin-bottom: 28px; }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.list-plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Media ---------- */
.media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tone); }
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 3 / 2; }
.media--tall { aspect-ratio: 4 / 5; }

/* ---------- Cards & panels ---------- */
.card__link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; height: 100%; }
.card__link .media { transition: transform .4s ease; }
.card__link:hover .media { transform: scale(1.02); }
.card__meta { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--label); font-weight: 500; margin-top: 6px; }
.card__title { font-size: var(--fs-card); line-height: 1.2; }
.card__text { color: var(--muted); font-size: .97rem; }
.card__price { font-weight: 500; color: var(--accent-strong); }
.card__more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-strong); font-weight: 500; margin-top: auto; }
.panel { background: var(--cream-2); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.section--alt .panel { background: var(--cream); }
.panel p { color: var(--muted); }

.list-lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.list-lines li { padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.list-lines p { color: var(--muted); font-size: .97rem; }
.list-lines--compact { grid-template-columns: 1fr; margin-top: 8px; }
.list-lines--compact li { padding: 16px 0; }
.list-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.list-checks li, .checks li { position: relative; padding-left: 30px; }
.list-checks li::before, .checks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--accent); }
.checks { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--on-dark-muted); }
.checks li::before { color: var(--on-dark-label); }
.checks--dark { color: var(--muted); }
.checks--dark li::before { color: var(--accent); }
.prose-lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- Steps (numbered grid) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.steps__item { padding: 30px 28px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.steps__num { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .85rem; color: var(--label); }
.steps__item p { color: var(--muted); font-size: .97rem; }

/* ---------- Budget tiers ---------- */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tier { background: var(--cream); border: 1px solid var(--line); padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px 24px; }
.section--alt .tier { background: #FFFDF9; }
.tier__fit { color: var(--label); font-size: .92rem; grid-column: 1; }
.tier ul { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding-left: 18px; color: var(--muted); font-size: .97rem; }

/* ---------- Spec lists ---------- */
.spec-list { margin: 0; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--label); font-weight: 500; padding-top: 3px; }
.spec-list dd { margin: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--cream-2); font-size: .95rem; }
.chip span { color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-current] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip[aria-current] span { color: var(--on-dark-muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-family: var(--font-body); font-size: 1.5rem; color: var(--label); line-height: 1; }
.faq__item[open] summary::after { content: '\2212'; }
.faq__a { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }
.faq-group + .faq-group { margin-top: 56px; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.product__gallery { display: flex; flex-direction: column; gap: 14px; }
.product__thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product__info { display: flex; flex-direction: column; gap: 18px; }
.product__price { font-size: 1.25rem; font-weight: 500; color: var(--accent-strong); }
.product__price span { display: block; font-size: .9rem; font-weight: 400; color: var(--muted); }
.product__custom { color: var(--muted); }
.product__custom strong { color: var(--ink); font-weight: 500; }
.product__sectors { color: var(--muted); font-size: .95rem; }

/* ---------- Prose ---------- */
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-family: var(--font-display); font-size: 2rem; margin-top: 12px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--accent-strong); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose--narrow { max-width: 760px; }
.article { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.article__meta { color: var(--label); font-size: .92rem; }
.note { padding: 14px 18px; background: var(--cream-2); border: 1px solid var(--line); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--dark); color: var(--on-dark); padding: clamp(56px, 7vw, 88px) 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band__inner > div:first-child { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }

/* ---------- Form ---------- */
.rfq { background: var(--cream-2); color: var(--ink); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 18px; }
.rfq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 500; }
.field--full { grid-column: 1 / -1; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: #FFFDF9; border: 1px solid #A8977F; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; width: 100%; }
.field input[type=file] { padding: 10px; background: transparent; border-style: dashed; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rfq__note { font-size: .85rem; color: var(--muted); }
.rfq__note a { color: var(--accent-strong); }
.notice { padding: 14px 18px; background: #FFF4E5; border: 1px solid #E2B77D; border-radius: var(--radius); }
.notice a { color: var(--accent-strong); }
.mini-steps { margin: 0 0 24px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.split--form > div:first-child p a { color: var(--accent-strong); }

/* ---------- Footer ---------- */
.site-footer { background: #231B15; color: var(--on-dark-muted); padding: 72px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid #3D3128; }
.site-footer__about { display: flex; flex-direction: column; gap: 14px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-label); font-weight: 500; margin-bottom: 12px; font-family: var(--font-body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 4px 0; text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .88rem; }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero__inner, .split, .product { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-lines { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .steps, .list-checks, .rfq__grid, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-header__inner { min-height: 72px; gap: 12px; }
  .logo img { height: 24px; }
  .nav-cta { display: none; }
  .hero { min-height: auto; }
  .hero__inner { padding-top: 120px; padding-bottom: 40px; gap: 32px; }
  .facts li { padding: 14px 16px; }
  .facts__value { font-size: 1.2rem; }
  .tier { grid-template-columns: minmax(0, 1fr); }
  .tier ul { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .spec-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .btn-row .btn { flex: 1 1 auto; }
  .mobile-bar { display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--cream-2); border-top: 1px solid var(--line); }
  .mobile-bar .btn--accent { flex: 1; }
  .site-footer { padding-bottom: 24px; }
}

.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }
.notice--error { border-color: #B3261E; background: #FCEEEE; color: #5C1410; }
