/* DesignMAX Studio — marketing site styles.
   Lives under /site/ so nothing here collides with the proxied app's /assets/. */

:root {
  --linen: #f6f2ea;      /* page */
  --paper: #ffffff;      /* cards */
  --sand: #ece5d8;       /* soft panels */
  --rule: #ddd4c4;
  --ink: #1b2420;
  --muted: #56625c;
  --forest: #24453a;     /* primary */
  --forest-2: #1b362d;   /* primary hover */
  --sage: #4f7a68;       /* cabinet finish in illustrations */
  --sage-2: #6f9584;
  --brass: #b98a3e;      /* accent — lines, pulls, eyebrows; never body text */
  --brass-ink: #8a6424;  /* brass dark enough for text */
  --stone: #cfc6b6;      /* countertop */
  --on-forest: #f6f2ea;
  --shadow: 0 18px 50px rgba(27, 36, 32, 0.10);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --linen: #131916;
    --paper: #1b2320;
    --sand: #222c28;
    --rule: #34403b;
    --ink: #eef0ea;
    --muted: #a9b4ae;
    --forest: #8fc2ab;
    --forest-2: #a9d4c0;
    --sage: #3f6a59;
    --sage-2: #578371;
    --brass: #d4a65a;
    --brass-ink: #e0b874;
    --stone: #4a4f49;
    --on-forest: #10201a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--paper); padding: 8px 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.eyebrow {
  font: 600 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-ink); margin-bottom: 14px; display: inline-flex; gap: 10px; align-items: center;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brass); }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 56ch; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: var(--on-forest); }
.btn-primary:hover { background: var(--forest-2); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--on-forest); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.arrow { transition: transform .15s; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }
.text-link { color: var(--forest); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Top strip */
.strip { background: var(--forest); color: var(--on-forest); font-size: .88rem; }
.strip .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; min-height: 40px; }
.strip a { color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; }
.strip a:hover { text-decoration: underline; }
@media (max-width: 640px) { .strip .msg-long { display: none; } }
@media (max-width: 520px) { .strip .wrap { justify-content: center; } .strip a { display: none; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--linen) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font: 500 1.35rem/1 var(--serif); letter-spacing: -0.01em; }
.wordmark b span { font-weight: 800; color: var(--forest); }
.wordmark small { font: 600 .62rem/1 var(--sans); letter-spacing: .34em; color: var(--brass-ink); margin-top: 5px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.signin { text-decoration: none; font-weight: 600; color: var(--ink); }
.signin:hover { color: var(--forest); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--rule); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--linen); border-bottom: 1px solid var(--rule); padding: 8px 16px 20px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.menu-panel a { padding: 12px 4px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule); }
.menu-panel .btn { margin-top: 12px; border-bottom: 0; }
@media (max-width: 920px) {
  .nav, .header-actions { display: none; }
  .menu { display: block; }
}

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--forest); font-weight: 500; }
.hero .lede { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 18px; height: 18px; color: var(--forest); flex-shrink: 0; }
.hero-art { background: var(--sand); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
@media (max-width: 920px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* Illustration palette (inline SVG classes) */
.i-wall { fill: var(--paper); }
.i-cab { fill: var(--sage); stroke: var(--ink); stroke-width: 1.4; }
.i-cab2 { fill: var(--sage-2); stroke: var(--ink); stroke-width: 1.4; }
.i-line { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.i-thin { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .55; }
.i-pull { fill: var(--brass); }
.i-counter { fill: var(--stone); stroke: var(--ink); stroke-width: 1.4; }
.i-toe { fill: var(--ink); opacity: .78; }
.i-glass { fill: color-mix(in srgb, var(--paper) 70%, var(--sage-2)); stroke: var(--ink); stroke-width: 1.2; }
.i-dim { fill: none; stroke: var(--brass); stroke-width: 1.4; }
.i-dimtext { fill: var(--brass-ink); font: 600 12px var(--sans); }
.i-card { fill: var(--paper); stroke: var(--rule); stroke-width: 1; }
.i-cardtitle { fill: var(--ink); font: 700 13px var(--sans); }
.i-cardtext { fill: var(--muted); font: 500 11px var(--sans); }
.i-ok { fill: var(--forest); }
.i-oktick { fill: none; stroke: var(--on-forest); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.i-floor { fill: var(--sand); }
.i-room { fill: var(--paper); stroke: var(--ink); stroke-width: 6; }
.i-plan { fill: var(--sage-2); stroke: var(--ink); stroke-width: 1.2; }
.i-label { fill: var(--on-forest); font: 700 10px var(--sans); }
.i-swing { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }

/* Sections */
section { scroll-margin-top: 90px; }
.band { padding: 88px 0; }
.band-alt { background: var(--paper); border-block: 1px solid var(--rule); }
@media (max-width: 640px) { .band { padding: 64px 0; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.band-alt .steps li { background: var(--linen); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font: 600 .85rem/1 var(--sans); letter-spacing: .14em;
  color: var(--brass-ink); margin-bottom: 18px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Store finder */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.store {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.store:hover { border-color: var(--forest); box-shadow: var(--shadow); transform: translateY(-2px); }
.store-logo {
  width: 96px; height: 72px; border-radius: 10px; background: #fff; border: 1px solid var(--rule);
  display: grid; place-items: center; padding: 8px; overflow: hidden;
}
.store-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.store-logo-dark { background: #1b2420; border-color: transparent; }
.store-mono { background: var(--forest); color: var(--on-forest); border-color: transparent; font: 600 1.6rem/1 var(--serif); letter-spacing: .02em; }
.store-body { display: grid; gap: 3px; min-width: 0; }
.store-body b { font: 600 1.15rem/1.25 var(--serif); }
.store-where { color: var(--muted); font-size: .92rem; }
.store-url { color: var(--forest); font-weight: 600; font-size: .92rem; margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.store:hover .arrow { transform: translateX(3px); }
@media (max-width: 400px) { .store { grid-template-columns: 72px 1fr; } .store-logo { width: 72px; height: 56px; } }

/* Door styles */
.styles-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.door-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 18px 18px; text-align: center; }
.door-card svg { width: 100%; max-width: 120px; margin: 0 auto 16px; }
.door-card h3 { font-size: 1.05rem; }
.door-card p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
@media (max-width: 1020px) { .styles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .styles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Finishes */
.finishes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; margin-top: 56px; }
.swatch { text-align: center; font-size: .9rem; font-weight: 500; }
.swatch span { display: block; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--rule); margin-bottom: 10px; box-shadow: inset 0 -10px 18px rgba(0,0,0,.08); }
@media (max-width: 820px) { .finishes { grid-template-columns: repeat(4, 1fr); } }
.note { color: var(--muted); font-size: .95rem; margin-top: 28px; }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.band-alt .room { background: var(--linen); }
.room { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 22px; }
.room svg { width: 64px; height: 64px; margin-bottom: 18px; color: var(--forest); }
.room h3 { margin-bottom: 8px; }
.room p { color: var(--muted); font-size: .96rem; }
@media (max-width: 920px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rooms { grid-template-columns: 1fr; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-art { background: var(--sand); border-radius: 22px; padding: 18px; }
.checks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--forest); margin-top: 2px; }
.checks b { display: block; }
.checks span { color: var(--muted); }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } .split-art { order: -1; } }

/* Why tiles */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why div { border-top: 3px solid var(--brass); padding-top: 22px; }
.why h3 { margin-bottom: 10px; }
.why p { color: var(--muted); }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 600 1.12rem/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 400 1.6rem/1 var(--sans); color: var(--brass-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 70ch; }

/* CTA band */
.cta-band { background: var(--forest); color: var(--on-forest); border-radius: 26px; padding: 64px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band p { opacity: .85; margin-top: 12px; font-size: 1.08rem; }
.cta-band .cta-row { margin: 0; justify-content: flex-end; }
.cta-band .btn-primary { background: var(--on-forest); color: var(--forest); }
.cta-band .btn-primary:hover { background: var(--brass); color: #1b2420; }
.cta-band .btn-outline { border-color: var(--on-forest); color: var(--on-forest); }
.cta-band .btn-outline:hover { background: var(--on-forest); color: var(--forest); }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 44px 26px; } .cta-band .cta-row { justify-content: flex-start; } }

/* Footer */
.cta-wrap { margin-top: 88px; }
.site-footer { padding: 72px 0 36px; margin-top: 88px; border-top: 1px solid var(--rule); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid p { color: var(--muted); font-size: .95rem; margin-top: 16px; max-width: 34ch; }
.footer-grid h4 { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); margin: 6px 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink); font-size: .96rem; }
.footer-grid a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: .88rem; }
.footer-base a { color: inherit; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid > :first-child { grid-column: 1 / -1; } }
