/* ============================================================
   Siri Zarja - design system
   Style: vintage travel poster - moss / lichen / stone palette
   ============================================================ */

:root {
  --color-moss: #3f5d3a;
  --color-moss-dark: #2a3f27;
  --color-lichen: #9bb45e;
  --color-lichen-light: #d9e3b3;
  --color-stone: #8a6b1f;
  --color-cream: #f6f1e4;
  --color-cream-2: #efe6cf;
  --color-ink: #2b2620;
  --color-rust: #c1562c;
  --color-white: #fffdf8;

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-card: 0 10px 30px -12px rgba(43, 38, 32, 0.35);
  --shadow-paper: 0 2px 0 rgba(43,38,32,0.08), 0 14px 24px -16px rgba(43,38,32,0.3);
  --measure: 68ch;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--color-moss-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-ink); color: #fff;
  padding: .6em 1em; z-index: 200;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--color-rust); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.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: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
body:not(.no-js) .reveal.js-armed {
  opacity: 0;
  transform: translateY(24px);
  clip-path: inset(0 0 10% 0);
  transition: opacity .7s ease, transform .7s ease, clip-path .7s ease;
}
.reveal.in-view {
  opacity: 1 !important;
  transform: none !important;
  clip-path: inset(0 0 0% 0) !important;
}
.reveal[data-stagger] { transition-delay: calc(var(--stagger, 0) * 90ms); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-cream);
  border-bottom: 1px solid rgba(43,38,32,0.12);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { flex-shrink: 0; }
.brand-wordmark { width: 150px; height: 32px; display: block; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list {
  list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0;
}
.nav-list a {
  color: var(--color-ink); font-weight: 600; position: relative; padding: .3em 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--color-rust); transition: width .25s ease;
}
.nav-list a:hover::after, .nav-list a.is-active::after { width: 100%; }
.nav-list a.is-active { color: var(--color-rust); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--color-ink); }
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--color-ink);
}
.cart-count {
  position: absolute; top: 2px; right: 2px; background: var(--color-rust); color: #fff;
  font-size: .68rem; font-weight: 700; border-radius: 50%; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-count.bump { animation: cartBump .4s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); z-index: 150;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease;
    background: var(--color-moss-dark); padding: 6rem 2rem 2rem; }
  body.nav-open .main-nav { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; gap: 1.4rem; }
  .nav-list a { color: var(--color-cream); }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.6em; border-radius: var(--radius-sm); font-weight: 700;
  font-family: var(--font-body); font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  min-height: 44px; position: relative; overflow: hidden; isolation: isolate;
}
.btn-fill {
  background: var(--color-moss); color: var(--color-white); border-color: var(--color-moss);
}
.btn-fill::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--color-rust); z-index: -1; transition: left .3s ease;
}
.btn-fill:hover::before { left: 0; }
.btn-outline {
  background: transparent; color: var(--color-moss-dark); border-color: var(--color-moss-dark);
}
.btn-outline:hover { background: var(--color-moss-dark); color: var(--color-white); }
.btn-ghost {
  background: transparent; color: var(--color-cream); border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: .5em 1em; font-size: .85rem; min-height: 36px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(3rem,8vw,7rem) 0 clamp(2rem,5vw,4rem);
  background: linear-gradient(180deg, var(--color-lichen-light) 0%, var(--color-cream) 70%);
  overflow: hidden;
}
.hero-parallax { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  position: relative; z-index: 2;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.01em;
  color: var(--color-moss-dark);
}
.hero-lede { font-size: 1.15rem; max-width: 42ch; }
.hero-shape {
  position: absolute; pointer-events: none; opacity: .85; z-index: 1;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Decorative dividers ---------- */
.section-divider { width: 100%; height: 50px; display: block; }

/* ---------- Collage (home composition) ---------- */
.collage {
  position: relative; display: grid; gap: 1rem;
  grid-template-columns: repeat(6, 1fr); grid-auto-rows: 90px;
}
.collage-item {
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  box-shadow: var(--shadow-card);
}
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-cap {
  position: absolute; bottom: .8rem; left: .8rem; background: var(--color-white);
  padding: .4em .8em; border-radius: var(--radius-sm); font-weight: 700; font-size: .85rem;
  box-shadow: var(--shadow-paper); transform: rotate(-2deg);
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-paper); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card-img-wrap { overflow: hidden; aspect-ratio: 4/3; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img-wrap img { transform: scale(1.08); }
.card-body { padding: 1.2rem; }
.card-price { font-weight: 800; color: var(--color-rust); font-size: 1.1rem; }

/* ---------- Product strip (scroll snap mobile) ---------- */
.product-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem;
}
@media (max-width: 700px) {
  .product-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem;
    padding-bottom: .5rem; grid-template-columns: unset;
  }
  .product-strip .card { min-width: 78vw; scroll-snap-align: start; }
}

/* ---------- Signature feature: Sirarna svetovalec (pairing wheel) ---------- */
.pairing-tool {
  background: var(--color-moss-dark); color: var(--color-cream);
  border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.5rem);
  display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: center;
}
@media (max-width: 800px) { .pairing-tool { grid-template-columns: 1fr; } }
.pairing-tool h2, .pairing-tool h3 { color: var(--color-lichen-light); }
.pairing-controls { display: flex; flex-direction: column; gap: 1rem; }
.pairing-controls select {
  width: 100%; padding: .7em 1em; border-radius: var(--radius-sm); border: 2px solid var(--color-lichen);
  background: var(--color-cream); font-size: 1rem; min-height: 44px;
}
.pairing-result {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md); padding: 1.5rem; min-height: 140px;
}
.pairing-result strong { color: var(--color-lichen-light); display: block; margin-bottom: .3em; font-size: 1.1rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-lichen-light);
  padding: clamp(2.5rem,5vw,4rem) 0;
  text-align: left;
}
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); color: var(--color-moss-dark); }
.page-hero p { max-width: var(--measure); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { list-style: none; display: flex; gap: .5em; padding: 0; margin: 0 0 1rem; font-size: .9rem; flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .5em; color: var(--color-stone); }
.breadcrumbs a { color: var(--color-stone); }

/* ---------- Prose (legal text) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- Legal TOC ---------- */
.legal-toc {
  background: var(--color-white); border-radius: var(--radius-md); padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-paper); margin-bottom: 2rem;
}
.legal-toc h2 { font-size: 1.1rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ---------- Notices ---------- */
.notice {
  border-radius: var(--radius-md); padding: 1rem 1.2rem; border: 2px solid;
  margin-bottom: 1.5rem;
}
.notice-info { background: var(--color-lichen-light); border-color: var(--color-lichen); }
.notice-success { background: #e4f0d8; border-color: var(--color-moss); }
.notice-error { background: #fbe6de; border-color: var(--color-rust); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2,1fr); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4em; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
  padding: .7em .9em; border-radius: var(--radius-sm); border: 2px solid rgba(43,38,32,0.2);
  font-size: 1rem; font-family: inherit; min-height: 44px; accent-color: var(--color-moss);
  background: var(--color-white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-moss); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--color-rust); font-size: .85rem; min-height: 1.2em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-weight: 700; min-height: 1.4em; }
.form-msg.is-success { color: var(--color-moss-dark); }
.form-msg.is-error { color: var(--color-rust); }

/* ---------- Newsletter (footer) ---------- */
.newsletter-form .field { flex-direction: row; gap: .6rem; }
.newsletter-form input[type=email] { flex: 1; }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.contact-info li { display: flex; align-items: center; gap: .6em; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start;
}
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .card-img-wrap { border-radius: var(--radius-md); }
.product-detail-info h1 { font-size: clamp(1.8rem,3vw,2.5rem); }
.product-detail-price { font-size: 1.6rem; font-weight: 800; color: var(--color-rust); margin-bottom: 1rem; }
.qty-control { display: flex; align-items: center; gap: .6rem; margin: 1rem 0; }
.qty-control button {
  width: 40px; height: 40px; border-radius: var(--radius-sm); border: 2px solid var(--color-moss);
  background: var(--color-white); font-size: 1.2rem; cursor: pointer;
}
.qty-control input { width: 60px; text-align: center; min-height: 40px; border: 2px solid rgba(43,38,32,.2); border-radius: var(--radius-sm); }
.tag-list { list-style: none; display: flex; gap: .5em; padding: 0; flex-wrap: wrap; margin: 1rem 0; }
.tag-list li {
  background: var(--color-lichen-light); border-radius: 999px; padding: .3em .9em; font-size: .85rem; font-weight: 700;
}

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { padding: .8em .6em; border-bottom: 1px solid rgba(43,38,32,.15); text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-row-main { display: flex; align-items: center; gap: .8em; }
.cart-summary {
  background: var(--color-white); border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: var(--shadow-paper); max-width: 400px; margin-left: auto;
}
.cart-summary-row { display: flex; justify-content: space-between; padding: .4em 0; }
.cart-summary-row.total { font-weight: 800; font-size: 1.2rem; border-top: 2px solid rgba(43,38,32,.15); margin-top: .5em; padding-top: .8em; }
.cart-empty { text-align: center; padding: 3rem 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: var(--measure); }
.faq-item {
  background: var(--color-white); border-radius: var(--radius-md); padding: .3rem 1.3rem;
  box-shadow: var(--shadow-paper);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1em;
}
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-rust); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; }

/* ---------- Badge / seal ---------- */
.seal { width: 90px; height: 90px; }

/* ---------- Grain overlay texture ---------- */
.grain-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none;
  opacity: .05; z-index: 1; mix-blend-mode: multiply;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-moss-dark); color: var(--color-cream); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h3 { color: var(--color-lichen-light); font-size: 1rem; margin-bottom: .8em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5em; }
.footer-col a { color: var(--color-cream); opacity: .9; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-mail { display: inline-flex; align-items: center; gap: .5em; margin-top: .8em; }
.footer-newsletter .field { flex-direction: column; }
.footer-bottom { text-align: center; padding: 1rem 0 2rem; font-size: .85rem; opacity: .75; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  background: var(--color-ink); color: var(--color-cream); border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; box-shadow: var(--shadow-card); max-width: 900px; margin: 0 auto;
}
.cookie-banner a { color: var(--color-lichen-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: .8rem; flex-shrink: 0; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding: 5rem 0; }
.error-hero .hero-title { font-size: clamp(4rem,12vw,8rem); }

/* ============================================================
   COMPONENTS: .class - what it is
   .wrap - centered max-width content container
   .section - vertical page section spacing
   .grid / .grid-2 / .grid-3 / .grid-4 - responsive grid layouts
   .reveal - scroll-reveal animated element (JS adds .in-view)
   .site-header / .header-inner - sticky site header bar
   .brand / .brand-mark / .brand-wordmark - logo lockup
   .main-nav / .nav-list / .nav-toggle - primary navigation + mobile toggle
   .cart-link / .cart-count - header cart icon and item count badge
   .btn / .btn-fill / .btn-outline / .btn-ghost / .btn-sm - button variants
   .hero / .hero-parallax / .hero-grid / .hero-title / .hero-lede / .hero-shape / .hero-actions - home hero
   .section-divider - full-width decorative SVG divider
   .collage / .collage-item / .collage-cap - home asymmetric photo collage
   .card / .card-img-wrap / .card-body / .card-price - generic content/product card
   .product-strip - responsive grid, becomes horizontal scroll-snap on mobile
   .pairing-tool / .pairing-controls / .pairing-result - signature feature widget
   .page-hero - inner page top banner
   .breadcrumbs - breadcrumb trail list
   .prose - readable long-form legal/text content
   .legal-toc - table of contents box for legal pages
   .notice / .notice-info / .notice-success / .notice-error - alert/callout boxes
   .form-grid / .field / .field-error / .hp-field / .form-msg - form layout and states
   .contact-layout / .contact-info - contact page two-column layout
   .product-detail / .product-detail-info / .product-detail-price / .qty-control / .tag-list - product page
   .cart-table / .cart-row-main / .cart-summary / .cart-empty - cart/checkout page
   .faq / .faq-item - FAQ accordion (details/summary)
   .seal - decorative badge SVG sizing
   .grain-overlay - fixed full-viewport texture overlay
   .site-footer / .footer-inner / .footer-col / .footer-mail / .footer-newsletter / .footer-bottom - footer
   .cookie-banner / .cookie-actions - cookie consent banner
   .error-hero - 404 page hero
   ============================================================ */

/* ============================================================
   Additional component styles
   ============================================================ */

.divider-wave {
  fill: var(--color-lichen);
}

.footer-brand {
  color: var(--color-moss-dark);
}

.brand-word {
  fill: var(--color-stone);
}

.pairing-section {
  background: var(--color-lichen-light);
}

.cart-header {
  background: var(--color-moss-dark);
  color: var(--color-cream);
  padding: 1rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
}

.qty-btn-minus,
.qty-btn-plus {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--color-moss);
  background: var(--color-cream-2);
  color: var(--color-moss-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.15s ease;
}

.qty-btn-minus:hover,
.qty-btn-plus:hover {
  background: var(--color-moss);
  color: var(--color-cream);
}

.card-unit {
  font-size: 0.875em;
  color: var(--color-stone);
  font-weight: 500;
}

@media (max-width: 600px) {
  .cart-header {
    grid-template-columns: 1fr 1fr;
    font-size: 0.9em;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .qty-btn-minus,
  .qty-btn-plus {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
}

/* wg-contrast-autofix */
footer.site-footer div.footer-inner div.footer-col.footer-brand p { color: #ffffff !important; }
