/* ============ TOKENS ============ */
:root {
  --sky: #5fb8dd;
  --sky-deep: #2f7fa6;
  --sun: #f4c542;
  --sun-deep: #e2a311;
  --cream: #fff8ec;
  --white: #ffffff;
  --cocoa: #2e1a12;
  --cocoa-soft: #5a3b2a;
  --lavender: #8d7bc0;
  --line: #e7dbc4;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px -20px rgba(46, 26, 18, .35);
  --shadow-pop: 0 10px 22px -8px rgba(46, 26, 18, .4);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 68ch;
  --container: 1180px;
  --dur: .5s;
  --ease: cubic-bezier(.22, .8, .32, 1);
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============ RESET ============ */
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cocoa);
  background: var(--cream);
  line-height: 1.6;
  -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); line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sprite { position: absolute; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--clip { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; transition: clip-path var(--dur) var(--ease); }
.reveal--clip.in-view { 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: 40;
  background: rgba(255, 248, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo__mark { flex-shrink: 0; width: 40px; height: 34px; }
.logo__word { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; color: var(--cocoa); }
.logo__word em { font-style: italic; color: var(--sky-deep); display: block; font-size: 1rem; }

.nav-toggle { background: none; border: none; padding: .4rem; color: var(--cocoa); display: none; min-width: 44px; min-height: 44px; }
.nav-close { display: none; background: none; border: none; align-self: flex-end; color: var(--cocoa); min-width: 44px; min-height: 44px; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; font-weight: 600; font-size: .95rem; }
.site-nav a { position: relative; padding: .3rem 0; }
.site-nav a:not(.nav-cart)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--sun-deep); transition: right var(--dur) var(--ease);
}
.site-nav a:not(.nav-cart):hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav a.is-active { color: var(--sky-deep); }
.nav-cart { display: flex; align-items: center; gap: .4rem; background: var(--cocoa); color: var(--cream); padding: .5rem .9rem; border-radius: 999px; }
.cart-count { background: var(--sun); color: var(--cocoa); border-radius: 999px; min-width: 1.4em; text-align: center; padding: .05em .4em; font-size: .8rem; display: inline-block; }
.cart-count--bump { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-close { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); height: 100vh;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 1.2rem 1.6rem 2rem; gap: 1.1rem; font-size: 1.05rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility var(--dur);
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-cart { margin-top: auto; width: 100%; justify-content: center; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: none; border-radius: 999px; padding: .85rem 1.7rem; font-weight: 700;
  background: var(--cocoa); color: var(--cream); position: relative; overflow: hidden;
  min-height: 44px;
}
.btn--sweep::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--sun); transition: left var(--dur) var(--ease); z-index: 0;
}
.btn--sweep:hover::before, .btn--sweep:focus-visible::before { left: 0; }
.btn--sweep span, .btn--sweep { z-index: 1; }
.btn--sweep:hover, .btn--sweep:focus-visible { color: var(--cocoa); }
.btn--ghost { background: transparent; border: 2px solid currentColor; color: inherit; }
.btn--sky { background: var(--sky-deep); color: var(--white); }
.btn--small { padding: .55rem 1.2rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ============ HERO (home) ============ */
.hero {
  position: relative; padding: 3rem 0 5rem; overflow: visible;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.hero__blob {
  position: absolute; top: -8%; right: -6%; width: 62%; aspect-ratio: 1; z-index: 0;
  animation: blobMorph 14s var(--ease) infinite alternate;
  color: var(--sky);
  opacity: .55;
}
@keyframes blobMorph {
  0% { border-radius: 42% 58% 61% 39% / 45% 41% 59% 55%; }
  50% { border-radius: 60% 40% 35% 65% / 55% 65% 35% 45%; }
  100% { border-radius: 38% 62% 50% 50% / 60% 35% 65% 40%; }
}
.hero__blob-shape { width: 100%; height: 100%; }
.hero__media { position: relative; z-index: 1; }
.hero__media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
.hero__eyebrow { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-deep); font-size: .85rem; }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin: .3rem 0 1rem; }
.hero__title em { color: var(--sun-deep); font-style: normal; }
.hero__lede { max-width: 32ch; font-size: 1.1rem; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__blob { width: 85%; right: -10%; top: -4%; }
}

/* ============ SECTION / TIMELINE ROUTE ============ */
.section { padding: 4.5rem 0; position: relative; }
.section__head { max-width: 46ch; margin-bottom: 2.4rem; }
.section__head .kicker { color: var(--sky-deep); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }

.route { position: relative; }
.route__path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; color: var(--sky); opacity: .5; }
.route__stops { position: relative; z-index: 1; display: grid; gap: 2.6rem; }
.route__stop { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; align-items: start; }
.route__node {
  width: 56px; height: 56px; border-radius: 50%; background: var(--sun);
  display: flex; align-items: center; justify-content: center; color: var(--cocoa);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  box-shadow: var(--shadow-pop);
}
.route__stop:nth-child(even) .route__node { background: var(--sky); }
.route__card h3 { margin-bottom: .3rem; }

/* ============ PRODUCT STRIP / CARDS ============ */
.product-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px);
  gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem;
}
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 880px) {
  .product-strip { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: visible; }
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }

.product-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-pop); display: flex; flex-direction: column;
  transition: transform var(--dur) 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 .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sky-deep); font-weight: 700; }
.product-card__price { font-weight: 700; font-size: 1.1rem; margin-top: auto; }
.product-card__cta { margin-top: .6rem; }

/* ============ FLAVOR COMPASS (signature feature) ============ */
.compass {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center;
  background: var(--white); border-radius: var(--radius-lg); padding: 2.2rem;
  box-shadow: var(--shadow-soft);
}
.compass__pad {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--sky) 0%, var(--cream) 50%, var(--sun) 100%);
  touch-action: none; cursor: grab;
}
.compass__pad:active { cursor: grabbing; }
.compass__axis-label { position: absolute; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cocoa); opacity: .7; }
.compass__axis-label--top { top: 8px; left: 50%; transform: translateX(-50%); }
.compass__axis-label--bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.compass__axis-label--left { left: 8px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left top; }
.compass__axis-label--right { right: 10px; top: 50%; transform: translateY(-50%); }
.compass__puck {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cocoa); border: 3px solid var(--cream); transform: translate(-50%, -50%);
  box-shadow: var(--shadow-pop);
}
.compass__result { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; min-height: 80px; }
.compass__result img { border-radius: var(--radius-sm); object-fit: cover; }
.compass__result div { display: flex; flex-direction: column; gap: .2rem; font-size: 1.05rem; }
@media (max-width: 760px) { .compass { grid-template-columns: 1fr; } }

/* ============ DIVIDERS / DECOR ============ */
.divider { width: 100%; height: auto; display: block; color: var(--sun); }
.badge-seal { color: var(--cocoa); }

/* grain overlay */
.grain { 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 {
  padding: 3.2rem 0 2.4rem; text-align: left; background: linear-gradient(160deg, var(--sky) 0%, var(--cream) 70%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { max-width: 50ch; }

/* ============ BREADCRUMBS ============ */
.breadcrumbs { display: flex; gap: .4rem; font-size: .85rem; color: var(--cocoa-soft); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { opacity: .5; }

/* ============ PROSE (legal pages) ============ */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; max-width: var(--measure); margin: 0 auto 2.4rem; }
.legal-toc h2 { margin-top: 0; font-size: 1.05rem; }
.legal-toc ol { padding-left: 1.3rem; }

/* ============ NOTICE ============ */
.notice { border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--white); display: flex; gap: .8rem; }
.notice--info { border-color: var(--sky); background: color-mix(in srgb, var(--sky) 10%, var(--white)); }
.notice--warn { border-color: var(--sun-deep); background: color-mix(in srgb, var(--sun) 15%, var(--white)); }

/* ============ FORMS ============ */
.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 {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem;
  font: inherit; background: var(--white); accent-color: var(--sky-deep); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sky-deep); }
.field--full { grid-column: 1 / -1; }
.field-error { color: #b4452c; font-size: .82rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 600; min-height: 1.2em; }
.form-msg--ok { color: #2f7a4f; }
.form-msg--error { color: #b4452c; }

/* ============ FAQ ============ */
.faq { max-width: var(--measure); margin-inline: auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .3rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .9rem 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(--sky-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; color: var(--cocoa-soft); }

/* ============ PRODUCT DETAIL ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.product-detail__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; font-weight: 700; color: var(--sky-deep); }
.product-detail__qty { display: flex; align-items: center; gap: .6rem; }
.product-detail__qty button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); font-size: 1.1rem; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ============ CART / CHECKOUT ============ */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.6rem; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--line); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-summary { background: var(--white); border-radius: var(--radius-md); padding: 1.4rem; box-shadow: var(--shadow-pop); max-width: 360px; margin-left: auto; display: flex; flex-direction: column; gap: .6rem; }
.cart-summary__row { display: flex; justify-content: space-between; }
.cart-summary__total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--cocoa-soft); }

/* ============ CONTACT LAYOUT ============ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info__item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info__item svg { flex-shrink: 0; color: var(--sky-deep); margin-top: .2rem; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.site-footer { background: var(--cocoa); color: var(--cream); padding: 3.5rem 0 1.4rem; margin-top: 3rem; }
.site-footer__grid {
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 2rem;
}
.footer-logo { color: var(--cream); }
.footer-logo em { color: var(--sun); }
.footer-brand p { color: #d9c9b4; font-size: .92rem; }
.footer-mail { display: inline-flex; gap: .5rem; align-items: center; color: var(--sun); font-weight: 600; }
.footer-col h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sun); margin-bottom: .8rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; }
.footer-newsletter .field label { color: var(--cream); }
.footer-newsletter input { background: #40291c; border-color: #5a3b2a; color: var(--cream); }
.footer-newsletter input::placeholder { color: #bfa78d; }
.site-footer__bottom { text-align: center; color: #bfa78d; font-size: .85rem; margin-top: 2.4rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  background: var(--cocoa); color: var(--cream); border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; box-shadow: var(--shadow-soft); max-width: 720px; margin-inline: auto;
}
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: .9rem; }
.cookie-banner a { color: var(--sun); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; }
.cookie-banner .btn--ghost { color: var(--cream); border-color: var(--cream); }

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: .6rem; }
.stack-md > * + * { margin-top: 1.4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* COMPONENTS:
.container - centered max-width content wrapper
.reveal / .reveal--clip / .reveal--stagger - scroll-reveal animation hooks (JS adds .in-view)
.site-header / .site-nav / .nav-toggle / .nav-cart / .cart-count - header + nav + cart badge
.logo / .logo__mark / .logo__word - brand logo lockup
.btn / .btn--sweep / .btn--ghost / .btn--sky / .btn--small / .btn--block - button variants
.hero / .hero__inner / .hero__blob / .hero__media / .hero__title / .hero__lede / .hero__ctas - home hero with morphing blob
.section / .section__head - generic content section wrapper
.route / .route__path / .route__stops / .route__stop / .route__node / .route__card - winding timeline layout
.product-strip / .product-grid / .product-card - product listing (scroll-snap on mobile)
.compass / .compass__pad / .compass__puck / .compass__result - "Kompas okusa" signature feature
.divider / .badge-seal - decorative bespoke SVGs
.grain - full-viewport feTurbulence texture overlay
.page-hero - inner page hero banner
.breadcrumbs - page breadcrumb trail
.prose - readable-measure long-form text (legal pages)
.legal-toc - table of contents box for legal pages
.notice / .notice--info / .notice--warn - callout box
.form-grid / .field / .field-error / .hp-field / .form-msg - form layout + validation + honeypot
.faq / .faq-item - details/summary accordion
.product-detail / .product-detail__media / .product-detail__price / .product-detail__qty - product page layout
.cart-table / .cart-summary / .cart-empty - cart & checkout layout
.contact-layout / .contact-info / .contact-info__item - contact page split layout
.site-footer / .footer-brand / .footer-col / .footer-newsletter - footer layout
.cookie-banner - cookie consent banner
.text-center / .mt-0 / .mb-0 / .stack-sm / .stack-md / .visually-hidden - spacing & a11y utilities
*/

/* ============ ADDITIONAL PRODUCT STYLES ============ */
.product-card__short { font-size: 0.9rem; color: var(--cocoa-soft); margin-bottom: 0.8rem; }
