/* Klavir Lienka — Forest mist design system */
:root {
  --ink: #0e1a12;
  --ink-soft: #24352a;
  --mist: #f2efe9;
  --mist-dim: #e6e2d8;
  --forest: #1c3626;
  --forest-deep: #0f2117;
  --signal: #e4342f;
  --signal-dark: #b8231f;
  --line: rgba(14, 26, 18, 0.14);
  --shadow: 0 18px 40px -20px rgba(14, 26, 18, 0.35);
  --radius: 14px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--signal); color: #fff;
  padding: .6em 1em; z-index: 200;
}
.skip-link:focus { left: 1em; top: 1em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== Layout helpers ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3rem, 6vw, 6rem) 0; position: relative; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack-sm > * + * { margin-top: .75rem; }
.stack-lg > * + * { margin-top: 2rem; }
.mt-0 { margin-top: 0; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease), clip-path .7s var(--ease); clip-path: inset(0 0 10% 0); }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(242, 239, 233, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-mark { width: 150px; height: auto; aspect-ratio: 210/44; }
.logo { display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; }
.main-nav a { font-size: .97rem; font-weight: 600; letter-spacing: .01em; position: relative; padding: .3rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--signal); transition: width .3s var(--ease); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--signal-dark); }
.nav-foot { display: none; }
.nav-toggle, .nav-close { background: none; border: none; cursor: pointer; color: var(--ink); min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.nav-close { display: none; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link { position: relative; display: flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: center; }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--signal); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.cart-link.bump .cart-count { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.nav-overlay { position: fixed; inset: 0; background: rgba(14,26,18,.5); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; z-index: 98; }
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: var(--forest-deep); color: var(--mist); z-index: 99; padding: 5rem 1.5rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.1rem; }
  .main-nav a { color: var(--mist); }
  .nav-foot { display: flex; flex-direction: column; gap: .8rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(242,239,233,.2); font-size: .9rem; color: var(--mist-dim); }
  .nav-close { display: flex; position: absolute; top: 1rem; right: 1rem; color: var(--mist); }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid transparent; min-height: 44px; position: relative; overflow: hidden; transition: color .3s var(--ease), border-color .3s var(--ease); }
.btn span, .btn > * { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; transition: left .4s var(--ease); z-index: 0; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary::before { background: var(--signal-dark); }
.btn-primary:hover::before { left: 0; }
.btn-dark { background: var(--forest-deep); color: var(--mist); }
.btn-dark::before { background: var(--ink); }
.btn-dark:hover::before { left: 0; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--mist); }
.btn-ghost:hover::before { left: 0; }
.cookie-banner .btn-ghost { color: var(--mist); border-color: var(--mist); }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; min-height: 38px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 6vw, 4rem); overflow: hidden; background: var(--forest-deep); color: var(--mist); }
.hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; mix-blend-mode: overlay; pointer-events: none; }
.hero-trees { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--mist); }
.hero p.lead { font-size: 1.15rem; color: var(--mist-dim); max-width: 32rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

/* ===== Map / pinned cards composition ===== */
.map-board { position: relative; background: var(--mist-dim); border-radius: 24px; padding: clamp(1.5rem, 4vw, 3.5rem); overflow: hidden; }
.map-board::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(28,54,38,.08) 0, transparent 45%), radial-gradient(circle at 80% 70%, rgba(228,52,47,.07) 0, transparent 40%); }
.map-pins { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; z-index: 1; }
.pin-card { background: var(--mist); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pin-card:hover { transform: translateY(-6px); }
.pin-card .pin-icon { color: var(--signal); margin-bottom: .6rem; }
.pin-card:nth-child(2) { transform: translateY(14px); }
.pin-card:nth-child(3) { transform: translateY(-10px); }
@media (max-width: 700px) { .pin-card, .pin-card:nth-child(2), .pin-card:nth-child(3) { transform: none; } }

/* ===== Cards & product strip ===== */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-5px); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; }
.card-body h3 { font-size: 1.15rem; }
.card-price { font-weight: 700; color: var(--signal-dark); font-size: 1.05rem; }

.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 1.2rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.product-strip .card { scroll-snap-align: start; }
@media (min-width: 860px) { .product-strip { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: visible; } }

/* ===== Mini keyboard (signature feature) ===== */
.keyboard-feature { background: var(--forest); color: var(--mist); border-radius: 24px; padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.keyboard-feature h2 { color: var(--mist); }
#mini-keyboard { display: flex; gap: 6px; margin-top: 1.6rem; flex-wrap: wrap; }
.mini-key { flex: 1 1 36px; min-width: 36px; height: 110px; background: var(--mist); border: none; border-radius: 0 0 8px 8px; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(14,26,18,.12); transition: background .15s, transform .1s; }
.mini-key:hover { background: #fff; }
.mini-key.is-pressed, .mini-key:active { background: var(--signal); transform: translateY(2px); }

/* ===== Dividers / decorative svg ===== */
.divider { display: block; width: 100%; height: 48px; color: var(--mist-dim); }
.footer-divider { display: block; width: 100%; height: 50px; color: var(--forest-deep); }
.seal { width: 92px; height: 92px; color: var(--signal); }

/* ===== Footer ===== */
.site-footer { background: var(--forest-deep); color: var(--mist-dim); position: relative; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 2.5rem; display: grid; grid-template-columns: 1.2fr 2fr 1.1fr; gap: 2.5rem; }
.footer-brand .logo-mark { width: 160px; margin-bottom: .8rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mist); margin-bottom: .8rem; }
.footer-col a { display: block; padding: .3rem 0; color: var(--mist-dim); }
.footer-col a:hover { color: var(--mist); }
.newsletter-form h3 { color: var(--mist); font-size: 1.1rem; }
.newsletter-form .field-row { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 160px; padding: .7rem 1rem; border-radius: 999px; border: 1px solid rgba(242,239,233,.3); background: rgba(242,239,233,.08); color: var(--mist); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 1.2rem 1.5rem; border-top: 1px solid rgba(242,239,233,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.field-msg { font-size: .85rem; margin-top: .5rem; min-height: 1.2em; }
.field-msg-ok { color: #7fd99a; }
.field-msg-error { color: #ff8b85; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } .footer-nav { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .footer-nav { grid-template-columns: 1fr 1fr; } }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto; background: var(--forest-deep); color: var(--mist); padding: 1.2rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 150; display: flex; flex-direction: column; gap: .8rem; }
.cookie-actions { display: flex; gap: .7rem; justify-content: flex-end; }

/* ===== Inner page components (for the second writer) ===== */
.page-hero { background: var(--forest-deep); color: var(--mist); padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--mist); font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { color: var(--mist-dim); max-width: 40rem; }

.breadcrumbs { font-size: .85rem; color: var(--ink-soft); display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.breadcrumbs a:hover { text-decoration-color: currentColor; }
.breadcrumbs span[aria-current] { color: var(--signal-dark); font-weight: 600; }

.notice { border-radius: var(--radius); padding: 1rem 1.3rem; border: 1px solid var(--line); background: var(--mist-dim); font-size: .95rem; }
.notice-info { border-color: rgba(28,54,38,.25); }
.notice-warning { border-color: rgba(228,52,47,.3); background: rgba(228,52,47,.06); }

.prose { max-width: 42rem; font-size: 1.02rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

.legal-toc { background: var(--mist-dim); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2rem; max-width: 30rem; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.legal-toc ol { padding-left: 1.2rem; }
.legal-toc a { text-decoration: underline; text-decoration-color: transparent; }
.legal-toc a:hover { text-decoration-color: currentColor; }

.faq-item { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--signal); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; color: var(--ink-soft); }

.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { padding: .75rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; accent-color: var(--signal); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); }
.field-full { grid-column: 1 / -1; }
.field-error { color: var(--signal-dark); font-size: .83rem; min-height: 1.1em; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .card-media { border-radius: var(--radius); }
.product-detail .includes { padding-left: 1.2rem; margin: 1rem 0; }
.product-detail .includes li { margin-bottom: .4rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table .qty-input { width: 64px; padding: .4rem .5rem; border-radius: 8px; border: 1px solid var(--line); }
.cart-summary { background: var(--mist-dim); border-radius: var(--radius); padding: 1.5rem; max-width: 24rem; margin-left: auto; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin: 1rem 0; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.gap-sm { gap: .75rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--signal-dark); font-weight: 700; margin-bottom: .5rem; display: block; }

/* COMPONENTS: .class - what it is
.wrap - centered max-width container
.section - vertical page section spacing
.grid / .grid-2 / .grid-3 - responsive grid helpers
.reveal / .in-view - scroll-reveal animation hook (visible by default, class added by JS)
.site-header / .header-inner / .main-nav / .nav-overlay - sticky header and mobile nav
.logo-mark - sized SVG logo wordmark
.cart-link / .cart-count - header cart icon with animated badge
.btn / .btn-primary / .btn-dark / .btn-ghost / .btn-sm - button variants with fill-sweep hover
.hero / .hero-inner / .hero-grain / .hero-trees / .hero-art - home hero composition
.map-board / .map-pins / .pin-card - map-like pinned content cards layout
.card / .card-media / .card-body / .card-price - generic content/product card
.product-strip - horizontal scroll-snap product/service strip on mobile
.keyboard-feature / #mini-keyboard / .mini-key - signature playable keyboard feature
.divider / .footer-divider / .seal - decorative SVG dividers and seal badge
.site-footer / .footer-inner / .footer-nav / .footer-col - footer layout
.newsletter-form / .hp-field / .field-msg - footer newsletter form + honeypot + status message
.cookie-banner / .cookie-actions - cookie consent banner
.page-hero - inner page hero/intro band
.breadcrumbs - breadcrumb trail
.notice / .notice-info / .notice-warning - callout boxes
.prose - readable long-form legal/content text measure
.legal-toc - table of contents box for legal pages
.faq-item - details/summary FAQ accordion row
.form-grid / .field / .field-error / .field-full - form layout and field wrapper
.contact-layout - two-column contact page layout
.product-detail - product/service detail two-column layout
.cart-table / .cart-summary - booking cart table and summary box
.eyebrow - small uppercase label above headings
*/

/* wg-contrast-autofix */
div.reveal.in-view div.hero-cta a.btn.btn-ghost span { color: #ffffff !important; }
