/* ===== Sladoled Dom — Art-deco revival design system ===== */
:root {
  --cream: #f4e9d4;
  --cream-deep: #ecdcb9;
  --terracotta: #c3663b;
  --terracotta-deep: #9f4b27;
  --olive: #5b5a33;
  --olive-deep: #3e3d22;
  --ink: #2b2a1c;
  --gold: #b68a3e;
  --white: #fffaf0;
  --radius: 4px;
  --max: 1180px;
  --font-display: "Big Caslon", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Futura", "Century Gothic", Verdana, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

* { 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: var(--terracotta-deep); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--olive-deep); margin: 0 0 .5em; letter-spacing: .02em; }
.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(--olive); color: var(--white); padding: .5em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.stack-sm > * + * { margin-top: .75rem; }
.stack-md > * + * { margin-top: 1.5rem; }
.center { text-align: center; }
.mt-lg { margin-top: clamp(2rem,5vw,4rem); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream); border-bottom: 2px solid var(--olive);
}
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--olive-deep); }
.brand__mark { color: var(--terracotta); flex-shrink: 0; }
.brand__word { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em; }
.brand__place { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta-deep); }

.nav-toggle { display: none; background: none; border: 1px solid var(--olive); border-radius: var(--radius); padding: .4rem; color: var(--olive); min-width: 44px; min-height: 44px; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem,2vw,2rem); }
.site-nav__list { list-style: none; display: flex; gap: clamp(.9rem,1.6vw,1.6rem); margin: 0; padding: 0; }
.site-nav__list a {
  color: var(--ink); font-size: .92rem; letter-spacing: .03em; position: relative; padding: .3rem 0;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav__list a:hover::after, .site-nav__list a.is-active::after { transform: scaleX(1); }
.site-nav__list a.is-active { color: var(--terracotta-deep); }

.cart-link { position: relative; display: inline-flex; color: var(--olive-deep); min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.cart-count {
  position: absolute; top: -2px; right: -2px; background: var(--terracotta); color: var(--white);
  font-size: .68rem; min-width: 1.2rem; height: 1.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cart-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px,85vw); background: var(--cream);
    flex-direction: column; align-items: flex-start; padding: 5rem 1.5rem 2rem; gap: 1.5rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
    border-left: 2px solid var(--olive); z-index: 150;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav__list { flex-direction: column; gap: 1.1rem; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .85rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--olive); cursor: pointer;
  min-height: 44px; position: relative; overflow: hidden; background: transparent; color: var(--olive-deep);
}
.btn--sweep { background: var(--terracotta-deep); color: var(--white); border-color: var(--terracotta-deep); }
.btn--sweep::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%;
  background: var(--olive-deep); transition: left .3s var(--ease); z-index: 0;
}
.btn--sweep:hover::before, .btn--sweep:focus-visible::before { left: 0; }
.btn--sweep span, .btn--sweep { position: relative; }
.btn--sweep > * { position: relative; z-index: 1; }
.btn--ghost { background: transparent; color: var(--olive-deep); border-color: var(--olive-deep); }
.btn--on-dark { color: var(--cream); border-color: var(--cream); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden; padding: clamp(3rem,8vw,6rem) 0 clamp(4rem,10vw,7rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  border-bottom: 2px solid var(--olive);
}
.hero__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; color: var(--terracotta-deep); }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
.hero__lead { font-size: 1.1rem; max-width: 34ch; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } .hero__art { max-width: 420px; margin: 0 auto; } }

/* ---- page hero for inner pages ---- */
.page-hero {
  padding: clamp(2.5rem,6vw,4rem) 0 clamp(2rem,4vw,3rem);
  background: var(--cream-deep); border-bottom: 2px solid var(--olive); text-align: left;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { max-width: 60ch; }

.breadcrumbs { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--olive); flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--terracotta); }
.breadcrumbs a { color: var(--olive-deep); }

/* ---- ornaments / dividers ---- */
.divider-wave { width: 100%; height: 40px; color: var(--olive); display: block; }
.ornament { color: var(--terracotta); }
.sunburst { width: 100%; height: auto; color: var(--gold); }

/* ---- cards ---- */
.card {
  background: var(--white); border: 1px solid var(--cream-deep); border-radius: var(--radius);
  padding: 1.5rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 1px 0 var(--cream-deep);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -14px rgba(43,42,28,.35); }

.product-card { display: flex; flex-direction: column; gap: .75rem; }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--cream-deep); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__price { color: var(--terracotta-deep); font-weight: 600; }

/* horizontal scroll-snap strip (mobile) */
.product-strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .product-card { min-width: 240px; scroll-snap-align: start; }
@media (min-width: 760px) { .product-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); overflow: visible; } }

/* ---- feature section (signature) ---- */
.feature {
  background: var(--olive); color: var(--cream); border-radius: var(--radius);
  padding: clamp(2rem,5vw,3.5rem); display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: center;
}
.feature h2, .feature h3 { color: var(--cream); }
.feature-tool { background: var(--olive-deep); border-radius: var(--radius); padding: 1.5rem; }
.feature-tool label { display: block; font-size: .85rem; margin-bottom: .3rem; letter-spacing: .04em; }
.feature-tool select, .feature-tool input[type="number"] {
  width: 100%; padding: .7rem; border-radius: var(--radius); border: 1px solid var(--cream); background: var(--cream); color: var(--ink); margin-bottom: 1rem; min-height: 44px;
}
.feature-tool__result { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease), clip-path .6s var(--ease); clip-path: inset(0 0 15% 0); }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal--stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; clip-path: none; }
}

/* ---- prose (legal pages) ---- */
.prose { max-width: 68ch; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.legal-toc { background: var(--white); border: 1px solid var(--cream-deep); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }

/* ---- notice ---- */
.notice { border-left: 3px solid var(--terracotta); background: var(--cream-deep); border-radius: var(--radius); padding: 1rem 1.25rem; }
.notice--success { border-color: var(--olive); }
.notice--error { border-color: #a33; }

/* ---- forms ---- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; letter-spacing: .03em; color: var(--olive-deep); }
.field input, .field select, .field textarea {
  padding: .75rem .9rem; border: 1px solid var(--olive); border-radius: var(--radius); background: var(--white);
  font-family: var(--font-body); font-size: 1rem; accent-color: var(--terracotta); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: #a33; font-size: .8rem; min-height: 1.1em; }
.field-inline { display: flex; gap: .5rem; }
.field-inline input { flex: 1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { padding: .5rem 0; font-size: .9rem; color: var(--olive-deep); }
.form-note--error { color: #a33; }

/* ---- FAQ ---- */
.faq { max-width: 70ch; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--cream-deep); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; color: var(--olive-deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--terracotta); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: .75rem 0 0; }

/* ---- product detail ---- */
.product-detail { display: grid; gap: clamp(1.5rem,4vw,3rem); grid-template-columns: 1fr 1fr; align-items: start; }
.product-detail__media { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); background: var(--cream-deep); }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; color: var(--terracotta-deep); font-family: var(--font-display); }
@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: .75rem .5rem; border-bottom: 1px solid var(--cream-deep); }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.cart-summary { background: var(--white); border: 1px solid var(--cream-deep); border-radius: var(--radius); padding: 1.5rem; }
.cart-summary dl { display: flex; justify-content: space-between; margin: .5rem 0; }
.qty-input { width: 4rem; min-height: 40px; }

/* ---- contact layout ---- */
.contact-layout { display: grid; gap: clamp(1.5rem,4vw,3rem); grid-template-columns: 1.1fr .9fr; }
.contact-info ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-info li { display: flex; gap: .6rem; align-items: flex-start; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---- footer ---- */
.site-footer { background: var(--olive-deep); color: var(--cream); padding-top: clamp(2rem,5vw,3.5rem); }
.site-footer a { color: var(--cream); opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 2rem;
  display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
.footer-col h3 { color: var(--cream); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-tag { max-width: 24ch; opacity: .85; }
.footer-contact { display: flex; gap: .5rem; align-items: center; font-size: .9rem; opacity: .9; }
.newsletter-form .field-inline input { background: var(--cream); border: none; }
.site-footer__bottom { border-top: 1px solid rgba(244,233,212,.2); text-align: center; padding: 1rem; font-size: .85rem; opacity: .8; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---- cookie banner ---- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin: 0 auto;
  background: var(--olive-deep); color: var(--cream); border-radius: var(--radius); padding: 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; z-index: 180;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}
.cookie-banner__actions { display: flex; gap: .75rem; }

/* ---- grain overlay texture ---- */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; mix-blend-mode: multiply; z-index: 1; }

@media (max-width: 390px) { .hero__title { font-size: 2.2rem; } }

/* COMPONENTS: .class - what it is
.container - max-width centered padding wrapper
.section - vertical page section spacing
.grid / .grid-2 / .grid-3 - responsive grid helpers
.stack-sm / .stack-md - vertical spacing between children
.site-header - sticky top header bar
.brand / .brand__mark / .brand__word / .brand__name / .brand__place - logo lockup
.nav-toggle - mobile hamburger button
.site-nav / .site-nav__list - main nav, off-canvas on mobile
.cart-link / .cart-count - header cart icon + animated badge
.btn / .btn--sweep / .btn--ghost / .btn--on-dark / .btn--block - button variants
.hero / .hero__inner / .hero__eyebrow / .hero__title / .hero__lead / .hero__art - home hero layout
.page-hero - inner page hero/header band
.breadcrumbs - breadcrumb trail list
.divider-wave / .ornament / .sunburst - decorative SVG dividers/ornaments
.card - generic hover-lift card
.product-card / .product-card__media / .product-card__price - catalog product card
.product-strip - horizontal scroll-snap product row on mobile
.feature / .feature-tool / .feature-tool__result - signature interactive feature section
.reveal / .reveal--stagger / .in-view - scroll reveal animation hooks
.prose - long-form legal/readable text column
.legal-toc - table of contents box for legal pages
.notice / .notice--success / .notice--error - callout banners
.form-grid / .field / .field--full / .field-error / .field-inline - form layout system
.hp-field - visually hidden honeypot input
.form-note / .form-note--error - inline form feedback message
.faq / .faq-item - details/summary FAQ list
.product-detail / .product-detail__media / .product-detail__price - single product page layout
.cart-table / .cart-summary / .qty-input - cart/checkout table and summary box
.contact-layout / .contact-info - contact page two-column layout
.site-footer / .footer-col / .footer-tag / .footer-contact - footer layout
.cookie-banner / .cookie-banner__actions - cookie consent banner
.grain - fixed full-screen grain texture overlay
.skip-link / .sr-only - accessibility helpers
*/

/* ---- footer col variants ---- */
.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col--brand svg {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.footer-col--news {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- hero copy text ---- */
.hero__copy {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 45ch;
}

@media (max-width: 390px) {
  .hero__copy {
    font-size: 0.95rem;
  }
}

/* wg-contrast-autofix */
#cookieBanner p a { color: #ffffff !important; }
#cookieDecline { color: #ffffff !important; }
