/* === Pisave (samostojno gostovane, Inter + Sora, latin + latin-ext za č/š/ž) === */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === Design tokens === */
:root {
  --color-primary: #0B2A4A;
  --color-primary-light: #14456F;
  --color-accent: #F2994A;
  --color-accent-dark: #D97F2E;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F9FC;
  --color-text: #1A2530;
  --color-text-muted: #5B6B7A;

  --font-heading: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(11, 42, 74, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 42, 74, 0.12);
  --shadow-lg: 0 20px 48px rgba(11, 42, 74, 0.16);

  --container-max: 1200px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-primary); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* === Layout utilities === */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.section { padding-block: var(--space-7); }
.section--alt { background: var(--color-bg-alt); }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: var(--space-5);
  text-align: center;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary { background: var(--color-accent); color: var(--color-primary); }
.btn--primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--secondary:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: var(--space-3) var(--space-5); font-size: 1.05rem; }
.btn--sm { padding: var(--space-1) var(--space-3); font-size: 0.9rem; }

/* === Accessibility utilities === */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: 100;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

/* === Scroll reveal (progresivno izboljševanje: brez .js razreda je vsebina vedno vidna) === */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Glava/navigacija === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
}
.logo__tld { color: var(--color-accent); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}
.site-nav {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.site-nav.is-open { transform: translateX(0); }
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-weight: 600;
}
.site-nav__list a { text-decoration: none; color: var(--color-text); }
.site-nav__cta { align-self: flex-start; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    transform: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    overflow: visible;
  }
  .site-nav__list { flex-direction: row; gap: var(--space-4); }
}

/* === Noga === */
.site-footer {
  background: var(--color-primary);
  color: #E7EEF5;
  padding-block: var(--space-6) var(--space-4);
}
.site-footer a { color: #fff; }
.site-footer__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
.site-footer__brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.site-footer__heading { font-weight: 600; margin-bottom: var(--space-2); }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.site-footer__copy {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* === Hero === */
.hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-primary) 100%);
  background-image:
    radial-gradient(circle at 80% 20%, rgba(242, 153, 74, 0.25), transparent 45%),
    linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-primary) 100%);
  color: #fff;
  padding-block: var(--space-8) var(--space-7);
  text-align: center;
}
.hero__title {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: var(--space-3);
}
.hero__subtitle {
  font-size: 1.125rem;
  max-width: 640px;
  margin-inline: auto;
  opacity: 0.92;
  margin-bottom: var(--space-5);
}
.hero__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn--secondary { color: #fff; border-color: #fff; }
.hero .btn--secondary:hover { background: #fff; color: var(--color-primary); }

/* === Kartice === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__title { color: var(--color-primary); }

.card-grid--compact { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .card-grid--compact { grid-template-columns: repeat(4, 1fr); } }
.card--compact {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}
.card--compact h3 { margin: 0; font-size: 1rem; }

/* === Časovnica === */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline__step { position: relative; padding-top: var(--space-6); }
.timeline__num {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Portfolio === */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
.portfolio-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.portfolio-card__thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: block;
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.portfolio-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.portfolio-card__thumb:hover img { transform: scale(1.04); }
.portfolio-card__title { color: var(--color-primary); }


/* === FAQ === */
.faq-item {
  border-bottom: 1px solid var(--color-bg-alt);
  padding-block: var(--space-3);
}
.faq-item__question {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after { content: '+'; float: right; }
.faq-item[open] .faq-item__question::after { content: '\2212'; }
.faq-item__answer { padding-top: var(--space-2); color: var(--color-text-muted); }

/* === Kontakt === */
.kontakt {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 1024px) { .kontakt { grid-template-columns: 1fr 1fr; } }
.kontakt__direct {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-row { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-3); }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input, .form-row select, .form-row textarea {
  padding: var(--space-2);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font: inherit;
}
.form-row--checkbox label { display: flex; gap: var(--space-2); font-weight: 400; align-items: flex-start; }
.form-status { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); margin-bottom: var(--space-3); }
.form-status--success { background: #e6f4ea; color: #1e4620; }
.form-status--error { background: #fdecea; color: #611a15; }

/* === Popup s turo === */
.tour-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.tour-modal.is-open { display: flex; }
.tour-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 74, 0.75);
}
.tour-modal__panel {
  position: relative;
  width: min(1100px, 92vw);
  height: min(700px, 85vh);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (max-width: 640px) {
  .tour-modal__panel { width: 95vw; height: 85vh; }
}
.tour-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
}
.tour-modal__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.tour-modal__close:hover { background: var(--color-accent); }

/* === Pasica za piškotke === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: none;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cookie-banner.is-open { display: block; }
.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  justify-content: space-between;
}
.cookie-banner__inner p { margin: 0; flex: 1 1 320px; }
.cookie-banner__inner a { color: var(--color-accent); }
.cookie-banner__actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.cookie-banner .btn--secondary { color: #fff; border-color: #fff; }
.cookie-banner .btn--secondary:hover { background: #fff; color: var(--color-primary); }
