/* ========================================
   NORMAPRO — Stilska datoteka
   ======================================== */

:root {
  --dark:      #0c0c0c;
  --dark-2:    #141414;
  --dark-3:    #1e1e1e;
  --dark-4:    #2a2a2a;
  --accent:    #e8a000;
  --accent-d:  #c48500;
  --text:      #f0f0f0;
  --text-muted:#8a8a8a;
  --border:    #2e2e2e;
  --white:     #ffffff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========================================
   TIPOGRAFIJA
   ======================================== */

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }

.accent { color: var(--accent); }

/* ========================================
   LAYOUT
   ======================================== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section { padding: 90px 0; }

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 56px;
  font-size: 1.05rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px 0 40px;
}

/* ========================================
   GUMBI
   ======================================== */

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ========================================
   HEADER & NAVIGACIJA
   ======================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}

header.scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.logo-name span { color: var(--accent); }

.logo-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

nav { display: flex; align-items: center; gap: 8px; }

nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 16px;
  position: relative;
  transition: color 0.2s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

nav a:hover { color: var(--white); }
nav a:hover::after { transform: scaleX(1); }

nav a.active {
  color: var(--accent);
}
nav a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent);
  color: var(--dark) !important;
  padding: 9px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-left: 12px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  background: rgba(10,10,10,0.98);
  padding: 24px 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 999;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 32px;
  width: 100%;
  text-align: center;
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); }

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.22);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,12,12,0.6) 0%, transparent 60%),
              linear-gradient(to top, rgba(12,12,12,0.8) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--white);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 1;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
  background: var(--accent);
  padding: 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.15);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(12,12,12,0.65);
  margin-top: 4px;
}

/* ========================================
   STORITVE
   ======================================== */

.services { background: var(--dark-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--dark-3);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}

.service-card:hover { background: var(--dark-4); }
.service-card:hover::before { height: 100%; }

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   REFERENCE PREVIEW (domov)
   ======================================== */

.ref-preview { background: var(--dark); }

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 48px;
}

.ref-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-3);
}

.ref-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.55) saturate(0.7);
}

.ref-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.4) saturate(0.5);
}

.ref-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.ref-card-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.ref-card h3 {
  color: var(--white);
  font-size: 1.05rem;
}

.ref-card-loc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.ref-card-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.ref-card:hover .ref-card-more { opacity: 1; }

.ref-card-more span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

/* ========================================
   REFERENCE PAGE — Polna stran
   ======================================== */

.page-hero {
  position: relative;
  padding: 180px 0 90px;
  background: var(--dark-2);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.12);
}

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb a { color: var(--accent); transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb span { color: var(--text-muted); }

.ref-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.ref-full-card {
  position: relative;
  overflow: hidden;
  background: var(--dark-3);
}

.ref-full-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.ref-full-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.7) saturate(0.8);
}
.ref-full-card:hover .ref-full-card-img img {
  transform: scale(1.04);
  filter: brightness(0.55) saturate(0.7);
}

.ref-full-card-body {
  padding: 28px 28px 32px;
  border-top: 3px solid transparent;
  transition: border-color 0.3s;
}
.ref-full-card:hover .ref-full-card-body {
  border-color: var(--accent);
}

.ref-full-card-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.ref-full-card h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.ref-full-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.ref-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ref-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ref-meta-key {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ref-meta-val {
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  color: var(--white);
}

/* ========================================
   O NAS
   ======================================== */

.about-intro {
  background: var(--dark-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-intro-text {}
.about-intro-img {
  position: relative;
}
.about-intro-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.7);
}
.about-intro-img::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--accent);
  z-index: -1;
}

.about-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.values { background: var(--dark); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.value-card {
  background: var(--dark-3);
  padding: 40px 32px;
}

.value-num {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.value-card h3 { color: var(--accent); margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* Direktorji */
.team { background: var(--dark-2); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  max-width: 820px;
}

.team-card {
  background: var(--dark-3);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
}

.team-card-img {
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.5) grayscale(0.3);
  transition: filter 0.4s;
}
.team-card:hover .team-card-img img { filter: brightness(0.85) saturate(0.6); }

.team-card-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card-role {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.team-card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-card-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================================
   KONTAKT
   ======================================== */

.contact-section {
  background: var(--dark-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info { }

.contact-info p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  font-size: 1.02rem;
}

.contact-items { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--dark-3);
  border-left: 3px solid var(--accent);
}

.contact-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item-val {
  font-size: 1.02rem;
  color: var(--white);
}

.contact-item-val a {
  color: var(--accent);
  transition: opacity 0.2s;
}
.contact-item-val a:hover { opacity: 0.75; }

.contact-map {
  position: relative;
}

.contact-map-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.5);
}

.map-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--accent);
  color: var(--dark);
  padding: 12px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ========================================
   CTA BANNER
   ======================================== */

.cta-banner {
  background: var(--accent);
  padding: 70px 0;
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--dark);
  max-width: 540px;
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: #222;
  transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: #080808;
  padding: 60px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-about .logo-name { font-size: 1.4rem; }
.footer-about .logo-tagline { margin-bottom: 16px; }
.footer-about p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy span { color: var(--accent); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-intro-img::before { display: none; }
  .team-card {
    grid-template-columns: 140px 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  nav { display: none; }
  .hamburger { display: flex; }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.15); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(0,0,0,0.15); }
  .stat-item:last-child { border-bottom: none; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .ref-grid { grid-template-columns: 1fr 1fr; }
  .ref-full-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .values-grid { grid-template-columns: 1fr; }

  .cta-banner .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }

  .ref-grid { grid-template-columns: 1fr; }
  .ref-full-grid { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .team-card-img { height: 220px; }

  .stats-bar .container { grid-template-columns: 1fr 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }

  .hero-btns { flex-direction: column; }
  .btn { text-align: center; }
}

/* ========================================
   ANIMACIJE
   ======================================== */

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   RESPONSIVE — Inline grid popravki
   ======================================== */

@media (max-width: 900px) {
  /* O nas — uvod */
  .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Evrokod / koraki — 4 stolpci → 2 */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  /* Evrokod / koraki — 2 stolpca → 1 */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Kontakt grid */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Page hero padding */
  .page-hero {
    padding: 140px 0 60px;
  }
}
