/* Webg — osnovni slog. Barve in razmiki so zbrani v spremenljivkah. */
:root {
  --blue: #315EFF;
  --blue-dark: #1F47D6;
  --graphite: #20242A;
  --warm-white: #FAFAF7;
  --white: #FFFFFF;
  --muted: #555B66;
  --line: #E3E3DD;
  --surface: #F1F1EC;
  --on-dark-muted: #B9BEC7;
  --error: #B42318;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 10vw, 8rem);
  --radius: 0.5rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--warm-white);
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--graphite); color: var(--white);
  border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

main:focus { outline: none; }

/* Gumbi */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  border: 2px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: var(--white);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.button:focus-visible { outline-color: var(--graphite); }
.button[disabled] { opacity: 0.65; cursor: progress; }
.button-small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.button-ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.button-ghost:hover { background: var(--graphite); border-color: var(--graphite); color: var(--white); }

.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Oznake */
.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
}
.tag {
  display: inline-block; margin-bottom: 0.75rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.tag-concept {
  padding: 0.25rem 0.5rem; border: 1px solid var(--blue); border-radius: 0.25rem;
  color: var(--blue); background: var(--white);
}

/* Glava */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--warm-white) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 120px; height: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--graphite);
  font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.125rem; height: 2px; background: currentColor; border-radius: 1px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { display: none; }
.site-nav a:not(.button) { color: var(--graphite); text-decoration: none; font-weight: 400; }
.site-nav a:not(.button):hover { color: var(--blue); text-decoration: underline; }

/* Mobilni meni */
.site-header.is-open .site-nav {
  display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
  position: absolute; inset: 100% 0 auto 0;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--warm-white); border-bottom: 1px solid var(--line);
}
.site-header.is-open .site-nav ul { display: flex; flex-direction: column; }
.site-header.is-open .site-nav li a { display: block; padding: 0.75rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-header.is-open .site-nav {
    display: flex; flex-direction: row; align-items: center; gap: 2rem;
    position: static; padding: 0; border: 0; background: none;
  }
  .site-nav ul, .site-header.is-open .site-nav ul { display: flex; flex-direction: row; gap: 1.75rem; }
  .site-header.is-open .site-nav li a { padding: 0; border: 0; font-size: inherit; }
}

/* Uvod */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) var(--section); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 5rem); max-width: 14ch; }
.lead { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.125rem, 2vw, 1.25rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.local-line { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 36rem; font-size: 0.9375rem; color: var(--muted); }

.hero-visual { margin: 0; }
.browser-frame {
  overflow: hidden;
  border: 1px solid var(--line); border-radius: 0.75rem;
  background: var(--white);
  box-shadow: 0 24px 48px -28px rgb(32 36 42 / 0.35);
}
.browser-bar { display: flex; gap: 0.375rem; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--line); }
.hero-visual figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }
.hero-visual figcaption .tag { margin: 0; }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; }
}

/* Razdelki */
.section { padding-block: var(--section); }
.section-alt { background: var(--surface); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.section-intro { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted); }
.section-cta { margin-top: 3rem; font-size: 1.25rem; font-weight: 700; }
.section-cta a { white-space: nowrap; }

/* Storitve */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.service-num { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 0.25rem; }
.service h3 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-bottom: 0.75rem; }
.service p { max-width: 42rem; }
.service .scope { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.service-main h3 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }

@media (min-width: 48rem) {
  .services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .service-main { grid-column: 1 / -1; grid-template-columns: 5rem 1fr; }
  .service-main p:not(.scope) { font-size: 1.1875rem; }
}

/* Projekti */
.work-list { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.work { display: grid; gap: 1.5rem; }
.work-media {
  overflow: hidden; border-radius: 0.75rem; border: 1px solid var(--line); background: var(--white);
}
.work-media img { width: 100%; }
.work h3, .work h4 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-bottom: 0.75rem; }
.work-body p:not(.tag) { color: var(--muted); max-width: 34rem; }
.work-body .button { margin-top: 1.5rem; }

@media (min-width: 60rem) {
  .work-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

.concepts { margin-top: var(--section); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.subhead { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.note {
  margin-top: 3rem; padding: 1.25rem 1.5rem; max-width: 46rem;
  border-left: 3px solid var(--blue); background: var(--white);
  font-size: 0.9375rem;
}

/* Sodelovanje */
.section-dark { background: var(--graphite); color: var(--warm-white); }
.section-dark .eyebrow { color: #8FA8FF; }
.steps { display: grid; gap: 2rem; counter-reset: korak; }
.steps li { counter-increment: korak; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.18); }
.steps li::before {
  content: counter(korak, decimal-leading-zero);
  display: block; margin-bottom: 1rem; font-weight: 700; color: #8FA8FF;
}
.steps h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.steps p { color: var(--on-dark-muted); }

@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* O Webg */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about-mark { width: clamp(7rem, 22vw, 15rem); height: auto; }
@media (min-width: 60rem) { .about { grid-template-columns: 18rem 1fr; gap: 5rem; } }

/* Pogosta vprašanja */
.faq-grid { display: grid; gap: 1rem; }
@media (min-width: 60rem) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.faq { border-top: 1px solid #D6D6CF; }
.faq details { border-bottom: 1px solid #D6D6CF; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.5rem; font-weight: 400; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.5rem; max-width: 40rem; color: var(--muted); }

/* Kontakt */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; } }

.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.75rem 0.875rem;
  border: 1px solid #8A8F98; border-radius: var(--radius);
  background: var(--white); color: var(--graphite);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: 0.9375rem; font-weight: 700; }
.contact-form .button { justify-self: start; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); border-left: 4px solid var(--graphite); background: var(--surface); }
.form-status.is-success { border-color: #1E7A46; background: #E9F5EE; }
.form-status.is-error { border-color: var(--error); background: #FBEDEB; }
.form-status:focus { outline: none; }

.dev-note {
  padding: 0.75rem 1rem; border: 2px dashed #B54708; border-radius: var(--radius);
  background: #FFF6E5; color: #6B2A04; font-size: 0.875rem;
}

/* Noga */
.site-footer { background: var(--graphite); color: var(--on-dark-muted); padding-block: 4rem 2rem; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer img { width: 120px; margin-bottom: 1rem; margin-left: -6px; }
.site-footer nav ul { display: grid; gap: 0.5rem; }
.site-footer a { color: var(--warm-white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .copyright { padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.14); }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer nav ul { grid-template-columns: repeat(2, max-content); column-gap: 3rem; }
  .site-footer .copyright, .site-footer .dev-note { grid-column: 1 / -1; }
}

/* Povečan prikaz */
.lightbox {
  width: min(96vw, 84rem); max-width: none; max-height: 94vh;
  padding: 0; border: 0; border-radius: 0.75rem;
  background: var(--warm-white); color: var(--graphite);
}
.lightbox::backdrop { background: rgb(20 22 26 / 0.82); }
.lightbox-inner { display: grid; gap: 0.75rem; padding: clamp(0.75rem, 2vw, 1.25rem); }
.lightbox-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.lightbox-caption { font-weight: 700; padding-top: 0.5rem; }
.lightbox-close {
  flex-shrink: 0; min-height: 2.75rem; padding: 0.5rem 1rem;
  border: 1px solid var(--graphite); border-radius: var(--radius);
  background: var(--white); color: var(--graphite); font: inherit; font-weight: 700; cursor: pointer;
}
.lightbox-close:hover { background: var(--graphite); color: var(--white); }
.lightbox-img { width: 100%; max-height: calc(94vh - 6rem); object-fit: contain; border-radius: 0.375rem; }

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lightbox-in 0.18s ease-out; }
  @keyframes lightbox-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
