/* Ples Dom - Nordic carved style: slate/ice palette, carved rune lines, bold serif */
:root {
  --slate-950: #0c2232;
  --slate-900: #13324a;
  --slate-700: #28506b;
  --ice-100: #f4f8fa;
  --ice-200: #e4edf1;
  --sky-400: #6fb8d6;
  --sky-500: #3f93b8;
  --sun-400: #f6c744;
  --sun-500: #e8ad1a;
  --white: #ffffff;
  --ink: #0c2232;
  --radius: 14px;
  --measure: 68ch;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ice-100);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); margin: 0 0 .5em; line-height: 1.1; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--sun-400); color: var(--ink); padding: .5em 1em; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--sun-400); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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

/* ---------- layout helpers ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stack-sm > * + * { margin-top: .75rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 248, 250, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ice-200);
}
.site-header__row {
  max-width: 1200px; margin: 0 auto; padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .55rem; color: var(--slate-900); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__word { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; }
.logo--footer { color: var(--ice-100); }

.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav a { font-size: .95rem; font-weight: 600; position: relative; padding: .2rem 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px; background: var(--sun-500);
  transition: right .25s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--sky-500); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { position: relative; display: flex; color: var(--slate-900); }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--sun-400); color: var(--ink);
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-link.bump .cart-count { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.nav-toggle { display: none; background: none; border: none; color: var(--slate-900); padding: .4rem; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--slate-950); color: var(--ice-100);
    padding: 6rem 2rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .3s ease;
    z-index: 150;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.25rem; }
  .main-nav a { color: var(--ice-100); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; padding: .75rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  min-height: 44px; transition: color .25s ease, border-color .25s ease, transform .15s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; z-index: -1; transition: left .3s ease;
}
.btn--accent { background: var(--sun-400); color: var(--ink); }
.btn--accent::before { background: var(--sun-500); }
.btn--accent:hover::before { left: 0; }
.btn--primary { background: var(--slate-900); color: var(--ice-100); }
.btn--primary::before { background: var(--sky-500); }
.btn--primary:hover::before { left: 0; }
.btn--ghost { background: transparent; color: var(--ice-100); border-color: rgba(244,248,250,.5); }
.btn--ghost:hover { border-color: var(--ice-100); }
.btn--outline { background: transparent; color: var(--slate-900); border-color: var(--slate-900); }
.btn--outline::before { background: var(--slate-900); }
.btn--outline:hover { color: var(--ice-100); }
.btn--outline:hover::before { left: 0; }
.btn--sm { padding: .5rem 1.1rem; font-size: .85rem; min-height: 38px; }
.btn:active { transform: scale(.97); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden;
  background: radial-gradient(circle at 50% 0%, var(--slate-900), var(--slate-950) 70%);
  color: var(--ice-100);
}
.hero__grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; pointer-events: none; mix-blend-mode: overlay; }
.hero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.hero__badge {
  display: inline-flex; margin: 0 auto 1.5rem; width: 128px; height: 128px; position: relative;
}
.hero__badge svg { width: 100%; height: 100%; }
.hero__badge .badge-ring { animation: spin 24s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__headline {
  font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -0.01em; margin: 0 auto .75rem;
  max-width: 16ch;
}
.hero__sub { max-width: 46ch; margin: 0 auto 2rem; font-size: 1.1rem; color: var(--ice-200); }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__orbit { position: relative; max-width: 560px; margin: 3.5rem auto 0; aspect-ratio: 1; }
.orbit-item {
  position: absolute; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--sun-400); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: orbit-float 7s ease-in-out infinite;
}
.orbit-item img { width: 100%; height: 100%; object-fit: cover; }
.orbit-item--1 { top: 2%; left: 10%; animation-delay: 0s; }
.orbit-item--2 { top: 10%; right: 4%; animation-delay: 1.4s; width: 80px; height: 80px; }
.orbit-item--3 { bottom: 4%; left: 2%; animation-delay: .7s; width: 76px; height: 76px; }
.orbit-item--4 { bottom: 0; right: 14%; animation-delay: 2.1s; }
@keyframes orbit-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 640px) { .hero__orbit { display: none; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--slate-900), var(--slate-950));
  color: var(--ice-100); padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 3.5rem); position: relative; overflow: hidden;
}
.page-hero__inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 20ch; }
.page-hero p { max-width: var(--measure); color: var(--ice-200); font-size: 1.05rem; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--ice-200); margin-bottom: 1rem; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: rgba(244,248,250,.4); }
.breadcrumbs span[aria-current] { color: var(--sun-400); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.js-armed { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.js-armed.in-view { opacity: 1; transform: none; }
.reveal.js-armed.reveal--clip { clip-path: inset(0 0 100% 0); transition: clip-path .7s ease; transform: none; }
.reveal.js-armed.reveal--clip.in-view { clip-path: inset(0 0 0% 0); }

/* ---------- cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 1px 0 var(--ice-200), 0 14px 30px -20px rgba(12,34,50,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(12,34,50,.4); }

/* ---------- product/course cards ---------- */
.product-strip {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem;
}
.product-strip .product-card { scroll-snap-align: start; flex: 0 0 260px; }
@media (min-width: 860px) { .product-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: visible; } }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--ice-200), 0 14px 30px -20px rgba(12,34,50,.3); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(12,34,50,.4); }
.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: 1.1rem 1.2rem 1.4rem; }
.product-card__cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sky-500); font-weight: 700; }
.product-card__name { font-size: 1.15rem; margin: .3rem 0 .4rem; }
.product-card__price { font-weight: 700; color: var(--slate-900); }
.product-card__price span { font-size: .8rem; color: var(--slate-700); font-weight: 500; }

/* ---------- product detail ---------- */
.product-detail { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr 1fr; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__meta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
.product-detail__meta span { background: var(--ice-200); border-radius: 999px; padding: .35rem .9rem; font-size: .82rem; font-weight: 600; }
.product-detail__price { font-size: 1.8rem; font-family: var(--font-serif); margin: 1rem 0; }

/* ---------- rhythm finder (signature feature) ---------- */
.rhythm {
  background: var(--slate-900); color: var(--ice-100); border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.rhythm__grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 760px) { .rhythm__grid { grid-template-columns: 1fr; } }
.rhythm h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rhythm-pad {
  width: 180px; height: 180px; border-radius: 50%; border: 3px solid var(--sun-400); background: rgba(246,199,68,.08);
  color: var(--ice-100); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto; transition: transform .1s ease, background .2s ease;
}
.rhythm-pad:hover { background: rgba(246,199,68,.18); }
.rhythm-pad.pulse { animation: rhythm-pulse .35s ease; }
@keyframes rhythm-pulse { 0% { transform: scale(1); } 40% { transform: scale(.92); background: rgba(246,199,68,.35); } 100% { transform: scale(1); } }
.rhythm-readout { text-align: center; margin-top: 1.25rem; font-size: .95rem; color: var(--ice-200); }
.rhythm-readout strong { display: block; color: var(--sun-400); font-size: 1.2rem; font-family: var(--font-serif); margin-bottom: .2rem; }
.rhythm-bpm { font-family: var(--font-mono); font-size: 2.2rem; text-align: center; margin-top: .5rem; }
.rhythm-bpm::after { content: " BPM"; font-size: .9rem; color: var(--ice-200); }
.rhythm-actions { display: flex; justify-content: center; margin-top: 1rem; }

/* ---------- dividers / ornaments ---------- */
.divider { display: block; width: 100%; height: 48px; color: var(--sky-400); }
.ornament { color: var(--sun-400); }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--slate-700); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; color: var(--sky-500); }

.legal-toc { background: var(--white); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; max-width: var(--measure); }
.legal-toc h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.legal-toc ol { padding-left: 1.2rem; margin: 0; }
.legal-toc a { color: var(--slate-900); font-weight: 600; }

/* ---------- notice ---------- */
.notice { border-radius: var(--radius); padding: 1.1rem 1.3rem; background: var(--ice-200); border-left: 4px solid var(--sky-500); max-width: var(--measure); }
.notice--warn { border-left-color: var(--sun-500); background: #fdf3da; }
.notice--ok { border-left-color: #3f8f5f; background: #e6f3ea; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .9rem; border-radius: 10px; border: 1.5px solid var(--ice-200);
  background: var(--white); accent-color: var(--sky-500); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky-500); }
.field-error { font-size: .8rem; color: #c0392b; min-height: 1em; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .9rem; min-height: 1.2em; }
.form-msg--ok { color: #2f7d4f; }
.form-msg--error { color: #c0392b; }

.newsletter-form__row { display: flex; gap: .5rem; }
.newsletter-form__row input { flex: 1; min-width: 0; border-radius: 10px; border: 1.5px solid rgba(244,248,250,.3); background: rgba(244,248,250,.08); color: var(--ice-100); padding: .65rem .9rem; }
.newsletter-form__row input::placeholder { color: var(--ice-200); }

/* ---------- cart / booking table ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid var(--ice-200); text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-table__qty { width: 64px; padding: .4rem .5rem; min-height: 38px; border: 1.5px solid var(--ice-200); border-radius: 8px; }
.cart-summary { background: var(--white); border-radius: var(--radius); padding: 1.5rem; max-width: 380px; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.cart-summary__total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--ice-200); padding-top: .75rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.2fr; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info__item { display: flex; gap: .75rem; align-items: flex-start; }
.contact-info__item svg { flex: none; color: var(--sky-500); margin-top: .1rem; }

/* ---------- faq ---------- */
.faq { max-width: var(--measure); margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--white); border-radius: 12px; padding: .2rem 1.3rem; }
.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.3rem; color: var(--sky-500); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; color: var(--slate-700); }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: -200px; z-index: 300; max-width: 620px; margin: 0 auto;
  background: var(--slate-950); color: var(--ice-100); border-radius: 16px; padding: 1.3rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); 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 p { margin: 0; font-size: .9rem; flex: 1 1 260px; color: var(--ice-200); }
.cookie-banner a { text-decoration: underline; color: var(--ice-100); }
.cookie-banner__actions { display: flex; gap: .6rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-950); color: var(--ice-200); padding: 4rem 0 1.5rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ice-100); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a:hover { color: var(--sun-400); }
.footer-contact { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.footer-bottom { max-width: 1200px; margin: 3rem auto 0; padding: 1.5rem 1.5rem 0; border-top: 1px solid rgba(244,248,250,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .85rem; }

/* COMPONENTS: .class - what it is
.wrap - centered max-width content wrapper
.section - vertical page section padding
.grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
.stack-sm / .stack-lg - vertical spacing between children
.site-header / .main-nav / .cart-link / .nav-toggle - global header and navigation
.btn / .btn--accent / .btn--primary / .btn--ghost / .btn--outline / .btn--sm - button variants with fill-sweep hover
.hero / .hero__badge / .hero__orbit / .orbit-item - home hero with rotating badge and orbiting images
.page-hero - inner page hero banner (dark)
.breadcrumbs - breadcrumb trail on inner pages
.reveal / .reveal.js-armed / .reveal--clip - scroll reveal animation hooks
.card - generic white content card with hover lift
.product-strip / .product-card - catalog grid / horizontal snap strip of course cards
.product-detail / .product-detail__meta / .product-detail__price - single course/product page layout
.rhythm / .rhythm-pad / .rhythm-bpm / .rhythm-readout - signature "Ritam Pronalazač" feature block
.divider / .ornament - decorative SVG dividers and ornaments
.prose - readable long-form legal/content text column
.legal-toc - table of contents box for legal pages
.notice / .notice--warn / .notice--ok - callout banners
.form-grid / .field / .field--full / .field-error / .hp-field / .form-msg - form layout, fields, errors, honeypot
.newsletter-form__row - footer newsletter input/button row
.cart-table / .cart-table__qty / .cart-summary / .cart-empty - booking basket table and summary
.contact-layout / .contact-info / .contact-info__item - contact page two-column layout
.faq / .faq-item - FAQ accordion built on details/summary
.cookie-banner / .cookie-banner__actions - GDPR cookie consent banner
.site-footer / .footer-grid / .footer-col / .footer-bottom - global footer
*/

/* ---------- footer column modifiers & legal text ---------- */
.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-col--news {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-legal {
  font-size: .75rem;
  color: rgba(228, 237, 241, .65);
  margin: 0;
}
