/* ===== Barista Radost — coastal driftwood design system ===== */

:root {
  --c-bg: #f7f3ec;
  --c-cream: #fffaf2;
  --c-ink: #332c27;
  --c-ink-soft: #5c5349;
  --c-mint: #d9ebe1;
  --c-peach: #f3d8c2;
  --c-lilac: #e5dcf0;
  --c-sea: #7fab9f;
  --c-sea-deep: #4f7d72;
  --c-line: #ded3c3;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: -apple-system, "Segoe UI", system-ui, sans-serif;
  --radius-pebble: 38% 62% 58% 42% / 48% 42% 58% 52%;
  --radius-m: 1.1rem;
  --shadow-soft: 0 10px 30px -14px rgba(51,44,39,.28);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--c-sea-deep); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--c-sea-deep); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== layout helpers ===== */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.4rem; }
.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(230px, 1fr)); }
.stack { display: flex; flex-direction: column; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
section { padding-block: clamp(3rem, 6vw, 5.5rem); }

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal--stagger.in-view > * { opacity: 1; transform: none; }
.reveal--stagger.in-view > *:nth-child(1) { transition-delay: .02s; }
.reveal--stagger.in-view > *:nth-child(2) { transition-delay: .1s; }
.reveal--stagger.in-view > *:nth-child(3) { transition-delay: .18s; }
.reveal--stagger.in-view > *:nth-child(4) { transition-delay: .26s; }
.reveal--stagger.in-view > *:nth-child(5) { transition-delay: .34s; }
.reveal--stagger.in-view > *:nth-child(6) { transition-delay: .42s; }

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,243,236,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--c-line); }
.site-header__inner { max-width: var(--maxw); margin-inline: auto; padding: .8rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .5rem; }
.logo__mark { flex: none; }
.logo__word svg { display: block; width: 150px; height: 32px; }
.nav-toggle { display: none; background: none; border: none; color: var(--c-ink); cursor: pointer; padding: .4rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav__list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: var(--c-ink); font-weight: 600; position: relative; padding-bottom: .2rem; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--c-sea-deep); transition: width .3s ease; }
.site-nav__list a:hover::after, .site-nav__list a.is-active::after { width: 100%; }
.cart-link { position: relative; display: inline-flex; color: var(--c-ink); }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--c-sea-deep); color: #fff; font-size: .68rem; min-width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; padding: 0 3px; }
.cart-count--bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--c-cream); flex-direction: column; align-items: flex-start;
    padding: 5.5rem 1.6rem 2rem; gap: 2rem; transform: translateX(100%);
    visibility: hidden; transition: transform .35s ease, visibility .35s ease;
    border-left: 1px solid var(--c-line);
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav__list { flex-direction: column; gap: 1.2rem; }
}

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; min-height: 44px; position: relative; overflow: hidden; isolation: isolate; }
.btn--primary { background: var(--c-sea-deep); color: #fff; }
.btn--primary:hover { background: var(--c-sea); }
.btn--outline { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }
.btn--ghost { background: transparent; color: var(--c-cream); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: rgba(255,255,255,.22); transition: left .4s ease; z-index: -1; }
.btn--sweep:hover::before { left: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== page hero (inner pages) ===== */
.page-hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { max-width: 42em; color: var(--c-ink-soft); font-size: 1.1rem; }
.breadcrumbs { display: flex; gap: .5rem; font-size: .9rem; color: var(--c-ink-soft); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--c-ink-soft); }
.breadcrumbs span[aria-hidden] { opacity: .6; }

/* ===== prose (legal text) ===== */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.legal-toc { background: var(--c-mint); border-radius: var(--radius-m); padding: 1.2rem 1.4rem; margin-bottom: 2rem; max-width: 68ch; }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ===== notice ===== */
.notice { border-radius: var(--radius-m); padding: 1rem 1.3rem; border: 1px solid var(--c-line); background: var(--c-cream); margin-bottom: 1.5rem; }
.notice--info { background: var(--c-mint); border-color: transparent; }
.notice--warn { background: var(--c-peach); border-color: transparent; }

/* ===== cards ===== */
.card { background: var(--c-cream); border-radius: var(--radius-m); box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px -14px rgba(51,44,39,.35); }
.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.06); }
.card__body { padding: 1.2rem 1.3rem 1.4rem; }

/* ===== product grid / catalog ===== */
.product-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
@media (max-width: 640px) {
  .product-strip { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .product-strip .card { scroll-snap-align: start; }
}
.product-card__price { font-weight: 700; color: var(--c-sea-deep); font-size: 1.1rem; }
.product-card__meta { display: flex; gap: .6rem; font-size: .85rem; color: var(--c-ink-soft); margin: .4rem 0; }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-soft); }
.product-detail__price { font-size: 1.8rem; font-family: var(--font-display); color: var(--c-sea-deep); }
.product-detail__highlights { list-style: none; padding: 0; margin: 1.2rem 0; }
.product-detail__highlights li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.product-detail__highlights svg { flex: none; color: var(--c-sea-deep); margin-top: .15em; }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--c-line); }
.cart-table__qty { width: 70px; padding: .3rem; border: 1px solid var(--c-line); border-radius: .5rem; }
.cart-summary { background: var(--c-cream); border-radius: var(--radius-m); padding: 1.5rem; box-shadow: var(--shadow-soft); position: sticky; top: 90px; }
.cart-summary__total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin: 1rem 0; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--c-ink-soft); }

/* ===== 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--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .9rem; border: 1px solid var(--c-line); border-radius: .7rem;
  background: var(--c-cream); accent-color: var(--c-sea-deep);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-sea-deep); }
.field-error { color: #a1473a; font-size: .85rem; min-height: 1.1em; }
.hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.form-msg { font-size: .9rem; min-height: 1.2em; color: var(--c-sea-deep); }
.form-msg--error { color: #a1473a; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1; min-width: 160px; padding: .6rem .9rem; border-radius: .7rem; border: 1px solid var(--c-line); font: inherit; }

/* ===== contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info__item { display: flex; gap: .7rem; margin-bottom: 1rem; }
.contact-info__item svg { flex: none; color: var(--c-sea-deep); }

/* ===== faq ===== */
.faq { max-width: 70ch; }
.faq-item { border-bottom: 1px solid var(--c-line); padding: .9rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; 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.3rem; color: var(--c-sea-deep); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: .6rem; color: var(--c-ink-soft); }

/* ===== footer ===== */
.site-footer { background: var(--c-ink); color: #e7e0d6; margin-top: 4rem; }
.footer-divider { display: block; }
.site-footer__inner { max-width: var(--maxw); margin-inline: auto; padding: 2.5rem 1.4rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
.footer-col h3 { font-size: 1rem; color: #fff; margin-bottom: .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: #cfc6b8; }
.footer-col a:hover { color: #fff; }
.footer-col--brand { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact { display: flex; align-items: center; gap: .4rem; margin-top: .8rem; color: #cfc6b8; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 1rem; font-size: .85rem; color: #a79d8d; }

/* ===== cookie banner ===== */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin-inline: auto; background: var(--c-ink); color: #f1ece3; border-radius: var(--radius-m); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-soft); z-index: 60; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; }

/* ===== decorative pebble/texture ===== */
.pebble { border-radius: var(--radius-pebble); }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .035; z-index: 0; mix-blend-mode: multiply; }

/* ===== home-page specific ===== */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } }
.hero__headline { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: .6rem; }
.hero__headline .word { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .6s ease, transform .6s ease; }
.hero__headline.is-ready .word { opacity: 1; transform: none; }
.hero__lede { font-size: 1.15rem; color: var(--c-ink-soft); max-width: 34em; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.stack-section { position: relative; }
.card-stack { position: relative; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.card-stack .card { transition: transform .5s ease, box-shadow .5s ease, opacity .5s ease; }
@media (min-width: 861px) {
  .card-stack.is-fanning .card { transform: translateY(0) rotate(0); }
}

.compass { background: var(--c-mint); border-radius: 1.6rem; padding: clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; }
.compass__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 760px) { .compass__grid { grid-template-columns: 1fr; } }
.compass__slider { margin-bottom: 1.1rem; }
.compass__slider label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: .3rem; }
.compass__slider input[type=range] { width: 100%; accent-color: var(--c-sea-deep); }
.compass__result { background: var(--c-cream); border-radius: var(--radius-m); padding: 1.4rem; box-shadow: var(--shadow-soft); }
.compass__result h3 { margin-bottom: .3rem; }

.divider { display: block; width: 100%; height: 48px; }

/* COMPONENTS:
  .wrap - centered max-width content wrapper
  .grid / .grid-2 / .grid-3 - responsive grid helpers
  .reveal / .reveal--stagger - scroll reveal animation hooks
  .site-header / .site-nav / .nav-toggle / .cart-link / .cart-count - header & nav
  .logo / .logo__mark / .logo__word - SVG logo
  .btn / .btn--primary / .btn--outline / .btn--ghost / .btn--sweep - buttons
  .page-hero - inner page hero/title block
  .breadcrumbs - breadcrumb trail
  .prose - long-form legal/readable text block
  .legal-toc - table of contents box for legal pages
  .notice / .notice--info / .notice--warn - callout boxes
  .card / .card__media / .card__body - generic content card
  .product-strip - responsive/scroll-snap product grid
  .product-card__price / .product-card__meta - catalog card bits
  .product-detail / .product-detail__media / .product-detail__price / .product-detail__highlights - product page layout
  .cart-table / .cart-table__qty / .cart-summary / .cart-summary__total / .cart-empty - cart & checkout
  .form-grid / .field / .field--full / .field-error / .hp / .form-msg - forms
  .newsletter-form - footer newsletter form
  .contact-layout / .contact-info__item - contact page layout
  .faq / .faq-item - FAQ accordion (details/summary)
  .site-footer / .footer-col / .footer-contact - footer
  .cookie-banner - cookie consent banner
  .pebble - organic blob border-radius utility
  .grain-overlay - fixed full-viewport grain texture layer
  .hero / .hero__headline / .hero__lede / .hero__art / .hero__actions - home hero
  .card-stack - fanning card stack composition
  .compass / .compass__grid / .compass__slider / .compass__result - Chuťový kompas feature
  .divider - full-width SVG section divider
*/

/* ===== footer newsletter column ===== */
.footer-col--newsletter { display: flex; flex-direction: column; gap: .8rem; }

/* ===== contact info container ===== */
.contact-info { background: var(--c-cream); border-radius: var(--radius-m); padding: 1.5rem; }

/* ===== cart page layout ===== */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .cart-layout { grid-template-columns: 1fr; gap: 1.5rem; } }
