/* ============================================================
   Jezici Dom — industrial loft design system
   Pine / snow / red berry / steel / amber
============================================================ */
:root{
  --pine:#1d3a2c;
  --pine-dark:#122319;
  --snow:#f4f1e6;
  --snow-dim:#e7e2d2;
  --berry:#a3272b;
  --berry-dark:#7a1b1f;
  --steel:#54565c;
  --steel-dark:#2b2c30;
  --amber:#d99a3d;
  --amber-light:#f0bd6e;
  --ink:#1c1b19;
  --radius:10px;
  --shadow-paper:0 10px 30px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.2);
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, monospace;
  --measure: 68ch;
}
html,body{overflow-x:clip;}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--snow);
  color:var(--ink);
  font-family:var(--font-sans);
  line-height:1.55;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.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(--amber);color:var(--ink);padding:.5em 1em;z-index:999;}
.skip-link:focus{left:0;}
:focus-visible{outline:3px solid var(--amber);outline-offset:2px;}
button{font:inherit;}

/* ---------- utility ---------- */
.container{max-width:1200px;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem);}
.section{padding-block:clamp(3rem,8vw,6rem);}
.grid{display:grid;gap:clamp(1rem,3vw,2rem);}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));}
.stack{display:flex;flex-direction:column;gap:1rem;}
.center{text-align:center;}
.mt-0{margin-top:0;}.mb-0{margin-bottom:0;}
.mt-lg{margin-top:clamp(2rem,5vw,4rem);}
.eyebrow{
  font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.18em;
  font-size:.78rem;color:var(--berry);display:inline-flex;align-items:center;gap:.5em;
}
.eyebrow::before{content:"";width:1.4em;height:2px;background:var(--amber);display:inline-block;}

@media (prefers-reduced-motion:no-preference){
  .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease;}
  .reveal.in-view{opacity:1;transform:none;}
  .reveal--clip{clip-path:inset(0 100% 0 0);opacity:1;transform:none;transition:clip-path .9s cubic-bezier(.65,0,.35,1);}
  .reveal--clip.in-view{clip-path:inset(0 0 0 0);}
}
@media (prefers-reduced-motion:reduce){
  .reveal,.reveal--clip{opacity:1;transform:none;clip-path:none;}
}

/* ---------- buttons ---------- */
.btn{
  position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  padding:.85em 1.6em;border-radius:4px;border:2px solid currentColor;font-weight:700;
  font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.06em;font-size:.85rem;
  cursor:pointer;min-height:44px;background:transparent;color:var(--ink);transition:color .3s ease,border-color .3s ease;
}
.btn::before{
  content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--ink);z-index:-1;
  transition:left .35s cubic-bezier(.65,0,.35,1);
}
.btn:hover::before,.btn:focus-visible::before{left:0;}
.btn:hover,.btn:focus-visible{color:var(--snow);}
.btn--amber{background:var(--amber);border-color:var(--amber);color:var(--ink);}
.btn--amber::before{background:var(--pine-dark);}
.btn--amber:hover,.btn--amber:focus-visible{color:var(--snow);border-color:var(--pine-dark);}
.btn--berry{background:var(--berry);border-color:var(--berry);color:var(--snow);}
.btn--berry::before{background:var(--pine-dark);}
.btn--ghost{background:transparent;border-color:var(--snow);color:var(--snow);}
.btn--ghost::before{background:var(--snow);}
.btn--ghost:hover,.btn--ghost:focus-visible{color:var(--ink);}
.btn--block{width:100%;}
.btn--sm{padding:.55em 1em;font-size:.75rem;}
.btn[disabled]{opacity:.5;cursor:not-allowed;}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;background:var(--pine);color:var(--snow);
  border-bottom:4px solid var(--amber);
}
.site-header__bar{
  max-width:1200px;margin-inline:auto;padding:0.6rem clamp(1rem,4vw,2.5rem);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
.logo{display:flex;align-items:center;gap:.6rem;}
.logo__mark{width:40px;height:40px;flex:none;}
.logo__word{font-family:var(--font-display);font-size:1.3rem;letter-spacing:.02em;color:var(--snow);}
.logo__word strong{color:var(--amber);}
.nav-toggle{
  display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;
  background:transparent;border:none;cursor:pointer;z-index:110;
}
.nav-toggle span{display:block;width:24px;height:2px;background:var(--snow);margin-inline:auto;}
.site-nav{display:flex;align-items:center;gap:clamp(.6rem,2vw,1.4rem);}
.site-nav ul{display:flex;flex-wrap:wrap;gap:clamp(.5rem,1.6vw,1.2rem);list-style:none;margin:0;padding:0;}
.site-nav a{
  font-family:var(--font-mono);font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;
  padding:.3em 0;border-bottom:2px solid transparent;
}
.site-nav a:hover,.site-nav a.is-active{border-color:var(--amber);color:var(--amber-light);}
.cart-link{position:relative;display:inline-flex;color:var(--snow);}
.cart-count{
  position:absolute;top:-8px;right:-10px;background:var(--berry);color:var(--snow);
  border-radius:50%;min-width:18px;height:18px;font-size:.68rem;display:flex;align-items:center;justify-content:center;
  font-family:var(--font-mono);
}
.cart-count.bump{animation:bump .4s ease;}
@keyframes bump{0%{transform:scale(1);}40%{transform:scale(1.5);}100%{transform:scale(1);}}

@media (max-width:860px){
  .nav-toggle{display:flex;}
  .site-nav{
    position:fixed;inset:0 0 0 auto;width:min(320px,85vw);height:100vh;background:var(--pine-dark);
    flex-direction:column;align-items:flex-start;padding:5rem 1.5rem 2rem;gap:1.5rem;
    transform:translateX(100%);visibility:hidden;transition:transform .35s ease;overflow-y:auto;
  }
  .site-nav.is-open{transform:translateX(0);visibility:visible;}
  .site-nav ul{flex-direction:column;gap:1rem;}
}

/* ---------- hero ---------- */
.hero{
  position:relative;background:var(--pine);color:var(--snow);overflow:hidden;
  padding-block:clamp(3rem,10vw,7rem);
}
.hero__grain{position:absolute;inset:0;width:100%;height:100%;opacity:.2;pointer-events:none;}
.hero__grid{
  max-width:1200px;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem);
  display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.5rem,5vw,3rem);align-items:center;position:relative;z-index:2;
}
.hero__title{
  font-family:var(--font-display);font-size:clamp(2.4rem,6vw,4.4rem);line-height:1.04;margin:.2em 0 .6em;
}
.hero__title .wipe{display:block;overflow:hidden;clip-path:inset(0 100% 0 0);animation:wipe 1.1s .15s cubic-bezier(.65,0,.35,1) forwards;}
.hero__title .wipe:nth-child(2){animation-delay:.4s;}
.hero__title .wipe:nth-child(3){animation-delay:.65s;color:var(--amber);}
@keyframes wipe{to{clip-path:inset(0 0 0 0);}}
@media (prefers-reduced-motion:reduce){.hero__title .wipe{clip-path:inset(0 0 0 0);animation:none;}}
.hero__lead{max-width:34ch;font-size:1.1rem;color:var(--snow-dim);}
.hero__art{position:relative;}
.hero__actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.6rem;}
@media (max-width:760px){.hero__grid{grid-template-columns:1fr;}.hero__art{order:-1;max-width:280px;margin-inline:auto;}}

/* ---------- decorative dividers / seals ---------- */
.divider{width:100%;height:36px;display:block;color:var(--amber);}
.seal{width:96px;height:96px;flex:none;}

/* ---------- horizontal story section (desktop) ---------- */
.story{background:var(--steel-dark);color:var(--snow);padding-block:clamp(3rem,8vw,5rem);}
.story__head{max-width:1200px;margin:0 auto 2rem;padding-inline:clamp(1rem,4vw,2.5rem);}
.story__track{
  display:flex;gap:1.5rem;overflow-x:auto;scroll-snap-type:x proximity;padding:0 clamp(1rem,4vw,2.5rem) 1rem;
}
.story__card{
  scroll-snap-align:start;flex:0 0 min(78vw,360px);background:var(--pine);border:1px solid var(--steel);
  border-radius:var(--radius);padding:1.6rem;box-shadow:var(--shadow-paper);
}
.story__card img{border-radius:6px;aspect-ratio:4/3;object-fit:cover;width:100%;margin-bottom:1rem;}
.story__num{font-family:var(--font-mono);color:var(--amber);letter-spacing:.1em;}
@media (min-width:860px){
  .story__track{scroll-snap-type:none;}
}

/* ---------- product strip / cards ---------- */
.product-strip{display:flex;gap:1.2rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem;}
@media (min-width:760px){.product-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));overflow:visible;}}
.card{
  scroll-snap-align:start;flex:0 0 78vw;background:var(--snow);border:1px solid var(--snow-dim);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-paper);transition:transform .3s ease;
}
@media (min-width:760px){.card{flex:auto;}}
.card:hover{transform:translateY(-6px);}
.card__media{overflow:hidden;aspect-ratio:4/3;}
.card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.card:hover .card__media img{transform:scale(1.08);}
.card__body{padding:1.1rem 1.2rem 1.4rem;}
.card__level{font-family:var(--font-mono);font-size:.72rem;color:var(--berry);text-transform:uppercase;letter-spacing:.08em;}
.card__title{font-family:var(--font-display);font-size:1.25rem;margin:.3em 0;}
.card__price{font-weight:700;color:var(--pine);}
.card__link{display:inline-block;margin-top:.6rem;border-bottom:2px solid var(--amber);}
.card__link span{display:inline-block;transition:transform .2s ease;}
.card:hover .card__link span{transform:translateX(4px);}

/* ---------- signature feature: Živi raspored ---------- */
.schedule{background:var(--snow);border:2px solid var(--steel-dark);border-radius:var(--radius);padding:clamp(1.2rem,3vw,2rem);box-shadow:var(--shadow-paper);}
.schedule__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.7rem;margin-top:1.2rem;}
.schedule__slot{
  border:1px solid var(--steel);border-radius:6px;padding:.8rem;text-align:left;background:var(--snow);
  cursor:pointer;min-height:44px;position:relative;transition:border-color .2s ease, background .2s ease;
}
.schedule__slot:hover{border-color:var(--amber);}
.schedule__slot[data-full="true"]{opacity:.5;cursor:not-allowed;}
.schedule__day{font-family:var(--font-mono);font-size:.68rem;text-transform:uppercase;color:var(--berry);}
.schedule__time{font-weight:700;}
.schedule__seats{font-size:.75rem;color:var(--steel);}
.schedule__slot.is-booked{background:var(--pine);color:var(--snow);border-color:var(--amber);}
.schedule__note{font-size:.85rem;color:var(--steel);margin-top:.8rem;}

/* ---------- toast ---------- */
.jd-toast{
  position:fixed;bottom:1.2rem;left:50%;transform:translate(-50%,10px);background:var(--pine-dark);color:var(--snow);
  padding:.8rem 1.4rem;border-radius:6px;opacity:0;transition:opacity .3s ease, transform .3s ease;z-index:999;
  border:1px solid var(--amber);font-family:var(--font-mono);font-size:.85rem;
}
.jd-toast.is-visible{opacity:1;transform:translate(-50%,0);}

/* ---------- page hero (inner pages) ---------- */
.page-hero{background:var(--pine);color:var(--snow);padding:clamp(2.4rem,6vw,4rem) 0;border-bottom:4px solid var(--amber);}
.page-hero h1{font-family:var(--font-display);font-size:clamp(2rem,4.5vw,3rem);margin:.2em 0;}
.page-hero p{max-width:60ch;color:var(--snow-dim);}

/* ---------- breadcrumbs ---------- */
.breadcrumbs{font-family:var(--font-mono);font-size:.78rem;color:var(--steel);display:flex;gap:.4em;flex-wrap:wrap;}
.breadcrumbs a{color:var(--pine);border-bottom:1px solid transparent;}
.breadcrumbs a:hover{border-color:var(--pine);}

/* ---------- prose (legal text) ---------- */
.prose{max-width:var(--measure);}
.prose h2{font-family:var(--font-display);margin-top:2em;}
.prose h3{margin-top:1.6em;}
.prose p,.prose li{color:#2c2a26;}
.prose ul{padding-left:1.2em;}

/* ---------- legal toc ---------- */
.legal-toc{background:var(--snow-dim);border-left:4px solid var(--berry);padding:1.2rem 1.4rem;border-radius:4px;margin-bottom:2rem;}
.legal-toc h2{margin-top:0;font-size:1rem;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.06em;}
.legal-toc ol{margin:0;padding-left:1.2em;}

/* ---------- notice ---------- */
.notice{border-radius:6px;padding:.9rem 1.1rem;border:1px solid var(--steel);background:var(--snow-dim);}
.notice--success{border-color:var(--pine);background:#e4ede7;color:var(--pine-dark);}
.notice--error{border-color:var(--berry);background:#f6e3e3;color:var(--berry-dark);}
.notice:empty{display:none;}

/* ---------- forms ---------- */
.form-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.field{display:flex;flex-direction:column;gap:.35em;}
.field--full{grid-column:1/-1;}
.field label{font-family:var(--font-mono);font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;}
.field input,.field select,.field textarea{
  padding:.7em .8em;border:1.5px solid var(--steel);border-radius:4px;font:inherit;background:var(--snow);
  min-height:44px;accent-color:var(--berry);
}
.field textarea{min-height:120px;resize:vertical;}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--amber);}
.field-error{color:var(--berry-dark);font-size:.8rem;}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.form-status{font-size:.9rem;}

/* ---------- newsletter (footer) ---------- */
.newsletter-form{display:flex;flex-wrap:wrap;gap:.6rem;}
.newsletter-form input[type="email"]{
  flex:1 1 180px;padding:.7em .8em;border:1.5px solid var(--steel);border-radius:4px;background:var(--snow);min-height:44px;
}

/* ---------- contact layout ---------- */
.contact-layout{display:grid;gap:clamp(1.5rem,4vw,3rem);grid-template-columns:1.1fr .9fr;align-items:start;}
@media (max-width:760px){.contact-layout{grid-template-columns:1fr;}}
.contact-card{background:var(--snow-dim);border-radius:var(--radius);padding:1.4rem;}
.contact-card ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.8rem;}
.contact-card li{display:flex;align-items:center;gap:.6em;}

/* ---------- faq ---------- */
.faq{display:flex;flex-direction:column;gap:.8rem;}
.faq-item{border:1px solid var(--steel);border-radius:6px;background:var(--snow);overflow:hidden;}
.faq-item summary{
  padding:1rem 1.2rem;cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:1em;min-height:44px;align-items:center;
}
.faq-item summary::after{content:"+";font-family:var(--font-mono);color:var(--amber);font-size:1.3rem;}
.faq-item[open] summary::after{content:"\2212";}
.faq-item p{padding:0 1.2rem 1.1rem;margin:0;color:#2c2a26;}

/* ---------- product detail ---------- */
.product-detail{display:grid;gap:clamp(1.5rem,4vw,3rem);grid-template-columns:1fr 1fr;align-items:start;}
@media (max-width:760px){.product-detail{grid-template-columns:1fr;}}
.product-detail__media img{border-radius:var(--radius);aspect-ratio:4/3;object-fit:cover;width:100%;}
.product-detail__meta{display:flex;gap:1rem;flex-wrap:wrap;font-family:var(--font-mono);font-size:.8rem;color:var(--steel);}
.product-detail__price{font-size:1.6rem;color:var(--pine);font-weight:700;}
.product-detail__features{list-style:none;padding:0;display:flex;flex-direction:column;gap:.5em;}
.product-detail__features li{display:flex;gap:.6em;align-items:center;}

/* ---------- cart table / summary ---------- */
.cart-table{width:100%;border-collapse:collapse;}
.cart-table th,.cart-table td{padding:.8rem;border-bottom:1px solid var(--snow-dim);text-align:left;}
.cart-table img{width:64px;height:64px;object-fit:cover;border-radius:4px;}
.cart-summary{background:var(--snow-dim);border-radius:var(--radius);padding:1.4rem;display:flex;flex-direction:column;gap:.8rem;}
.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(--steel);padding-top:.6rem;}
.qty-input{width:60px;padding:.4em;border:1.5px solid var(--steel);border-radius:4px;min-height:40px;}

/* ---------- cookie banner ---------- */
.cookie-banner{
  position:fixed;left:1rem;right:1rem;bottom:-200px;max-width:640px;margin-inline:auto;z-index:500;
  background:var(--pine-dark);color:var(--snow);border:1px solid var(--amber);border-radius:var(--radius);
  padding:1.2rem 1.4rem;box-shadow:var(--shadow-paper);transition:bottom .4s ease;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;
}
.cookie-banner.is-visible{bottom:1rem;}
.cookie-banner a{color:var(--amber-light);text-decoration:underline;}
.cookie-banner__actions{display:flex;gap:.6rem;flex-wrap:wrap;}

/* ---------- footer ---------- */
.site-footer{background:var(--steel-dark);color:var(--snow);padding-block:3rem 1.4rem;}
.site-footer__grid{
  max-width:1200px;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem);
  display:grid;gap:2rem;grid-template-columns:1.4fr 1fr 1fr 1.3fr;
}
@media (max-width:860px){.site-footer__grid{grid-template-columns:1fr 1fr;}}
@media (max-width:540px){.site-footer__grid{grid-template-columns:1fr;}}
.site-footer h3{font-family:var(--font-mono);text-transform:uppercase;font-size:.85rem;letter-spacing:.06em;color:var(--amber);}
.site-footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5em;}
.site-footer__contact svg{vertical-align:-3px;color:var(--amber);}
.site-footer__bottom{text-align:center;color:var(--steel);margin-top:2rem;font-size:.85rem;}

/* ---------- 404 ---------- */
.error-page{text-align:center;padding-block:clamp(3rem,10vw,6rem);}
.error-page__code{font-family:var(--font-display);font-size:clamp(4rem,14vw,9rem);color:var(--pine);margin:0;}

@media (max-width:390px){
  .container{padding-inline:1rem;}
}

/* ============================================================
   COMPONENTS: .class - what it is
   .container - centered max-width content wrapper
   .section - vertical page section spacing
   .grid / .grid--2 / .grid--3 / .grid--4 - responsive grid layouts
   .stack - vertical flex gap wrapper
   .eyebrow - small amber/berry label above headings
   .reveal / .reveal--clip - scroll-reveal animation hooks (JS toggles .in-view)
   .btn / .btn--amber / .btn--berry / .btn--ghost / .btn--block / .btn--sm - button variants with fill-sweep hover
   .site-header / .site-header__bar - sticky top navigation bar
   .logo / .logo__mark / .logo__word - brand logo lockup
   .nav-toggle - mobile hamburger button
   .site-nav - main navigation (off-canvas on mobile)
   .cart-link / .cart-count - header cart icon + live count (JD.cart.renderCount)
   .hero / .hero__grid / .hero__title / .hero__lead / .hero__art / .hero__actions - home hero section
   .hero__grain - SVG noise overlay for texture
   .divider - decorative SVG section divider
   .seal - decorative circular SVG badge/seal
   .story / .story__track / .story__card / .story__num - horizontal scroll story section
   .product-strip - scroll-snap product list (mobile) / grid (desktop)
   .card / .card__media / .card__body / .card__level / .card__title / .card__price / .card__link - product/service card
   .schedule / .schedule__grid / .schedule__slot / .schedule__day / .schedule__time / .schedule__seats / .schedule__note - "Živi raspored" signature feature
   .jd-toast - transient toast notification
   .page-hero - inner page header band
   .breadcrumbs - breadcrumb trail
   .prose - readable long-form legal/content text column
   .legal-toc - table of contents box for legal pages
   .notice / .notice--success / .notice--error - inline status/alert box
   .form-grid / .field / .field--full / .field-error - form layout and field wrapper
   .hp-field - visually hidden honeypot input
   .form-status - form submit feedback text
   .newsletter-form - footer newsletter signup form
   .contact-layout / .contact-card - contact page two-column layout
   .faq / .faq-item - FAQ accordion (details/summary)
   .product-detail / .product-detail__media / .product-detail__meta / .product-detail__price / .product-detail__features - product/service detail layout
   .cart-table / .cart-summary / .cart-summary__row / .qty-input - cart/booking table and totals
   .cookie-banner / .cookie-banner__actions - cookie consent banner
   .site-footer / .site-footer__grid / .site-footer__col / .site-footer__brand / .site-footer__contact / .site-footer__bottom - site footer
   .error-page / .error-page__code - 404 page layout
============================================================ */

/* wg-contrast-autofix */
section.hero div.hero__grid div p.eyebrow { color: #ffffff !important; }
#main section.section.story div.story__head.reveal p.eyebrow { color: #ffffff !important; }
footer.site-footer div.site-footer__bottom p { color: #ffffff !important; }
