/* Burgeri Kap — design system. Motion-graphics geometric, cobalt/lemon/white. */

:root {
  --cobalt: #1230AE;
  --cobalt-dark: #0B1F7A;
  --lemon: #FCE94F;
  --lemon-deep: #F4C430;
  --red: #D7263D;
  --paper: #FFFCF4;
  --ink: #141311;
  --ink-soft: #4A4740;
  --line: #E7E1CE;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(18, 48, 174, 0.35);
  --measure: 68ch;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -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.1; margin: 0; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.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 { flex: none; }
.logo__word { height: 21px; width: auto; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  font-weight: 600; font-size: 0.96rem; position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--cobalt); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; display: inline-flex; color: var(--ink); }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--red); color: #fff;
  font-size: 0.68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-link--bump .cart-count { animation: bump 0.4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.burger-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; }
.burger-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw);
    background: var(--cobalt); flex-direction: column; align-items: flex-start;
    padding: 100px 28px 28px; gap: 22px; z-index: 60;
    transform: translateX(100%); visibility: hidden; transition: transform 0.35s ease;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: #fff; font-size: 1.1rem; }
  .main-nav a.is-active { color: var(--lemon); }
  .burger-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 999px; padding: 13px 28px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; background: var(--paper); color: var(--ink);
  min-height: 44px; position: relative; overflow: hidden; isolation: isolate;
}
.btn--primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn--accent { background: var(--lemon); border-color: var(--ink); color: var(--ink); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--small { padding: 9px 18px; font-size: 0.85rem; min-height: 38px; }
.btn--sweep::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; z-index: -1;
  background: var(--red); transition: left 0.3s ease;
}
.btn--sweep:hover::before { left: 0; }
.btn--sweep:hover { color: #fff; border-color: var(--red); }
.btn--sweep.btn--primary:hover { color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn svg { flex: none; }

/* dark surfaces need light ghost text */
.dark-surface .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.dark-surface .btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* ===== Reveal ===== */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease, clip-path 0.6s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* ===== Hero / page-hero ===== */
.page-hero {
  padding: 64px 0 56px; background: var(--cobalt); color: #fff; position: relative; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 46ch; margin-top: 14px; font-size: 1.05rem; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; margin-bottom: 18px; color: rgba(255,255,255,0.7); flex-wrap: wrap; }
.breadcrumbs a { text-decoration: underline; color: #fff; }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }

/* ===== Cards, grid utilities ===== */
.grid { display: grid; gap: 28px; }
.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: 920px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 10px; } .gap-md { gap: 20px; } .gap-lg { gap: 36px; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 48px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.product-card {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--line); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__body h3 { font-size: 1.2rem; }
.product-card__price { font-weight: 700; color: var(--cobalt); font-size: 1.1rem; }
.product-card__body p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }

/* ===== Catalog horizontal strip (mobile) ===== */
.product-strip {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.product-strip .product-card { min-width: 240px; scroll-snap-align: start; }

/* ===== Notices / badges ===== */
.notice { border-radius: var(--radius-sm); padding: 16px 20px; border: 2px solid var(--ink); background: var(--lemon); font-size: 0.95rem; }
.notice--info { background: #E9F0FF; border-color: var(--cobalt); }
.notice--error { background: #FBE4E6; border-color: var(--red); color: #7A0F22; }
.notice--success { background: #E8F6E6; border-color: #2E7D32; color: #205c26; }

/* ===== Prose (legal pages) ===== */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3em; }
.legal-toc {
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 36px; background: #fff;
}
.legal-toc h2 { font-size: 1.05rem; margin: 0 0 10px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; gap: 12px; }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.88rem; }
.field input, .field select, .field textarea {
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font: inherit;
  background: #fff; accent-color: var(--cobalt); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); }
.field-error { color: var(--red); font-size: 0.82rem; min-height: 1.2em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: 0.9rem; min-height: 1.2em; }
.form-msg.is-success { color: #205c26; }
.form-msg.is-error { color: var(--red); }

/* ===== FAQ ===== */
.faq-item { border-bottom: 2px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--cobalt); transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; font-weight: 700; color: var(--cobalt); font-family: var(--font-display); }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; }
.qty-stepper button { background: none; border: none; width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-stepper input { width: 42px; text-align: center; border: none; font: inherit; font-weight: 700; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.cart-row__product { display: flex; align-items: center; gap: 14px; }
.cart-row__product img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-summary {
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; background: #fff; position: sticky; top: 100px;
}
.cart-summary__row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-summary__row--total { font-weight: 700; font-size: 1.15rem; border-top: 2px solid var(--line); margin-top: 8px; padding-top: 14px; }
.remove-btn { background: none; border: none; color: var(--red); cursor: pointer; font-size: 0.85rem; text-decoration: underline; min-height: 44px; }

/* ===== Contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info__item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info__item svg { color: var(--cobalt); flex: none; margin-top: 2px; }

/* ===== Toast ===== */
.kap-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 0.9rem;
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 200;
}
.kap-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 520px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; z-index: 150;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
}
.cookie-banner p { margin: 0; font-size: 0.88rem; flex: 1 1 260px; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; }

/* ===== Footer ===== */
.site-footer { background: var(--cobalt-dark); color: #fff; position: relative; overflow: hidden; margin-top: 80px; }
.site-footer__grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }
.site-footer__inner {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 32px; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr; gap: 32px;
}
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }
.footer-col h3 { color: var(--lemon); font-size: 0.95rem; margin-bottom: 14px; font-family: var(--font-body); }
.footer-col a { display: block; color: rgba(255,255,255,0.82); padding: 5px 0; font-size: 0.92rem; }
.footer-col a:hover { color: var(--lemon); }
.footer-col--brand p { color: rgba(255,255,255,0.75); margin: 12px 0; }
.footer-mail { display: inline-flex; gap: 8px; align-items: center; color: #fff; text-decoration: underline; }
.footer-col--news p { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.newsletter-form .field { flex-direction: row; gap: 8px; }
.newsletter-form input[type="email"] { flex: 1; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.site-footer__bottom { position: relative; z-index: 1; text-align: center; padding: 18px 0 28px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ===== Home: hero ===== */
.home-hero { position: relative; padding: 48px 0 80px; overflow: hidden; background: var(--paper); }
.home-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
@media (max-width: 860px) { .home-hero__inner { grid-template-columns: 1fr; } }
.home-hero__eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; color: var(--red); display: flex; align-items: center; gap: 10px; }
.home-hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); display: inline-block; }
.home-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin: 14px 0 18px; }
.home-hero h1 em { font-style: normal; color: var(--cobalt); }
.home-hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.home-hero__actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.home-hero__media { position: relative; aspect-ratio: 1/1; }
.home-hero__blob {
  position: absolute; inset: -10%; width: 120%; height: 120%; z-index: 0;
  animation: blob-morph 14s ease-in-out infinite;
  transform-origin: center;
}
@keyframes blob-morph {
  0%, 100% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(8deg) scale(1.04); }
  66% { transform: rotate(-6deg) scale(0.98); }
}
.home-hero__photo {
  position: relative; z-index: 1; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink);
  aspect-ratio: 4/5; margin: 6% 10%;
}
.home-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Section index (magazine) ===== */
.section-index { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; }
.section-index__num { font-family: var(--font-mono); font-size: 0.95rem; color: var(--red); font-weight: 700; }
.section-index__title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.section-index__line { flex: 1; height: 2px; background: var(--line); align-self: center; }

/* ===== Burger Arhitekt (signature feature) ===== */
.builder {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 44px; position: relative; overflow: hidden;
}
.builder__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; position: relative; z-index: 1; }
@media (max-width: 820px) { .builder__grid { grid-template-columns: 1fr; } }
.builder__layers { display: flex; flex-direction: column; gap: 10px; }
.builder__layer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,0.07); border: 2px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.builder__layer label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.builder__layer input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--lemon); }
.builder__layer-price { color: var(--lemon); font-family: var(--font-mono); font-size: 0.9rem; }
.builder__stack { position: relative; height: 260px; display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-end; gap: 4px; }
.builder__stack-layer {
  width: 86%; height: 22px; border-radius: 999px; opacity: 0; transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.builder__stack-layer.is-active { opacity: 1; transform: translateY(0) scale(1); }
.builder__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; padding-top: 20px; border-top: 2px solid rgba(255,255,255,0.15); }
.builder__total strong { font-size: 2rem; color: var(--lemon); font-family: var(--font-display); }
.builder__name { font-family: var(--font-mono); font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* ===== Decorative dividers / seals ===== */
.divider-zigzag { display: block; width: 100%; height: 24px; }
.seal { display: block; }

/* COMPONENTS: .container - centered max-width page wrapper
COMPONENTS: .site-header / .main-nav / .cart-link / .burger-toggle - header and nav
COMPONENTS: .btn, .btn--primary, .btn--accent, .btn--ghost, .btn--small, .btn--sweep - button variants
COMPONENTS: .reveal / .in-view / .delay-1..4 - scroll-reveal animation hooks
COMPONENTS: .page-hero - dark hero banner used on every inner page
COMPONENTS: .breadcrumbs - small breadcrumb trail inside page-hero
COMPONENTS: .grid, .grid--2/3/4 - responsive CSS grid helpers
COMPONENTS: .stack, .gap-sm/md/lg, .mt-sm/md/lg, .section, .section--tight - spacing utilities
COMPONENTS: .product-card - catalog/related product card
COMPONENTS: .product-strip - horizontal scroll-snap product strip (mobile)
COMPONENTS: .notice, .notice--info/error/success - callout boxes
COMPONENTS: .prose - readable long-form legal/content text block
COMPONENTS: .legal-toc - table of contents box for legal pages
COMPONENTS: .form-grid, .field, .field--full, .field-error, .hp-field, .form-msg - form layout and states
COMPONENTS: .faq, .faq-item - details/summary FAQ accordion
COMPONENTS: .product-detail, .product-detail__media, .product-detail__price, .qty-stepper - product page layout
COMPONENTS: .cart-table, .cart-row__product, .cart-summary, .remove-btn - cart/checkout layout
COMPONENTS: .contact-layout, .contact-info, .contact-info__item - contact page layout
COMPONENTS: .kap-toast - transient toast message
COMPONENTS: .cookie-banner - GDPR cookie consent banner
COMPONENTS: .site-footer - global footer with newsletter and link columns
COMPONENTS: .home-hero, .home-hero__blob, .home-hero__photo - home hero with morphing blob
COMPONENTS: .section-index - numbered magazine-style section heading
COMPONENTS: .builder, .builder__layers, .builder__stack, .builder__total - Burger Arhitekt signature feature
COMPONENTS: .divider-zigzag, .seal - decorative section SVGs
*/

/* ===== Footer columns: links ===== */
.footer-col--links { display: flex; flex-direction: column; }

/* ===== Cart row ===== */
.cart-row { display: flex; align-items: center; gap: 16px; padding: 14px 10px; border-bottom: 1px solid var(--line); }

/* ===== Quantity button ===== */
.qty-btn { background: none; border: none; width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); }

/* ===== Button: large variant ===== */
.btn--large { padding: 16px 32px; font-size: 1rem; min-height: 48px; }
@media (max-width: 620px) {
  .btn--large { padding: 14px 28px; font-size: 0.95rem; }
}

/* wg-contrast-autofix */
#cookie-decline { color: #ffffff !important; }
