/* National Cabinet Source — site styles
   Layout concept: the shop drawing. Cabinet elevations, dimension lines and
   SKU codes from the trade's own paperwork, set against a painted-cabinet green. */
:root {
  --paper: #f5f6f2;      /* cool off-white page */
  --panel: #ffffff;      /* cards and forms */
  --ink: #1b2321;        /* body text */
  --ink-soft: #4d5a56;   /* secondary text */
  --rule: #d6dbd5;       /* hairlines */
  --green: #2c4741;      /* painted cabinet green, primary */
  --green-deep: #1d302c; /* dark bands */
  --brass: #a9834a;      /* hardware brass accent */
  --brass-light: #e3cfa9;
  --error: #9b2c2c;

  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --font-body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --font-spec: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);

  --wrap: 72rem;
  --radius: 4px;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; max-width: 65ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-family: var(--font-spec);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.spec { font-family: var(--font-spec); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.lead { font-size: var(--step-1); color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--brass); color: #1b1407; }
.btn-primary:hover { background: #bf9758; color: #1b1407; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { color: var(--brass); }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-deep); color: #fff; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--green-deep); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--green-deep); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; letter-spacing: 0.02em; }
.brand-name small { display: block; font-family: var(--font-spec); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-light); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid rgba(255,255,255,.35); color: #fff;
  min-height: 44px; padding: 0 0.9rem; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }

.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--green-deep); border-top: 1px solid rgba(255,255,255,.08); padding-bottom: 1rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 0.85rem 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: var(--brass-light); }
.site-nav .btn { margin-top: 1rem; width: 100%; border-bottom: 0; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.6rem; }
  .site-nav a { padding: 0.4rem 0; border: 0; font-size: 0.95rem; }
  .site-nav a:hover { color: var(--brass-light); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass); }
  .site-nav .btn { margin: 0; width: auto; padding: 0 1.1rem; min-height: 42px; color: #1b1407; }
  .site-nav .btn:hover { color: #1b1407; }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { display: grid; gap: 0.8rem; margin-bottom: 2.5rem; max-width: 46rem; }
.band-dark { background: var(--green-deep); color: #e9ece8; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead, .band-dark p { color: #c9d1cd; }
.band-dark .spec { color: #aab6b1; }
.band-white { background: var(--panel); border-block: 1px solid var(--rule); }

/* Hero */
.hero { background: var(--green-deep); color: #fff; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--brass-light); }
.hero .lead { color: #c9d1cd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }
.hero-figure { margin: 0; min-width: 0; position: relative; }
.hero-figure img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero-figure figcaption { margin-top: 0.6rem; font-family: var(--font-spec); font-size: 0.72rem; letter-spacing: .06em; color: #93a29c; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 5fr 6fr; gap: 3.5rem; } }

.trade-strip { border-top: 1px solid rgba(255,255,255,.1); }
.trade-strip ul { list-style: none; margin: 0; padding-block: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.trade-strip li { font-family: var(--font-spec); font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: #c9d1cd; display: flex; align-items: center; gap: .6rem; }
.trade-strip li::before { content: ""; width: 14px; height: 1px; background: var(--brass); }

/* Page hero (interior pages) */
.page-hero { background: var(--green-deep); color: #fff; }
.page-hero .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1rem; }
.page-hero h1 { color: #fff; font-size: var(--step-4); }
.page-hero .lead { color: #c9d1cd; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid > * { min-width: 0; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Brand tiles (home) */
.brand-tile { display: grid; grid-template-rows: auto 1fr; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.brand-tile:hover { border-color: var(--brass); color: inherit; transform: translateY(-2px); }
.brand-tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #e9ebe6; border-bottom: 1px solid var(--rule); }
.brand-tile-body { padding: 1.2rem 1.2rem 1.4rem; display: grid; gap: 0.5rem; align-content: start; }
.brand-tile h3 { font-size: 1.35rem; }
.brand-tile p { color: var(--ink-soft); font-size: 0.95rem; }

.tier { display: inline-block; font-family: var(--font-spec); font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); border: 1px solid var(--rule); padding: 0.15rem 0.5rem; border-radius: 2px; justify-self: start; background: var(--paper); }

/* Benefit list */
.benefit { display: grid; gap: 0.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.band-dark .benefit { border-top-color: rgba(255,255,255,.15); }
.benefit h3 { font-size: 1.3rem; }
.benefit p { color: var(--ink-soft); }

/* Process steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--brass); min-width: 0; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-spec); font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }
.band-dark .steps p { color: #c9d1cd; }

/* CTA band */
.cta-band { background: var(--green); color: #fff; }
.cta-band .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5ddd9; margin-top: .5rem; }

/* Collections */
.collection { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.collection:last-of-type { border-bottom: 0; }
.collection-figure { margin: 0; min-width: 0; }
.collection-figure img { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); }
.collection-figure figcaption { margin-top: .5rem; }
.collection-body { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.collection-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.collection dl { display: grid; gap: 0.9rem; margin: 0.5rem 0 0; }
.collection dt { font-family: var(--font-spec); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.collection dd { margin: 0.2rem 0 0; color: var(--ink-soft); }
@media (min-width: 56rem) {
  .collection { grid-template-columns: 5fr 6fr; gap: 3rem; align-items: start; }
  .collection:nth-of-type(even) .collection-figure { order: 2; }
}
.jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a { font-family: var(--font-spec); font-size: 0.8rem; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.3); padding: .45rem .8rem; border-radius: 2px; }
.jump a:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--font-spec); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td code { font-family: var(--font-spec); color: var(--green); font-weight: 600; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--brass); border-radius: 2px; }
.checklist li::after { content: ""; position: absolute; left: .38rem; top: .45rem; width: .35rem; height: .65rem; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.split { display: grid; gap: 2.5rem; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split figure { margin: 0; }
.split figure img { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); }

/* Forms */
.form-layout { display: grid; gap: 2.5rem; }
.form-layout > * { min-width: 0; }
@media (min-width: 62rem) { .form-layout { grid-template-columns: 7fr 4fr; gap: 3.5rem; align-items: start; } }
.form-card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1rem; }
legend { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 1rem; padding: 0; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.92rem; }
.req { color: var(--brass); }
.hint { font-size: 0.85rem; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(169,131,74,.3); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.error-msg { color: var(--error); font-size: 0.85rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--paper); font-size: 0.95rem; cursor: pointer; }
.choice input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper); }
.form-status.ok { border-color: var(--green); background: #e8efec; }
.form-status.err { border-color: var(--error); background: #f7eaea; color: var(--error); }
.form-status.note { border-color: var(--brass); background: #f6efe2; }
.aside-card { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); }
.aside-card h2 { font-size: 1.5rem; }

/* Things the owner must fill in before launch */
.fill-in { display: inline-block; font-family: var(--font-spec); font-size: 0.9rem; background: #fff6e2; color: #6b4e17; border: 1px dashed var(--brass); padding: 0.1rem 0.45rem; border-radius: 2px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; gap: .25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }

/* Footer */
.site-footer { background: #141d1b; color: #aab6b1; font-size: 0.92rem; }
.site-footer .wrap { padding-block: 3rem 2rem; display: grid; gap: 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-spec); font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #dfe5e2; text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: grid; gap: .4rem; font-size: 0.8rem; color: #84918c; }
.footer-legal p { max-width: none; }
.band-dark .eyebrow, .band-dark p.eyebrow { color: var(--brass-light); }

/* FAQ (answer-engine friendly: each question is a heading with a direct answer) */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.15rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.2rem; }
.faq summary::after { content: "+"; font-family: var(--font-spec); font-size: 1.4rem; color: var(--brass); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 1.25rem; display: grid; gap: .6rem; color: var(--ink-soft); }
.breadcrumb { font-family: var(--font-spec); font-size: 0.75rem; letter-spacing: .06em; color: #93a29c; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #5f716b; }
.breadcrumb a { color: #c9d1cd; text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-light); }
.email-big { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem); word-break: break-word; }
