/* ============================================================
   Moštěnický sirup — redesign
   Design system: cream paper, navy ink, crimson accent, gold map highlight
   ============================================================ */

:root {
  /* palette — kept from existing brand */
  --paper:      #f4ead2;
  --paper-2:    #efe1c1;
  --card:       #fcf8ee;
  --ink:        #1e3f6b;   /* navy from logo */
  --ink-deep:   #15294a;
  --ink-70:     #34527c;
  --accent:     #b63a2b;   /* crimson */
  --accent-2:   #9c2f22;
  --gold:       #e8b23a;   /* map highlight */
  --text:       #2c2a24;
  --muted:      #756c57;
  --line:       #e0d3b3;

  /* fonts — overridable by Tweaks */
  --font-head:  'Bitter', Georgia, serif;
  --font-body:  'Mulish', system-ui, sans-serif;
  --font-script:'Caveat', cursive;

  /* density — overridable by Tweaks */
  --section-pad: 112px;
  --gap: 28px;

  --maxw: 1200px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.45), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.12; margin: 0; }
h2.section-title { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 14px;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: .2s ease; letter-spacing: .01em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: rgba(255,255,255,.92); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,234,210,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 700; font-size: 15px; color: var(--ink); padding: 9px 15px;
  border-radius: 999px; transition: .18s; position: relative;
}
.nav a:hover { background: rgba(30,63,107,.08); }
.lang { display: flex; gap: 6px; margin-left: 14px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang a { font-size: 13px; font-weight: 800; color: var(--muted); padding: 5px 9px; border-radius: 6px; }
.lang a.active { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-color: var(--ink-deep);
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(21,41,74,.86) 0%, rgba(21,41,74,.55) 42%, rgba(21,41,74,.06) 72%);
}
.hero-inner { position: relative; z-index: 2; padding-top: clamp(70px,9vw,128px); padding-bottom: clamp(80px,9vw,130px); }
.hero-content { max-width: 620px; color: #fff; }
.hero-flourish { font-family: var(--font-script); font-size: clamp(34px,5vw,58px); color: var(--gold); line-height: .9; margin-bottom: 6px; display: block; }
.hero h1 { color: #fff; font-size: clamp(40px, 6vw, 74px); letter-spacing: -.015em; }
.hero p { font-size: clamp(17px,1.6vw,21px); color: rgba(255,255,255,.92); margin: 22px 0 32px; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.ratio-badge {
  position: absolute; right: clamp(20px,6vw,90px); bottom: clamp(28px,6vw,64px); z-index: 3;
  width: clamp(120px,15vw,178px); height: clamp(120px,15vw,178px);
  border-radius: 50%; background: var(--gold); color: var(--ink-deep);
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 18px 40px rgba(21,41,74,.35); transform: rotate(-8deg);
  border: 3px solid #fff;
}
.ratio-badge b { font-family: var(--font-head); font-size: clamp(30px,4vw,46px); display: block; line-height: 1; }
.ratio-badge span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
@media (max-width: 760px){ .ratio-badge { display: none; } }

/* ============================================================
   FEATURE STRIP
   ============================================================ */
.features { background: var(--ink); color: var(--paper); }
.features .wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.feature { padding: 40px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.feature:last-child { border-right: 0; }
.feature .big { font-family: var(--font-head); font-size: 40px; color: var(--gold); line-height: 1; }
.feature .lbl { margin-top: 10px; font-weight: 700; font-size: 15px; }
.feature .sub { color: rgba(255,255,255,.62); font-size: 13.5px; margin-top: 4px; }
@media (max-width: 820px){ .features .wrap { grid-template-columns: 1fr 1fr; } .feature:nth-child(2n){border-right:0;} }
@media (max-width: 480px){ .features .wrap { grid-template-columns: 1fr; } .feature{border-right:0;border-bottom:1px solid rgba(255,255,255,.12);} }

/* ============================================================
   SECTIONS
   ============================================================ */
section.block { padding: var(--section-pad) 0; }
.section-head { max-width: 70ch; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* O značce */
.brand-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.brand-media { position: relative; }
.brand-media img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(21,41,74,.22); }
.brand-media .tag {
  position: absolute; left: -16px; bottom: 26px; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; padding: 12px 20px; border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(0,0,0,.2); font-size: 18px;
}
.tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  font-family: var(--font-body); font-weight: 800; font-size: 14px; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; border: 2px solid var(--line); background: transparent;
  color: var(--ink); transition: .18s;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab:hover:not([aria-selected="true"]) { border-color: var(--ink); }
.tab-panel { display: none; animation: fade .35s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }
.tab-panel h3 { font-size: 27px; margin-bottom: 12px; }
.tab-panel p { color: var(--text); margin: 0 0 16px; }
.cert-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.cert {
  display: inline-flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--ink);
}
.cert .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.cert.bio .dot { background: #5a8a3c; }

/* ============================================================
   SORTIMENT
   ============================================================ */
.sort-switch { display: flex; gap: 8px; justify-content: center; margin-bottom: 46px; }
.sort-switch button {
  font-family: var(--font-head); font-weight: 700; font-size: 17px; cursor: pointer;
  padding: 12px 28px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  transition: .18s;
}
.sort-switch button.active { background: var(--ink); color: var(--paper); }

.range-intro { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 44px; }
.range-fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.range-fact b { color: var(--accent); font-family: var(--font-head); font-size: 16px; }
.range-fact p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
@media (max-width:820px){ .range-intro{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .range-intro{ grid-template-columns:1fr; } }

.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width:1000px){ .product-grid{ grid-template-columns: repeat(4,1fr);} }
@media (max-width:720px){ .product-grid{ grid-template-columns: repeat(3,1fr);} }
@media (max-width:460px){ .product-grid{ grid-template-columns: repeat(2,1fr);} }

.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px 18px; text-align: center; transition: .2s ease; position: relative; overflow: hidden;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(21,41,74,.16); border-color: #d8c89f; }
.product .imgwrap { height: 150px; display: grid; place-items: center; margin-bottom: 12px; }
.product .imgwrap img { max-height: 150px; width: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); transition: .25s; }
.product:hover .imgwrap img { transform: scale(1.06) rotate(-1deg); }
.product .name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 16px; }
.product .new {
  position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 999px;
}
.product.bio .name::after { content: " BIO"; color: #5a8a3c; font-size: 11px; vertical-align: super; }

.sort-view { display: none; }
.sort-view.active { display: block; animation: fade .35s ease; }

.gastro-block { margin-top: 8px; }
.gastro-block + .gastro-block { margin-top: 64px; }
.gastro-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.gastro-head h3 { font-size: 26px; }
.gastro-head .pill { background: var(--gold); color: var(--ink-deep); font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.gastro-block p.note { color: var(--muted); max-width: 60ch; margin: 0 0 26px; }

/* ============================================================
   MAP — Kde koupíte
   ============================================================ */
.map-section { background: var(--ink-deep); color: var(--paper); }
.map-section .eyebrow { color: var(--gold); }
.map-section h2 { color: #fff; }
.map-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,64px); align-items: start; margin-top: 48px; }

.map-stage { position: relative; }
.map-stage img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.map-hit { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-hit polygon {
  fill: transparent; stroke: transparent; cursor: pointer; transition: fill .15s ease; outline: none;
}
.map-hit polygon:hover { fill: rgba(232,178,58,.22); }
.map-hit polygon.active { fill: rgba(232,178,58,.12); }
.map-hint { text-align: center; color: rgba(255,255,255,.6); font-size: 13.5px; margin-top: 14px; }

.seller-panel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 30px; }
.seller-panel h3 { color: #fff; font-size: 24px; display: flex; align-items: center; gap: 12px; }
.seller-panel h3 .gd { width: 12px; height: 12px; background: var(--gold); border-radius: 50%; }
.seller-count { color: var(--gold); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 22px; }
.seller-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; max-height: 360px; overflow: auto; }
.seller-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; color: rgba(255,255,255,.92); display: flex; gap: 11px; align-items: flex-start; }
.seller-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 8px; }
.seller-empty { background: rgba(232,178,58,.1); border: 1px solid rgba(232,178,58,.3); border-radius: 6px; padding: 20px; }
.seller-empty p { margin: 0 0 6px; color: rgba(255,255,255,.85); font-size: 14.5px; }
.seller-empty .rep { font-weight: 800; color: var(--gold); }
.seller-empty a { color: #fff; text-decoration: underline; }

@media (max-width: 900px){ .map-layout{ grid-template-columns: 1fr; } .map-stage{ max-width: 540px; margin: 0 auto; } }

/* ============================================================
   KONTAKTY
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }
.contact-col h4 { font-size: 18px; margin-bottom: 14px; color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.contact-item { margin-bottom: 18px; }
.contact-item .role { font-weight: 800; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.contact-item .who { font-weight: 700; color: var(--ink); }
.contact-item a { color: var(--ink-70); text-decoration: underline; text-underline-offset: 2px; }
.contact-item .line { color: var(--muted); font-size: 15px; }
.addr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.addr { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; }
.addr .t { font-weight: 800; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.addr p { margin: 0; font-size: 15px; color: var(--text); line-height: 1.55; }
@media (max-width:860px){ .contact-grid{ grid-template-columns: 1fr; } .addr-cards{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .addr-cards{ grid-template-columns:1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 54px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner img { height: 40px; opacity: .95; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-weight: 700; font-size: 14px; color: rgba(255,255,255,.8); }
.footer-nav a:hover { color: var(--gold); }
.footer-meta { width: 100%; border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* logo recolor: the wordmark png is navy; on dark backgrounds invert to cream */
.brand-light img { filter: brightness(0) saturate(100%) invert(92%) sepia(18%) saturate(420%) hue-rotate(347deg) brightness(101%) contrast(94%); }

/* ---------- mobile nav ---------- */
@media (max-width: 880px){
  .menu-toggle{ display:inline-flex; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
  .menu-toggle span{ width:26px; height:2.5px; background:var(--ink); border-radius:2px; transition:.2s; }
  .nav{
    position:absolute; top:76px; left:0; right:0; flex-direction:column; align-items:stretch;
    background:var(--paper); border-bottom:1px solid var(--line); padding:14px 24px 22px; gap:2px;
    transform:scaleY(0); transform-origin:top; opacity:0; transition:.2s; box-shadow:0 18px 30px rgba(0,0,0,.12);
  }
  .nav.open{ transform:scaleY(1); opacity:1; }
  .nav a{ padding:13px 12px; }
  .lang{ border-left:0; padding-left:0; margin-left:0; margin-top:8px; }
}
