/* Roletne — drugačiji layout od PVC/ALU (split hero, bento, bez karusela) */
.page-roletne {
  padding-top: var(--header-h);
  --r-warm: #c9a227;
  --r-warm-dim: rgba(201, 162, 39, 0.15);
  --r-ink: #1a1f26;
}

/* Garažna vrata: tamni header (čitljiv), ne „sivi” tekst kao na svijetlom split-herou */
.page-garazna .site-header {
  background: rgba(13, 17, 23, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page-garazna .site-header.is-solid {
  background: rgba(13, 17, 23, 0.98) !important;
}

.page-garazna .site-header .site-logo,
.page-garazna .site-header .site-nav__list > li > a,
.page-garazna .site-header .mega-trigger {
  color: rgba(255, 255, 255, 0.95) !important;
}

.page-garazna .site-header .nav-toggle span {
  background: #fff !important;
}

.page-garazna .site-header:not(.is-solid) .mega-menu__link {
  color: rgba(244, 247, 251, 0.92);
}

/* Badge na hero slici: bez backdrop-blur (uklanja „zamućenje”) */
.page-garazna .roletne-hero__badge {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* Navigacija na svijetlom hero — tamni tekst dok header nije is-solid */
.page-roletne .site-header:not(.is-solid) .site-logo {
  color: var(--r-ink);
}

.page-roletne .site-header:not(.is-solid) .site-nav__list > li > a {
  color: rgba(26, 31, 38, 0.88);
}

.page-roletne .site-header:not(.is-solid) .mega-trigger {
  color: rgba(26, 31, 38, 0.88);
}

.page-roletne .site-header:not(.is-solid) .mega-trigger:hover,
.page-roletne .site-header:not(.is-solid) .mega-trigger:focus-visible {
  color: var(--r-ink);
}

.page-roletne .site-header:not(.is-solid) .nav-toggle span {
  background: var(--r-ink);
}

.page-roletne .reveal {
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.page-roletne .reveal-left.reveal {
  transform: translateY(28px) translateX(-12px);
}

.page-roletne .reveal-right.reveal {
  transform: translateY(28px) translateX(12px);
}

.page-roletne .reveal-left.reveal.is-visible,
.page-roletne .reveal-right.reveal.is-visible {
  transform: translateY(0) translateX(0);
}

.page-roletne main {
  overflow-x: hidden;
}

/* —— Split hero (ne bottom-aligned kao PVC) —— */
.roletne-hero {
  position: relative;
  min-height: clamp(460px, 78vh, 700px);
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  overflow: hidden;
}

.roletne-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(8, 14, 22, 0.74) 0%, rgba(8, 14, 22, 0.52) 40%, rgba(8, 14, 22, 0.28) 68%, rgba(8, 14, 22, 0.58) 100%),
    radial-gradient(700px 320px at 82% 15%, rgba(46, 125, 50, 0.2), transparent 60%),
    radial-gradient(560px 280px at 8% 92%, rgba(201, 162, 39, 0.18), transparent 60%);
  z-index: 1;
}

@media (min-width: 900px) {
  .roletne-hero {
    min-height: clamp(500px, 76vh, 720px);
  }
}

.roletne-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem 2.25rem;
  max-width: 42rem;
  color: #fff;
}

@media (min-width: 900px) {
  .roletne-hero__content {
    padding: 3.75rem 2rem 3.2rem clamp(1.5rem, 4vw, 3rem);
  }
}

.roletne-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 1rem;
}

.roletne-hero__tag::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--r-warm), var(--accent));
  border-radius: 2px;
}

.roletne-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.roletne-hero__title em {
  font-style: normal;
  color: var(--accent);
}

.roletne-hero__lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
  max-width: 38ch;
}

.roletne-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.roletne-hero__actions .btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1b5e20 100%);
  box-shadow: 0 8px 28px var(--accent-ghost);
}

.roletne-hero__actions .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.roletne-hero__actions .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.roletne-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.roletne-hero__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.roletne-hero__frame::after {
  content: none;
}

.roletne-hero__bg {
  width: 100%;
  height: 100%;
  background-color: #1a2332;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transform: none;
  will-change: transform;
}

.roletne-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(12, 20, 32, 0.08) 0%, rgba(12, 20, 32, 0.28) 100%);
  pointer-events: none;
}

.roletne-hero__badge {
  position: absolute;
  z-index: 2;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--r-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

/* —— Brzi fakti (traka, ne tamna sekcija) —— */
.roletne-facts {
  position: relative;
  z-index: 1;
  margin-top: -2rem;
  margin-bottom: 0;
  padding: 0 1.25rem 2.5rem;
}

.roletne-facts__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 700px) {
  .roletne-facts__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 1.75rem;
  }
}

.roletne-facts__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.35rem 0;
}

.roletne-facts__ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--r-warm-dim);
  color: #8a6d12;
}

.roletne-facts__ic svg {
  width: 20px;
  height: 20px;
}

.roletne-facts__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--r-ink);
  margin-bottom: 0.15rem;
}

.roletne-facts__text span {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* —— Bento mreža —— */
.roletne-bento {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  background: var(--color-surface);
}

.roletne-bento__head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.roletne-bento__head .section-kicker {
  color: var(--accent);
}

.roletne-bento__grid {
  display: grid;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .roletne-bento__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.15rem;
  }

  .roletne-bento__cell--hero-img {
    grid-row: span 2;
  }

  .roletne-bento__grid > .roletne-bento__cell--text:last-child {
    grid-column: 1 / -1;
  }
}

.roletne-bento__cell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-muted);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.roletne-bento__cell--img {
  padding: 0;
  aspect-ratio: 4 / 3;
}

.roletne-bento__cell--img picture {
  display: block;
  width: 100%;
  height: 100%;
}

.roletne-bento__cell--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roletne-bento__cell--text {
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.roletne-bento__cell--text h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--r-ink);
}

.roletne-bento__cell--text p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.roletne-bento__cell--accent {
  background: linear-gradient(145deg, rgba(46, 125, 50, 0.08) 0%, rgba(201, 162, 39, 0.1) 100%);
  border-color: rgba(46, 125, 50, 0.12);
}

/* —— Tipovi roletni —— */
.roletne-types {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  background: var(--color-surface-muted);
}

.roletne-types__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .roletne-types__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .roletne-types__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.roletne-type-card {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.roletne-type-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.roletne-type-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--r-warm);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.roletne-type-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--r-ink);
}

.roletne-type-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* —— Detalj (alternativni split) —— */
.roletne-detail {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--color-surface);
}

.roletne-detail__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .roletne-detail__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }

  .roletne-detail__grid--reverse {
    direction: rtl;
  }

  .roletne-detail__grid--reverse > * {
    direction: ltr;
  }
}

.roletne-detail__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 5 / 4;
}

.roletne-detail__visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.roletne-detail__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roletne-detail__body .section-kicker {
  color: var(--accent);
}

.roletne-detail__list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.roletne-detail__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.roletne-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--r-warm), var(--accent));
}

/* —— Galerija —— */
.roletne-gallery {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  background: linear-gradient(180deg, #0f1419 0%, #161d26 100%);
  color: var(--color-on-dark);
}

.roletne-gallery .section-kicker {
  color: rgba(255, 255, 255, 0.45);
}

.roletne-gallery__mosaic {
  display: grid;
  gap: 0.75rem;
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .roletne-gallery__mosaic {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.85rem;
  }

  .roletne-gallery__mosaic .roletne-gallery__item:first-child {
    grid-row: span 2;
  }
}

.roletne-gallery__item {
  position: relative;
  border: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  display: block;
  width: 100%;
  text-align: left;
}

.roletne-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
  aspect-ratio: 16 / 11;
}

.roletne-gallery__mosaic .roletne-gallery__item:first-child img {
  aspect-ratio: auto;
  min-height: 280px;
}

@media (min-width: 700px) {
  .roletne-gallery__mosaic .roletne-gallery__item:first-child img {
    min-height: 100%;
    aspect-ratio: auto;
  }
}

.roletne-gallery__item:hover img {
  transform: scale(1.04);
}

.roletne-gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}

/* —— Stats (tamnija traka — bez „mrtvog” bijelog, u skladu s ostatkom brenda) —— */
.page-roletne .stats-band {
  background:
    linear-gradient(155deg, #0c1219 0%, #141c28 42%, #0a0f16 100%),
    radial-gradient(100% 120% at 50% 0%, rgba(201, 162, 39, 0.14), transparent 52%);
  color: var(--color-on-dark);
  border-top: 3px solid var(--r-warm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-roletne .stats-band__kicker {
  color: rgba(255, 255, 255, 0.42);
}

.page-roletne .stats-band__hint {
  color: rgba(201, 162, 39, 0.88);
}

.page-roletne .stats-band__num {
  color: #fff;
  text-shadow: 0 0 32px rgba(201, 162, 39, 0.22);
}

.page-roletne .stats-band__num--text {
  color: var(--r-warm);
  text-shadow: none;
}

.page-roletne .stats-band__label {
  color: rgba(240, 243, 246, 0.72);
}

/* —— CTA kartica —— */
.roletne-cta {
  padding: clamp(2.5rem, 6vw, 4rem) 0 3.5rem;
  background: var(--color-surface-muted);
}

.roletne-cta__card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
  text-align: center;
}

.roletne-cta__card .cta-final__kicker {
  color: var(--accent);
}

.roletne-cta__card .cta-final__title {
  color: var(--r-ink);
}

.roletne-cta__card .cta-final__lead,
.roletne-cta__card .cta-final__meta {
  color: var(--color-text-muted);
}

.roletne-cta__card .btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1b5e20 100%);
}

.roletne-cta__card .btn--ghost {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--r-ink);
}

/* —— Mobilna traka —— */
@media (max-width: 899px) {
  .page-roletne .pvc-mobile-bar {
    display: flex;
  }

  .page-roletne .sticky-call {
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  /* Avoid white gap below footer on roletne/garazna pages. */
  .page-roletne main {
    padding-bottom: 0;
  }

  /* Keep fixed mobile bar clear of content without pushing footer down. */
  .page-roletne .section:last-of-type {
    padding-bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roletne-hero__badge {
    transform: translateX(-50%);
  }

  @media (min-width: 900px) {
    .roletne-hero__badge {
      transform: none;
    }
  }
}
