/* ===== Barista Lučka — design system ===== */
html, body { overflow-x: clip; }

:root {
  --smoke-900: #211d1a;
  --smoke-800: #2b2622;
  --smoke-600: #4a4139;
  --smoke-300: #a89e92;
  --smoke-100: #f2ede4;
  --paper: #fbf8f3;
  --amber: #e08a2e;
  --amber-dark: #b86a1c;
  --white: #ffffff;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Consolas, monospace;
  --measure: 68ch;
  --radius: 4px;
  --shadow-1: 0 2px 10px rgba(33,29,26,.08);
  --shadow-2: 0 18px 40px rgba(33,29,26,.18);
  --ease: cubic-bezier(.22,.8,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--smoke-900);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.08; }
p { margin: 0 0 1em; }
a { color: var(--amber-dark); text-decoration: none; }
.icon { flex-shrink: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--smoke-900); padding: .5em 1em; z-index: 999;
}
.skip-link:focus { left: .5em; top: .5em; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== Layout helpers ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:48px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:48px}
.section { padding: clamp(48px, 8vw, 96px) 0; position: relative; }
.section--dark { background: var(--smoke-900); color: var(--smoke-100); }
.section--angled {
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  margin-top: -2vw; margin-bottom: -2vw;
}
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--amber-dark); display: inline-block; margin-bottom: .6em;
}
.section--dark .eyebrow { color: var(--amber); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,248,243,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--smoke-300);
}
.site-header__inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 40px; height: 40px; }
.logo__word { font-family: var(--font-display); font-size: 1.3rem; color: var(--smoke-900); white-space: nowrap; }
.logo__word--accent { color: var(--amber-dark); }
.site-footer .logo__word { font-size: 1.5rem; color: var(--smoke-100); }
.site-footer .logo__word--accent { color: var(--amber); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: .95rem; color: var(--smoke-800); position: relative; padding: 4px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--amber); transition: right .25s var(--ease); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--amber-dark); }
.nav-link--cart { display: flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--amber); color: var(--smoke-900); font-family: var(--font-mono); font-size: .75rem;
  min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.cart-count.is-empty { background: var(--smoke-300); }
.cart-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; height: 44px; background: none; border: 0; cursor: pointer; justify-content: center; }
.nav-toggle span { width: 100%; height: 2px; background: var(--smoke-900); transition: transform .25s var(--ease), opacity .25s; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); height: 100vh;
    background: var(--smoke-900); flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 90px 28px; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav .nav-link { color: var(--smoke-100); width: 100%; padding: 10px 0; }
  body.nav-open { overflow: hidden; }
}

/* ===== Buttons ===== */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; padding: 13px 26px; border-radius: var(--radius);
  border: 1.5px solid var(--smoke-900); background: transparent; color: var(--smoke-900); cursor: pointer;
  min-height: 44px; transition: color .3s var(--ease), border-color .3s var(--ease);
  z-index: 0;
}
.btn::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--smoke-900); transition: left .3s var(--ease); z-index: -1; }
.btn:hover::before { left: 0; }
.btn:hover { color: var(--paper); }
.btn--accent { border-color: var(--amber-dark); background: var(--amber); color: var(--smoke-900); }
.btn--accent::before { background: var(--amber-dark); }
.btn--accent:hover { color: var(--white); }
.btn--ghost { border-color: var(--smoke-100); color: var(--smoke-100); }
.btn--ghost::before { background: var(--smoke-100); }
.btn--ghost:hover { color: var(--smoke-900); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 48px 0 clamp(40px, 8vw, 90px);
  background: linear-gradient(180deg, var(--smoke-800), var(--smoke-900));
  color: var(--smoke-100); overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}
.hero__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } }
.hero__headline { font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -.01em; }
.hero__headline em { color: var(--amber); font-style: normal; }
.hero__lead { max-width: 46ch; font-size: 1.1rem; color: var(--smoke-300); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__badge {
  position: absolute; top: -10px; right: 10px; width: 120px; height: 120px; animation: spin 26s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hero__badge { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; mix-blend-mode: overlay; z-index: 1; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease), clip-path .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal--clip { clip-path: inset(0 0 100% 0); }
.reveal--clip.in-view { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; } }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== Cards / Product grid ===== */
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.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.07); }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__price { font-family: var(--font-mono); color: var(--amber-dark); font-weight: 700; }
.card__meta { font-size: .82rem; color: var(--smoke-600); font-family: var(--font-mono); }

.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.product-strip .card { scroll-snap-align: start; }
@media (min-width: 760px) { .product-strip { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--smoke-900); color: var(--smoke-100); padding: clamp(50px, 10vw, 90px) 0 60px;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .breadcrumbs a, .page-hero .breadcrumbs span { color: var(--smoke-300); }

.breadcrumbs { font-family: var(--font-mono); font-size: .82rem; display: flex; gap: 8px; align-items: center; margin-bottom: 1.2em; }
.breadcrumbs a { color: var(--smoke-600); }
.breadcrumbs span[aria-current] { color: var(--amber-dark); }

/* ===== Prose (legal pages) ===== */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.legal-toc { background: var(--smoke-100); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 2em; }
.legal-toc h2 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
.legal-toc ol { margin: 0; }

/* ===== Notices ===== */
.notice { border-radius: var(--radius); padding: 16px 20px; border: 1.5px solid var(--smoke-300); background: var(--smoke-100); margin-bottom: 1.4em; }
.notice--accent { border-color: var(--amber); background: #fdf1e2; }
.notice--error { border-color: #b4463d; background: #fbeae8; color: #7a2a24; }
.notice--success { border-color: #3f7a4a; background: #e9f5ea; color: #244f2c; }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field--inline { flex-direction: row; gap: 10px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--smoke-300); border-radius: var(--radius);
  background: var(--white); accent-color: var(--amber); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber-dark); }
.field-error { color: #b4463d; font-size: .82rem; }
.field.has-error input, .field.has-error textarea { border-color: #b4463d; }
.form-message { font-size: .9rem; min-height: 1.4em; }
.form-message.is-success { color: #244f2c; }
.form-message.is-error { color: #7a2a24; }
input[name="website"] { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ===== FAQ ===== */
.faq { max-width: var(--measure); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--smoke-300); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .25s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { margin-top: 12px; color: var(--smoke-600); }
.section--dark .faq-item { border-bottom-color: var(--smoke-600); }
.section--dark .faq-item p { color: var(--smoke-100); }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { position: relative; }
.product-detail__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-detail__includes { list-style: none; padding: 0; display: grid; gap: 10px; margin: 1.4em 0; }
.product-detail__includes li { display: flex; gap: 10px; align-items: flex-start; }
.product-detail__includes .icon { color: var(--amber-dark); flex-shrink: 0; margin-top: 2px; }

/* ===== Cart ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--smoke-300); }
.cart-table th { font-family: var(--font-mono); text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; color: var(--smoke-600); }
.cart-qty { width: 70px; }
.cart-summary { background: var(--smoke-100); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.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(--smoke-300); padding-top: 10px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--smoke-600); }

/* ===== Contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-info__item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info__item .icon { color: var(--amber-dark); margin-top: 3px; }

/* ===== Signature feature: Kavna pokovka (coffee compass) ===== */
.kompas { background: var(--smoke-800); color: var(--smoke-100); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); }
.kompas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .kompas__grid { grid-template-columns: 1fr; } }
.kompas__controls { display: grid; gap: 16px; }
.kompas__field { display: grid; gap: 6px; }
.kompas__field label { font-size: .85rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--smoke-300); }
.kompas__field select, .kompas__field input[type="range"] { accent-color: var(--amber); }
.kompas__result { background: var(--smoke-900); border-radius: var(--radius); padding: 20px; border: 1px solid var(--amber); }
.kompas__result h3 { color: var(--amber); font-size: 1.1rem; margin-bottom: .4em; }
.kompas__dial { width: 100%; height: auto; }

/* ===== Footer ===== */
.site-footer { background: var(--smoke-900); color: var(--smoke-100); padding-top: 10px; position: relative; }
.site-footer__divider { width: 100%; height: 30px; display: block; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 20px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { color: var(--amber); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); margin-bottom: .4em; }
.footer-col a { color: var(--smoke-300); }
.footer-col a:hover { color: var(--amber); }
.footer-contact { display: flex; gap: 8px; align-items: center; color: var(--smoke-300); margin: 0; }
.site-footer__bottom { border-top: 1px solid var(--smoke-600); text-align: center; padding: 16px 0; font-size: .85rem; color: var(--smoke-300); }
.newsletter-form .field--inline input { flex: 1; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: -200px; z-index: 80; max-width: 640px; margin: 0 auto;
  background: var(--smoke-900); color: var(--smoke-100); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow-2); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  transition: bottom .4s var(--ease);
}
.cookie-banner.is-visible { bottom: 20px; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: .9rem; }
.cookie-banner a { color: var(--amber); }
.cookie-banner__actions { display: flex; gap: 10px; }

/* ===== Toast ===== */
.bl-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--smoke-900); color: var(--smoke-100);
  padding: 12px 20px; border-radius: var(--radius); font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  z-index: 90; box-shadow: var(--shadow-2);
}
.bl-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== 404 ===== */
.notfound { text-align: center; padding: clamp(60px, 14vw, 140px) 0; }
.notfound .huge { font-size: clamp(5rem, 22vw, 11rem); color: var(--amber); font-family: var(--font-display); line-height: 1; }

/* COMPONENTS:
.container - centered max-width content wrapper
.grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
.section - vertical page section spacing
.section--dark - dark themed section
.section--angled - angled clip-path edges for poster look
.eyebrow - small uppercase mono label above headings
.site-header / .site-nav / .nav-link / .nav-toggle - header & navigation
.cart-count - cart item counter badge (bump animation on update)
.btn / .btn--accent / .btn--ghost / .btn--block - button variants with fill-sweep hover
.hero / .hero__headline / .hero__lead / .hero__actions / .hero__art / .hero__badge - home hero block
.grain-overlay - fixed SVG noise texture overlay
.reveal / .reveal--clip / .in-view - scroll reveal animation hooks
.card / .card__media / .card__body / .card__price / .card__meta - product/service card
.product-strip - horizontal scroll-snap card strip on mobile
.page-hero - inner page hero banner
.breadcrumbs - breadcrumb navigation trail
.prose - readable long-form legal/article text column
.legal-toc - table of contents box for legal pages
.notice / .notice--accent / .notice--error / .notice--success - callout boxes
.form-grid / .field / .field--full / .field--inline / .field-error - form layout system
.form-message - inline form submit feedback text
.faq / .faq-item - accordion FAQ using details/summary
.product-detail / .product-detail__media / .product-detail__includes - single product/service page layout
.cart-table / .cart-qty / .cart-summary / .cart-empty - cart/checkout table & summary
.contact-layout / .contact-info / .contact-info__item - contact page two-column layout
.kompas / .kompas__grid / .kompas__controls / .kompas__field / .kompas__result / .kompas__dial - signature feature "Kavni kompas"
.site-footer / .footer-col / .footer-contact / .newsletter-form - footer layout
.cookie-banner / .cookie-banner__actions - cookie consent banner
.bl-toast - transient toast notification
.notfound / .huge - 404 page layout
*/

/* ===== Missing classes ===== */
.footer-col--brand {
}

.footer-col--newsletter {
}

.remove-item {
  background: none;
  border: none;
  color: var(--amber-dark);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 4px 8px;
  text-decoration: underline;
  transition: color .3s var(--ease);
}

.remove-item:hover {
  color: var(--smoke-900);
}

.gap-3 {
  gap: 24px;
}

/* wg-contrast-autofix */
#home-products div.card.reveal div.card__body p { color: #111111 !important; }
