/* ===== Design tokens: edit these to rebrand ===== */
:root {
  --cream: #fbf5ea; --paper: #fffdf8; --beige: #efe3cc; --line: #dccbab;
  --gold: #d9a441; --gold-text: #8a5a12;
  --brown: #3f2718; --brown-soft: #6b4e3a;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--brown); background: var(--cream); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--brown); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.muted { color: var(--brown-soft); }

/* Buttons */
.btn { display: inline-block; font: 700 1rem var(--sans); text-decoration: none; text-align: center; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn-solid { background: var(--brown); color: var(--cream); } .btn-solid:hover { background: #5a3a25; }
.btn-gold { background: var(--gold); color: var(--brown); } .btn-gold:hover { background: #e6b556; }
.btn-line { border-color: var(--brown); color: var(--brown); } .btn-line:hover { background: var(--brown); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--brown); } .btn-cream:hover { background: var(--beige); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 0; }
.btn[hidden] { display: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font: 800 1.45rem var(--sans); text-decoration: none; }
.logo span { color: var(--gold-text); }
.logo.light { color: var(--cream); } .logo.light span { color: var(--gold); }
.links { display: flex; align-items: center; gap: 1.6rem; }
.links a:not(.btn) { text-decoration: none; font-weight: 600; padding: .3rem 0; border-bottom: 2px solid transparent; }
.links a:not(.btn):hover, .links a[aria-current] { border-color: var(--gold); }
.links .btn { padding: .5rem 1.1rem; }
.burger { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Image slots: labeled placeholder shows until the photo file exists in /images */
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: linear-gradient(135deg, var(--beige), #e2c88f); aspect-ratio: 4/3; border: 1px solid var(--line); }
.ph::after { content: attr(data-label); position: absolute; inset: auto .8rem .8rem; text-align: center; font-weight: 700; color: var(--brown-soft); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph.wide { aspect-ratio: 5/4; }

/* Sections */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0; }
.hero-in, .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.lead { font-size: 1.15rem; color: var(--brown-soft); }
.page-head { padding: clamp(2rem, 5vw, 3.2rem) 0 .5rem; }
.section { padding: clamp(2.5rem, 6vw, 4.2rem) 0; }
.section.tight { padding: 1.5rem 0 2.5rem; }
.beige { background: var(--beige); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.2rem; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.2rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card .ph { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--brown-soft); font-size: .98rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card .size { font-weight: 700; color: var(--gold-text); margin-bottom: .3rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 1.25rem; }
.why > div { border-left: 4px solid var(--gold); padding: .2rem 0 .2rem 1rem; }
.why p { margin: 0; color: var(--brown-soft); }
.banner { background: var(--brown); color: var(--cream); border-radius: var(--r); padding: clamp(1.6rem, 5vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.banner h2 { margin: 0; max-width: 24ch; }

/* Products page */
.cat { padding: 2.2rem 0 .5rem; scroll-margin-top: 80px; }
.grid-cards { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.info dt { font-weight: 800; margin-top: 1rem; } .info dd { margin: .1rem 0 0; color: var(--brown-soft); }
.notice { background: var(--beige); border-radius: var(--r); padding: .7rem 1rem; font-size: .95rem; }
.form label { display: block; font-weight: 700; margin-top: .5rem; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: .3rem; padding: .75rem 1rem; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); font: 400 1rem var(--sans); color: var(--brown); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold-text); outline: none; }
.form [aria-invalid="true"] { border-color: #a3261a; }
.err { color: #a3261a; font-size: .92rem; font-weight: 700; min-height: 1.2em; margin: .2rem 0 0; }
.form .btn { margin-top: .8rem; }
.result { margin-top: 1.5rem; background: var(--paper); border: 2px solid var(--gold); border-radius: var(--r); padding: 1.2rem; }
.result h3:focus { outline: none; }
.result pre { white-space: pre-wrap; font: 400 .98rem/1.55 var(--sans); background: var(--cream); border-radius: 10px; padding: .9rem 1rem; margin: .8rem 0; }

/* Footer */
.footer { background: var(--brown); color: var(--beige); padding: 3rem 0 1.2rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 2rem; }
.footer h3 { color: var(--cream); margin-bottom: .2rem; }
.footer p { margin-bottom: .9rem; }
.copy { text-align: center; font-size: .88rem; opacity: .8; margin: 2.2rem auto 0; max-width: none; }

/* Floating buttons */
.fab { position: fixed; right: 1.1rem; z-index: 25; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; text-decoration: none; font-size: 1.3rem; box-shadow: 0 2px 8px rgba(63, 39, 24, .25); }
.fab-msg { bottom: 1.1rem; background: var(--gold); color: var(--brown); }
.fab-top { bottom: 4.9rem; background: var(--paper); color: var(--brown); border: 1px solid var(--line); }
.fab[hidden] { display: none; }

@media (max-width: 860px) {
  .hero-in, .split, .contact-grid, .foot-grid, .cards3 { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .burger { display: block; }
  .links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.5rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .links.open { display: flex; }
}
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Multi-product inquiry ===== */
.form fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.form legend { font-weight: 800; font-size: 1.2rem; padding: 0; margin-bottom: .6rem; }
.item-row { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem 1rem; margin-bottom: .9rem; }
.item-head { display: flex; justify-content: space-between; align-items: center; }
.item-head h3 { margin: 0; font-size: 1.05rem; }
.item-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.link-btn { background: none; border: 0; padding: .5rem .2rem; min-height: 44px; font: 700 .95rem var(--sans); color: #a3261a; text-decoration: underline; cursor: pointer; }
.link-btn[hidden] { display: none; }
.form select:disabled { opacity: .6; cursor: not-allowed; }
.form select.fixed:disabled { background: var(--beige); color: var(--brown); opacity: 1; cursor: default; }
.review { background: var(--paper); border: 2px solid var(--gold); border-radius: var(--r); padding: 1.2rem; }
.review h3:focus { outline: none; }
.summary { list-style: none; margin: .6rem 0; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sum-total { display: flex; justify-content: space-between; font-size: 1.2rem; padding: .6rem 0 .2rem; }
.rev-cust { margin: 0; } .rev-cust dt { font-weight: 800; margin-top: .6rem; } .rev-cust dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 560px) { .item-fields { grid-template-columns: 1fr; } }

/* ===== Send step ===== */
.send-notice { background: var(--beige); border-left: 4px solid var(--gold); border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0; }
.setup-warn { background: #fdebe7; border-left: 4px solid #a3261a; border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0; }
.setup-warn[hidden] { display: none; }
.setup-warn code { font-size: .9em; }
.send-row .btn { flex: 1 1 14rem; padding: 1rem 1.2rem; }
.preview { margin: .6rem 0; } .preview summary { cursor: pointer; font-weight: 700; padding: .4rem 0; }
.preview pre { white-space: pre-wrap; font: 400 .95rem/1.55 var(--sans); background: var(--cream); border-radius: 10px; padding: .9rem 1rem; margin: .4rem 0 0; }
