:root {
  --sand: #f6f1e7;
  --sand-2: #ece3d2;
  --paper: #fffdf8;
  --ink: #1d2a2b;
  --ink-2: #4a5859;
  --muted: #7b8786;
  --teal: #0f5c5a;
  --teal-2: #0b4442;
  --coral: #e0734f;
  --line: #ddd3c0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 42, 43, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Announcement + header */
.announce { background: var(--teal-2); color: #e9f3f1; font-size: .85rem; text-align: center; padding: 8px 16px; }
.announce strong { color: #fff; }

header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 231, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
.logo small { font-family: var(--sans); font-size: .7rem; color: var(--muted); display: block; margin-top: -6px; letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle { display: none; }
.nav-links { display: none; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--teal); }
.cart-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.cart-count { background: var(--coral); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .75rem; padding: 0 6px; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .cart-btn { margin-left: 8px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--coral); margin-bottom: 12px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art { background: linear-gradient(160deg, #fbe6c9, #f3c9a4 55%, #e9a982); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.trust { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; color: var(--ink-2); font-size: .92rem; }
.trust div { display: flex; align-items: center; gap: 8px; }
.trust svg { color: var(--teal); flex: none; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 72px 0 80px; } }

/* Sections */
section { padding: 56px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); max-width: 36em; margin: 0; }
.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Product grid */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-art { background: var(--sand-2); padding: 20px; height: 250px; display: flex; justify-content: center; }
.card-art svg { height: 100%; width: auto; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; }
.from { color: var(--muted); }
.from strong { color: var(--ink); font-size: 1.1rem; }
.arrow { color: var(--teal); font-weight: 600; }
.tag { align-self: flex-start; display: inline-block; background: #fde3d8; color: #9a3d1f; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }

/* Steps */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--sand); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Measure guide */
.measure-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .measure-grid { grid-template-columns: 1fr 1fr; } }
.tabs { display: inline-flex; background: var(--sand-2); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: 600 .92rem var(--sans); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.measure-panel ol { padding-left: 1.2em; margin: 0 0 1em; }
.measure-panel li { margin-bottom: 10px; color: var(--ink-2); }
.measure-panel li strong { color: var(--ink); }
.note { background: #e3efec; border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 8px; font-size: .93rem; color: var(--ink-2); }
.measure-art { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* Features */
.features { display: grid; gap: 18px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 4px 0; }
.feature svg { color: var(--coral); margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* Contact band */
.contact-band { background: var(--teal); color: #e7f2f0; border-radius: 24px; padding: 36px 24px; display: grid; gap: 24px; }
.contact-band h2 { color: #fff; }
.contact-band a { color: #fff; }
.contact-list { display: grid; gap: 10px; }
.contact-list div { display: flex; gap: 10px; align-items: center; }
@media (min-width: 860px) { .contact-band { grid-template-columns: 1.2fr 1fr; padding: 48px; align-items: center; } }

/* Footer */
footer.site { padding: 40px 0 28px; color: var(--muted); font-size: .9rem; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
footer.site h4 { color: var(--ink); margin: 0 0 10px; font-size: .95rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 6px; }
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--teal); }
.copy { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }

/* Configurator */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); }
.config { display: grid; gap: 32px; padding: 20px 0 64px; align-items: start; }
@media (min-width: 940px) { .config { grid-template-columns: 1fr 1fr; } .config-preview { position: sticky; top: 92px; } }
.config-preview { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.preview-stage { background: linear-gradient(180deg, #eaf3f6, #f6efe3); border-radius: 14px; padding: 24px; display: grid; place-items: center; min-height: 320px; }
.preview-stage svg { width: min(100%, 360px); height: auto; }
.preview-meta { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: .88rem; }
.config-form h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.config-form .lead { color: var(--ink-2); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-weight: 700; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
legend .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.field { display: block; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
label.field input, label.field select, label.field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 500 1rem var(--sans); background: var(--paper); color: var(--ink);
}
label.field input:focus, label.field select:focus, label.field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 92, 90, .15); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.err { color: #b3261e; font-size: .82rem; margin-top: 6px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label {
  display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: var(--paper);
  font-weight: 600; font-size: .92rem; height: 100%;
}
.choice label small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.choice input:checked + label { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 92, 90, .15); }
.choice input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch input { position: absolute; opacity: 0; }
.swatch { position: relative; }
.swatch label { display: block; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.swatch input:checked + label { box-shadow: 0 0 0 2px var(--teal); }
.swatch input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 3px; }
.swatch-name { font-size: .88rem; color: var(--ink-2); margin-top: 8px; }
.price-box { background: var(--ink); color: #fff; border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; }
.price-line .big { font-family: var(--serif); font-size: 2rem; }
.price-box .qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ffffff55; background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.qty output { min-width: 24px; text-align: center; font-weight: 700; }
.price-box small { color: #b9c6c5; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .3s; z-index: 50; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: #ffd2bf; font-weight: 600; }

/* Quote page */
.quote { display: grid; gap: 28px; padding: 24px 0 64px; align-items: start; }
@media (min-width: 940px) { .quote { grid-template-columns: 1.3fr 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item:last-child { border-bottom: 0; }
.line-thumb { background: var(--sand-2); border-radius: 10px; padding: 6px; }
.line-item h3 { font-size: 1.05rem; margin: 0 0 4px; }
.line-item ul { list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .86rem; }
.line-price { text-align: right; font-weight: 700; }
.link-btn { background: none; border: 0; color: #b3261e; font: 600 .82rem var(--sans); cursor: pointer; padding: 0; margin-top: 8px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); }
.totals .grand { font-weight: 700; color: var(--ink); font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.empty { text-align: center; padding: 40px 10px; color: var(--ink-2); }
.stack { display: grid; gap: 14px; }
.send-row { display: grid; gap: 10px; }
@media (min-width: 520px) { .send-row { grid-template-columns: 1fr 1fr; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 899.98px) {
  body { overflow-wrap: anywhere; }
  img, video { max-width: 100%; height: auto; }
  iframe, embed, object { max-width: 100%; }
  section[id] { scroll-margin-top: 76px; }

  .announce, .nav-links a, .cart-btn, .trust, .card-body p, .card-foot,
  .step p, .tabs button, .note, .feature p, footer.site, footer.site h4,
  .breadcrumb, .preview-meta, label.field, .hint, .err, .choice label,
  .choice label small, .swatch-name, .price-box small, .line-item ul, .link-btn { font-size: 1rem; }

  .logo, .nav-toggle, .nav-links a, .cart-btn, .btn, .tabs button, summary,
  .choice label, label.field :is(input, select, textarea), .qty button, .link-btn,
  .contact-list a, footer.site a, .breadcrumb a, .hint a, .toast a {
    min-width: 44px; min-height: 44px;
  }
  .contact-list a, footer.site a, .breadcrumb a, .hint a, .toast a {
    display: inline-flex; align-items: center; max-width: 100%;
  }

  .nav { position: relative; flex-wrap: wrap; gap: 8px; height: auto; min-height: 68px; padding-block: 8px; }
  .logo { gap: 8px; }
  .logo svg, .cart-count { flex-shrink: 0; }
  .nav-toggle:not([hidden]) {
    display: grid; place-items: center; margin-left: auto; padding: 0;
    border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer;
  }
  .nav-toggle[aria-expanded="false"] .close-icon,
  .nav-toggle[aria-expanded="true"] .menu-icon { display: none; }
  .nav-links { display: flex; flex-wrap: wrap; flex: 1 0 100%; gap: 4px; margin: 0; }
  .nav-toggle:not([hidden]) + .nav-links {
    position: absolute; inset-inline: 16px; top: 100%; display: grid;
    max-height: min(320px, 60vh); overflow-y: auto; padding: 8px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .nav-toggle[aria-expanded="false"]:not([hidden]) + .nav-links { display: none; }
  .nav-links a { display: flex; align-items: center; padding: 6px 12px; border-radius: 8px; }
  .nav-links a:is(:hover, :focus-visible) { background: var(--sand); }
  .cart-btn { margin-left: 0; padding-inline: 10px; }

  .tabs { display: flex; width: fit-content; max-width: 100%; }
  .tabs button { flex: 1; padding-inline: 12px; }
  details { padding-block: 6px; }
  summary { align-items: center; }
  .card-foot, .preview-meta, .price-line, .toast { flex-wrap: wrap; gap: 8px 16px; }

  .config, .quote, .preview-stage { grid-template-columns: minmax(0, 1fr); }
  .config-preview, .panel { padding: clamp(14px, 4vw, 22px); }
  .preview-stage { min-height: 0; padding: clamp(12px, 4vw, 24px); }
  fieldset { min-inline-size: 0; }
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
  .qty button { width: 44px; height: 44px; }
  .line-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
}

@media (min-width: 720px) and (max-width: 899.98px) {
  .nav-toggle:not([hidden]) + .nav-links { inset-inline: 28px; }
}

@media (max-width: 400px) {
  .extras-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .nav { gap: 6px; }
  .logo span { font-size: 1.3rem; }
  .logo small { display: none; }
  .logo svg { width: 26px; height: 26px; }
  .cart-btn { padding-inline: 8px; }
}

@media (max-width: 350px) {
  .logo svg { display: none; }
}
