/* =====================================================================
   Taja Oderlap — vizualna identiteta
   Temno, nevtralno ozadje, da fotografija ostane v ospredju; en sam topel
   akcentni ton (barva odrske luči) za povezave/poudarke. Space Grotesk za
   naslove (sodoben, geometričen), Inter za berljivo telo besedila.
   ===================================================================== */

:root {
  --bg: #101012;
  --bg-alt: #17171a;
  --bg-alt-2: #1d1d20;
  --text: #f5f4f2;
  --text-muted: #9a9691;
  --accent: #e4572e;
  --border: #2a2a2c;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a.link-accent, .content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / navigacija ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo .tagline {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: .95rem;
  color: var(--text-muted);
  transition: color .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }

.lang-switch { display: flex; gap: 10px; margin-left: 8px; }
.lang-switch a {
  font-size: .8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 7px;
  text-transform: uppercase;
}
.lang-switch a.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
}

/* ---------- Splošni razdelki ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.7rem; }
.section-head .more { color: var(--text-muted); font-size: .9rem; white-space: nowrap; }
.section-head .more:hover { color: var(--accent); }

.eyebrow {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: inline-block;
}

/* ---------- Hero / O meni ---------- */
.hero {
  padding-top: 96px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero .lead { color: var(--text-muted); font-size: 1.1rem; max-width: 46ch; }
.hero-portrait { aspect-ratio: 4/5; background: var(--bg-alt-2); border-radius: 6px; overflow: hidden; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-portrait { order: -1; max-width: 320px; }
}

/* ---------- Novice ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.news-card { display: block; }
.news-card .thumb {
  aspect-ratio: 3/2;
  background: var(--bg-alt-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .thumb img { transform: scale(1.03); }
.news-card .date { color: var(--text-muted); font-size: .8rem; }
.news-card h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.news-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

.news-article .cover { width: 100%; border-radius: 6px; margin-bottom: 28px; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-alt-2); }
.news-article .date { color: var(--text-muted); font-size: .85rem; margin-bottom: 8px; display: block; }

/* ---------- Galerija ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-card { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; background: var(--bg-alt-2); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  font-family: var(--font-display);
  font-size: 1rem;
}
.gallery-card .label small { display: block; color: #d8d5d0; font-family: var(--font-body); font-size: .78rem; font-weight: 400; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-grid a { display: block; overflow: hidden; border-radius: 4px; background: var(--bg-alt-2); }
.photo-grid img { width: 100%; height: auto; transition: transform .3s ease; cursor: zoom-in; }
.photo-grid a:hover img { transform: scale(1.03); }

.category-header { margin-bottom: 40px; }
.category-header .crumb { color: var(--text-muted); font-size: .85rem; margin-bottom: 10px; }
.category-header .crumb a:hover { color: var(--accent); }
.category-header p { color: var(--text-muted); max-width: 60ch; }

.lightbox {
  position: fixed; inset: 0; background: rgba(8,8,9,.94);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 4px; }
.lightbox .close { position: absolute; top: 20px; right: 28px; font-size: 2rem; color: var(--text); cursor: pointer; background: none; border: 0; }
.lightbox .prev, .lightbox .next {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.2rem; font-weight: 700; line-height: 1; color: #fff; cursor: pointer;
  background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  width: 48px; height: 48px; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
  transition: background .15s ease;
}
.lightbox .prev:hover, .lightbox .next:hover { background: rgba(0,0,0,.9); }
.lightbox .prev { left: 12px; }
.lightbox .next { right: 12px; }
.lightbox.multi .prev, .lightbox.multi .next { display: flex; }
@media (max-width: 600px) {
  .lightbox .prev, .lightbox .next { width: 40px; height: 40px; font-size: 2rem; }
  .lightbox .prev { left: 4px; }
  .lightbox .next { right: 4px; }
}

/* ---------- Social / kontakt ---------- */
.social-row { display: flex; gap: 16px; flex-wrap: wrap; }
.social-row a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .9rem;
  color: var(--text);
  transition: border-color .15s ease, color .15s ease;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dl { margin: 0; }
.contact-info dt { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 18px; }
.contact-info dd { margin: 4px 0 0; font-size: 1.05rem; }

form .field { margin-bottom: 18px; }
form label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 6px; }
form input, form textarea {
  width: 100%;
  background: var(--bg-alt-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: .98rem;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); }
form .error { color: var(--accent); font-size: .8rem; margin-top: 4px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast, #101012);
  border: 0;
  border-radius: 4px;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
}
.btn:hover { opacity: .9; }
.alert-success { background: #24361f; border: 1px solid #3c5a2f; color: #cdeec0; padding: 14px 16px; border-radius: 4px; margin-bottom: 20px; }

/* ---------- Noga ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-muted); font-size: .85rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }

.empty-state { color: var(--text-muted); padding: 40px 0; }

/* ---------- Napake ---------- */
.error-page { padding: 120px 0; text-align: center; }
