/* ===== Med Jutro — Desert Modernism design system ===== */
:root {
  --plum: #3a1f2b;
  --plum-deep: #241019;
  --terracotta: #b5532f;
  --blush: #e7b7a6;
  --gold: #d99a2b;
  --sand-1: #f7ecd9;
  --sand-2: #efdcbd;
  --cream: #fffaf1;
  --ink: #2a1a12;
  --line: rgba(42,26,18,.14);
  --radius-lg: 2.5rem;
  --radius-md: 1.25rem;
  --radius-sm: .6rem;
  --shadow-1: 0 18px 40px -20px rgba(36,16,25,.35);
  --shadow-2: 0 8px 20px -10px rgba(36,16,25,.3);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Consolas, monospace;
  --measure: 68ch;
}
*,*::before,*::after{box-sizing:border-box;}
html,body{overflow-x:clip;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--sand-1);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3,h4{font-family:var(--font-display);margin:0 0 .5em;line-height:1.1;}
p{margin:0 0 1em;}
:focus-visible{outline:3px solid var(--terracotta);outline-offset:3px;border-radius:.25rem;}
.container{width:min(1180px,92vw);margin-inline:auto;}
.visually-hidden{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}

/* ===== spacing / layout utilities ===== */
.section{padding-block:clamp(3rem,8vw,6.5rem);}
.flow > * + *{margin-top:1em;}
.grid{display:grid;gap:clamp(1rem,2vw,2rem);}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.stack{display:flex;flex-direction:column;gap:1rem;}
.cluster{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;}
.text-center{text-align:center;}

/* ===== reveal ===== */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);}
.reveal.in-view{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none;}}

/* ===== header ===== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(247,236,217,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.9rem;}
.logo{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--plum-deep);}
.logo svg{width:40px;height:40px;flex:none;}
.logo-word{font-family:var(--font-display);font-size:1.3rem;letter-spacing:.02em;}
.site-nav{display:flex;align-items:center;gap:1.4rem;}
.site-nav a{text-decoration:none;font-size:.95rem;color:var(--plum-deep);position:relative;padding-block:.2rem;}
.site-nav a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;background:var(--terracotta);transition:width .3s ease;}
.site-nav a:hover::after,.site-nav a.is-active::after{width:100%;}
.site-nav a.is-active{color:var(--terracotta);}
.header-cart{display:inline-flex;align-items:center;gap:.4rem;text-decoration:none;color:var(--plum-deep);font-weight:600;}
.header-cart svg{width:22px;height:22px;}
.cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.4em;height:1.4em;border-radius:50%;background:var(--terracotta);color:#fff;font-size:.75rem;padding:0 .3em;}
.cart-count.is-empty{background:var(--blush);color:var(--plum-deep);}
.cart-count.bump{animation:bump .4s ease;}
@keyframes bump{0%{transform:scale(1);}40%{transform:scale(1.4);}100%{transform:scale(1);}}
.nav-toggle{display:none;background:none;border:0;width:44px;height:44px;place-items:center;cursor:pointer;}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{content:"";display:block;width:22px;height:2px;background:var(--plum-deep);position:relative;transition:.25s;}
.nav-toggle span::before{position:absolute;top:-7px;}
.nav-toggle span::after{position:absolute;top:7px;}

@media (max-width:860px){
  .nav-toggle{display:grid;}
  .site-nav{
    position:fixed;inset:0 0 0 auto;width:min(320px,84vw);
    background:var(--cream);flex-direction:column;align-items:flex-start;
    padding:6rem 1.6rem 2rem;gap:1.1rem;
    transform:translateX(100%);visibility:hidden;
    transition:transform .35s ease, visibility .35s ease;
    box-shadow:var(--shadow-1);
  }
  .site-nav.is-open{transform:translateX(0);visibility:visible;}
  .header-cart{order:-1;}
}

/* ===== buttons ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font:inherit;font-weight:600;font-size:.95rem;
  padding:.85rem 1.6rem;border-radius:100px;border:1px solid transparent;
  text-decoration:none;cursor:pointer;position:relative;overflow:hidden;isolation:isolate;
  min-height:44px;
}
.btn::before{
  content:"";position:absolute;inset:0;left:-100%;width:100%;z-index:-1;
  background:var(--plum-deep);transition:left .35s ease;
}
.btn-primary{background:var(--terracotta);color:#fff;}
.btn-primary:hover::before{left:0;}
.btn-ghost{background:transparent;border-color:var(--plum-deep);color:var(--plum-deep);}
.btn-ghost:hover{background:var(--plum-deep);color:var(--sand-1);}
.btn-dark{background:var(--plum-deep);color:var(--sand-1);border-color:var(--plum-deep);}
.btn-dark:hover::before{left:0;background:var(--terracotta);}
.btn-sm{padding:.5rem 1.1rem;font-size:.85rem;}
.btn[disabled]{opacity:.5;cursor:not-allowed;}

/* ===== hero ===== */
.hero{position:relative;padding-block:clamp(3rem,10vw,7rem) clamp(2rem,6vw,4rem);overflow:hidden;}
.hero-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:center;}
.hero-kicker{font-family:var(--font-mono);letter-spacing:.18em;text-transform:uppercase;font-size:.78rem;color:var(--terracotta);}
.hero-title{font-size:clamp(2.6rem,7vw,5.2rem);color:var(--plum-deep);}
.hero-title em{font-style:normal;color:var(--terracotta);}
.hero-lead{max-width:38ch;font-size:1.1rem;}
.hero-visual{position:relative;aspect-ratio:1/1;display:grid;place-items:center;}
.hero-badge{
  position:absolute;width:100%;height:100%;
  animation:spin 28s linear infinite;
}
@media (prefers-reduced-motion:reduce){.hero-badge{animation:none;}}
@keyframes spin{to{transform:rotate(360deg);}}
.hero-photo{
  width:78%;aspect-ratio:1/1;border-radius:50%;overflow:hidden;
  border:6px solid var(--cream);box-shadow:var(--shadow-1);
  filter:sepia(.12) saturate(1.1);
}
.hero-photo img{width:100%;height:100%;object-fit:cover;}
@media (max-width:860px){.hero-grid{grid-template-columns:1fr;}}

/* ===== magazine section index ===== */
.index-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line);}
.index-row{
  display:flex;align-items:baseline;gap:1.2rem;padding:1.3rem 0;
  border-bottom:1px solid var(--line);
}
.index-num{font-family:var(--font-mono);color:var(--terracotta);font-size:.85rem;width:2.4em;}
.index-row h3{margin:0;font-size:clamp(1.3rem,3vw,2.1rem);}
.index-row p{margin:0;max-width:34ch;color:var(--plum);}
.index-row{flex-wrap:wrap;}

/* ===== cards ===== */
.card{
  background:var(--cream);border-radius:var(--radius-md);padding:1.6rem;
  box-shadow:var(--shadow-2);border:1px solid var(--line);
  transition:transform .3s ease, box-shadow .3s ease;
}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow-1);}
.product-card{display:flex;flex-direction:column;gap:.9rem;}
.product-card .media{border-radius:var(--radius-sm);overflow:hidden;aspect-ratio:4/3;}
.product-card .media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.product-card:hover .media img{transform:scale(1.08);}
.product-card .price{font-family:var(--font-mono);color:var(--terracotta);font-weight:700;}

.strip{display:flex;gap:1.2rem;overflow-x:auto;padding-bottom:.5rem;scroll-snap-type:x mandatory;}
.strip .product-card{min-width:240px;scroll-snap-align:start;}
@media (min-width:860px){.strip{overflow:visible;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}}

/* ===== compass feature ===== */
.compass{
  background:var(--plum-deep);color:var(--sand-1);border-radius:var(--radius-lg);
  padding:clamp(1.8rem,4vw,3.2rem);position:relative;overflow:hidden;
}
.compass h2,.compass h3{color:var(--sand-1);}
.compass-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start;}
.compass-controls .field{margin-bottom:1.3rem;}
.compass-controls label{display:block;font-size:.85rem;margin-bottom:.4rem;color:var(--blush);}
.compass-controls input[type="range"]{width:100%;accent-color:var(--gold);}
.compass-result{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-md);padding:1.4rem;min-height:160px;}
.compass-result .name{font-family:var(--font-display);font-size:1.6rem;color:var(--gold);}
@media (max-width:760px){.compass-grid{grid-template-columns:1fr;}}

/* ===== dividers / decorative ===== */
.divider{width:100%;display:block;height:auto;color:var(--terracotta);}
.seal{width:120px;height:120px;}

/* ===== footer ===== */
.site-footer{background:var(--plum-deep);color:var(--sand-1);padding-block:3.5rem 2rem;}
.site-footer a{text-decoration:none;color:var(--sand-1);opacity:.85;}
.site-footer a:hover{opacity:1;text-decoration:underline;}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:2rem;}
.footer-grid h4{color:var(--gold);font-size:.9rem;text-transform:uppercase;letter-spacing:.08em;font-family:var(--font-body);}
.footer-grid ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem;}
.footer-bottom{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.14);display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;font-size:.85rem;opacity:.75;}
.newsletter-form{display:flex;gap:.6rem;flex-wrap:wrap;}
.newsletter-form input[type="email"]{
  flex:1;min-width:180px;padding:.7rem 1rem;border-radius:100px;border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.08);color:var(--sand-1);font:inherit;
}
@media (max-width:860px){.footer-grid{grid-template-columns:1fr 1fr;}}

/* ===== cookie banner ===== */
.cookie-banner{
  position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:80;max-width:620px;margin-inline:auto;
  background:var(--plum-deep);color:var(--sand-1);border-radius:var(--radius-md);
  padding:1.3rem 1.5rem;box-shadow:var(--shadow-1);display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;
}
.cookie-banner p{margin:0;font-size:.9rem;flex:1 1 220px;}
.cookie-banner a{text-decoration:underline;color:var(--gold);}
.cookie-banner .btn-ghost{border-color:rgba(255,255,255,.5);color:var(--sand-1);}
.cookie-banner .btn-ghost:hover{background:rgba(255,255,255,.15);color:var(--sand-1);}

/* ===== grain overlay ===== */
.grain{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;opacity:.05;mix-blend-mode:multiply;z-index:1;}

/* ===== inner-page components (for the 11 inner pages) ===== */
.page-hero{
  padding:clamp(3rem,8vw,5rem) 0 clamp(2rem,4vw,3rem);
  background:linear-gradient(160deg,var(--sand-2),var(--sand-1));
  border-bottom:1px solid var(--line);
}
.page-hero h1{font-size:clamp(2.2rem,5vw,3.4rem);color:var(--plum-deep);}
.breadcrumbs{list-style:none;display:flex;gap:.5rem;padding:0;margin:0 0 1rem;font-size:.85rem;color:var(--plum);}
.breadcrumbs li:not(:last-child)::after{content:"/";margin-left:.5rem;opacity:.5;}
.breadcrumbs a{text-decoration:none;}
.breadcrumbs a:hover{text-decoration:underline;}

.prose{max-width:var(--measure);}
.prose h2{margin-top:2em;font-size:1.5rem;}
.prose h3{font-size:1.15rem;}
.prose ul,.prose ol{padding-left:1.3em;}
.prose li{margin-bottom:.4em;}

.notice{border-radius:var(--radius-sm);padding:1rem 1.2rem;border:1px solid var(--line);background:var(--cream);font-size:.95rem;}
.notice--success{background:#e7f3df;border-color:#bcd9a4;color:#2c4a1a;}
.notice--error{background:#fbe4e1;border-color:#edb3ab;color:#7a241a;}
.notice--info{background:var(--sand-2);}

.form-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.field{display:flex;flex-direction:column;gap:.4rem;}
.field label{font-size:.85rem;font-weight:600;}
.field input,.field textarea,.field select{
  font:inherit;padding:.75rem .9rem;border-radius:var(--radius-sm);border:1px solid var(--line);
  background:var(--cream);color:var(--ink);accent-color:var(--terracotta);
}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--terracotta);}
.field-error{color:#a3291a;font-size:.8rem;min-height:1.2em;}
.field-full{grid-column:1/-1;}
.honeypot-field{position:absolute !important;left:-9999px;top:-9999px;}

.faq{display:flex;flex-direction:column;gap:.9rem;max-width:var(--measure);}
.faq-item{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--cream);padding:.3rem 1.2rem;}
.faq-item summary{cursor:pointer;padding:.9rem 0;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:1rem;}
.faq-item summary::after{content:"+";font-size:1.3rem;color:var(--terracotta);}
.faq-item[open] summary::after{content:"\2212";}
.faq-item p{padding-bottom:1rem;margin:0;}

.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:start;}
.product-detail .media{border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:1/1;}
.product-detail .media img{width:100%;height:100%;object-fit:cover;}
@media (max-width:760px){.product-detail{grid-template-columns:1fr;}}

.cart-table{width:100%;border-collapse:collapse;}
.cart-table th,.cart-table td{text-align:left;padding:.8rem .6rem;border-bottom:1px solid var(--line);}
.cart-table img{width:64px;height:64px;object-fit:cover;border-radius:var(--radius-sm);}
.cart-summary{background:var(--cream);border:1px solid var(--line);border-radius:var(--radius-md);padding:1.5rem;display:flex;flex-direction:column;gap:.8rem;}
.cart-summary .total-row{display:flex;justify-content:space-between;font-weight:700;font-size:1.2rem;border-top:1px solid var(--line);padding-top:.8rem;}

.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);}
@media (max-width:760px){.contact-layout{grid-template-columns:1fr;}}

.legal-toc{background:var(--cream);border:1px solid var(--line);border-radius:var(--radius-md);padding:1.3rem 1.5rem;margin-bottom:2rem;}
.legal-toc ol{margin:0;padding-left:1.2em;}
.legal-toc a{text-decoration:none;}
.legal-toc a:hover{text-decoration:underline;}

.icon{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6;}

/* ===== 404 ===== */
.error-page{min-height:60vh;display:grid;place-items:center;text-align:center;padding:4rem 1rem;}

/* COMPONENTS:
.container - centered max-width wrapper
.section - vertical page section padding
.flow - vertical rhythm spacing for stacked children
.grid / .grid-2 / .grid-3 - responsive grid layouts
.stack - flex column with gap
.cluster - flex row wrap with gap
.reveal - scroll-reveal animation hook (JS adds .in-view)
.site-header - sticky top header bar
.logo / .logo-word - brand mark + wordmark
.site-nav - main navigation (mobile off-canvas on small screens)
.nav-toggle - mobile hamburger button
.header-cart / .cart-count - cart link + animated item count badge
.btn / .btn-primary / .btn-ghost / .btn-dark / .btn-sm - button variants with fill-sweep hover
.hero / .hero-grid / .hero-kicker / .hero-title / .hero-lead - home hero layout
.hero-visual / .hero-badge / .hero-photo - rotating badge + photo composition
.index-list / .index-row / .index-num - magazine-style numbered section index
.card - generic elevated card
.product-card - product/service card with media zoom on hover
.strip - horizontal scroll-snap product strip on mobile
.compass / .compass-grid / .compass-controls / .compass-result - signature "Medeni kompas" feature
.divider / .seal - decorative SVG dividers and seals
.site-footer / .footer-grid / .footer-bottom - site footer
.newsletter-form - footer newsletter signup
.cookie-banner - GDPR cookie consent banner
.grain - fixed full-viewport noise overlay
.page-hero - inner page hero/title band
.breadcrumbs - breadcrumb trail list
.prose - readable-measure long-form text (legal pages etc.)
.notice / .notice--success / .notice--error / .notice--info - inline status messages
.form-grid / .field / .field-error / .field-full - form layout system
.honeypot-field - visually hidden anti-spam field
.faq / .faq-item - details/summary FAQ accordion
.product-detail - product page two-column layout
.cart-table / .cart-summary - cart/checkout table and summary box
.contact-layout - contact page two-column layout
.legal-toc - table of contents box for legal pages
.icon - inline SVG sprite icon sizing
.error-page - 404 page centered layout
*/

/* ===== missing form classes ===== */
.order-form,
.product-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-qty {
  font: inherit;
  padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  accent-color: var(--terracotta);
}

.cart-qty:focus {
  border-color: var(--terracotta);
  outline: none;
}
