/* ===== Orechy Úsvit — design system ===== */
:root {
  --ink: #0e1f17;
  --ink-soft: #1c3426;
  --cream: #f6f1e4;
  --cream-dim: #ece3cc;
  --emerald: #1f5c3f;
  --emerald-light: #2f8f62;
  --gold: #d9a94e;
  --gold-soft: #f0d9a4;
  --line: rgba(14,31,23,0.14);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(14,31,23,0.16);
  --shadow-soft: 0 8px 20px rgba(14,31,23,0.10);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --maxw: 1240px;
  --speed: 0.5s;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.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(--gold); color: var(--ink); padding: 0.6em 1em; z-index: 200;
}
.skip-link:focus { left: 0.5em; top: 0.5em; }
:focus-visible { outline: 3px solid var(--emerald-light); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== layout helpers ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.grid { display: grid; gap: 1.5rem; }
.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; } }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); clip-path: inset(0 0 12% 0); transition: opacity var(--speed) ease, transform var(--speed) ease, clip-path var(--speed) ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal[data-stagger] .reveal-item { transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,241,228,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; padding: 0.8rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo__word { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.01em; }
.logo__word em { font-style: normal; color: var(--emerald); }
.nav-toggle { display: none; background: none; border: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.95rem; }
.site-nav a { position: relative; padding: 0.3em 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--gold); transition: right var(--speed) ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav a.is-active { color: var(--emerald); }
.site-nav__cart { display: flex; align-items: center; gap: 0.4em; background: var(--ink); color: var(--cream); padding: 0.5em 0.9em; border-radius: 999px; }
.cart-badge { background: var(--gold); color: var(--ink); min-width: 1.5em; height: 1.5em; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8em; font-weight: 700; }
.cart-badge.bump { animation: cartBump 0.4s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); height: 100vh;
    background: var(--ink); color: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.5rem 2rem; gap: 1.4rem; transform: translateX(100%); visibility: hidden;
    transition: transform var(--speed) ease, visibility var(--speed) ease; z-index: 150;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: var(--cream); }
  .site-nav__cart { background: var(--gold); color: var(--ink); }
}

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.75em 1.5em; border-radius: 999px; border: 2px solid transparent; font-weight: 600; min-height: 44px; position: relative; overflow: hidden; isolation: isolate; transition: transform 0.25s ease, color 0.3s ease; }
.btn::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--ink); transition: left var(--speed) ease; z-index: -1; }
.btn--primary { background: var(--emerald); color: var(--cream); border-color: var(--emerald); }
.btn--primary:hover::before { left: 0; }
.btn--accent { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--accent:hover::before { left: 0; }
.btn--accent:hover { color: var(--cream); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--ink); }
.btn--ghost:hover::before { left: 0; }
.btn--dark-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--dark-ghost::before { background: var(--ink); }
.btn--dark-ghost:hover { color: var(--cream); }
.btn--dark-ghost:hover::before { left: 0; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== hero / split-screen ===== */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 86vh; overflow: hidden; background: var(--ink); color: var(--cream); }
.hero__panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.hero__panel--text { z-index: 3; }
.hero__panel--gold { background: var(--gold); color: var(--ink); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%); }
.hero__divider { position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: linear-gradient(var(--gold), var(--emerald-light)); transform: translateX(-50%); z-index: 4; }
.hero__kicker { font-family: var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold); margin-bottom: 1rem; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.4rem); margin: 0 0 1rem; text-align: center; }
.hero__lede { max-width: 32ch; margin: 0 auto 1.6rem; text-align: center; font-size: 1.05rem; color: var(--cream-dim); }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__shape { position: absolute; will-change: transform; transition: transform 0.15s ease-out; pointer-events: none; }
.hero__orbit { position: relative; width: min(60vw, 420px); aspect-ratio: 1; margin: 2.5rem auto 0; }
.hero__orbit img { position: absolute; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); box-shadow: var(--shadow-soft); animation: orbit 26s linear infinite; }
.hero__orbit img:nth-child(1) { animation-delay: 0s; }
.hero__orbit img:nth-child(2) { animation-delay: -8.6s; }
.hero__orbit img:nth-child(3) { animation-delay: -17.3s; }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(min(30vw,210px)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(min(30vw,210px)) rotate(-360deg); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2rem; }
  .hero__panel--gold { clip-path: none; display: none; }
  .hero__divider { display: none; }
}

/* ===== page hero (inner pages) ===== */
.page-hero { background: var(--ink); color: var(--cream); padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.4em; }
.page-hero p { color: var(--cream-dim); max-width: 48ch; }

/* ===== breadcrumbs ===== */
.breadcrumbs { display: flex; gap: 0.5em; flex-wrap: wrap; font-size: 0.85rem; color: var(--cream-dim); margin-bottom: 1rem; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.25s; }
.breadcrumbs a:hover { text-decoration-color: var(--gold); }
.breadcrumbs span[aria-current] { color: var(--gold); }

/* ===== prose (legal pages) ===== */
.prose { max-width: 70ch; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) 1.5rem; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; color: var(--emerald); }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1em 1.3em; }
.prose li { margin-bottom: 0.4em; }
.legal-toc { background: var(--cream-dim); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 0 auto 2rem; max-width: 70ch; }
.legal-toc h2 { margin-top: 0; font-size: 1.1rem; }
.legal-toc ol { margin: 0 0 0 1.2em; }

/* ===== cards ===== */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; transition: transform var(--speed) ease, box-shadow var(--speed) ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--speed) ease; }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.2rem 1.3rem 1.4rem; }

/* ===== product grid / strip ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.product-strip .card { min-width: 240px; scroll-snap-align: start; }
.product-card__badge { position: absolute; top: 0.8rem; left: 0.8rem; background: var(--gold); color: var(--ink); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.3em 0.7em; border-radius: 999px; z-index: 2; }
.product-card__media { position: relative; }
.product-card__price { font-family: var(--font-mono); font-weight: 700; color: var(--emerald); font-size: 1.05rem; }
.product-card__unit { color: #6a6a5f; font-size: 0.82rem; }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.product-detail__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-family: var(--font-mono); font-size: 1.8rem; color: var(--emerald); margin: 0.6em 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: none; border: none; width: 44px; height: 44px; font-size: 1.1rem; }
.qty-stepper input { width: 3em; text-align: center; border: none; background: none; font-family: var(--font-mono); font-size: 1rem; }
@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: 0.9em 0.6em; 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(--cream-dim); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.7rem; }
.cart-summary__row { display: flex; justify-content: space-between; }
.cart-summary__total { font-size: 1.3rem; font-weight: 700; color: var(--emerald); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: #6a6a5f; }

/* ===== forms ===== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 640px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35em; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.75em 0.9em; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; accent-color: var(--emerald); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--emerald-light); }
.field-error { color: #a4302a; font-size: 0.82rem; min-height: 1.2em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { padding: 0.8em 1em; border-radius: var(--radius-sm); background: var(--gold-soft); margin-top: 0.8rem; }
.newsletter-form__row { display: flex; gap: 0.5rem; }
.newsletter-form input[type="email"] { flex: 1; border-radius: 999px; border: 2px solid rgba(246,241,228,0.3); background: rgba(246,241,228,0.08); color: var(--cream); padding: 0.7em 1.1em; }

/* ===== notices ===== */
.notice { border-radius: var(--radius-sm); padding: 1em 1.2em; border: 2px solid var(--line); margin-bottom: 1.2rem; }
.notice--success { border-color: var(--emerald-light); background: rgba(47,143,98,0.1); }
.notice--error { border-color: #a4302a; background: rgba(164,48,42,0.08); }
.notice--info { border-color: var(--gold); background: rgba(217,169,78,0.12); }

/* ===== faq ===== */
.faq { display: grid; gap: 1rem; max-width: 70ch; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius-sm); padding: 0.3em 1.2rem; box-shadow: var(--shadow-soft); }
.faq-item summary { cursor: pointer; padding: 1em 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3em; color: var(--emerald); transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1em; color: #4a4a42; }

/* ===== contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.contact-info { display: grid; gap: 1.1rem; align-content: start; }
.contact-info__item { display: flex; gap: 0.8em; align-items: flex-start; }
.contact-info__item svg { flex-shrink: 0; color: var(--emerald); }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== signature feature: Chuťový kompas ===== */
.compass { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.compass__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.compass__sliders { display: grid; gap: 1.4rem; }
.compass__slider label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.4em; color: var(--cream-dim); }
.compass__slider input[type="range"] { width: 100%; accent-color: var(--gold); }
.compass__result { background: rgba(246,241,228,0.06); border: 1px solid rgba(246,241,228,0.2); border-radius: var(--radius-sm); padding: 1.4rem; text-align: center; }
.compass__result h3 { color: var(--gold); margin-bottom: 0.3em; }
@media (max-width: 760px) { .compass__grid { grid-template-columns: 1fr; } }

/* ===== dividers / decorative ===== */
.section-divider { width: 100%; height: auto; display: block; }
.footer-divider { width: 100%; height: 32px; display: block; }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: 0.05; z-index: 1; mix-blend-mode: multiply; }

/* ===== footer ===== */
.site-footer { background: var(--ink); color: var(--cream-dim); margin-top: 4rem; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-col h3 { color: var(--cream); font-size: 1rem; margin-bottom: 0.8em; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6em; }
.footer-col a:hover { color: var(--gold); }
.logo--footer .logo__word { color: var(--cream); }
.logo--footer .logo__word em { color: var(--gold); }
.footer-pin, .footer-mail { display: flex; align-items: center; gap: 0.5em; font-size: 0.9rem; }
.site-footer__bottom { border-top: 1px solid rgba(246,241,228,0.15); text-align: center; padding: 1.2rem 0; font-size: 0.85rem; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow); display: none; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  z-index: 300; border: 1px solid rgba(246,241,228,0.15);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner a { text-decoration: underline; color: var(--gold); }
.cookie-banner__actions { display: flex; gap: 0.7rem; }

/* ===== utilities ===== */
.badge { display: inline-flex; align-items: center; padding: 0.3em 0.8em; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--gold-soft); color: var(--ink); }
.muted { color: #6a6a5f; }
.visually-hidden { position: absolute !important; left: -9999px; }

/* =====================================================================
   COMPONENTS:
   .wrap - centered max-width container
   .grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
   .section - vertical page section spacing
   .reveal / .in-view - scroll-reveal animation hook (JS-added class)
   .site-header / .site-nav / .nav-toggle - sticky header + responsive nav
   .logo / .logo__mark / .logo__word - SVG logo lockup (also .logo--footer)
   .btn / .btn--primary / .btn--accent / .btn--ghost / .btn--dark-ghost - buttons with fill-sweep hover
   .hero / .hero__panel / .hero__panel--gold / .hero__divider - split-screen hero
   .hero__title / .hero__kicker / .hero__lede / .hero__actions - hero text block
   .hero__shape - parallax decorative SVG shape (use data-depth)
   .hero__orbit - orbiting product image ring on home
   .page-hero - inner-page hero band (dark)
   .breadcrumbs - inner-page breadcrumb trail
   .prose - long-form legal/readable text column
   .legal-toc - table of contents box for legal pages
   .card / .card__media / .card__body - generic lift+zoom card
   .product-grid - catalog grid of product cards
   .product-strip - mobile horizontal scroll-snap product row
   .product-card__badge / __media / __price / __unit - product card parts
   .product-detail / .product-detail__media / __price - product page layout
   .qty-stepper - quantity +/- control
   .cart-table / .cart-summary / .cart-empty - cart & checkout
   .form-grid / .field / .field-error / .hp - form layout + honeypot
   .form-note - inline success/error message under a form
   .notice / .notice--success / --error / --info - alert boxes
   .faq / .faq-item - details/summary accordion
   .contact-layout / .contact-info - contact page split layout
   .compass / .compass__grid / .compass__sliders / .compass__result - signature feature "Chuťový kompas"
   .section-divider / .footer-divider - decorative SVG dividers
   .grain-overlay - fixed SVG feTurbulence grain texture
   .site-footer / .footer-col - footer layout
   .cookie-banner - fixed consent banner
   .badge - small pill label
   .cart-badge - header cart count pill (.bump for animation)
   ===================================================================== */

/* ===== footer column variants ===== */
.footer-col--brand { }
.footer-col--news { }

/* ===== quantity controls ===== */
.qty-btn {
  background: #fff;
  border: 2px solid var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}

.qty-btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.qty-btn:focus-visible {
  outline: 3px solid var(--emerald-light);
  outline-offset: 2px;
}

.qty-btn--minus { }
.qty-btn--plus { }

.qty-input {
  width: 4em;
  padding: 0.6em 0.5em;
  text-align: center;
  border: 2px solid var(--ink);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--ink);
  min-height: 44px;
}

.qty-input:focus {
  border-color: var(--emerald-light);
  outline: none;
}

/* ===== order form ===== */
.order-form {
  display: grid;
  gap: 1.2rem;
}

/* ===== product detail sections ===== */
.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-detail__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
