/* ============================================
   Bankarska oprema - design tokens & components
   Brand: crna / crvena #C7291D / bijela
   ============================================ */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces */
  --color-bg: #f7f6f4;
  --color-surface: #fdfdfc;
  --color-surface-2: #ffffff;
  --color-surface-offset: #efedea;
  --color-surface-dynamic: #e5e2de;
  --color-divider: #dedbd6;
  --color-border: #d3cfc9;

  /* Text */
  --color-text: #1c1917;
  --color-text-muted: #6e6a65;
  --color-text-faint: #b3afa9;
  --color-text-inverse: #f9f8f6;

  /* Brand accent (crvena sa logotipa) */
  --color-primary: #c7291d;
  --color-primary-hover: #a31f15;
  --color-primary-active: #821910;
  --color-primary-highlight: #f4d9d6;

  /* Ink (crna sa logotipa) */
  --color-ink: #121110;
  --color-ink-text: #f5f3f1;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 60 / 0.06), 0 4px 16px oklch(0.2 0.01 60 / 0.04);
  --shadow-md: 0 2px 4px oklch(0.2 0.01 60 / 0.07), 0 12px 28px oklch(0.2 0.01 60 / 0.07);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 60 / 0.12);

  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1200px;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #151312;
  --color-surface: #1c1a18;
  --color-surface-2: #211e1c;
  --color-surface-offset: #1a1816;
  --color-surface-dynamic: #2c2926;
  --color-divider: #272422;
  --color-border: #3a3633;

  --color-text: #e6e3df;
  --color-text-muted: #97928c;
  --color-text-faint: #5c5853;
  --color-text-inverse: #211e1c;

  --color-primary: #e04a3c;
  --color-primary-hover: #ea6a5e;
  --color-primary-active: #c7291d;
  --color-primary-highlight: #3d221f;

  --color-ink: #0e0d0c;
  --color-ink-text: #f0eeeb;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

/* ---------- Layout helpers ---------- */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
}
.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-top: var(--space-3);
  max-width: 24ch;
}
.section-lead {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  max-width: 58ch;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg); /* fallback za starije browsere */
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  min-width: 0;
}
.brand img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.05;
  white-space: nowrap;
}
.brand__word span {
  color: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
}
.nav a:hover {
  color: var(--color-text);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 44px;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--primary:active {
  background: var(--color-primary-active);
}
[data-theme='dark'] .btn--primary {
  color: #fff;
}
.btn--ghost {
  color: var(--color-text);
  border: 1px solid var(--color-border); /* fallback za starije browsere */
  border: 1px solid oklch(from var(--color-text) l c h / 0.25);
}
.btn--ghost:hover {
  border-color: var(--color-text);
}
.btn--ondark {
  color: #fff;
  border-color: oklch(1 0 0 / 0.4);
}
.btn--ondark:hover {
  border-color: #fff;
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.link-arrow:hover {
  color: var(--color-primary-hover);
}
.link-arrow svg {
  transition: transform var(--transition-interactive);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- Hero (početna) ---------- */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    oklch(0.13 0.005 60 / 0.92) 0%,
    oklch(0.13 0.005 60 / 0.55) 45%,
    oklch(0.13 0.005 60 / 0.25) 100%
  );
}
.hero__content {
  width: 100%;
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
}
.hero__content .eyebrow {
  color: #ff8d80;
}
.hero__content .eyebrow::before {
  background: #ff8d80;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  max-width: 18ch;
  margin-top: var(--space-4);
}
.hero p {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  font-weight: 500;
  color: oklch(0.92 0.005 60);
  max-width: 44ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* ---------- Page hero (unutrašnje stranice) ---------- */

.page-hero {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24)) 0;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  max-width: 22ch;
  margin-top: var(--space-4);
}
.page-hero__lead {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
}
.page-hero__media {
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.page-hero__media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
/* Product varijanta: render proizvoda na toniranoj podlozi, bez sjecenja */
.page-hero__media--product {
  background: var(--color-surface-offset);
  background-image: radial-gradient(
    120% 85% at 50% 35%,
    rgba(255, 255, 255, 0.06),
    transparent 70%
  );
}
.page-hero__media--product img {
  aspect-ratio: 16 / 7;
  object-fit: contain;
  padding: clamp(var(--space-6), 5vw, var(--space-16));
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.32));
}

/* ---------- Benefits (numerisani) ---------- */

.benefits {
  display: grid;
  gap: var(--space-6);
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
}
@media (min-width: 820px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}
.benefit {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-5);
}
.benefit__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.08em;
}
.benefit h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-2);
}
.benefit p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ---------- Kartice uređaja ---------- */

.device-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
}
@media (min-width: 720px) {
  .device-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .device-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.device-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider); /* fallback za starije browsere */
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.device-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.device-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
}
.device-card h3 span {
  color: var(--color-primary);
}
.device-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  flex-grow: 1;
}
.device-card .link-arrow {
  margin-top: var(--space-2);
}
/* Medija-panel: proizvod pluta na toniranoj podlozi, preliva se do ivica kartice */
.device-card__media {
  position: relative;
  margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) var(--space-4);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-offset);
  background-image: radial-gradient(
    120% 85% at 50% 32%,
    rgba(255, 255, 255, 0.06),
    transparent 70%
  );
  padding: var(--space-6);
  overflow: hidden;
}
/* "works with" badge (mCloud / mMission) u uglu panela */
.device-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.mbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-full);
  background: oklch(from var(--color-ink) l c h / 0.82);
  background: rgba(18, 17, 16, 0.82); /* fallback */
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.mbadge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.mbadge b {
  color: var(--color-primary);
}
/* Slika popunjava panel (Safari iOS pouzdano renderuje width/height:100% +
   object-fit; grid place-items + aspect-ratio je pravio prazan prostor). */
.device-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center; /* proizvod "stoji" na dnu panela */
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.3));
}
.device-card__media.is-placeholder img {
  object-position: center;
  filter: none;
}

/* ---------- Kategorije (lista) ---------- */

.cat-list {
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  border-top: 1px solid var(--color-divider);
}
.cat-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2) var(--space-8);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  text-decoration: none;
  color: inherit;
}
@media (min-width: 820px) {
  .cat-item {
    grid-template-columns: minmax(220px, 1fr) 2fr auto;
    align-items: baseline;
  }
  /* Subgrid: sve tri kolone dijele istu širinu kroz sve redove
     (bez ovoga srednja kolona "iskače" jer je zadnja kolona auto). */
  @supports (grid-template-columns: subgrid) {
    .cat-list {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) 2fr auto;
    }
    .cat-item {
      grid-column: 1 / -1;
      grid-template-columns: subgrid;
    }
  }
}
.cat-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  transition: color var(--transition-interactive);
}
a.cat-item:hover h3 {
  color: var(--color-primary);
}
.cat-item p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 60ch;
}
.cat-item .link-arrow {
  justify-self: start;
}
@media (min-width: 820px) {
  .cat-item .link-arrow {
    justify-self: end;
  }
}

/* ---------- Tamna traka / band ---------- */

.band {
  background: var(--color-ink);
  color: var(--color-ink-text);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.band .eyebrow {
  color: #ff8d80;
}
.band .eyebrow::before {
  background: #ff8d80;
}
.band__grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 900px) {
  .band__grid {
    grid-template-columns: 5fr 4fr;
    align-items: center;
  }
}
.band h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-top: var(--space-3);
  max-width: 24ch;
}
.band p {
  margin-top: var(--space-4);
  color: oklch(0.78 0.005 60);
}
.band__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.band__media img {
  width: 100%;
  object-fit: cover;
}

/* ---------- Feature rows (naizmjenično) ---------- */

.feature-row {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  border-top: 1px solid var(--color-divider);
}
.feature-row:first-of-type {
  border-top: none;
}
@media (min-width: 880px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .feature-row--flip > .feature-row__text {
    order: 2;
  }
}
.feature-row h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  max-width: 20ch;
}
.feature-row p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}
.feature-row__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Spec / value lists ---------- */

.value-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
}
@media (min-width: 780px) {
  .value-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  }
  /* 4 stavke → 2×2 raspored umjesto 3+1 */
  .value-grid:has(> :nth-child(4)) {
    grid-template-columns: 1fr 1fr;
  }
  /* 3 stavke → sve tri u jednom redu umjesto 2+1 */
  .value-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}
.value-item {
  background: var(--color-surface);
  border: 1px solid var(--color-divider); /* fallback za starije browsere */
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.value-item h3 {
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.value-item h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  flex-shrink: 0;
}
.value-item p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
}
.stat {
  border-left: 1px solid var(--color-divider);
  padding-left: var(--space-5);
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat__label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 26ch;
}

/* ---------- Prose (dugi tekstovi) ---------- */

.prose {
  max-width: 68ch;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-top: var(--space-12);
}
.prose h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-8);
}
.prose p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}
.prose strong {
  color: var(--color-text);
}

/* ---------- CTA završni ---------- */

.cta {
  background: var(--color-ink);
  color: var(--color-ink-text);
  text-align: center;
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  max-width: 20ch;
  margin-inline: auto;
}
.cta p {
  margin-top: var(--space-5);
  color: oklch(0.78 0.005 60);
  max-width: 52ch;
  margin-inline: auto;
}
.cta .btn {
  margin-top: var(--space-8);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
}
@media (min-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider); /* fallback za starije browsere */
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.contact-card svg {
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.contact-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
}
.contact-card p,
.contact-card a {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  display: block;
}
.contact-card a:hover {
  color: var(--color-primary);
}

.map-wrap {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-divider); /* fallback za starije browsere */
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.4);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--color-ink);
  color: oklch(0.72 0.005 60);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 820px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer .brand {
  color: var(--color-ink-text);
}
.footer__about {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  max-width: 40ch;
}
.footer h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.55 0.005 60);
  margin-bottom: var(--space-4);
}
.footer ul {
  list-style: none;
}
.footer li + li {
  margin-top: var(--space-3);
}
.footer a {
  color: oklch(0.78 0.005 60);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer a:hover {
  color: #fff;
}
.footer__bottom {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: oklch(0.55 0.005 60);
}

/* Selekcija teksta na tamnim površinama - slova ostaju bijela
   (globalni ::selection u svijetloj temi ih zatamni pa se ne vide) */
.hero ::selection,
.hero::selection,
.band ::selection,
.band::selection,
.cta ::selection,
.cta::selection,
.footer ::selection,
.footer::selection {
  background: rgba(199, 41, 29, 0.45); /* fallback */
  background: oklch(from var(--color-primary) l c h / 0.45);
  color: #fff;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Mobile nav ---------- */

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--space-5) var(--space-6);
    /* pomjeri iznad: 100% vlastite visine + 72px (header offset) + rezerva,
       da donja ivica menija ne "viri" na vrhu ekrana */
    transform: translateY(calc(-100% - 80px));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 40;
  }
  .nav.is-open {
    transform: none;
  }
  .nav a {
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-divider);
  }
  .nav a[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--color-primary);
    padding-left: var(--space-4);
  }
  .nav-burger {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .brand__word {
    display: none;
  }
  .hero {
    min-height: 72vh;
  }
}

/* ---------- 404 stranica ---------- */

.error-section {
  min-height: calc(100dvh - 72px);
  display: grid;
  place-items: center;
  text-align: center;
}
.error-code {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 20vw, 11rem);
  line-height: 0.9;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}
.error-eyebrow {
  justify-content: center;
  margin-top: var(--space-4);
}
.error-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-top: var(--space-3);
}
.error-lead {
  margin-inline: auto;
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  max-width: 52ch;
}
.error-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}
.error-help {
  margin-inline: auto;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.error-help a {
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Cookie / GDPR banner ---------- */

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  transform: translate(-50%, calc(100% + var(--space-8)));
  z-index: 60;
  width: min(680px, calc(100% - var(--space-8)));
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-consent.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cookie-consent__text {
  flex: 1 1 300px;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.cookie-consent__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.cookie-consent__actions .btn {
  min-height: 40px;
  padding: var(--space-2) var(--space-5);
}
@media (max-width: 480px) {
  .cookie-consent {
    bottom: 0;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .cookie-consent__actions {
    width: 100%;
  }
  .cookie-consent__actions .btn {
    flex: 1;
  }
}
