/* Shared WOODAAN styles: tokens, nav, buttons, footer, enquiry sheet, WhatsApp button. */
:root {
  --paper: #ffffff;
  --mist: #eef2ec;
  --ink: #1a1d19;
  --mute: #636a60;
  --hush: #bdbab3;
  --night: #1d241d;
  --night-2: #2a332a;
  --on-night: #f5f4f0;
  --on-night-mute: #aab5a7;
  --sun: #ff725e;
  --sun-deep: #e4573f;
  --link: #b4432c;
  --line: #dfe5dc;
  --sage: #9eb098;           /* brand sage, from the WOODAAN brochure */
  --sage-deep: #6f8569;
  --sage-tint: #e7ede4;
  --wa: #1fa855;
  --danger: #b0453a;

  --f-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mark: "Marcellus", "Trajan Pro", Georgia, serif;

  --t-hero: clamp(3rem, 9vw, 6.75rem);
  --t-h2: clamp(2.25rem, 5.6vw, 4.25rem);
  --t-h3: clamp(1.5rem, 2.6vw, 2rem);
  --t-lead: clamp(1.125rem, 1.7vw, 1.4rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--t-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -0.025em; line-height: 1.04; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-size: var(--t-small); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun-deep); }
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--mute); max-width: 38ch; }
.mark { font-family: var(--f-mark); letter-spacing: 0.14em; font-weight: 400; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font: 600 1rem/1 var(--f-body); padding: .85em 1.35em; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #33312c; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178c46; }
.textlink { color: var(--link); font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 52px; }
.nav .mark { font-size: 1.15rem; text-decoration: none; margin-right: auto; color: var(--ink); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: .82rem; color: var(--mute); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }
.nav .btn { font-size: .8rem; padding: .55em 1em; }
.nav .nav-products { display: none; font-size: .82rem; color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 780px) { .nav ul { display: none; } .nav .nav-products { display: inline; } }

/* Footer */
.site-footer { background: var(--mist); padding-block: 48px 36px; color: var(--mute); font-size: var(--t-small); border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer .mark { color: var(--ink); font-size: 1.15rem; display: block; margin-bottom: 6px; }
.site-footer b { display: block; color: var(--ink); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--mute); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.site-footer .powered { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid #d6d3cc; color: var(--ink); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.powered .pb-label { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.powered .pb-brand { font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.site-footer .powered:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); text-decoration: none; }
.site-footer .powered:hover .pb-label { color: var(--hush); }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Floating WhatsApp button (round, bottom-right, like Indocasa) */
.wa-float { position: fixed; z-index: 120; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; display: grid; place-items: center; background: #25d366; color: #fff; border: 0; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.06); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 600px) { .wa-float { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; } }

/* Enquiry sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,11,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); opacity: 0; transition: opacity .25s; }
.sheet-backdrop.open { opacity: 1; }
.sheet { width: min(520px, 100%); max-height: 100%; overflow-y: auto; background: var(--paper); border-radius: 26px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 30px 80px rgba(0,0,0,.25); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.sheet-backdrop.open .sheet { transform: none; }
.sheet-head { display: flex; gap: 14px; align-items: start; justify-content: space-between; }
.sheet-head h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.sheet-head p { color: var(--mute); margin-top: 4px; font-size: .95rem; }
.sheet-close { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--mist); font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.sheet form { display: grid; gap: 14px; margin-top: 20px; }
.sheet .field { display: grid; gap: 6px; min-width: 0; }
.sheet .field label { font-size: var(--t-small); font-weight: 600; }
.sheet .field input, .sheet .field select, .sheet .field textarea { font: 500 1rem var(--f-body); padding: .75em .9em; border-radius: 12px; border: 1px solid #d6d3cc; background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.sheet .field textarea { resize: vertical; min-height: 84px; }
.sheet .field [aria-invalid="true"] { border-color: var(--danger); }
.sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sheet .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sheet .msg { font-size: var(--t-small); color: var(--mute); }
.sheet .msg.err { color: var(--danger); font-weight: 600; }
.sheet .done { display: grid; gap: 12px; margin-top: 18px; }
.sheet .done .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; }
.sheet .done p { color: var(--mute); }
.sheet .contact-alt { margin-top: 14px; font-size: var(--t-small); color: var(--mute); }
.sheet input[readonly] { background: var(--mist); border-color: transparent; font-weight: 600; }
.sheet button[type="submit"] { width: 100%; padding-block: 1em; }

/* WhatsApp pre-chat: compact panel docked above the floating button, page stays usable */
.sheet-backdrop.dock { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; place-items: end; padding: 0 calc(24px + env(safe-area-inset-right, 0px)) calc(92px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.dock .sheet { pointer-events: auto; width: min(360px, 100%); max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); border-radius: 20px; padding: 22px 22px 18px; box-shadow: 0 18px 48px rgba(0,0,0,.22); transform: translateY(12px); transform-origin: bottom right; }
.dock .sheet-head h2 { font-size: 1.4rem; }
.dock .sheet-head p { font-size: .8rem; line-height: 1.55; margin-top: 6px; }
.dock .sheet-close { width: 30px; height: 30px; font-size: 1.1rem; }
.dock form { gap: 12px; margin-top: 14px; }
.dock .two { display: contents; }
.dock .field label { font-size: .75rem; }
.dock .field input, .dock .field select { padding: .6em .8em; font-size: .95rem; border-radius: 10px; }
.dock .field textarea { min-height: 70px; font-size: .9rem; border-radius: 10px; }
.dock [data-row="product"] { order: 0; } .dock [data-row="name"] { order: 1; } .dock [data-row="type"] { order: 2; }
.dock [data-row="city"] { order: 3; } .dock [data-row="phone"] { order: 4; } .dock [data-row="finish"] { order: 5; }
.dock [data-row="message"] { order: 6; } .dock .hp { order: 7; } .dock #leadSubmit { order: 8; } .dock #leadMsg { order: 9; }
.dock #leadSubmit { background: #25d366; color: #fff; border-radius: 12px; font-size: .95rem; }
.dock #leadSubmit:hover { background: #1ebe5b; }
@media (max-width: 600px) { .sheet-backdrop.dock { padding: 0 calc(16px + env(safe-area-inset-right, 0px)) calc(80px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)); } .dock .sheet { width: 100%; } }
@media (max-width: 440px) { .sheet .two { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Drawn products (wardrobes, custom blocks) use the selected finish as --c */
.draw { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(#fbfaf7, #efede7); }
.draw::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 7%; height: 14px; background: radial-gradient(closest-side, rgba(0,0,0,.16), transparent); }
[data-card] { --c: #f2b300; }
.door { position: relative; background: var(--c); border-radius: 2px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 85%, #000); transition: background-color .5s var(--ease); overflow: hidden; }
.door::before { content: ""; position: absolute; inset: 11% 14%; border: 3px solid; border-color: color-mix(in srgb, var(--c) 70%, #000) color-mix(in srgb, var(--c) 65%, #fff) color-mix(in srgb, var(--c) 65%, #fff) color-mix(in srgb, var(--c) 70%, #000); transition: border-color .5s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.38) 42%, transparent 54%); }
.door.flat::before { display: none; }
.door .h { position: absolute; top: 44%; width: 3px; height: 14%; background: #2a2926; border-radius: 2px; z-index: 1; }
.door .h.r { right: 7%; } .door .h.l { left: 7%; }
.wardrobe { position: relative; z-index: 1; height: 80%; aspect-ratio: var(--ar, 1); display: grid; gap: 3px; grid-template-columns: repeat(var(--n), 1fr); grid-template-rows: var(--rows, 1fr); padding: 3px; background: color-mix(in srgb, var(--c) 55%, #000); border-radius: 3px; transition: background-color .5s; }
.wardrobe .loft { height: 100%; }
.wardrobe.sliding { grid-template-columns: 1fr 1fr; gap: 0; }
.wardrobe.sliding .door:nth-child(2) { margin-left: -4%; box-shadow: -6px 0 10px rgba(0,0,0,.15), inset 0 0 0 1px color-mix(in srgb, var(--c) 85%, #000); }
.blocks { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 10px; height: 70%; }
.blocks .door { width: 56px; height: 78px; }
.blocks .door:nth-child(2) { width: 74px; height: 112px; }
.blocks .door:nth-child(3) { width: 92px; height: 150px; }
.blocks .door:nth-child(4) { width: 64px; height: 96px; }

/* Collections: looping lifestyle band + highlighted products in that finish */
.coll { display: grid; gap: 22px; }
.coll + .coll { margin-top: clamp(48px, 7vw, 88px); }
.coll-film { position: relative; overflow: hidden; aspect-ratio: 21 / 9; max-width: 100%; background: var(--night); color: #fff; display: flex; align-items: flex-end; }
.coll.compact .coll-film { aspect-ratio: 3 / 1; border-radius: 26px; }
.coll-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coll-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, transparent 70%), linear-gradient(transparent 55%, rgba(0,0,0,.35)); }
.coll-copy { position: relative; z-index: 1; width: 100%; padding-block: clamp(24px, 4vw, 56px); display: grid; gap: 6px; }
.coll-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.coll-copy h3 { font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: -0.03em; display: flex; align-items: center; gap: .3em; }
.coll-copy h3::before { content: ""; width: .42em; height: .42em; border-radius: 50%; background: var(--coll); box-shadow: 0 0 0 3px rgba(255,255,255,.85); flex: none; }
.coll-line { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 600; }
.coll-desc { max-width: 44ch; color: rgba(255,255,255,.85); margin-top: 4px; }
.coll.compact .coll-copy h3 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.coll-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cprod { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; background: var(--mist); border-radius: 22px; overflow: hidden; min-width: 0; transition: transform .3s var(--ease); }
.cprod:hover { transform: translateY(-3px); }
.cprod figure { margin: 0; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; position: relative; background: #fff; }
.cprod img { width: 100%; height: 100%; object-fit: cover; }
.cprod img.contain { object-fit: contain; }
.cprod > div { padding: 14px 18px 18px; display: grid; gap: 4px; }
.cprod b { font-family: var(--f-display); font-size: 1.12rem; letter-spacing: -0.01em; }
.cprod span { color: var(--mute); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.cprod span i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
@media (max-width: 860px) {
  .coll-film, .coll.compact .coll-film { aspect-ratio: 4 / 3; }
  .coll-items { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .coll-items::-webkit-scrollbar { display: none; }
  .cprod { scroll-snap-align: start; }
}
.coll.compact .coll-items.wrap { padding-left: 0; padding-right: 0; }
.coll.compact .coll-copy.wrap { padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }

/* ---------- main menu: Home · About us · Material features · Products ▾ · Contact · Shop ---------- */
.nav .wrap { position: relative; }
.nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav .menu > li > a, .nav .menu > li > button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; font: 500 .9rem/1 var(--f-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav .menu > li > a:hover, .nav .menu > li > button:hover, .nav .menu > li > [aria-current="page"] { background: var(--mist); }
.nav .menu svg { width: 12px; height: 12px; transition: transform .2s; }
.has-drop { position: relative; }
.drop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(560px, 92vw); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.16); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .18s, visibility 0s .18s; z-index: 60; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transition: opacity .18s; }
.has-drop:hover > button svg, .has-drop.open > button svg { transform: rotate(180deg); }
.drop a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.drop a:hover { background: var(--mist); }
.drop a small { display: block; color: var(--mute); font-size: .8rem; margin-top: 2px; }
.drop .all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; }
.nav .burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; align-items: center; justify-content: center; }
.nav .burger span, .nav .burger span::before, .nav .burger span::after { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav .burger span::before { position: absolute; top: -5px; } .nav .burger span::after { position: absolute; top: 5px; }
@media (max-width: 900px) {
  .nav .menu { display: none; position: absolute; left: 0; right: 0; top: 52px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px var(--gutter-r) 16px var(--gutter-l); box-shadow: 0 20px 40px rgba(0,0,0,.12); max-height: calc(100svh - 52px); overflow-y: auto; }
  .nav.menu-open .menu { display: flex; }
  .nav .menu > li > a, .nav .menu > li > button { width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .drop { position: static; transform: none; width: auto; box-shadow: none; padding: 4px 0 8px 12px; display: none; opacity: 1; visibility: visible; grid-template-columns: 1fr; }
  .has-drop.open .drop { display: grid; }
  .has-drop:hover .drop { display: none; } .has-drop.open:hover .drop { display: grid; }
  .nav .burger { display: inline-flex; }
  .nav .nav-products { display: none !important; }
}

/* ---------- drawings for pieces without photos (take the finish colour --c) ---------- */
.art { width: 78%; height: 78%; position: relative; z-index: 1; overflow: visible; }
.art .f { fill: var(--c, #f2b300); transition: fill .5s; }
.art .k { fill: color-mix(in srgb, var(--c, #f2b300) 72%, #000); transition: fill .5s; }
.art .l { fill: color-mix(in srgb, var(--c, #f2b300) 55%, #fff); transition: fill .5s; }
.art .s { fill: none; stroke: color-mix(in srgb, var(--c, #f2b300) 68%, #000); stroke-width: 2; transition: stroke .5s; }
.art .m { fill: #2a2926; }
.art .w { fill: #f4f0e6; } .art .w2 { fill: #fbf9f4; stroke: #e2ddd1; stroke-width: 1; }
.art .g { fill: #d9e6ea; }

/* ---------- brand: logo + deep green footer ---------- */
.nav .mark img { height: 34px; width: auto; display: block; }
.nav .wrap { height: 64px; }
.site-footer { background: var(--night); color: var(--on-night-mute); border-top: 0; }
.site-footer .f-brand img { width: 200px; height: auto; margin-bottom: 14px; }
.site-footer b { color: #fff; }
.site-footer a { color: var(--on-night-mute); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.6; margin-bottom: 12px; max-width: 34ch; }
.site-footer .base { border-top-color: rgba(255,255,255,.12); }
.site-footer .powered { color: #fff; border-color: rgba(255,255,255,.3); }
.site-footer .powered .pb-label { color: var(--on-night-mute); }
.site-footer .powered:hover { background: #fff; color: var(--night); }
.cats, .catbar { top: calc(64px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .nav .menu { top: 64px; } }
