/* Psisalon Zornička — Adriatic pebble design system */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  --c-ink: #0e2a47;
  --c-ink-2: #173a5e;
  --c-sea: #2f6690;
  --c-sea-light: #6fa8c9;
  --c-ice: #eef5f7;
  --c-silver: #c9d4d8;
  --c-sun: #ffd59e;
  --c-sun-2: #ffb86b;
  --c-white: #ffffff;
  --c-error: #b23a3a;
  --c-success: #2e7d5b;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-pebble: 2.5rem 1rem 2.5rem 1rem;
  --radius-pebble-2: 1rem 2.5rem 1rem 2.5rem;
  --shadow-1: 0 1.2rem 2.4rem -1rem rgba(14, 42, 71, 0.25);
  --shadow-2: 0 0.4rem 1rem -0.3rem rgba(14, 42, 71, 0.2);
  --measure: 38em;
  --header-h: 4.5rem;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-ice);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-sea); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--c-ink); margin: 0 0 0.6em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

.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(--c-ink); color: #fff;
  padding: 0.6em 1em; z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; border-radius: 0.4rem; }

:focus-visible {
  outline: 3px solid var(--c-sun-2);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.flow > * + * { margin-top: 1em; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.visually-hidden { position: absolute !important; left: -9999px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--clip { clip-path: inset(0 0 100% 0); }
.reveal--clip.in-view { clip-path: inset(0 0 0 0); }
.reveal--stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238,245,247,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-silver);
}
.site-header__inner {
  max-width: 76rem; margin-inline: auto; padding: 0.7rem clamp(1rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--c-ink); }
.logo__word { font-family: var(--font-display); font-size: 1rem; line-height: 1.1; }
.logo__word strong { font-size: 1.15rem; }
.logo--footer .logo__word { font-size: 1.1rem; }

.nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); }
.nav a { color: var(--c-ink); font-weight: 600; position: relative; padding: 0.3rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--c-sun-2); transition: right .25s ease;
}
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--c-sea); }
.nav__cart { display: inline-flex; align-items: center; gap: 0.4rem; }
.cart-badge {
  background: var(--c-sun-2); color: var(--c-ink); font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; min-width: 1.3rem; height: 1.3rem; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 0.3rem;
}
.cart-badge.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1);} 40%{transform:scale(1.4);} 100%{transform:scale(1);} }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; border-radius: 0.5rem;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-ink); margin-inline: auto; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(80vw, 18rem);
    background: var(--c-ink); color: #fff; flex-direction: column; align-items: flex-start;
    padding: 2rem 1.5rem; gap: 1.4rem; transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav a { color: #fff; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; min-height: 44px; position: relative; overflow: hidden;
  transition: color .3s ease, border-color .3s ease, transform .2s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%;
  transition: left .35s ease; z-index: -1;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-ink); color: #fff; }
.btn--primary::before { background: var(--c-sea); }
.btn--primary:hover::before { left: 0; }
.btn--sun { background: var(--c-sun-2); color: var(--c-ink); }
.btn--sun::before { background: var(--c-sun); }
.btn--sun:hover::before { left: 0; }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost::before { background: var(--c-ink); }
.btn--ghost:hover { color: #fff; }
.btn--ghost:hover::before { left: 0; }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hero / split screen ---------- */
.hero-split {
  position: relative; min-height: min(78vh, 42rem); display: grid; overflow: hidden;
  background: var(--c-ink);
}
.hero-split__panel {
  position: relative; display: flex; align-items: center; padding: clamp(1.5rem, 5vw, 4rem);
}
.hero-split__panel--text { color: #fff; z-index: 2; }
.hero-split__panel--img { position: absolute; inset: 0; }
.hero-split__panel--img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.8); }
.hero-split__panel--img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--c-ink) 0%, rgba(14,42,71,0.55) 46%, rgba(14,42,71,0) 60%);
}
.hero-split__divider {
  position: absolute; top: 0; bottom: 0; left: 46%; width: 2px;
  background: var(--c-sun-2); z-index: 3; opacity: 0.8;
  box-shadow: 0 0 2rem rgba(255,184,107,0.5);
}
.hero-split__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 0.4em; max-width: 14ch;
}
.hero-split__title em { font-style: normal; color: var(--c-sun-2); }
.hero-split__lede { max-width: 32ch; font-size: 1.1rem; color: var(--c-ice); }
.hero-illustration { width: 100%; max-width: 20rem; }
.hero-illustration path, .hero-illustration circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-illustration .draw { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 2.4s ease forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 820px) {
  .hero-split { min-height: auto; }
  .hero-split__panel--img { position: relative; height: 16rem; order: -1; }
  .hero-split__divider { display: none; }
}

/* ---------- Grain overlay ---------- */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: 0.05; z-index: 1; mix-blend-mode: overlay; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-sea) 100%);
  color: #fff; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem);
  border-radius: 0 0 var(--radius-pebble) 0;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { color: var(--c-ice); max-width: 42ch; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--c-silver); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--c-ice); }
.breadcrumbs span { margin: 0 0.4em; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius-pebble); box-shadow: var(--shadow-2);
  overflow: hidden; transition: box-shadow .3s ease, transform .3s ease;
}
.card:hover { box-shadow: var(--shadow-1); transform: translateY(-4px); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.2rem 1.4rem 1.5rem; }
.card__price { font-weight: 700; color: var(--c-sea); }

/* product strip (scroll-snap on mobile) */
.product-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem;
}
@media (max-width: 700px) {
  .product-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .product-strip > * { flex: 0 0 85%; scroll-snap-align: start; }
}

/* ---------- Notices ---------- */
.notice { padding: 1rem 1.2rem; border-radius: 1rem; font-size: 0.95rem; }
.notice--info { background: #e4eef4; color: var(--c-ink); }
.notice--success { background: #e1f3ea; color: var(--c-success); }
.notice--error, .form-error { background: #fbe7e7; color: var(--c-error); padding: 0.8rem 1rem; border-radius: 0.8rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field__input, input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--c-silver); border-radius: 0.8rem;
  font: inherit; background: #fff; accent-color: var(--c-sea); min-height: 44px;
}
textarea { min-height: 7rem; resize: vertical; }
.field-error { color: var(--c-error); font-size: 0.82rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 0.5em; font-weight: 400; }

.newsletter-form__row { display: flex; gap: 0.5rem; }
.newsletter-form input { flex: 1; min-width: 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 0.8rem; max-width: var(--measure); }
.faq-item { background: #fff; border-radius: 1.2rem; padding: 0.2rem 1.2rem; box-shadow: var(--shadow-2); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--c-sea); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; color: var(--c-ink-2); }

/* ---------- Prose / legal ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose ul { padding-left: 1.3em; list-style: disc; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.legal-toc { background: #fff; border-radius: 1.2rem; padding: 1.2rem 1.4rem; box-shadow: var(--shadow-2); max-width: var(--measure); }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-toc ol { padding-left: 1.2em; margin: 0; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 2rem; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
.product-detail__media { border-radius: var(--radius-pebble-2); overflow: hidden; box-shadow: var(--shadow-1); aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; color: var(--c-sea); font-weight: 700; }
.product-detail__meta { display: flex; gap: 1.2rem; color: var(--c-ink-2); font-size: 0.9rem; margin: 0.6em 0 1em; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th, .cart-table td { padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--c-silver); text-align: left; vertical-align: middle; }
.cart-table__prod { display: flex; align-items: center; gap: 0.7rem; }
.cart-table__prod img { width: 56px; height: 56px; border-radius: 0.7rem; object-fit: cover; }
.cart-summary { background: #fff; border-radius: 1.2rem; padding: 1.4rem 1.6rem; box-shadow: var(--shadow-2); max-width: 24rem; margin-left: auto; }
.cart-summary__total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin: 0.8em 0; }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
.contact-layout__info { background: var(--c-ink); color: #fff; border-radius: var(--radius-pebble); padding: 2rem; }
.contact-layout__info a { color: var(--c-sun-2); }
.contact-layout__info .cluster { align-items: flex-start; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Signature feature: Srsťomer ---------- */
.groomcalc {
  background: var(--c-white); border-radius: var(--radius-pebble); box-shadow: var(--shadow-1);
  padding: clamp(1.5rem, 4vw, 2.6rem); display: grid; gap: 2rem; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
}
.groomcalc__result {
  background: var(--c-ink); color: #fff; border-radius: var(--radius-pebble-2);
  padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 0.3rem;
}
.groomcalc__result strong { font-size: 2.4rem; font-family: var(--font-display); color: var(--c-sun-2); }
.groomcalc .field { margin-bottom: 0.4rem; }
@media (max-width: 760px) { .groomcalc { grid-template-columns: 1fr; } }

/* ---------- Decorative dividers ---------- */
.wave-divider { width: 100%; height: auto; display: block; color: var(--c-sea-light); }
.pebble-pattern { width: 100%; height: 3rem; color: var(--c-silver); opacity: 0.6; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 1rem);
  background: var(--c-ink); color: #fff; padding: 0.8rem 1.4rem; border-radius: 999px;
  opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 500; box-shadow: var(--shadow-1);
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  background: var(--c-ink); color: #fff; border-radius: 1.2rem; padding: 1.2rem 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-1); max-width: 40rem; margin-inline: auto;
}
.cookie-banner a { color: var(--c-sun-2); }
.cookie-banner__actions { display: flex; gap: 0.6rem; }
.cookie-banner .btn--ghost { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-ice); margin-top: 4rem; }
.site-footer__grid {
  max-width: 76rem; margin-inline: auto; padding: 3rem clamp(1rem,4vw,2rem) 2rem;
  display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
.site-footer__col h2 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8em; }
.site-footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer__col a { color: var(--c-ice); }
.site-footer__col a:hover { color: var(--c-sun-2); }
.site-footer__contact { font-size: 0.9rem; }
.site-footer__contact a { color: var(--c-sun-2); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); text-align: center; padding: 1rem; font-size: 0.85rem; color: var(--c-silver); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding: 3rem 1rem; }
.notfound__num { font-size: clamp(5rem, 18vw, 10rem); font-family: var(--font-display); color: var(--c-sea); }

/* ---------- Catalog filter ---------- */
.filter-btn { background: transparent; border: 2px solid var(--c-silver); color: var(--c-ink); padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 600; cursor: pointer; transition: all .3s ease; }
.filter-btn:hover { border-color: var(--c-sea); color: var(--c-sea); }
.filter-btn--active { background: var(--c-sea); color: #fff; border-color: var(--c-sea); }

/* ---------- Card category label ---------- */
.card__category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-sea); font-weight: 600; margin: 0; }

/* COMPONENTS:
.wrap - centered max-width content container
.section - vertical page section spacing
.grid / .grid--2 / .grid--3 - responsive grid helpers
.flow - vertical rhythm between children
.stack - vertical flex column with gap
.cluster - horizontal flex wrap with gap
.reveal / .reveal--clip / .reveal--stagger / .in-view - scroll-reveal animation hooks
.site-header / .nav / .nav-toggle / .logo - header and navigation
.btn / .btn--primary / .btn--sun / .btn--ghost / .btn--small - button variants with fill-sweep hover
.hero-split / .hero-split__panel / .hero-split__divider / .hero-illustration - home split-screen hero
.grain-overlay - fixed SVG turbulence texture overlay
.page-hero - inner page hero band
.breadcrumbs - small breadcrumb trail
.card / .card__media / .card__body / .card__price - product/service card
.product-strip - responsive grid, becomes scroll-snap strip on mobile
.notice / .notice--info / .notice--success / .notice--error - inline message boxes
.form-grid / .field / .field--full / .field-error / .hp-field - form layout and validation
.faq / .faq-item - details/summary accordion
.prose - readable long-form legal/text content
.legal-toc - table of contents box for legal pages
.product-detail / .product-detail__media / .product-detail__meta - product page layout
.cart-table / .cart-summary - cart/booking table and totals box
.contact-layout / .contact-layout__info - two-column contact page layout
.groomcalc / .groomcalc__result - signature "Srsťomer" calculator widget
.wave-divider / .pebble-pattern - decorative SVG section dividers
.toast - transient bottom notification
.cookie-banner - fixed consent banner
.site-footer - footer with link columns and newsletter
.notfound / .notfound__num - 404 page layout
*/

/* ---------- Missing component classes ---------- */
.site-footer__brand { display: flex; flex-direction: column; gap: 0.55rem; }

.logo__mark { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

.card__footer { padding: 0.8rem 1.4rem; border-top: 1px solid var(--c-silver); }

.btn--large { padding: 1rem 2rem; font-size: 1.05rem; }

.order-1 { order: 1; }
.order-2 { order: 2; }

/* wg-contrast-autofix */
div.site-footer__grid div.site-footer__brand a.logo.logo--footer span.logo__word { color: #ffffff !important; }
header.site-header div.site-header__inner button.nav-toggle.js-nav-toggle span.sr-only { color: #ffffff !important; }
section.hero-split div.hero-split__panel.hero-split__panel--text div h1.hero-split__title { color: #ffffff !important; }
