/* ===== Kava Radost — design system ===== */
:root {
  --ink: #1B2A4A;
  --navy: #1B2A4A;
  --tomato: #C8402A;
  --tomato-dark: #9c2f1e;
  --cream: #F4ECDD;
  --cream-dark: #e7dac0;
  --paper: #fffaf1;
  --text: #241b14;
  --text-soft: #5a5349;
  --radius: 14px;
  --maxw: 1240px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --mono: "Courier New", monospace;
  --shadow-card: 6px 8px 0 rgba(27,42,74,0.14);
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0 0 0.5em; line-height: 1.1; }
p { margin: 0 0 1em; color: var(--text-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--tomato); color: #fff; padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===== Layout helpers ===== */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s ease, border-color .3s ease;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--ink);
  z-index: -1;
  transition: left .35s ease;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn--fill { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.btn--fill::before { background: var(--tomato-dark); }
.btn--fill:hover, .btn--fill:focus-visible { color: #fff; }
.btn--ghost { border-color: currentColor; }
.btn--on-dark { border-color: var(--cream); color: var(--cream); }
.btn--on-dark::before { background: var(--cream); }
.btn--on-dark:hover, .btn--on-dark:focus-visible { color: var(--ink); }
.btn--sm { padding: .55em 1.2em; font-size: .85rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header__inner { max-width: var(--maxw); margin-inline: auto; padding: .7rem clamp(1.1rem,4vw,2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__word { height: auto; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: .4rem; min-width: 44px; min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: .3em 0; }
.site-nav a:not(.nav-cart)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--tomato);
  transition: right .25s ease;
}
.site-nav a:not(.nav-cart):hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav a.is-active { color: var(--tomato); }
.nav-cart { display: flex; align-items: center; gap: .4rem; }
.cart-count { background: var(--tomato); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 1.4em; text-align: center; padding: .1em .4em; }
.cart-count--bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-close { display: none; }
.nav-scrim { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: var(--ink); color: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.6rem 2rem; gap: 1.4rem;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease;
    z-index: 150;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: var(--cream); font-size: 1.1rem; }
  .nav-close { display: inline-flex; position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: none; color: var(--cream); cursor: pointer; min-width: 44px; min-height: 44px; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 140; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
  body.nav-locked { overflow: hidden; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== Hero ===== */
.hero { position: relative; padding-block: clamp(3rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4rem); overflow: hidden; background: var(--cream); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: .4em; }
.hero__lede { font-size: 1.15rem; max-width: 34ch; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__art svg { width: 100%; height: 100%; }
.hero-draw path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-draw path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 760px) { .hero__grid { grid-template-columns: 1fr; } }

.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 1; mix-blend-mode: multiply; }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: var(--navy); color: var(--cream); padding-block: clamp(2.6rem, 7vw, 4.5rem); }
.page-hero h1 { color: var(--cream); font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: #d8d2c4; max-width: 60ch; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .85rem; color: var(--text-soft); margin-bottom: 1rem; }
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: var(--tomato); }

/* ===== Prose (legal pages) ===== */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text-soft); }
.prose li { margin-bottom: .4em; }

.legal-toc { background: var(--cream); border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 72ch; margin: 0 auto 2.5rem; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

/* ===== Notice ===== */
.notice { border-radius: var(--radius); padding: 1rem 1.3rem; border: 2px solid var(--ink); background: var(--paper); display: flex; gap: .8rem; max-width: 72ch; margin-inline: auto; }
.notice--info { border-color: var(--navy); }
.notice--warn { border-color: var(--tomato); background: #fdf1ee; }
.notice--success { border-color: #2f7a4f; background: #eef8f0; }

/* ===== Cards / product grid ===== */
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); border: 2px solid var(--ink);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translate(-3px, -5px); box-shadow: 9px 11px 0 rgba(27,42,74,0.18); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.1rem 1.2rem 1.4rem; }
.card__body h3 { font-size: 1.15rem; margin-bottom: .2em; }
.card__price { font-weight: 700; color: var(--tomato); font-size: 1.05rem; }
.card__notes { font-size: .85rem; color: var(--text-soft); }

.strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
.strip .card { min-width: 240px; scroll-snap-align: start; }

/* horizontal scroll story (desktop) */
.story { position: relative; }
.story__track { display: flex; gap: clamp(1.5rem, 4vw, 3rem); overflow-x: auto; scroll-snap-type: x proximity; padding: 1rem clamp(1.1rem,4vw,2.5rem) 2rem; scrollbar-width: thin; }
.story__panel { flex: 0 0 min(560px, 80vw); scroll-snap-align: start; }
.story__panel img { aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--ink); }
@media (max-width: 700px) { .story__track { padding-inline: 1rem; } }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7em .9em; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--paper); accent-color: var(--tomato);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--tomato); outline-offset: 1px; }
.field--invalid input, .field--invalid textarea { border-color: var(--tomato); }
.field-error { color: var(--tomato); font-size: .82rem; min-height: 1.1em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }
.form-msg { min-height: 1.3em; font-size: .9rem; }
.form-msg--success { color: #2f7a4f; }
.form-msg--error { color: var(--tomato); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1; min-width: 160px; padding: .6em .9em; border-radius: 8px; border: 2px solid var(--cream-dark); background: #fff; }

/* ===== FAQ ===== */
.faq { max-width: 72ch; margin-inline: auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 2px solid var(--ink); border-radius: var(--radius); padding: .2rem 1.2rem; background: var(--paper); }
.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(--tomato); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; margin: 0; }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.product-detail__media img { border-radius: var(--radius); border: 2px solid var(--ink); aspect-ratio: 1/1; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; color: var(--tomato); font-weight: 700; }
.product-detail__notes { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.tag { background: var(--cream); border-radius: 999px; padding: .3em .9em; font-size: .85rem; font-weight: 600; }
.qty-input { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty-input button { background: none; border: none; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.qty-input input { width: 44px; text-align: center; border: none; font: inherit; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .8rem .5rem; border-bottom: 1px solid var(--cream-dark); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-summary { background: var(--cream); border-radius: var(--radius); padding: 1.4rem 1.6rem; max-width: 380px; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.cart-summary__total { font-weight: 700; font-size: 1.2rem; border-top: 2px solid var(--ink); padding-top: .6rem; margin-top: .6rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info__item { display: flex; gap: .7rem; align-items: flex-start; }
.contact-info__item svg { flex-shrink: 0; color: var(--tomato); margin-top: .2em; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== Aroma Kompas (signature feature) ===== */
.kompas { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 3rem); }
.kompas h2 { color: var(--cream); }
.kompas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.kompas__sliders { display: flex; flex-direction: column; gap: 1.1rem; }
.kompas__sliders label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.kompas__sliders input[type=range] { accent-color: var(--tomato); width: 100%; }
.aroma-result { display: flex; gap: 1rem; align-items: center; background: rgba(244,236,221,0.08); border: 1px solid rgba(244,236,221,0.3); border-radius: var(--radius); padding: 1.1rem; min-height: 110px; }
.aroma-result img { border-radius: 8px; object-fit: cover; }
.aroma-result__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tomato); margin: 0; }
.aroma-result__name { font-family: var(--serif); font-size: 1.2rem; margin: .1em 0; color: var(--cream); }
.aroma-result__notes { font-size: .85rem; color: #d8d2c4; margin: 0 0 .7rem; }
@media (max-width: 760px) { .kompas__grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: var(--cream); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.1rem,4vw,2.5rem) 2rem; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2rem; }
.footer-col h3 { color: var(--cream); font-size: 1rem; }
.footer-brand { display: flex; gap: .7rem; align-items: flex-start; }
.footer-brand p { color: #c7c1b2; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; color: #d8d2c4; }
.footer-contact { display: flex; align-items: center; gap: .5rem; color: #d8d2c4; font-size: .9rem; margin: .4rem 0 0; }
.site-footer__bottom { border-top: 1px solid rgba(244,236,221,0.2); text-align: center; padding: 1rem; font-size: .82rem; color: #b9b2a2; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin-inline: auto;
  background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 300; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner p { color: var(--cream); margin: 0; flex: 1 1 240px; font-size: .9rem; }
.cookie-banner a { text-decoration: underline; color: var(--cream); }
.cookie-banner__actions { display: flex; gap: .6rem; }

/* ===== Divider ===== */
.divider { display: block; width: 100%; height: 40px; color: var(--ink); }

/* ===== Utilities ===== */
.badge-seal { width: 110px; height: 110px; }
.text-tomato { color: var(--tomato); }
.bg-cream { background: var(--cream); }

/* COMPONENTS:
.btn - base pill button with fill-sweep hover (variants: --fill, --ghost, --on-dark, --sm)
.site-header / .site-nav / .nav-toggle / .nav-cart / .cart-count - header and nav, mobile off-canvas menu
.reveal / .reveal-stagger / .in-view - scroll-reveal animation hooks
.hero / .hero__grid / .hero__title / .hero__lede / .hero__art / .hero-draw - home hero with SVG line-draw
.grain-overlay - fixed SVG noise texture overlay
.page-hero - dark hero banner for inner pages
.breadcrumbs - inline breadcrumb trail
.prose - readable long-form legal text container
.legal-toc - table of contents box for legal pages
.notice - callout box (variants: --info, --warn, --success)
.card / .card__media / .card__body / .card__price / .card__notes - product/service card
.strip - horizontal scroll-snap card row (mobile)
.story / .story__track / .story__panel - horizontal scroll story section (desktop)
.form-grid / .field / .field-error / .field-row / .form-msg / .hp - form layout, validation, honeypot
.newsletter-form - inline footer newsletter form
.faq / .faq-item - details/summary accordion
.product-detail / .product-detail__media / .product-detail__price / .product-detail__notes / .tag / .qty-input - product page layout
.cart-table / .cart-summary / .cart-empty - cart and checkout layout
.contact-layout / .contact-info / .contact-info__item - contact page split layout
.kompas / .kompas__grid / .kompas__sliders / .aroma-result - Aroma Kompas signature feature
.site-footer / .footer-col / .footer-brand / .footer-links / .footer-contact - footer layout
.cookie-banner - fixed cookie consent banner
.divider - wavy SVG section divider
.wrap / .section / .grid / .grid-2 / .grid-3 / .stack / .center - layout utilities
*/

.logo__mark {
  height: auto;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qty-change {
  font: inherit;
  padding: .5em .7em;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  accent-color: var(--tomato);
}

.qty-change:focus {
  outline: 3px solid var(--tomato);
  outline-offset: 1px;
}

@media (max-width: 600px) {
  .qty-change {
    padding: .4em .5em;
    font-size: .9rem;
  }
}

/* wg-contrast-autofix */
footer.site-footer div.site-footer__bottom p { color: #ffffff !important; }
#cookieDecline { color: #ffffff !important; }
