/* ==========================================================================
   Pametnica / vrtici.hr — Design System
   Vanilla CSS, mobile-first. Bez frameworka, bez build koraka.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — ljubičasta iz postojećeg logotipa */
  --c-purple-900: #2A1259;
  --c-purple-800: #3D1E82;
  --c-purple-700: #5227B0;
  --c-purple-600: #6C3FD1;
  --c-purple-500: #8459E8;
  --c-purple-200: #D9CBFA;
  --c-purple-100: #EDE7FD;
  --c-purple-50:  #F7F4FE;

  /* Razigrani akcenti — po jedan "karakter" za svaki proizvod */
  --c-sun:   #FFC53D;
  --c-sun-d: #E8A800;
  --c-coral: #FF6B6B;
  --c-mint:  #21C99B;
  --c-sky:   #38BDF8;

  /* Neutralno */
  --c-ink:     #1B1330;
  --c-body:    #4B4363;
  --c-muted:   #7C7594;
  --c-line:    #E7E3F0;
  --c-surface: #FFFFFF;
  --c-canvas:  #FBFAFF;

  /* Tipografija */
  --f-display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs:  0.8125rem;
  --fs-sm:  0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:  1.1875rem;
  --fs-xl:  clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  --fs-h3:  clamp(1.5rem, 1.2rem + 1.6vw, 2rem);
  --fs-h2:  clamp(1.9rem, 1.4rem + 2.6vw, 3rem);
  --fs-h1:  clamp(2.4rem, 1.6rem + 4.2vw, 4.25rem);

  /* Prostor */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --section-y: clamp(3.5rem, 2rem + 7vw, 7rem);
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  /* Forme */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --sh-sm: 0 2px 8px rgba(42, 18, 89, 0.06);
  --sh-md: 0 12px 32px -8px rgba(42, 18, 89, 0.14);
  --sh-lg: 0 28px 64px -16px rgba(42, 18, 89, 0.22);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 74px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; border: 0; background: none; }

a { color: var(--c-purple-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--c-ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul[class] { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--c-purple-600);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }

.section--tint { background: var(--c-purple-50); }

.section--ink {
  background: linear-gradient(160deg, var(--c-purple-800), var(--c-purple-900));
  color: rgba(255, 255, 255, 0.82);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--c-purple-700);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

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

/* --------------------------------------------------------------------------
   4. Tipografski blokovi
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-purple-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.section--ink .eyebrow { color: var(--c-sun); }

.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.lede {
  font-size: var(--fs-lg);
  color: var(--c-body);
  margin-top: var(--sp-4);
}
.section--ink .lede { color: rgba(255, 255, 255, 0.8); }

/* Zaobljeni "highlight" iza riječi — razigrani detalj */
.hl {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.hl::after {
  content: '';
  position: absolute;
  inset: 62% -0.18em 4% -0.18em;
  background: var(--c-sun);
  border-radius: var(--r-pill);
  z-index: -1;
  opacity: 0.55;
}
.hl--mint::after { background: var(--c-mint); }
.hl--coral::after { background: var(--c-coral); }

/* --------------------------------------------------------------------------
   5. Gumbi
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s var(--ease-bounce), box-shadow 0.22s var(--ease),
              background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-purple-600);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(108, 63, 209, 0.6);
}
.btn--primary:hover { background: var(--c-purple-700); box-shadow: 0 14px 28px -8px rgba(108, 63, 209, 0.7); }

.btn--sun {
  background: var(--c-sun);
  color: var(--c-purple-900);
  box-shadow: 0 8px 20px -6px rgba(232, 168, 0, 0.55);
}
.btn--sun:hover { background: #FFD469; }

.btn--ghost {
  background: transparent;
  color: var(--c-purple-700);
  box-shadow: inset 0 0 0 2px var(--c-purple-200);
}
.btn--ghost:hover { background: var(--c-purple-100); box-shadow: inset 0 0 0 2px var(--c-purple-500); }

.section--ink .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4); }
.section--ink .btn--ghost:hover { background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 2px #fff; }

.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.95rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.section-head--center .btn-row { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-purple-600);
  text-decoration: none;
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigacija
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--c-line);
  box-shadow: var(--sh-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--c-purple-800);
  letter-spacing: -0.02em;
}
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__sub {
  display: block;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  line-height: 1;
  margin-top: 2px;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  background: var(--c-purple-100);
}
.nav__toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--c-purple-800);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  display: grid;
  gap: var(--sp-1);
  transform: translateY(-14px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s var(--ease), opacity 0.22s var(--ease), visibility 0.28s;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

.nav a {
  display: block;
  padding: 0.85rem 0.4rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
}
.nav a[aria-current='page'] { color: var(--c-purple-600); }
.nav .btn { margin-top: var(--sp-4); border-bottom: 0; color: #fff; }
.nav .btn:hover { color: #fff; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: none;
    overflow: visible;
  }
  .nav a {
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
    border: 0;
    border-radius: var(--r-pill);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  }
  .nav a:not(.btn):hover { background: var(--c-purple-100); color: var(--c-purple-700); }
  .nav .btn { margin-top: 0; margin-left: var(--sp-3); }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 1.5rem + 7vw, 6rem) clamp(3.5rem, 2rem + 8vw, 7rem);
  background:
    radial-gradient(1100px 620px at 82% -8%, var(--c-purple-100), transparent 62%),
    radial-gradient(760px 520px at -6% 108%, #FFF4D6, transparent 60%),
    var(--c-canvas);
}

.hero__grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); }
}

.hero__title { font-size: var(--fs-h1); }
.hero__text { font-size: var(--fs-lg); margin-top: var(--sp-5); max-width: 52ch; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-7);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 2px dashed var(--c-purple-200);
}
.hero__stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem);
  font-weight: 800;
  color: var(--c-purple-700);
  line-height: 1;
}
.hero__stat span {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-muted);
}

/* Kolaž slika u herou */
.hero__art { position: relative; }
.hero__art-main {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: var(--c-purple-100);
}
.hero__art-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem 0.7rem 0.75rem;
  background: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-ink);
  white-space: nowrap;
}
.hero__art-chip i {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-style: normal;
  font-size: 1.1rem;
}
.hero__art-chip--a { left: -0.5rem; top: 12%; animation: float 6s ease-in-out infinite; }
.hero__art-chip--a i { background: #FFF0CC; }
.hero__art-chip--b { right: -0.5rem; bottom: 14%; animation: float 6s ease-in-out 1.6s infinite; }
.hero__art-chip--b i { background: #D6F7EE; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Dekorativne "mrlje" */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.5;
  pointer-events: none;
}
.blob--1 { width: 120px; height: 120px; background: var(--c-sun); top: 8%; left: -60px; }
.blob--2 { width: 76px; height: 76px; background: var(--c-mint); bottom: 12%; right: -30px; }

/* --------------------------------------------------------------------------
   8. Pillar kartice (IGRA / UČENJE / ZABAVA)
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pillar {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.pillar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--pillar-c, var(--c-purple-600));
}
.pillar h3 { font-size: 1.5rem; margin-bottom: var(--sp-3); }
.pillar p { font-size: var(--fs-sm); }

.pillar--play  { --pillar-c: var(--c-sun); }
.pillar--learn { --pillar-c: var(--c-mint); }
.pillar--fun   { --pillar-c: var(--c-coral); }

/* --------------------------------------------------------------------------
   9. Split blokovi (slika + tekst)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--reverse .split__media { order: 2; }
}

.split + .split { margin-top: var(--section-y); }

.split__media { position: relative; }
.split__media img,
.split__media video {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--c-purple-100);
}

.split__list {
  display: grid;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
}
.split__list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: var(--fs-sm);
}
.split__list li::before {
  content: '';
  width: 22px; height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--c-purple-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C3FD1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* --------------------------------------------------------------------------
   10. Proizvod — kartice na početnoj
   -------------------------------------------------------------------------- */
.prod-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.prod-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

.prod-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-purple-100);
  overflow: hidden;
}
.prod-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.prod-card:hover .prod-card__media img { transform: scale(1.05); }

.prod-card__tag {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--c-purple-700);
}

.prod-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
  gap: var(--sp-3);
}
.prod-card__body h3 { font-size: 1.3rem; }
.prod-card__body p { font-size: var(--fs-sm); flex: 1; }

/* --------------------------------------------------------------------------
   11. Proizvod — detaljni blok sa galerijom (proizvodi.html)
   -------------------------------------------------------------------------- */
.product {
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--section-y);
  border-bottom: 2px dashed var(--c-line);
  align-items: center;
}
.product:last-of-type { border-bottom: 0; }

@media (min-width: 900px) {
  .product { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .product--reverse .product__gallery { order: 2; }
}

.product__gallery { display: grid; gap: var(--sp-3); }

.gallery__stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--c-purple-100);
  aspect-ratio: 3 / 2;
}
.gallery__stage img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: fadeIn 0.35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0.35; } to { opacity: 1; } }

.gallery__thumbs {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gallery__thumbs button {
  flex: none;
  width: 76px; height: 76px;
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 0;
  box-shadow: 0 0 0 2px transparent;
  opacity: 0.62;
  transition: opacity 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  background: var(--c-purple-100);
}
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 0.9; transform: translateY(-2px); }
.gallery__thumbs button[aria-current='true'] {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--c-purple-600);
}

.product__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--r-pill);
  background: var(--badge-bg, var(--c-purple-100));
  color: var(--badge-c, var(--c-purple-700));
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   12. Galerija instalacija (masonry-ish)
   -------------------------------------------------------------------------- */
.masonry {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.masonry figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--c-purple-100);
  box-shadow: var(--sh-sm);
  cursor: zoom-in;
}
.masonry img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.masonry figure:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(27, 19, 48, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 84dvh;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}
.lightbox__close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

/* --------------------------------------------------------------------------
   13. CTA traka
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 1.4rem + 4vw, 4rem);
  background: linear-gradient(140deg, var(--c-purple-700), var(--c-purple-900) 70%);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { max-width: 56ch; margin-inline: auto; margin-top: var(--sp-4); }
.cta .btn-row { justify-content: center; }
.cta::before, .cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.16;
  pointer-events: none;
}
.cta::before { width: 320px; height: 320px; background: var(--c-sun); top: -140px; right: -90px; }
.cta::after { width: 240px; height: 240px; background: var(--c-mint); bottom: -130px; left: -70px; }

/* --------------------------------------------------------------------------
   14. Video blok
   -------------------------------------------------------------------------- */
.video-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--c-purple-900);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   15. Obrazac
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
}

.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-ink);
}
.field label .req { color: var(--c-coral); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  border: 2px solid var(--c-line);
  background: var(--c-canvas);
  font-size: var(--fs-base);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-purple-500);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] { border-color: var(--c-coral); }

.field__error {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #D63C3C;
  min-height: 1.1em;
}

.form-consent {
  display: flex;
  gap: 0.7rem;
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.form-consent input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--c-purple-600); }

.form-status {
  margin-top: var(--sp-4);
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--fs-sm);
  display: none;
}
.form-status.is-ok { display: block; background: #D8F6EE; color: #0E6E55; }
.form-status.is-err { display: block; background: #FFE3E3; color: #A82626; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Kontakt info kartice */
.contact-list { display: grid; gap: var(--sp-4); }
.contact-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--c-line);
}
.contact-item i {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--c-purple-100);
  font-size: 1.35rem;
  font-style: normal;
}
.contact-item strong { display: block; font-family: var(--f-display); color: var(--c-ink); }
.contact-item a { color: var(--c-body); text-decoration: none; }
.contact-item a:hover { color: var(--c-purple-600); text-decoration: underline; }

/* --------------------------------------------------------------------------
   16. Koraci (proces)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.step {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-purple-50);
  border: 1px solid var(--c-purple-100);
}
/* Broj je u normalnom toku, ne apsolutno pozicioniran — ne moze se
   preklopiti s naslovom ni na jednoj velicini fonta. */
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: var(--c-purple-600);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.15rem;
}
/* Kartica koja koristi izgled koraka, ali nije dio numeriranog niza. */
.step--plain::before { content: none; }
.step h3 { font-size: 1.2rem; margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--c-purple-900);
  color: rgba(255, 255, 255, 0.62);
  padding-block: var(--sp-8) var(--sp-5);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: var(--sp-3);
}
.footer ul { display: grid; gap: 0.55rem; }
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { color: #fff; }
.footer .brand__sub { color: rgba(255, 255, 255, 0.5); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
}

/* --------------------------------------------------------------------------
   Polje na klik (npr. neobavezna poruka u obrascu)
   Koristi <details>, pa radi i bez JavaScripta.
   -------------------------------------------------------------------------- */
.field-toggle > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-purple-700);
}
.field-toggle > summary::-webkit-details-marker { display: none; }
.field-toggle > summary::before {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-purple-100);
  color: var(--c-purple-700);
  font-size: 1.15rem;
  line-height: 1;
  transition: background-color 0.2s var(--ease);
}
.field-toggle > summary:hover::before { background: var(--c-purple-200); }
.field-toggle[open] > summary::before { content: '\2212'; }
.field-toggle__body {
  display: grid;
  gap: 0.4rem;
  margin-top: var(--sp-3);
}

/* --------------------------------------------------------------------------
   18. Reveal animacije
   -------------------------------------------------------------------------- */
/* Skrivanje vrijedi samo ako JS radi (klasu postavlja inline skripta u <head>).
   Bez JS-a — ili ako skripta pukne — sadrzaj je odmah vidljiv. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
