/* Pranjeprozora Val — Winter Frost design system */
:root {
  --ink: #10161c;
  --ink-soft: #2a333c;
  --paper: #f3f6f8;
  --paper-dim: #e4eaee;
  --grey-1: #8893a0;
  --grey-2: #c6ccd3;
  --accent: #19c3ff;
  --accent-deep: #0d8fc4;
  --line: #d4dbe1;
  --radius: 14px;
  --font-display: "Source Serif Pro", Georgia, "Iowan Old Style", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --measure: 68ch;
}
html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; }
p { line-height: 1.6; margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243,246,248,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { flex: none; width: 40px; height: 40px; }
.logo__word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.logo__word em { font-style: normal; color: var(--accent-deep); }
.logo__word--footer { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); position: relative; }
.site-nav a:not(.nav-cart)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .25s ease; }
.site-nav a:not(.nav-cart):hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--ink); }
.nav-cart { display: flex; align-items: center; color: var(--ink); position: relative; }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--accent); color: var(--ink); font-size: .68rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.cart-badge.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 76px 0 0 auto; width: min(78vw, 320px);
    background: var(--ink); color: #fff; flex-direction: column; align-items: flex-start;
    padding: 32px 28px; gap: 22px;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: #fff; }
  .site-nav a.is-active { color: var(--accent); }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .95rem; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; min-height: 44px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.cookie-banner .btn--ghost { color: #fff; border-color: #fff; }
.btn--sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--accent-deep); z-index: -1; transition: left .3s ease; }
.btn--sweep:hover::before { left: 0; }
.btn--sweep.btn--accent:hover { color: #fff; }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---- hero / page-hero ---- */
.hero { position: relative; padding: 48px 0 90px; overflow: hidden; }
.hero-blob { position: absolute; top: -10%; right: -8%; width: min(62vw, 640px); z-index: 0; color: var(--accent); opacity: .35; animation: blobmorph 14s ease-in-out infinite; }
@keyframes blobmorph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33% { border-radius: 60% 40% 34% 66% / 55% 61% 39% 45%; }
  66% { border-radius: 38% 62% 55% 45% / 62% 36% 64% 38%; }
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-headline { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -.01em; }
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: linear-gradient(200deg, rgba(25,195,255,.25), transparent 60%); mix-blend-mode: screen; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-blob { width: 80vw; } }

.page-hero { padding: 54px 0 46px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.page-hero p { color: var(--grey-2); max-width: var(--measure); }
.page-hero .breadcrumbs a, .page-hero .breadcrumbs span { color: var(--grey-2); }

.breadcrumbs { list-style: none; display: flex; gap: 8px; margin: 0 0 16px; padding: 0; font-size: .85rem; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--grey-1); }
.breadcrumbs li:last-child::after { content: ""; }

/* ---- section index (magazine composition) ---- */
.section-index { display: flex; gap: 18px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 60px; }
.section-index a { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: baseline; }
.section-index a span { color: var(--accent-deep); font-weight: 700; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 12% 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.reveal-1 { transition-delay: .05s; } .reveal-2 { transition-delay: .15s; } .reveal-3 { transition-delay: .25s; } .reveal-4 { transition-delay: .35s; }

/* ---- cards / grid ---- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -20px rgba(16,22,28,.35); }
.card svg { color: var(--accent-deep); }

.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -20px rgba(16,22,28,.35); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__price { font-family: var(--font-mono); color: var(--accent-deep); font-weight: 700; }
.product-card__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-1); }

.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 720px) { .product-strip { display: grid; grid-auto-flow: unset; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: visible; } }

/* ---- Staklometar (feature) ---- */
.staklometar { background: var(--ink); color: #fff; border-radius: 22px; padding: 44px; position: relative; overflow: hidden; }
.staklometar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(25,195,255,.28), transparent 55%); }
.staklometar-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .staklometar-grid { grid-template-columns: 1fr; } }
.staklometar .field label { color: var(--grey-2); }
.staklometar-result { font-size: 1.1rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 18px; margin-top: 10px; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--grey-2); }

/* ---- forms ---- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.form-grid--1 { grid-template-columns: 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; accent-color: var(--accent-deep); min-height: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-deep); }
.field-error { color: #c23b3b; font-size: .8rem; min-height: 1em; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c23b3b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- notices ---- */
.notice { border-radius: 12px; padding: 16px 20px; border: 1px solid var(--line); background: #fff; display: flex; gap: 10px; align-items: flex-start; }
.notice--success { border-color: #2f9e5a; background: #effaf3; color: #1f6b3b; }
.notice--error { border-color: #c23b3b; background: #fdeeee; color: #8d2a2a; }
.notice--info { border-color: var(--accent-deep); background: #eafaff; color: var(--accent-deep); }

/* ---- prose / legal ---- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; line-height: 1.6; }
.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; max-width: var(--measure); }
.legal-toc h2 { font-size: 1.05rem; margin-bottom: .6em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc li { margin-bottom: .3em; }
.legal-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ---- faq ---- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: var(--measure); }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent-deep); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 16px; color: var(--ink-soft); }

/* ---- product detail ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.product-detail__price { font-family: var(--font-mono); font-size: 1.6rem; color: var(--accent-deep); font-weight: 700; }
.product-detail__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.product-detail__list li { display: flex; gap: 10px; align-items: flex-start; }
.product-detail__list svg { flex: none; color: var(--accent-deep); margin-top: 3px; }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-row button { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; }
.qty-row input { width: 56px; text-align: center; padding: 8px; border-radius: 8px; border: 1.5px solid var(--line); }

/* ---- cart / checkout ---- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey-1); }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; max-width: 360px; margin-left: auto; }
.cart-summary dl { display: flex; justify-content: space-between; margin: 0 0 10px; }
.cart-summary dt { color: var(--ink-soft); }
.cart-summary .total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: 12px; }
.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ---- contact ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-detail svg { color: var(--accent-deep); flex: none; margin-top: 3px; }

/* ---- divider / decorative svg ---- */
.divider { width: 100%; height: 48px; color: var(--grey-2); }
.seal { width: 92px; height: 92px; color: var(--accent-deep); }
.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(--ink); color: var(--grey-2); position: relative; padding-top: 0; }
.footer-wave { display: block; color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr 1.1fr; gap: 40px; padding: 10px 24px 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-nav h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .8em; }
.footer-nav a { display: block; color: var(--grey-2); margin-bottom: .6em; font-size: .92rem; }
.footer-nav a:hover { color: var(--accent); }
.newsletter h3 { color: #fff; margin-bottom: .3em; }
.newsletter p { font-size: .88rem; }
.newsletter .field label { color: var(--grey-2); }
.newsletter-success { color: var(--accent); font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px 28px; font-size: .82rem; }
.footer-bottom a { color: var(--grey-2); display: inline-flex; align-items: center; gap: 6px; }

/* ---- cookie banner ---- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); max-width: 760px; margin: 0 auto; }
.cookie-banner p { margin: 0; font-size: .9rem; max-width: 46ch; color: var(--grey-2); }
.cookie-banner a { color: var(--accent); }
.cookie-banner__actions { display: flex; gap: 10px; flex: none; }

/* ---- toast ---- */
.pv-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: opacity .3s, transform .3s; z-index: 200; pointer-events: none; }
.pv-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- utility ---- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 48px; } .mb-lg { margin-bottom: 48px; }
.section { padding: 70px 0; }
.section--tight { padding: 40px 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; left: -9999px; }
.eyebrow { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); display: block; margin-bottom: .6em; }

/* COMPONENTS: .class - what it is
.site-header - sticky header bar
.logo / .logo__mark / .logo__word - svg logo + wordmark
.site-nav - main nav (also mobile off-canvas panel)
.nav-toggle - mobile hamburger button
.cart-badge - cart count bubble on nav cart link, .bump on add
.btn / .btn--accent / .btn--dark / .btn--ghost / .btn--outline / .btn--sweep - button variants, sweep = fill-sweep hover
.hero / .hero-grid / .hero-headline / .hero-lede / .hero-media / .hero-tag / .hero-blob - home hero with morphing blob
.page-hero - dark hero band for inner pages
.breadcrumbs - breadcrumb trail list
.section-index - magazine-style numbered section index on home
.reveal / .reveal-1..4 / .in-view - scroll reveal animation + stagger delays
.grid / .grid--2 / .grid--3 - simple responsive grids
.card - generic content card
.product-card / .product-card__media / .product-card__body / .product-card__price / .product-card__cat - catalog service card
.product-strip - horizontal scroll-snap strip on mobile, grid on desktop
.staklometar / .staklometar-grid / .staklometar-result / .radio-row - signature estimator tool
.form-grid / .form-grid--1 / .field / .field-error / .hp - form layout, field wrapper, inline error, honeypot
.notice / .notice--success / .notice--error / .notice--info - alert/notice boxes
.prose - long-form legal/readable text column
.legal-toc / .legal-layout - table of contents box for legal pages
.faq / .faq-item - details/summary accordion
.product-detail / .product-detail__price / .product-detail__list / .qty-row - service detail page layout
.cart-table / .cart-summary - booking basket table + summary box
.checkout-layout - two-column checkout/booking form + summary
.contact-layout / .contact-detail - contact page split layout
.divider / .seal / .grain-overlay - decorative svg elements
.site-footer / .footer-wave / .footer-grid / .footer-nav / .newsletter / .footer-bottom - footer regions
.cookie-banner / .cookie-banner__actions - GDPR cookie consent banner
.pv-toast - transient success/error message
.section / .section--tight - vertical page rhythm
.eyebrow - small uppercase label above headings
*/
