/* =============================================
   WorkSpace d.o.o. — style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* RESET & VARIJABLE */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #ffffff;
  --off: #f5f5f7;
  --dark: #1d1d1f;
  --mid: #6e6e73;
  --light: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --border: #d2d2d7;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   NAVIGACIJA
   ============================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 48px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; z-index: 2; }
.nav-logo img { height: 18px; }
.nav-logo-text { font-size: 15px; font-weight: 500; color: var(--dark); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  font-size: 12px; color: var(--dark); text-decoration: none;
  padding: 0 14px; opacity: 0.8; transition: opacity 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 400;
  padding: 6px 14px; border-radius: 980px;
  text-decoration: none; white-space: nowrap; transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-hover); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none; z-index: 2;
}
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--dark); transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobilni meni */
.nav-mobile {
  display: none; position: fixed; inset: 0; top: 48px;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  z-index: 190; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-mobile.open { opacity: 1; pointer-events: all; }
.nav-mobile a { font-size: 24px; font-weight: 300; color: var(--dark); text-decoration: none; letter-spacing: -0.01em; }
.nav-mobile .nav-cta-m {
  background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 400;
  padding: 12px 28px; border-radius: 980px; text-decoration: none; margin-top: 8px;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative; height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  overflow: hidden; padding-bottom: 10vh; background: #000;
}
.hero-img {
  position: absolute; inset: 0;
  background: url('../images/areal-poster2.webp') center/cover no-repeat;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-img.loaded { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.75) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.hero-eyebrow {
  font-size: 14px; font-weight: 400; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7); margin-bottom: 12px;
  opacity: 0; transform: translateY(20px);
  animation: au 0.8s 0.4s forwards;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px); font-weight: 600; color: #fff;
  line-height: 1.07; letter-spacing: -0.025em; margin-bottom: 16px;
  opacity: 0; transform: translateY(20px);
  animation: au 0.8s 0.55s forwards;
}
.hero-sub {
  font-size: clamp(14px, 2vw, 21px); font-weight: 300;
  color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 32px;
  opacity: 0; transform: translateY(20px);
  animation: au 0.8s 0.7s forwards;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: au 0.8s 0.85s forwards;
}
.btn-w {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  color: #fff; border: 1px solid rgba(255,255,255,0.3);
  font-size: 15px; font-weight: 400; padding: 12px 24px; border-radius: 980px;
  cursor: pointer; font-family: var(--font); transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-w:hover { background: rgba(255,255,255,0.25); }
.btn-b {
  background: var(--blue); color: #fff; border: none;
  font-size: 15px; font-weight: 400; padding: 12px 24px; border-radius: 980px;
  cursor: pointer; font-family: var(--font); transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-b:hover { background: var(--blue-hover); }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: au 1s 1.4s forwards;
}
.scroll-txt { font-size: 10px; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.scroll-chevron { width: 20px; height: 20px; opacity: 0.5; animation: bounce 2s ease-in-out infinite; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes au { to { opacity: 1; transform: translateY(0); } }

/* =============================================
   STATS
   ============================================= */
#stats { background: var(--off); padding: 0; max-width: none; margin: 0; }
.stats-inner {
  max-width: 980px; margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.stat {
  background: var(--off); padding: 28px 12px; text-align: center;
  opacity: 0; transform: translateY(24px); transition: opacity 0.5s, transform 0.5s;
}
.stat.in { opacity: 1; transform: translateY(0); }
.stat-num { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; color: var(--dark); line-height: 1; }
.stat-unit { font-size: 16px; font-weight: 300; color: var(--mid); }
.stat-lbl { font-size: 11px; color: var(--light); margin-top: 6px; font-weight: 400; line-height: 1.4; }

/* =============================================
   ZAJEDNIČKE SEKCIJE
   ============================================= */
.section { padding: 80px 24px; max-width: 980px; margin: 0 auto; }
.eyebrow { font-size: 14px; font-weight: 400; color: var(--blue); margin-bottom: 12px; letter-spacing: 0.01em; }
.sec-title { font-size: clamp(26px, 4vw, 48px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--dark); }
.sec-body { font-size: 17px; color: var(--mid); font-weight: 300; line-height: 1.7; margin-top: 16px; max-width: 560px; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =============================================
   O HALI
   ============================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 64px; }
.about-img { border-radius: 18px; overflow: hidden; opacity: 0; transform: translateX(-40px); transition: opacity 0.7s, transform 0.7s; }
.about-img.in { opacity: 1; transform: translateX(0); }
.about-img img { width: 100%; height: 420px; object-fit: cover; display: block; }
.about-copy { opacity: 0; transform: translateX(40px); transition: opacity 0.7s 0.15s, transform 0.7s 0.15s; }
.about-copy.in { opacity: 1; transform: translateX(0); }
.about-copy p { font-size: 17px; color: var(--mid); line-height: 1.75; font-weight: 300; margin-top: 16px; }
.about-copy p + p { margin-top: 12px; }
.learn-more { display: inline-block; margin-top: 24px; font-size: 15px; color: var(--blue); text-decoration: none; font-weight: 400; }
.learn-more::after { content: ' ›'; }
.learn-more:hover { text-decoration: underline; }

/* =============================================
   OPREMA
   ============================================= */
#features { background: var(--off); max-width: none; margin: 0; padding: 0; }
.feat-inner { max-width: 980px; margin: 0 auto; padding: 80px 24px; }
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 56px;
}
.feat-card { background: var(--off); padding: 36px 28px; opacity: 0; transform: translateY(30px); transition: opacity 0.55s, transform 0.55s; }
.feat-card.in { opacity: 1; transform: translateY(0); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.feat-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.feat-desc { font-size: 14px; color: var(--light); line-height: 1.65; margin-top: 8px; font-weight: 400; }

/* =============================================
   GALERIJA
   ============================================= */
#gallery { max-width: none; margin: 0; padding: 0; }
.gal-inner { max-width: 980px; margin: 0 auto; padding: 80px 24px; }
.gal-top { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 320px; gap: 6px; margin-top: 56px; }
.gal-big, .gal-sm, .gal-cell {
  overflow: hidden; cursor: pointer; position: relative;
  opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s;
}
.gal-big.in, .gal-sm.in, .gal-cell.in { opacity: 1; transform: translateY(0); }
.gal-big img, .gal-sm img, .gal-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.gal-big:hover img { transform: scale(1.03); }
.gal-sm:hover img, .gal-cell:hover img { transform: scale(1.05); }
.gal-big::after, .gal-sm::after, .gal-cell::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background 0.3s;
}
.gal-big:hover::after, .gal-sm:hover::after, .gal-cell:hover::after { background: rgba(0,0,0,0.08); }
.gal-stack { display: flex; flex-direction: column; gap: 6px; }
.gal-sm { flex: 1; }
.gal-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 220px; gap: 6px; margin-top: 6px; }

/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
#lightbox.open { display: flex; opacity: 1; }
#lightbox.closing { opacity: 0; }
.lb-img-wrap { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
#lbImg {
  max-width: 90vw; max-height: 85vh; object-fit: contain; display: block;
  opacity: 0; transform: scale(0.96); transition: opacity 0.3s, transform 0.3s; user-select: none;
}
#lbImg.loaded { opacity: 1; transform: scale(1); }
.lb-close {
  position: fixed; top: 16px; right: 20px;
  width: 40px; height: 40px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-close svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 1.5; fill: none; }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-nav svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 1.5; fill: none; }
#lbPrev { left: 16px; }
#lbNext { right: 16px; }
.lb-counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; }

/* =============================================
   LOKACIJA
   ============================================= */
#location { background: var(--off); max-width: none; margin: 0; padding: 0; }
.loc-inner { max-width: 980px; margin: 0 auto; padding: 80px 24px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 56px; }
.loc-details { display: flex; flex-direction: column; gap: 0; }
.loc-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s;
}
.loc-row.in { opacity: 1; transform: translateY(0); }
.loc-row:first-child { border-top: 1px solid var(--border); }
.loc-icon-wrap {
  width: 32px; height: 32px; flex-shrink: 0; background: var(--white);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; border: 1px solid var(--border);
}
.loc-label { font-size: 12px; color: var(--light); margin-bottom: 2px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.loc-val { font-size: 15px; color: var(--dark); font-weight: 400; }
.map-wrap { border-radius: 18px; overflow: hidden; height: 380px; border: 1px solid var(--border); opacity: 0; transform: translateY(30px); transition: opacity 0.7s 0.2s, transform 0.7s 0.2s; }
.map-wrap.in { opacity: 1; transform: translateY(0); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* =============================================
   KONTAKT
   ============================================= */
#contact { max-width: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.contact-inner { max-width: 680px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.contact-inner .sec-title { font-size: clamp(26px, 4vw, 52px); }
.contact-inner .sec-body { margin: 16px auto 0; max-width: 460px; }
.contact-card {
  background: var(--off); border-radius: 18px; padding: 36px; margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left;
  opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s;
}
.contact-card.in { opacity: 1; transform: translateY(0); }
.cc-lbl { font-size: 11px; font-weight: 500; color: var(--light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.cc-val { font-size: 15px; color: var(--dark); }
.cc-val a { color: var(--blue); text-decoration: none; }
.cc-val a:hover { text-decoration: underline; }
.contact-cta { margin-top: 36px; }
.contact-cta a {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: 17px; font-weight: 400; padding: 14px 32px; border-radius: 980px;
  text-decoration: none; transition: background 0.2s;
}
.contact-cta a:hover { background: var(--blue-hover); }

/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--off); border-top: 1px solid var(--border); padding: 24px; text-align: center; }
footer p { font-size: 12px; color: var(--light); }

/* =============================================
   MOBILNI — max-width: 768px
   ============================================= */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }

  .hero-sub { font-size: 14px; }
  .btn-w, .btn-b { font-size: 14px; padding: 11px 20px; }

  .stats-inner { grid-template-columns: 1fr 1fr; padding: 0; }
  .stat { padding: 24px 12px; }
  .stat-num { font-size: 28px; }
  .stat-unit { font-size: 14px; }
  .stat:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); }

  .section { padding: 56px 20px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .about-img { transform: none !important; }
  .about-img img { height: 260px; }
  .about-copy { transform: none !important; }
  .about-copy p { font-size: 15px; }

  .feat-inner { padding: 56px 20px; }
  .feat-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .feat-card { padding: 28px 24px; }

  .gal-inner { padding: 56px 20px; }
  .gal-top { grid-template-columns: 1fr; grid-template-rows: auto; gap: 6px; margin-top: 40px; }
  .gal-big img { height: 240px; width: 100%; object-fit: cover; }
  .gal-stack { flex-direction: row; }
  .gal-sm img { height: 140px; }
  .gal-bottom { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gal-cell img { height: 150px; width: 100%; object-fit: cover; }
  .gal-cell:last-child { grid-column: 1 / -1; }

  #lbPrev { left: 8px; }
  #lbNext { right: 8px; }
  .lb-nav { width: 36px; height: 36px; }

  .loc-inner { padding: 56px 20px; }
  .loc-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .map-wrap { height: 280px; }

  .contact-inner { padding: 56px 20px; }
  .contact-card { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .sec-title { font-size: 26px; }
}
