/*
 Theme Name: Twenty Twenty-Three Child
 Template: twentytwentythree
*/

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0a0a0a;
  --white:      #f5f4f0;
  --green:      #1a3a2a;
  --green-mid:  #2b5c3e;
  --green-light:#3d7a52;
  --accent:     #c8e6c0;
  --gray:       #888880;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── UTILITY ─── */
.full-width { width: 100%; }
.container  { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ─────────────────────────────────────────────
   BLOK 1 — HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 68px;
  padding-bottom: 80px;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
}
.hero__video-placeholder {
  width: 100%; height: 100%;
  background:
    linear-gradient(160deg, var(--green) 0%, var(--black) 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,.02) 40px,
      rgba(255,255,255,.02) 41px
    );
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* content rides above header via hero padding-top */
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 140px);
  line-height: .92;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 28px;
}

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

.hero__para {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(245,244,240,.7);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero__cta {
  display: inline-block;
  padding: 18px 44px;
  background: var(--green-mid);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--green-light);
  transition: background .25s, color .25s, border-color .25s;
}
.hero__cta:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .5;
}
.hero__scroll span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: var(--white);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─────────────────────────────────────────────
   BLOK 2 — FUTURA NATURA GALERIJA
───────────────────────────────────────────── */
.gallery-section {
  background: var(--white);
  color: var(--black);
  padding: 100px 0 80px;
}

.gs__brand {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 110px);
  line-height: 1;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 8px;
}

.gs__sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 80px;
}

.gs__group {
  margin-bottom: 72px;
}

.gs__group-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  letter-spacing: 1px;
  color: var(--black);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.gs__group-para {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  max-width: 640px;
  margin-bottom: 28px;
}

.gs__thumbs {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.gs__thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gs__thumb--ext { background: linear-gradient(135deg, #1a3a2a 0%, #2b5c3e 100%); }
.gs__thumb--int { background: linear-gradient(135deg, #2a2a1a 0%, #4a4a2e 100%); }
.gs__thumb--tlo { background: linear-gradient(135deg, #1a2a3a 0%, #2e3d52 100%); }

.gs__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s;
}
.gs__thumb:hover::before { background: rgba(0,0,0,.3); }

.gs__thumb-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.gs__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gs__thumb:hover img { transform: scale(1.06); }

@media (max-width: 768px) {
  .gs__thumbs { grid-template-columns: repeat(5, 1fr); }
}

/* ─────────────────────────────────────────────
   BLOK 3 — VIDEO PLAYER
───────────────────────────────────────────── */
.video-section {
  background: var(--black);
  padding: 0;
  position: relative;
}

.video-section__inner {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 90vh;
  background: var(--green);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-section__inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0f2018 0%, #1a3a2a 50%, #0a0a0a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.video-play-btn {
  width: 80px; height: 80px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.video-play-btn:hover {
  border-color: var(--accent);
  background: rgba(200,230,192,.1);
}
.video-play-btn svg { margin-left: 4px; }

.video-placeholder p {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.video-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}
.vc-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
  padding: 4px;
  display: flex;
  align-items: center;
}
.vc-btn:hover { opacity: 1; }
.vc-progress {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.vc-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .1s;
}
.vc-time {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.6);
  min-width: 80px;
  text-align: right;
}

/* ─────────────────────────────────────────────
   BLOK 4 — SISTEM OVERVIEW
───────────────────────────────────────────── */
.system-overview {
  background: var(--black);
  padding: 100px 0 0;
}

.system-overview .container {
  margin-bottom: 40px;
}

.so__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
}

.so__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: .95;
  color: var(--white);
  margin-bottom: 24px;
}

.so__para {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245,244,240,.6);
  max-width: 560px;
}

.so__image-wrap {
  width: 100%;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, #0f2018 0%, #1a4028 40%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.so__image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.so__placeholder-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 40px);
  letter-spacing: 3px;
  color: rgba(255,255,255,.15);
  text-align: center;
  padding: 0 20px;
}

.so__dot {
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
}
.so__dot::after {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────
   BLOK 5 — DIJELOVI SUSTAVA
───────────────────────────────────────────── */
.system-section {
  background: var(--black);
  padding: 100px 0 80px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.ss__intro {
  margin-bottom: 80px;
}

.ss__intro-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
}

.ss__intro-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: .95;
  color: var(--white);
}

.ss__group {
  margin-bottom: 72px;
}

.ss__group-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.ss__group-para {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245,244,240,.55);
  max-width: 640px;
  margin-bottom: 28px;
}

.ss__thumbs {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.ss__thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.ss__thumb--solar  { background: linear-gradient(135deg, #1a1a0a 0%, #3d3d10 100%); }
.ss__thumb--hidro  { background: linear-gradient(135deg, #0a1a2a 0%, #103d5c 100%); }
.ss__thumb--vrt    { background: linear-gradient(135deg, #0a1a0a 0%, #1a4020 100%); }
.ss__thumb--waste  { background: linear-gradient(135deg, #1a0a0a 0%, #3d2010 100%); }

.ss__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s;
}
.ss__thumb:hover::before { background: rgba(0,0,0,.35); }

.ss__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.ss__thumb:hover img { transform: scale(1.06); }

@media (max-width: 768px) {
  .ss__thumbs { grid-template-columns: repeat(5, 1fr); }
}

/* ─────────────────────────────────────────────
   BLOK 6 — FOOTER
───────────────────────────────────────────── */
footer {
  background: var(--green);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

.footer__col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.footer__links a:hover { color: var(--white); }

.footer__contact p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,.7);
}

.footer__contact a {
  color: var(--accent);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  letter-spacing: 1px;
}

.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color .2s;
}
.footer__legal a:hover { color: rgba(255,255,255,.8); }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 20px; }
}

/* ─────────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.active { display: flex; }

.lightbox__close {
  position: fixed;
  top: 24px; right: 32px;
  font-size: 32px;
  color: var(--white);
  cursor: pointer;
  opacity: .6;
  line-height: 1;
  background: none;
  border: none;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__placeholder {
  width: 80vw;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.1);
}

/* ─── FADE IN ANIMACIJA ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__content > * {
  animation: fadeUp .8s ease both;
}
.hero__eyebrow { animation-delay: .1s; }
.hero__title   { animation-delay: .25s; }
.hero__para    { animation-delay: .4s; }
.hero__cta     { animation-delay: .55s; }

/* ── LIGHTBOX NAV ── */
.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: #2b5c3e;
  border: 1px solid #3d7a52;
  color: #f5f4f0;
  font-size: 24px;
  width: 48px;
  height: 64px;
  cursor: pointer;
  opacity: .95;
  transition: opacity .2s, background .2s;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.lightbox__nav:hover { background: #3d7a52; opacity: 1; }
.lightbox__prev { left: 0; border-radius: 0 4px 4px 0; }
.lightbox__next { right: 0; border-radius: 4px 0 0 4px; }
