/* ===== Kava Radost — Space-age 60s design system ===== */
:root {
  --cream: #f3efe8;
  --paper: #eae4d8;
  --ink: #1c1a18;
  --ink-soft: #5a554c;
  --grey: #8c857a;
  --grey-light: #cfc8bb;
  --accent: #ff5a1f;
  --accent-dark: #c6420f;
  --accent-ink: #fff6ee;
  --radius-capsule: 999px;
  --radius-lg: 2rem;
  --radius-md: 1.1rem;
  --shadow-paper: 0 18px 40px -20px rgba(28, 26, 24, 0.35);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --font-mono: "Courier New", monospace;
  --measure: 68ch;
  --ease: cubic-bezier(.22,.9,.3,1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  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; }
.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(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem; }
.icon { width: 1.3em; height: 1.3em; }
.icon--sm { width: 1em; height: 1em; }

/* ===== buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .85rem 1.6rem; border-radius: var(--radius-capsule);
  border: 1.5px solid currentColor; font-weight: 700; font-size: .95rem;
  cursor: pointer; background: transparent; color: var(--ink); overflow: hidden;
  isolation: isolate; min-height: 44px; font-family: var(--font-body);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; z-index: -1;
  background: var(--ink); transition: left .35s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent::before { background: var(--ink); }
.btn--accent:hover, .btn--accent:focus-visible { color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(243,239,232,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--grey-light);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: .8rem;
}
.logo__mark { display: block; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-weight: 600; font-size: .95rem; position: relative; padding-bottom: 4px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); 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(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { position: relative; display: inline-flex; padding: .4rem; }
.cart-count {
  position: absolute; top: -2px; right: -2px; background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700; border-radius: 50%; min-width: 1.15em;
  height: 1.15em; display: flex; align-items: center; justify-content: center;
}
.cart-link.bump { animation: cartBump .4s var(--ease); }
@keyframes cartBump { 30% { transform: scale(1.3) rotate(-8deg); } 60% { transform: scale(.95); } 100% { transform: scale(1); } }
.burger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; min-height:44px; min-width:44px; }

.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(85vw, 340px); background: var(--ink); color: #fff;
  z-index: 200; padding: 2rem 1.5rem; transform: translateX(100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav ul { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.mobile-nav a { font-size: 1.15rem; font-weight: 700; color: #fff; }
.mobile-nav a.is-active { color: var(--accent); }
.mobile-nav__close { background: none; border: none; color: #fff; cursor: pointer; min-height: 44px; min-width: 44px; }
body.nav-locked { overflow: hidden; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* ===== hero / page composition ===== */
.hero {
  position: relative; padding: 4rem 0 6rem; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  background: linear-gradient(160deg, var(--paper) 0%, var(--cream) 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 7rem; height: 7rem; margin-bottom: 1.2rem;
}
.hero__badge svg { animation: spin 22s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero__badge svg { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em;
}
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__art img { border-radius: var(--radius-lg); object-fit: cover; width: 100%; height: 100%; box-shadow: var(--shadow-paper); }
.hero__orbit { position: absolute; inset: -8%; z-index: -1; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.section { padding: 4.5rem 0; position: relative; }
.section--tilt {
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}
.section--dark { background: var(--ink); color: var(--cream); }
.section--paper { background: var(--paper); }
.section__head { max-width: 46ch; margin-bottom: 2.5rem; }
.section__kicker {
  display: inline-block; font-family: var(--font-mono); letter-spacing: .18em;
  text-transform: uppercase; font-size: .75rem; color: var(--accent-dark); margin-bottom: .6rem;
}
.section--dark .section__kicker { color: var(--accent); }

.divider { display: block; width: 100%; height: auto; color: var(--grey-light); }

/* ===== grids & cards ===== */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius-md); padding: 1.8rem; box-shadow: var(--shadow-paper);
}

.product-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
}
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 860px) {
  .product-strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}
.product-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-paper);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__body { padding: 1.1rem 1.2rem 1.4rem; }
.product-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.product-card__price { font-weight: 700; color: var(--accent-dark); }
.product-card__tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.tag {
  font-size: .7rem; font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
  padding: .25em .7em; border-radius: var(--radius-capsule); background: var(--paper); color: var(--ink-soft);
}

/* ===== Kompas Okusa (flavour compass) ===== */
.flavour-compass { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .flavour-compass { grid-template-columns: 1fr; } }
.flavour-wheel { display: flex; flex-wrap: wrap; gap: .7rem; }
.flavour-wheel button {
  min-height: 44px; padding: .6rem 1.2rem; border-radius: var(--radius-capsule);
  border: 1.5px solid var(--grey-light); background: #fff; font-weight: 600; cursor: pointer;
  transition: all .25s var(--ease);
}
.flavour-wheel button:hover { border-color: var(--accent); }
.flavour-wheel button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.flavour-result { display: grid; gap: .7rem; min-height: 4rem; }
.flavour-result__card {
  display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-paper);
  transition: transform .25s var(--ease);
}
.flavour-result__card:hover { transform: translateX(4px); }
.flavour-result__price { color: var(--accent-dark); font-weight: 700; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); clip-path: inset(12% 0 0 0); transition: opacity .7s var(--ease), transform .7s var(--ease), clip-path .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal--1 { transition-delay: .05s; } .reveal--2 { transition-delay: .15s; }
.reveal--3 { transition-delay: .25s; } .reveal--4 { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; clip-path: none; }
}

/* ===== footer ===== */
.site-footer { background: var(--ink); color: var(--grey-light); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--grey-light); max-width: 28ch; }
.footer-mail { display: inline-flex; gap: .5em; align-items: center; color: #fff; font-weight: 600; }
.footer-col h3 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bottom__place { display: inline-flex; gap: .4em; align-items: center; }
.newsletter-form .field { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 10rem; padding: .7rem 1rem; border-radius: var(--radius-capsule);
  border: 1.5px solid var(--grey); background: transparent; color: #fff;
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 640px;
  margin-inline: auto; background: var(--ink); color: #fff; border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  justify-content: space-between; box-shadow: var(--shadow-paper);
}
.cookie-banner a { text-decoration: underline; color: var(--accent); }
.cookie-banner__actions { display: flex; gap: .7rem; }

/* ===== reusable page-level components for inner pages ===== */
.page-hero {
  padding: 3.2rem 0 3.6rem; background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--ink-soft); max-width: var(--measure); }

.breadcrumbs { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 700; }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.legal-toc { background: var(--paper); border-radius: var(--radius-md); padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-body); }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; gap: 1.5rem; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

.notice { border-radius: var(--radius-md); padding: 1.1rem 1.4rem; margin: 1.2rem 0; border: 1.5px solid var(--grey-light); }
.notice--info { background: var(--paper); }
.notice--success { background: #eaf5ea; border-color: #9fcf9f; }
.notice--error { background: #fbe9e4; border-color: #e7a28e; }

.form-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); max-width: 42rem; }
.form-grid--1 { grid-template-columns: 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  padding: .75rem 1rem; border-radius: var(--radius-md); border: 1.5px solid var(--grey-light);
  background: #fff; font: inherit; color: var(--ink); accent-color: var(--accent); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-error { color: #b53a1f; font-size: .82rem; min-height: 1.2em; }
.field input:invalid[required] { border-color: var(--grey-light); }
.form-msg { min-height: 1.4em; font-size: .9rem; }
.form-msg--ok { color: #2e7d32; }
.form-msg--error { color: #b53a1f; }

.faq-item {
  border-bottom: 1px solid var(--grey-light); padding: 1.1rem 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); margin-top: .7rem; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-paper); }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; font-weight: 700; color: var(--accent-dark); }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--grey-light); border-radius: var(--radius-capsule); }
.qty-stepper button { min-height: 44px; min-width: 44px; background: none; border: none; cursor: pointer; font-size: 1.1rem; }
.qty-stepper input { width: 3rem; text-align: center; border: none; background: none; font: inherit; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid var(--grey-light); text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-md); }
.cart-summary {
  background: var(--paper); border-radius: var(--radius-md); padding: 1.6rem; display: grid; gap: .8rem;
  max-width: 24rem; margin-left: auto;
}
.cart-summary__row { display: flex; justify-content: space-between; }
.cart-summary__row--total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--grey-light); padding-top: .6rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.2rem; }
.contact-info__item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info__item .icon { color: var(--accent); flex-shrink: 0; margin-top: .2em; }

/* ===== utilities ===== */
.mt-0{margin-top:0} .mt-1{margin-top:1rem} .mt-2{margin-top:2rem} .mt-3{margin-top:3rem}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:1rem} .mb-2{margin-bottom:2rem}
.text-center{text-align:center} .text-soft{color:var(--ink-soft)}
.flex{display:flex} .flex-center{display:flex;align-items:center;justify-content:center}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.gap-1{gap:1rem} .gap-2{gap:2rem}
.stack{display:grid;gap:1rem}

/* COMPONENTS: .class - what it is
.btn - base button (capsule, fill-sweep hover), variants .btn--accent/.btn--ghost/.btn--sm/.btn--block
.site-header / .main-nav / .mobile-nav / .burger / .cart-link / .cart-count - header & nav
.hero / .hero__grid / .hero__badge / .hero__art / .hero__orbit - home hero with rotating badge
.section / .section--tilt / .section--dark / .section--paper / .section__head / .section__kicker - page sections
.divider - decorative SVG section divider
.grid / .grid--2 / .grid--3 - layout grids
.card - generic white card
.product-strip / .product-card - catalog product cards, horizontal scroll-snap on mobile
.tag - small pill label (flavour/roast tags)
.flavour-compass / .flavour-wheel / .flavour-result / .flavour-result__card - Kompas Okusa signature feature
.reveal (+ .reveal--1..4, .in-view) - scroll reveal animation
.site-footer / .footer-grid / .footer-col / .footer-brand / .newsletter-form / .hp - footer
.cookie-banner / .cookie-banner__actions - cookie consent banner
.page-hero - inner page hero band
.breadcrumbs - breadcrumb trail
.prose - long-form legal/article text measure
.legal-toc - table of contents box for legal pages
.notice (+ --info/--success/--error) - callout box
.form-grid (+ --1) / .field (+ --full) / .field-error / .form-msg (+ --ok/--error) - form layout
.faq-item - details/summary FAQ row
.product-detail (+ __media/__price) / .qty-stepper - product page layout
.cart-table / .cart-summary (+ __row, __row--total) - cart & checkout
.contact-layout / .contact-info (+ __item) - contact page layout
.wrap - max-width container
.icon (+ --sm) - inline SVG icon sizing
utilities: .mt-*, .mb-*, .text-center, .text-soft, .flex, .flex-center, .flex-between, .gap-*, .stack
*/

.footer-newsletter { /* inherits from .footer-col */ }

.qty-input {
  width: 100%; border: 1.5px solid var(--grey-light); border-radius: var(--radius-md);
  padding: 0.4rem 0.6rem; text-align: center; background: #fff; font: inherit;
  color: var(--ink); accent-color: var(--accent); min-height: 44px;
  transition: border-color .3s var(--ease);
}
.qty-input:focus { border-color: var(--accent); outline: none; }

.product-detail__info {
  margin-bottom: 2rem; padding: 1.2rem; background: var(--paper);
  border-radius: var(--radius-md);
}

/* wg-contrast-autofix */
#flavour-result p.text-soft { color: #ffffff !important; }
