/* =====================================================================
   PEKON — Bravarska radnja
   Editorial / architecture-studio aesthetic. Light-first, strategic dark.
   ===================================================================== */

/* ---------- Tokens --------------------------------------------------- */
:root {
  /* Brand — from logo */
  --pekon-blue: #102785;
  --blue-700:   #0C1E66;
  --blue-500:   #1E3AA8;
  --pekon-red:  #D2110A;
  --red-600:    #B00D07;

  /* Neutrals */
  --ink:        #0E1116;
  --ink-700:    #2A2F37;
  --steel-500:  #6B7280;
  --steel-300:  #C9D0DA;
  --steel-100:  #EDEFF3;
  --paper:      #F6F7F9;
  --white:      #FFFFFF;

  /* System */
  --maxw:   1200px;
  --radius: 10px;
  --gap:    24px;
  --ease:   cubic-bezier(.22,.61,.36,1);

  --header-h: 76px;
}

/* ---------- Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--pekon-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -40px; left: 16px;
  background: var(--ink); color: var(--white);
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout helpers ------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section {
  padding-block: clamp(72px, 10vw, 140px);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
/* All anchor targets respect sticky header height */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.section-white  { background: var(--white); }
.section-paper  { background: var(--paper); }

/* Section heads */
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 760px;
}
.section-head--featured {
  max-width: 100%;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
@media (min-width: 900px) {
  .section-head--featured {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 56px;
  }
}
.section-head-left { display: grid; gap: 16px; }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  color: var(--ink);
}
.section-title--xl {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-lede {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--ink-700);
  line-height: 1.65;
  max-width: 56ch;
}

/* Kicker (mono label) */
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker-light { color: rgba(255,255,255,.7); }
.kicker-mark { color: var(--pekon-red); font-size: 0.9rem; line-height: 1; }

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

/* ---------- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-red { background: var(--pekon-red); color: var(--white); }
.btn-red:hover { background: var(--red-600); }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-700); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--white);
}

.btn-block { width: 100%; }

/* ---------- Header --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header[data-elevated="true"] {
  border-bottom-color: var(--steel-300);
  box-shadow: 0 4px 24px -16px rgba(14,17,22,.18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; }

.primary-nav { display: none; margin-inline: auto; }
@media (min-width: 1200px) { .primary-nav { display: block; } }
.primary-nav > ul {
  display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center;
}
.primary-nav > ul > li { position: relative; }
.primary-nav a,
.primary-nav .nav-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 2px;
  position: relative;
  transition: color .2s var(--ease);
  background: none;
  border: 0;
  cursor: pointer;
}
.primary-nav a:hover,
.primary-nav .nav-toggle:hover,
.primary-nav .nav-toggle:focus-visible { color: var(--pekon-blue); }

/* Submenu toggle (Proizvodi) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-toggle .caret { transition: transform .25s var(--ease); }
.has-submenu.is-open .nav-toggle .caret { transform: rotate(180deg); }
.has-submenu.is-open > .nav-toggle { color: var(--pekon-blue); }

/* Submenu panel */
.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: -10px;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  box-shadow: 0 22px 44px -26px rgba(14,17,22,.28), 0 2px 8px rgba(14,17,22,.04);
  padding: 8px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
  z-index: 60;
}
.submenu::before {
  /* Invisible bridge so cursor can move from toggle to menu without flicker */
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.has-submenu.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear 0s;
}
.submenu li { list-style: none; }
.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
  text-decoration: none;
}
.submenu a:hover,
.submenu a:focus-visible { background: var(--steel-100); color: var(--ink); }
.submenu a.sub-focus {
  font-weight: 700;
  border-left-color: var(--pekon-red);
  padding-left: 16px;
}
.sub-tag {
  font-size: 0.62rem;
  color: var(--pekon-red);
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.header-cta {
  display: none;
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.9rem;
}
@media (min-width: 1200px) {
  .header-cta { display: inline-flex; }
  .header-cta { margin-left: 8px; }
}

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
  margin-inline: auto;
}
@media (min-width: 1200px) { .hamburger { display: none; } }

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  z-index: 40;
  padding: 32px clamp(20px, 5vw, 40px) 40px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > nav > ul { display: grid; gap: 4px; margin-bottom: 32px; padding: 0; }
.mobile-menu > nav > ul > li > a,
.m-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--steel-100);
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  cursor: pointer;
  text-align: left;
}
.m-nav-toggle .caret {
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.m-has-submenu.is-open .m-nav-toggle .caret { transform: rotate(180deg); }
.m-has-submenu.is-open .m-nav-toggle { color: var(--pekon-blue); }

/* Accordion content */
.m-submenu {
  list-style: none;
  padding: 0 0 0 4px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.m-has-submenu.is-open .m-submenu { max-height: 520px; }
.m-submenu li { border-bottom: 1px solid var(--steel-100); }
.m-submenu li:last-child { border-bottom: 0; }
.m-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-700);
  text-decoration: none;
}
.m-submenu a.sub-focus {
  font-weight: 700;
  color: var(--pekon-red);
}
.m-submenu .sub-tag {
  font-size: 0.62rem;
  color: var(--pekon-red);
  letter-spacing: 0.16em;
}

/* ---------- Hero (3-slide crossfade slider) ------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;          /* svh keeps mobile chrome from clipping CTAs */
  min-height: 520px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);  /* prevents flash before slide bg loads */
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity .7s var(--ease), visibility 0s linear 0s;
}

/* Slide bg + overlay (per-slide) */
.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink);
}
.hero-slide .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide .hero-bg.placeholder::before { opacity: 0.08; }
.hero-slide .hero-bg .placeholder-label { color: rgba(255,255,255,.35); }

.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Two-layer overlay: directional gradient for emphasis where copy sits
     (lower-left ~0.62 → upper-right ~0.15), plus a flat 0.18 base so white
     text passes AA over any photo regardless of subject brightness. */
  background:
    linear-gradient(45deg, rgba(14,17,22,.62) 0%, rgba(14,17,22,.35) 50%, rgba(14,17,22,.15) 100%),
    rgba(14,17,22,.18);
}

/* Slide content */
.hero-content {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  max-width: 880px;
  width: 100%;
  padding-top: clamp(40px, 8vh, 90px);
  padding-bottom: clamp(140px, 22vh, 200px); /* reserve for hero-bottom */
}

/* Per-slide content fade-up on activation */
.hero-slide .hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--d, 0ms);
}
.hero-slide.is-active .hero-content > * {
  opacity: 1;
  transform: none;
}

.hero-title {
  font-size: clamp(2.25rem, 7vw, 5.25rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  max-width: 58ch;
  color: rgba(255,255,255,.86);
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.hero-arrow:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.45);
}
.hero-arrow svg { width: 22px; height: 22px; display: block; }
.hero-prev { left: clamp(8px, 2vw, 26px); }
.hero-next { right: clamp(8px, 2vw, 26px); }
/* Hide arrows on the smallest viewports — dots + swipe still work */
@media (max-width: 520px) { .hero-arrow { display: none; } }

/* Bottom layer: dots + static foot strip */
.hero-bottom {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(20px, 4vh, 36px);
  z-index: 4;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hero-bottom > .container {
  display: grid;
  gap: 14px;
}

.hero-dots {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.32);
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.hero-dot::before {
  content: '';
  position: absolute;
  inset: -14px;          /* 38px tap target without enlarging the dot */
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.is-active { background: var(--pekon-red); transform: scale(1.15); }
.hero-dot:focus-visible { outline-offset: 6px; }

/* Static foot strip — unchanged across slides */
.hero-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,.55);
}
.hero-foot .mono { font-size: 0.7rem; }
.hairline-light {
  flex: 0 1 80px;
  height: 1px;
  background: rgba(255,255,255,.25);
}

/* ---------- O nama (teaser + standalone page split) ----------------- */
.onama-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .onama-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(48px, 6vw, 84px);
  }
}
.onama-media { width: 100%; }
.onama-img {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.onama-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.onama-media:hover .onama-img > img { transform: scale(1.02); }
.onama-text {
  display: grid;
  gap: 16px;
  max-width: 56ch;
}
.onama-text .section-title { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
.onama-p {
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.65;
}
.onama-text .card-link {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--pekon-blue);
}
.onama-text .card-link:hover { color: var(--pekon-red); }

/* ---------- Stepeništa (featured) ----------------------------------- */
.section-stepenista {
  position: relative;
}
.section-stepenista::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  background: var(--steel-300);
}
/* Featured split layout — left feature image + right linked type list */
.step-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 960px) {
  .step-feature {
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(56px, 7vw, 100px);
  }
}
.step-feature-media {
  width: 100%;
  align-self: start;
}
@media (min-width: 960px) {
  .step-feature-media {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}
.step-feature-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin: 0;
}
.step-feature-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step-feature-body {
  display: grid;
  gap: 18px;
  max-width: 60ch;
}
.step-feature-body .kicker { margin-bottom: 4px; }

/* Linked list of stair types with hairlines */
.step-types {
  list-style: none;
  padding: 0;
  margin: 14px 0 12px;
  border-top: 1px solid var(--steel-300);
}
.step-types li { border-bottom: 1px solid var(--steel-300); }
.step-types a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 14px 18px 4px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: padding .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  border-radius: 4px;
  position: relative;
}
.step-types a:hover {
  background: var(--white);
  padding-left: 14px;
  color: var(--pekon-blue);
}
.step-types .type-caret {
  color: var(--pekon-red);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.step-types a:hover .type-caret { transform: translateX(6px); }

.step-feature-cta { margin-top: 8px; }

/* Generic card pieces — still used by .kat-card and gallery */
.card-media {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.card-media--wide { aspect-ratio: 4 / 3; }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.kat-card:hover .card-media img,
.gal-item:hover .placeholder { transform: scale(1.04); }

.card-body {
  padding: 22px 24px 26px;
  display: grid;
  gap: 6px;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.card-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pekon-blue);
  margin-top: 6px;
  transition: color .2s var(--ease);
}
.kat-card:hover .card-link { color: var(--pekon-red); }

/* ---------- Kategorije (other categories) --------------------------- */
.kat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 640px)  { .kat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .kat-grid { grid-template-columns: repeat(4, 1fr); } }

.kat-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.kat-card:hover {
  transform: translateY(-3px);
  border-color: var(--steel-300);
  box-shadow: 0 14px 32px -22px rgba(14,17,22,.16);
}
.kat-body {
  padding: 20px 22px 24px;
  display: grid;
  gap: 8px;
}
.kat-title {
  font-size: 1.125rem;
  font-weight: 700;
}
.kat-desc {
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.55;
}
.kat-card .card-link { margin-top: 4px; font-size: 0.85rem; }

/* ---------- Materijali strip ---------------------------------------- */
.section-strip {
  padding-block: 36px;
  background: var(--white);
  border-top: 1px solid var(--steel-100);
  border-bottom: 1px solid var(--steel-100);
}
.section-strip .kicker { display: block; margin-bottom: 14px; }
.mat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  align-items: center;
}
.mat-list li {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid var(--steel-300);
  line-height: 1.4;
}
.mat-list li:last-child { border-right: 0; padding-right: 0; margin-right: 0; }

/* ---------- Proces -------------------------------------------------- */
.proces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 700px)  { .proces-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .proces-grid { grid-template-columns: repeat(4, 1fr); } }

.proces-step {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 14px;
  align-content: start;
}
.step-num {
  font-size: 0.78rem;
  color: var(--pekon-red);
  letter-spacing: 0.16em;
}
.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.step-text {
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.6;
}

/* ---------- Reference / Galerija ------------------------------------
   CSS columns deliver true masonry with varying aspect ratios — items
   naturally cascade without grid leftover-cell gaps.
   -------------------------------------------------------------------- */
.gallery-grid {
  column-count: 1;
  column-gap: 14px;
}
@media (min-width: 600px) { .gallery-grid { column-count: 2; } }
@media (min-width: 980px) { .gallery-grid { column-count: 3; column-gap: 18px; } }

.gal-item {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-100);
  position: relative;
  break-inside: avoid;
  aspect-ratio: 4 / 5;
  /* Reveal class adds opacity transition — re-promote for column flow */
  transform: translateZ(0);
}
@media (min-width: 980px) { .gal-item { margin-bottom: 18px; } }

.gal-tall { aspect-ratio: 3 / 5; }
.gal-wide { aspect-ratio: 5 / 4; }

.gal-item .placeholder {
  position: absolute;
  inset: 0;
  transition: transform .5s var(--ease);
}
.gal-item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.gal-item:hover > img { transform: scale(1.04); }

.section-foot {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  justify-content: flex-start;
}

/* ---------- Zašto Pekon --------------------------------------------- */
.zasto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px)  { .zasto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .zasto-grid { grid-template-columns: repeat(4, 1fr); } }

.zasto-item {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.zasto-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--steel-100);
  color: var(--pekon-blue);
}
.zasto-icon svg { width: 22px; height: 22px; }
.zasto-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* ---------- Kontakt (details + map + form) -------------------------- */
.section-kontakt .section-head { max-width: 720px; }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
}
@media (min-width: 900px) {
  .kontakt-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(48px, 5vw, 72px);
  }
}

.kontakt-details {
  display: grid;
  gap: 28px;
  align-content: start;
}
.kontakt-block { display: grid; gap: 4px; }
.kontakt-label {
  color: var(--steel-500);
  margin-bottom: 6px;
}
.kontakt-line {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}
.kontakt-line a {
  color: var(--ink);
  border-bottom: 1px solid var(--steel-300);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.kontakt-line a:hover { color: var(--pekon-red); border-bottom-color: var(--pekon-red); }

.kontakt-map {
  margin-top: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--steel-300);
  background: var(--steel-100);
}
.kontakt-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* Form */
.kontakt-form {
  background: var(--white);
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--steel-300);
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
}
.form-row { display: grid; gap: 8px; position: relative; }
.form-row label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.form-row .req  { color: var(--pekon-red); }
.form-row .form-opt {
  letter-spacing: 0.08em;
  color: var(--steel-500);
  font-weight: 500;
  text-transform: none;
  font-size: 0.7rem;
}
.form-row input,
.form-row textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  padding: 12px 14px;
  border: 1px solid var(--steel-300);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
  min-height: 48px;
}
.form-row textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--pekon-blue);
  box-shadow: 0 0 0 3px rgba(16,39,133,.16);
}
.form-row.is-invalid input,
.form-row.is-invalid textarea {
  border-color: var(--pekon-red);
  box-shadow: 0 0 0 3px rgba(210,17,10,.12);
}
.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--pekon-red);
  margin-top: 2px;
}
.form-row.is-invalid .form-error { display: block; }
.form-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}
.form-submit {
  justify-self: start;
  min-width: 200px;
  margin-top: 6px;
}
.form-submit[disabled] { opacity: 0.65; cursor: progress; }
.form-status {
  font-size: 0.9rem;
  color: var(--steel-500);
  min-height: 1.4em;
}
.form-status.is-success { color: var(--pekon-blue); font-weight: 600; }
.form-status.is-error   { color: var(--pekon-red);  font-weight: 600; }

/* ---------- Footer -------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding-top: clamp(56px, 7vw, 88px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.1fr 1fr; } }

.logo-chip {
  display: inline-block;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.logo-chip img { height: 32px; width: auto; display: block; }

.footer-blurb {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 36ch;
}
.footer-h {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col li { font-size: 0.95rem; }
.footer-col a { color: rgba(255,255,255,.82); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 24px 28px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
}
.footer-credit a { color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 1px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer-credit a:hover { color: var(--white); border-color: var(--white); }

/* ---------- Floating utilities -------------------------------------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px; height: 44px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -10px rgba(14,17,22,.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease);
  z-index: 30;
}
.back-to-top[hidden] { display: none; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--ink-700); }
.back-to-top svg { width: 20px; height: 20px; }

.floating-contact {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 56px; height: 56px;
  background: var(--pekon-red);
  color: var(--white);
  border-radius: 999px;
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 14px 28px -10px rgba(210,17,10,.55), 0 2px 6px rgba(0,0,0,.08);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
  z-index: 30;
}
.floating-contact:hover { background: var(--red-600); transform: translateY(-2px); }
.floating-contact svg { width: 22px; height: 22px; }

/* ---------- Placeholder image system -------------------------------- */
.placeholder {
  background: var(--steel-100);
  position: relative;
  overflow: hidden;
}
.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 49.6%, var(--steel-300) 49.6% 50.4%, transparent 50.4%);
  opacity: 0.32;
}
.placeholder::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--steel-300);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.4;
}
.placeholder-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--steel-500);
  text-align: center;
  padding: 24px;
  z-index: 1;
}

/* ---------- Reveal-up transitions ----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Reusable subpage hero (page-hero) ---------------------- */
.page-hero {
  position: relative;
  min-height: clamp(320px, 46vh, 460px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink);
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Diagonal gradient (0.62 lower-left → 0.40 upper-right) plus flat
     0.18 base so white H1 + breadcrumb pass AA over any photo. */
  background:
    linear-gradient(45deg, rgba(14,17,22,.62) 0%, rgba(14,17,22,.50) 50%, rgba(14,17,22,.40) 100%),
    rgba(14,17,22,.18);
}
.page-hero .container { width: 100%; }
.page-hero-content {
  display: grid;
  gap: 14px;
  max-width: 880px;
  width: 100%;
  padding-block: clamp(40px, 7vw, 88px);
}
.page-hero .kicker { color: rgba(255,255,255,.7); }
.page-hero-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--white);
  text-wrap: balance;
  margin: 4px 0 0;
}
.page-hero-lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  max-width: 58ch;
  margin: 0;
}

/* ---------- Breadcrumb (sits in page-hero) ------------------------- */
.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
}
.breadcrumb li:not(:last-child)::after {
  content: '›';
  color: rgba(255,255,255,.4);
  font-size: 1rem;
  line-height: 1;
  margin-left: 2px;
}
.breadcrumb a {
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.breadcrumb a:hover {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,.55);
}

/* ---------- Active nav state (current page) ------------------------ */
.primary-nav a.is-active {
  color: var(--ink);
  font-weight: 700;
}
.primary-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--pekon-red);
  border-radius: 2px;
}
.mobile-menu > nav > ul > li > a.is-active { color: var(--pekon-red); }
.mobile-menu .m-nav-toggle.is-active { color: var(--pekon-red); }

/* ---------- Slim dark CTA band (homepage contact lead-in) ---------- */
.section-cta-band {
  background: var(--blue-700);
  color: var(--white);
  padding-block: clamp(56px, 7vw, 88px);
}
.section-cta-band .container {
  display: grid;
  gap: 18px;
  max-width: 880px;
}
.cta-band-title {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* ---------- Standalone page intro (used on o-nama.html, kontakt.html) */
.page-intro {
  background: var(--white);
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.page-intro .container { max-width: 880px; }
.page-intro .kicker { margin-bottom: 14px; }
.page-intro-title {
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}
.page-intro-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-700);
  line-height: 1.55;
  max-width: 58ch;
}

/* ---------- Trust strip (below hero) -------------------------------- */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--steel-100);
  padding-block: clamp(28px, 4vw, 44px);
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 900px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  padding: 18px clamp(16px, 2vw, 28px);
  display: grid;
  gap: 6px;
  align-content: center;
  position: relative;
}
/* Desktop hairlines between cells */
@media (min-width: 900px) {
  .trust-item + .trust-item {
    border-left: 1px solid var(--steel-300);
  }
}
/* Mobile (2x2) hairlines: right border between cols 1 and 2, top border between rows */
@media (max-width: 899px) {
  .trust-item:nth-child(2n) { border-left: 1px solid var(--steel-300); }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--steel-300); }
}
.trust-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.trust-num--text {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  letter-spacing: 0;
  line-height: 1.3;
  font-weight: 800;
  text-transform: none;
}
.trust-cap {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: var(--steel-500);
}

/* ---------- Reference filter chips --------------------------------- */
.ref-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.ref-chip {
  padding: 9px 16px;
  border: 1px solid var(--steel-300);
  border-radius: 999px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-700);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  min-height: 38px;
  line-height: 1.1;
}
.ref-chip:hover {
  background: var(--steel-100);
  color: var(--ink);
}
.ref-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* ---------- Proizvodi grid (with featured Stepeništa) -------------- */
.proizvodi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 800px) {
  .proizvodi-grid { grid-template-columns: repeat(2, 1fr); }
  .proizvodi-grid .kat-card.is-featured { grid-column: 1 / -1; }
}

/* Featured horizontal variant — Stepeništa on proizvodi.html */
@media (min-width: 800px) {
  .kat-card.is-featured {
    flex-direction: row;
    align-items: stretch;
  }
  .kat-card.is-featured .card-media {
    flex: 1.25;
    aspect-ratio: auto;
    min-height: 280px;
  }
  .kat-card.is-featured .kat-body {
    flex: 1;
    padding: clamp(28px, 4vw, 44px);
    align-content: center;
  }
  .kat-card.is-featured .kat-title {
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.015em;
  }
  .kat-card.is-featured .kat-desc {
    font-size: 1.05rem;
    max-width: 50ch;
  }
}
.kat-card .featured-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pekon-red);
  background: rgba(210,17,10,.08);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* ---------- Full-width map (kontakt.html) -------------------------- */
.section-map {
  background: var(--white);
  padding: 0 clamp(20px, 4vw, 40px) clamp(48px, 6vw, 80px);
}
.section-map iframe {
  display: block;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
  background: var(--steel-100);
}
@media (min-width: 1024px) {
  .section-map iframe { height: 420px; }
}

/* ---------- Mobile sticky call bar (<=768px) ----------------------- */
.m-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  display: none;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--steel-300);
  box-shadow: 0 -12px 28px -18px rgba(14,17,22,.22);
}
.m-call-btn {
  flex: 1;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 0.95rem;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .m-call-bar { display: flex; }
  /* Keep footer content from being hidden behind the bar */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* Hide the bottom-left phone launcher on mobile — the bar replaces it */
  .floating-contact { display: none; }
  /* Lift the back-to-top button above the bar */
  .back-to-top {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Lightbox (gallery overlay) ------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(14,17,22,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .25s var(--ease);
  padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 56px) clamp(60px, 8vw, 100px);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  font-family: 'Inter', sans-serif;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
}
.lb-close {
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  font-size: 26px;
  line-height: 1;
  padding: 0;
}
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
}
.lb-prev { left: clamp(12px, 2vw, 28px); }
.lb-next { right: clamp(12px, 2vw, 28px); }
@media (max-width: 600px) {
  .lb-prev, .lb-next {
    top: auto;
    bottom: clamp(60px, 10vh, 80px);
    transform: none;
  }
  .lb-prev { left: 18px; }
  .lb-next { right: 18px; }
}

.lb-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: grid;
  place-items: center;
}
.lb-figure {
  margin: 0;
  display: grid;
  gap: 16px;
  max-width: 100%;
  justify-items: center;
}
.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  max-height: calc(100svh - 220px);
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--ink-700);
}
.lb-img[hidden] { display: none; }
.lb-placeholder {
  width: min(800px, 80vw);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}
.lb-cap {
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}
.lb-count {
  position: absolute;
  bottom: clamp(18px, 3vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.65);
}
body.lb-open { overflow: hidden; }

/* ---------- Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Body lock for mobile menu ------------------------------- */
body.menu-open { overflow: hidden; }

/* =====================================================================
   Stepeništa module (catalog index + subcategory pages)
   ===================================================================== */

/* Index — subcategory tiles: 520x520 thumbnail is the link to the page */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--gap);
}
.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cat-tile-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--steel-100);
  border: 1px solid var(--steel-100);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-tile-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.cat-tile:hover .cat-tile-media,
.cat-tile:focus-visible .cat-tile-media {
  border-color: var(--steel-300);
  box-shadow: 0 16px 34px -22px rgba(14,17,22,.20);
}
.cat-tile:hover .cat-tile-media img { transform: scale(1.04); }
.cat-tile-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.cat-tile:hover .cat-tile-label { color: var(--pekon-red); }

/* Subcategory galleries — uniform 520x520 square thumbnails in a grid.
   Reuses .gal-item (so the lightbox JS picks them up) but overrides the
   masonry aspect ratio to a fixed square. */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
@media (min-width: 980px) { .thumb-grid { gap: 18px; } }
.thumb-grid .gal-item {
  aspect-ratio: 1 / 1;
  margin-bottom: 0;
}

/* Subcategory intro + action row */
.prose { max-width: 72ch; }
.subcat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 5vw, 48px);
}
.subcat-actions .card-link { margin-left: auto; }
@media (max-width: 560px) { .subcat-actions .card-link { margin-left: 0; } }

/* Kontakt — responsive 16:9 YouTube embeds */
.video-embeds {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 800px) { .video-embeds { grid-template-columns: repeat(2, 1fr); } }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-100);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================================================
   Stepeništa module — iteration 7 (two-level hierarchy)
   ===================================================================== */

/* Nested submenu: indented Spoljne / Unutrašnje under Stepeništa */
.submenu a.submenu-sub {
  padding-left: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-700);
}
.submenu a.submenu-sub::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-left: 1.5px solid var(--steel-300);
  border-bottom: 1.5px solid var(--steel-300);
}
.submenu a.submenu-sub { position: relative; }
.submenu a.submenu-sub:hover,
.submenu a.submenu-sub:focus-visible { color: var(--pekon-blue); }

.m-submenu a.m-submenu-sub {
  padding-left: 28px;
  font-size: 0.92rem;
  opacity: 0.9;
}

/* proizvodi.html — sublinks beneath the featured Stepeništa card */
.kat-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: -6px;
  margin-bottom: 4px;
}
.kat-sublinks a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pekon-blue);
  transition: color .2s var(--ease);
}
.kat-sublinks a:hover { color: var(--pekon-red); }
@media (min-width: 800px) { .kat-sublinks { grid-column: 1 / -1; } }

/* Index — two large category tiles (Spoljne / Unutrašnje) */
.duo-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 700px) { .duo-tiles { grid-template-columns: repeat(2, 1fr); } }
.duo-tile { gap: 16px; }
.cat-tile-lead {
  font-size: 0.98rem;
  color: var(--ink-700);
  line-height: 1.55;
  max-width: 46ch;
}

/* Prednosti (benefits) — numbered rows */
.prednosti-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}
@media (min-width: 760px) { .prednosti-grid { grid-template-columns: repeat(2, 1fr); } }
.prednosti-item {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 10px;
  align-content: start;
}
.prednosti-mark {
  font-size: 0.78rem;
  color: var(--pekon-red);
  letter-spacing: 0.16em;
}
.prednosti-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.prednosti-text {
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.6;
}

/* Intro body paragraphs */
.prose-p {
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  color: var(--ink-700);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 72ch;
}

/* =====================================================================
   Mega dropdown — iteration 8 (obvious Spoljne / Unutrašnje split)
   ===================================================================== */
.submenu.mega {
  left: 50%;
  margin-left: -340px;
  width: min(680px, calc(100vw - 24px));
  min-width: 0;
  max-width: calc(100vw - 24px);
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 6px 26px;
  padding: 20px 24px;
}
.mega-col--stairs { display: flex; flex-direction: column; gap: 2px; }
.mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background-color .15s var(--ease);
}
.mega-head:hover, .mega-head:focus-visible { background: var(--steel-100); }
.mega-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--pekon-blue);
  font-weight: 500;
}
.mega-group { padding: 4px 0; }
.mega-group--divided {
  border-top: 1px solid var(--steel-300);
  margin-top: 6px;
  padding-top: 8px;
}
.mega-group-link {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 8px 10px 8px 14px;
  border-left: 3px solid var(--pekon-red);
  border-radius: 0 6px 6px 0;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.mega-group-link:hover, .mega-group-link:focus-visible { background: var(--steel-100); color: var(--pekon-blue); }
.mega-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 8px;
  margin-top: 6px;
  padding-left: 14px;
}
.mega-types a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 8px;
  font-size: 0.84rem;
  color: var(--ink-700);
  border-radius: 6px;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.mega-types a::before {
  content: '›';
  color: var(--pekon-red);
  opacity: 0;
  transition: opacity .15s var(--ease);
}
.mega-types a:hover, .mega-types a:focus-visible { background: var(--steel-100); color: var(--pekon-blue); }
.mega-types a:hover::before, .mega-types a:focus-visible::before { opacity: 1; }
.mega-col--other {
  border-left: 1px solid var(--steel-100);
  padding-left: 24px;
}
.mega-col-label {
  display: block;
  color: var(--steel-500);
  margin-bottom: 12px;
}
.mega-types--other {
  grid-template-columns: 1fr;
  padding-left: 0;
  gap: 2px;
}
.mega-types--other a { font-size: 0.9rem; }
@media (max-width: 720px) {
  /* Safety: single column if the panel is ever shown on a narrow desktop */
  .submenu.mega { grid-template-columns: 1fr; }
  .mega-col--other { border-left: 0; padding-left: 0; border-top: 1px solid var(--steel-100); padding-top: 12px; margin-top: 8px; }
}

/* Mobile accordion — bold group rows for the split */
.m-submenu a.m-group-link {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding-left: 14px;
  border-left: 3px solid var(--pekon-red);
  border-radius: 0 6px 6px 0;
}
.m-submenu .m-submenu-sep { margin-top: 8px; border-top: 1px solid var(--steel-300); padding-top: 8px; }

/* proizvodi.html — Spoljne / Unutrašnje as real buttons under the Stepeništa card */
.kat-splitlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
@media (min-width: 800px) { .kat-splitlinks { grid-column: 1 / -1; } }
.kat-splitlinks .btn { min-height: 44px; }

/* =====================================================================
   Navbar — iteration 9 (client scheme: 5 items, long stair labels)
   ===================================================================== */
/* Header spans a little wider than the 1200 body so the long labels fit at 1440 */
.site-header .container { max-width: 1360px; }

.primary-nav a,
.primary-nav .nav-toggle {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}
.primary-nav > ul { gap: clamp(14px, 1.7vw, 26px); }
/* 1200–1439: shrink type + gaps so labels stay on one row, no overlap */
@media (min-width: 1200px) and (max-width: 1439px) {
  .primary-nav a,
  .primary-nav .nav-toggle { font-size: 0.72rem; letter-spacing: 0.03em; }
  .primary-nav > ul { gap: 14px; }
  .header-cta { padding: 8px 12px; font-size: 0.82rem; }
}

/* Dropdown under item 4 — long type labels, single column, may wrap */
.submenu.submenu--stairs {
  left: auto;
  right: -10px;
  min-width: 320px;
  max-width: calc(100vw - 24px);
}
.submenu--stairs a {
  white-space: normal;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.submenu--stairs a::after {
  content: '›';
  color: var(--pekon-red);
  opacity: 0;
  margin-left: auto;
  padding-left: 10px;
  transition: opacity .15s var(--ease);
}
.submenu--stairs a:hover::after,
.submenu--stairs a:focus-visible::after { opacity: 1; }

/* Mobile accordion — the 8 stair types indented under item 4 */
.m-submenu a.m-submenu-sub { padding-left: 22px; font-size: 0.92rem; opacity: 0.9; }

/* Hvala / 404 — contact details + action row */
.hvala-details {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  max-width: 60ch;
}
.hvala-details li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: 1.02rem;
  color: var(--ink-700);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--steel-100);
}
.hvala-details .mono {
  color: var(--steel-500);
  min-width: 92px;
  font-size: 0.72rem;
}
.hvala-details a { color: var(--pekon-blue); font-weight: 600; }
.hvala-details a:hover { color: var(--pekon-red); }
.hvala-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
