/* ==========================================================================
   Dean Prelec - obnova starega pohistva
   Svetla, topla podlaga, temno besedilo, en poudarek (oreh/sienna).
   Vse barve, pisave in razmiki so spremenljivke v :root.
   ========================================================================== */

/* Fraunces (naslovi) in Source Sans 3 (besedilo): Google Fonts, OFL, variabilni; c/s/z preverjeni 14. 10. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Source Sans 3";
  src: url("../fonts/source-sans-3-var-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  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;
}

:root {
  /* Barve */
  --c-bg: #f5f1ea;
  --c-hero: #e8e5df;                /* ozadje glave */
  --c-hero-dark: #2e2018;           /* temni pas nad fotografijo v heroju; --c-on-dark 13:1 */
  --c-surface: #ffffff;
  --c-surface-alt: #ebe5da;
  --c-text: #1c1a17;
  --c-text-muted: #5d564c;          /* 5,8:1 na --c-surface-alt */
  --c-border: #d9d1c3;
  --c-accent: #9b4f1c;              /* 5,3:1 na --c-bg */
  --c-accent-light: #d08a4f;        /* isti odtenek za temno podlago, 6,1:1 */
  --c-dark: #1c1a17;
  --c-on-dark: #f5f1ea;
  --c-on-dark-muted: #b9b0a2;       /* 8,1:1 na --c-dark */
  --c-focus: #9b4f1c;
  --c-wood: #e2d6c3;                /* povprecje teksture les.webp; --c-text-muted 4,7:1 na najtemnejsi letnici */
  --tex-grain: url("../img/zrno.webp?v=2026-10-28d");

  /* Pisave */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Fluidna tipografija (360 px -> 1440 px) */
  --fs-xs: 0.875rem;
  --fs-sm: clamp(0.9375rem, 0.91rem + 0.1vw, 1rem);
  --fs-base: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);   /* 17-18 px */
  --fs-lg: clamp(1.125rem, 1.08rem + 0.25vw, 1.3125rem);
  --fs-h4: clamp(1.1875rem, 1.13rem + 0.25vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.27rem + 0.5vw, 1.75rem);
  --fs-h2: clamp(2.125rem, 1.6rem + 2.3vw, 3.75rem);
  --fs-h1: clamp(2.625rem, 1.5rem + 4.6vw, 5.5rem);

  --lh-tight: 1;
  --lh-snug: 1.25;
  --lh-base: 1.65;
  --measure: 66ch;

  /* Lestvica razmikov */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-section: clamp(5rem, 3rem + 7vw, 10rem);

  /* Postavitev */
  --container: 1280px;
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 3rem);
  --header-h: 76px;

  /* Zaobljenosti */
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --shadow-tag: 0 6px 20px rgb(28 26 23 / 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.25s;
}

/* --- Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; line-height: var(--lh-base); -webkit-font-smoothing: antialiased; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, h4, li { overflow-wrap: break-word; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
a { color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

/* --- Osnova ----------------------------------------------------------------- */
body {
  background: var(--tex-grain) var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
}

p { max-width: var(--measure); text-wrap: pretty; }
.lead { font-size: var(--fs-lg); color: var(--c-text-muted); line-height: 1.55; }

a:not([class]) {
  color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

::selection { background: var(--c-accent); color: #fff; }

.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -100px;
  z-index: 100;
  padding: var(--space-2xs) var(--space-s);
  background: var(--c-dark);
  color: var(--c-on-dark);
  border-radius: var(--radius-s);
}
.skip-link:focus { top: var(--space-s); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Postavitev ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--alt { background: var(--tex-grain) var(--c-surface-alt); }
.section--wood { background: var(--tex-grain), url("../img/les.webp?v=2026-10-28") center / cover var(--c-wood); }
.section--dark { background: var(--tex-grain) var(--c-dark); color: var(--c-on-dark); }
.section--dark .lead { color: var(--c-on-dark-muted); }
.section--dark :focus-visible { outline-color: var(--c-on-dark); }

.section__head { margin-bottom: var(--space-2xl); }
.section__head .lead { margin-top: var(--space-m); }
.section__head--center { text-align: center; }
.section__head--center .lead { margin-inline: auto; max-width: 52ch; }

/* naslov levo, uvod desno (kot "Style meets comfort" na referenci) */
/* naslov sekcije, pod njim uvodno besedilo (Erik, 29. 10.: ne vec levo/desno) */
.split-head {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
  margin-bottom: var(--space-2xl);
}
.split-head .lead { max-width: 46ch; }

/* --- Gumbi ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 50px;
  padding: 0.75em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: var(--fs-base);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--dark { background: var(--c-dark); color: var(--c-on-dark); }
.btn--dark:hover { background: var(--c-accent); }

.btn--outline { border-color: var(--c-text); color: var(--c-text); }
.btn--outline:hover { background: var(--c-text); color: var(--c-bg); }

.btn--light { background: var(--c-on-dark); color: var(--c-dark); }
.btn--light:hover { background: var(--c-accent-light); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-s); }

/* --- Glava ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-hero);
  transition: transform 0.35s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header .container { max-width: none; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: var(--header-h);
}

.logo {
  display: grid;
  text-decoration: none;
  line-height: 1.05;
}
.logo img { display: block; height: clamp(44px, 2.4rem + 1vw, 56px); width: auto; }
.footer-logo img { display: block; height: 140px; width: auto; margin-bottom: var(--space-s); }
.logo__name { font-family: var(--font-heading); font-size: clamp(1.25rem, 0.9rem + 2vw, 1.625rem); white-space: nowrap; font-weight: 400; letter-spacing: -0.02em; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-l);
  list-style: none;
  padding: 0;
}
.nav__list a:not(.btn) {
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  padding-block: var(--space-2xs);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease);
}
.nav__list a:not(.btn):hover { background-size: 100% 1px; }
.nav__list .btn { min-height: 44px; padding: 0.55em 1.2em; font-size: var(--fs-sm); }
.nav__cta { margin-left: var(--space-s); }
@media (min-width: 961px) { .nav__list li.nav__social + li.nav__social { margin-left: calc(var(--space-l) * -1 + var(--space-s)); } }
.nav__list a.nav__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: calc(var(--space-s) * -0.5);
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__list a.nav__icon:hover { border-color: var(--c-text); color: var(--c-accent); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    min-height: 44px;
    padding: 0 var(--space-xs);
    font-weight: 500;
  }
  .nav-toggle__bars { width: 22px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
    transition: transform var(--dur) var(--ease);
  }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-m) var(--gutter) var(--space-l);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .js .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .js .nav__list { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 0; }
  .js .nav__list a:not(.btn) { display: block; padding-block: var(--space-xs); font-size: var(--fs-lg); }
  .js .nav__list > li { flex: 0 0 100%; }
  .js .nav__list > li.nav__social { flex: 0 0 auto; margin: var(--space-xs) var(--space-xs) 0 0; }
  .js .nav__list a.nav__icon { display: inline-grid; width: 44px; height: 44px; margin: 0; padding: 0; }
  .js .nav__cta { margin: var(--space-s) 0 0; }
  .js .nav__list .btn { width: 100%; min-height: 50px; font-size: var(--fs-base); }
}

/* --- Hero (cez celo sirino, kot na referenci) ------------------------------
   Temna fotografija komode (2:1) od roba do roba. Naslov in gumba sta na
   temnem pasu nad njo, fotografija se z vrha zlije v ta pas.
*/
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-hero-dark);
  color: var(--c-on-dark);
}
.hero__media { position: relative; margin-top: -9vw; }
.hero__media img { width: 100%; height: auto; }
/* zgornji del fotografije se zlije s temnim pasom */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  background: linear-gradient(to bottom, var(--c-hero-dark) 0%, rgb(46 32 24 / 0.6) 45%, rgb(46 32 24 / 0) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 3.2vw;
}
.hero h1 { font-size: min(4.3vw, 6.25rem); max-width: 16ch; color: var(--c-on-dark); }
.hero__lead { display: none; }
.hero .btn-row { justify-content: center; margin-top: 1.9vw; }
.hero .btn--outline { border-color: var(--c-on-dark); color: var(--c-on-dark); }
.hero .btn--outline:hover { background: var(--c-on-dark); color: var(--c-dark); }

/* telefon in ozki zasloni: besedilo nad fotografijo, ne cez njo */
@media (max-width: 760px) {
  .hero__content { padding: var(--space-xl) var(--gutter) var(--space-l); }
  .hero__media { margin-top: 0; }
  .hero h1 { font-size: clamp(2.375rem, 1rem + 6.4vw, 3.25rem); }
  .hero__lead { display: block; margin-top: var(--space-m); color: var(--c-on-dark-muted); max-width: 40ch; }
  .hero .btn-row { margin-top: var(--space-l); }
  .hero__media img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 100%; }
  .hero__media::after { height: 25%; }
}

/* --- Trak ------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: var(--space-m);
  border-block: 1px solid var(--c-border);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--space-l);
  padding-right: var(--space-l);
  white-space: nowrap;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.5rem);
  font-weight: 400;
}
.marquee__track > * { flex-shrink: 0; }
.marquee .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); }

/* --- Prej / potem ----------------------------------------------------------- */
.ba-wrap {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 900px) {
  .ba-wrap { grid-template-columns: 2.2fr 1fr; gap: var(--space-2xl); }
}

.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--c-surface-alt);
  aspect-ratio: 4 / 3;
  user-select: none;
  touch-action: pan-y;
}
.ba__img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__label {
  position: absolute;
  top: var(--space-m);
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  background: rgb(28 26 23 / 0.78);
  color: var(--c-on-dark);
  font-size: var(--fs-sm);
  font-weight: 500;
  pointer-events: none;
}
.ba__label--before { left: var(--space-m); }
.ba__label--after { right: var(--space-m); }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--c-surface);
  pointer-events: none;
}
.ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-tag);
  transition: transform var(--dur) var(--ease);
}
.ba:hover .ba__knob { transform: scale(1.06); }

/* range cez celo sliko: dostopen s tipkovnico, deluje z misko in prstom */
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.ba__range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.ba:has(.ba__range:focus-visible) .ba__knob { outline: 3px solid var(--c-focus); outline-offset: 3px; }

/* izbira projekta pod drsnikom */
.ba-projects {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-m);
}
.ba-project {
  min-height: 44px;
  padding: 0.5em 1.2em;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ba-project:hover { border-color: var(--c-text); }
.ba-project[aria-pressed="true"] { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-on-dark); }
.ba__img { transition: opacity 0.3s var(--ease); }
.ba.is-loading .ba__img { opacity: 0; }

.more-link { margin-top: var(--space-2xl); text-align: center; max-width: none; }

.ba-notes { display: grid; gap: 0; }
.ba-notes li {
  display: grid;
  gap: var(--space-3xs);
  padding-block: var(--space-m);
  border-top: 1px solid var(--c-border);
}
.ba-notes li:last-child { border-bottom: 1px solid var(--c-border); }
.ba-notes strong { font-weight: 500; font-size: var(--fs-h4); }
.ba-notes span { color: var(--c-text-muted); }

/* --- Storitve --------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 0 var(--space-2xl);
}
.service {
  display: grid;
  gap: var(--space-xs);
  padding-block: var(--space-l);
  border-top: 1px solid var(--c-text);
}
.service h3 { font-size: var(--fs-h3); }
.service p { color: var(--c-text-muted); }

/* --- Slika cez sirino ------------------------------------------------------- */
.band { height: clamp(260px, 42vw, 620px); }

/* --- O meni ----------------------------------------------------------------- */
.about {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1.1fr; gap: var(--space-3xl); }
}
.about__media {
  border-radius: var(--radius-l);
  aspect-ratio: 4 / 5;
  background: var(--c-surface-alt);
  overflow: hidden;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about__text h2 { max-width: 14ch; }
.about__text .lead { margin-top: var(--space-l); }
.about__text p + p { margin-top: var(--space-s); }
.about + .about { margin-top: var(--space-3xl); }
@media (min-width: 900px) {
  .about--reverse { grid-template-columns: 1.1fr 1fr; }
  .about--reverse .about__media { order: 2; }
}
.about__text h3 { margin-bottom: var(--space-m); }
.about__quote {
  margin: var(--space-xl) 0 0;
  padding-left: var(--space-m);
  border-left: 2px solid var(--c-accent);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l) var(--space-3xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--c-border);
}
.facts strong {
  display: block;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1;
}
.facts span { display: block; margin-top: var(--space-2xs); color: var(--c-text-muted); font-size: var(--fs-sm); }

/* --- Postopek (pripeta sekcija) -------------------------------------------- */
.pin { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
.pin__intro .lead { margin-top: var(--space-m); max-width: 40ch; }
.pin__img {
  margin-top: var(--space-xl);
  overflow: hidden;
  border-radius: var(--radius-l);
  aspect-ratio: 5 / 4;
  max-width: 520px;
}
.pin__img img { width: 100%; height: 100%; object-fit: cover; }

.pin__steps { display: grid; gap: var(--space-l); }
.pin__step {
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  border-radius: var(--radius-l);
  background: var(--c-bg);
}
.pin__num {
  display: inline-block;
  margin-bottom: var(--space-l);
  color: var(--c-accent);
  font-weight: 500;
  font-size: var(--fs-sm);
}
.pin__step h3 { font-family: var(--font-heading); font-size: clamp(1.625rem, 1.2rem + 1.6vw, 3rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; }
.pin__step p { margin-top: var(--space-m); color: var(--c-text-muted); font-size: var(--fs-lg); }

@media (min-width: 860px) {
  .section--pin { padding-block: 0; }
  .pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 100vh; padding-block: var(--space-3xl); gap: var(--space-3xl); }
  .pin.is-active .pin__steps { grid-template-areas: "stack"; }
  .pin.is-active .pin__step { grid-area: stack; padding: var(--space-2xl); }
  /* brez animacij so koraki eden pod drugim, uvod ostane ob strani */
  .pin:not(.is-active) { align-items: start; }
  .pin:not(.is-active) .pin__intro { position: sticky; top: calc(var(--header-h) + var(--space-l)); }
}

/* --- Kaj obnavljam (vodoravna galerija) ------------------------------------ */
.section--gallery { overflow: hidden; }
.section--gallery.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-block: var(--space-xl);
}
.section--gallery.is-active .split-head { margin-bottom: var(--space-xl); }
.hscroll { overflow: hidden; }
.hscroll__track {
  display: flex;
  gap: var(--space-m);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-bottom: var(--space-s);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.hscroll__track > * { flex: 0 0 min(76vw, 420px); scroll-snap-align: start; }
.hscroll.is-active .hscroll__track { overflow: visible; scroll-snap-type: none; will-change: transform; }

.item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-m);
  background: var(--c-surface-alt);
}
.item__link { display: block; text-decoration: none; }
.item__link img { transition: transform 0.5s var(--ease); }
.item__link:hover img { transform: scale(1.02); }
.item__link:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }

/* pripeta galerija: kartice nikoli visje od prostora pod glavo sekcije */
.hscroll.is-active .hscroll__track > * { flex-basis: min(76vw, 420px, calc((100vh - 380px) * 0.8)); }

.item__meta {
  display: grid;
  gap: var(--space-3xs);
  margin-top: var(--space-s);
}
.item__meta h3 { font-size: var(--fs-base); font-weight: 500; text-transform: uppercase; letter-spacing: 0; }
.item__meta span { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* --- Kontakt ---------------------------------------------------------------- */
.contact {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 900px) { .contact { grid-template-columns: 1.3fr 1fr; gap: var(--space-3xl); } }
.contact__text h2 { max-width: 14ch; }
.contact__text .lead { margin-top: var(--space-l); max-width: 50ch; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-l) var(--space-2xl);
  margin-top: var(--space-2xl);
}
.contact-list li { padding-top: var(--space-s); border-top: 1px solid rgb(245 241 234 / 0.18); }
.contact-list .label {
  display: block;
  margin-bottom: var(--space-2xs);
  color: var(--c-on-dark-muted);
  font-size: var(--fs-sm);
}
.contact-list a { color: var(--c-on-dark); text-decoration: none; }
.contact-list a:hover { color: var(--c-accent-light); }
.contact-big { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.02em; white-space: nowrap; }

.contact-big__who { color: var(--c-on-dark-muted); }
/* telefon in e-pošta vsak v svoji vrstici, da se naslov ne prelomi */
.contact-list li:has(.contact-big) { grid-column: 1 / -1; }
.contact-big--mail { font-size: min(var(--fs-h3), 5.2vw); }

/* Obrazec (Netlify Forms; na osnutku ga deploy.ps1 pretvori v demo) */
.contact-form {
  display: grid;
  gap: var(--space-m);
  padding: var(--space-xl) var(--space-l);
  border: 1px solid rgb(245 241 234 / 0.18);
  border-radius: var(--radius-l);
}
.contact-form h3 { font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.015em; }
.contact-form .hp { position: absolute; left: -9999px; }
.field-row { display: grid; gap: var(--space-m); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2xs); }
.field label { color: var(--c-on-dark-muted); font-size: var(--fs-sm); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid rgb(245 241 234 / 0.28);
  border-radius: var(--radius-s);
  background: rgb(245 241 234 / 0.04);
  color: var(--c-on-dark);
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgb(245 241 234 / 0.5); }
.field input:focus, .field textarea:focus { border-color: var(--c-accent-light); outline: 2px solid var(--c-accent-light); outline-offset: 1px; }
.field textarea::placeholder { color: var(--c-on-dark-muted); opacity: 1; }
.contact-form .btn { justify-self: start; }
.contact-form__note { color: var(--c-on-dark-muted); font-size: var(--fs-sm); }
.contact-form__note a { color: var(--c-on-dark); }
@media (max-width: 559px) { .contact-form { padding: var(--space-l) var(--space-m); } }

.contact__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-l);
}

/* --- Galerija (podstran) ---------------------------------------------------- */
.nav__list a[aria-current="page"] { background-size: 100% 1px; }

.g-head { padding-block: var(--space-3xl) var(--space-2xl); }
.g-head .lead { margin-top: var(--space-m); max-width: 52ch; }

.g-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-xl);
}
.g-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4em 1.1em;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.g-nav a:hover { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-on-dark); }

.g-body { padding-bottom: var(--space-section); }
.g-cat {
  padding-top: var(--space-2xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--c-border);
  scroll-margin-top: calc(var(--header-h) + var(--space-m));
}
.g-cat:first-child { margin-top: 0; }
.g-cat h2 { font-size: var(--fs-h3); margin-bottom: var(--space-l); }

/* vsaka slika v svojem razmerju (--r iz galerija.py), nic obrezano.
   Telefon in tablica: stolpci enake sirine. Racunalnik: vseh pet v eni vrsti enake visine
   (sirina sorazmerna z --r), da nobena slika ne ostane sama in se ne raztegne cez vso sirino. */
.g-grid {
  columns: 2;
  column-gap: var(--space-xs);
}
.g-item { break-inside: avoid; margin-bottom: var(--space-xs); }
@media (min-width: 600px) {
  .g-grid { columns: 3; }
}
@media (min-width: 960px) {
  .g-grid { display: flex; gap: var(--space-s); columns: auto; }
  .g-item { flex: var(--r) 1 0; min-width: 0; margin-bottom: 0; }
}
.g-item img { aspect-ratio: var(--r); }
.g-item a, .pair__img a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--c-surface-alt);
}
.pair__img img { aspect-ratio: 1 / 1; }
.g-item img, .pair__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.g-item a:hover img, .pair__img a:hover img { transform: scale(1.03); }
.g-item a { cursor: zoom-in; }

.pairs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: var(--space-xl) var(--space-l);
}
.pair__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xs); }
.pair__img { position: relative; }
.pair__img::after {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  padding: 0.2em 0.75em;
  border-radius: var(--radius-pill);
  background: rgb(28 26 23 / 0.78);
  color: var(--c-on-dark);
  font-size: var(--fs-xs);
  font-weight: 500;
  pointer-events: none;
}
.pair__img:first-child::after { content: "Prej"; }
.pair__img:last-child::after { content: "Potem"; }
.pair__title {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-s);
  font-weight: 500;
}
.pair__title span { color: var(--c-text-muted); font-size: var(--fs-sm); font-weight: 400; }

.g-cta .contact { grid-template-columns: minmax(0, 1fr); }

/* Povecava fotografije */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-xl) var(--space-s) var(--space-l);
  border: 0;
  background: rgb(20 18 16 / 0.96);
  color: var(--c-on-dark);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(20 18 16 / 0.6); }
.lightbox__fig { display: grid; justify-items: center; gap: var(--space-s); max-width: 100%; }
.lightbox__img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-s);
  transition: opacity 0.25s var(--ease);
}
.lightbox.is-loading .lightbox__img { opacity: 0; }
.lightbox__cat {
  position: absolute;
  top: var(--space-s);
  left: var(--space-s);
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--c-on-dark-muted);
  font-size: var(--fs-sm);
}
.lightbox__chapter { display: grid; justify-items: center; gap: var(--space-xs); text-align: center; }
.lightbox__chapter[hidden], .lightbox__fig[hidden] { display: none; }
.lightbox__chapter-kicker, .lightbox__chapter-count { color: var(--c-on-dark-muted); font-size: var(--fs-sm); }
.lightbox__chapter-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--c-on-dark);
}
.lightbox__chapter-count::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: var(--space-xs) auto var(--space-s);
  background: var(--c-accent-light);
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox__chapter:not([hidden]) { animation: lb-chapter 0.6s var(--ease) both; }
}
@keyframes lb-chapter { from { opacity: 0; transform: translateY(12px); } }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(245 241 234 / 0.12);
  color: var(--c-on-dark);
  transition: background-color var(--dur) var(--ease);
}
.lightbox__btn:hover { background: rgb(245 241 234 / 0.24); }
.lightbox :focus-visible { outline-color: var(--c-on-dark); }
.lightbox__close { top: var(--space-s); right: var(--space-s); }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -24px; }
.lightbox__prev { left: var(--space-s); }
.lightbox__next { right: var(--space-s); }
@media (max-width: 759px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: var(--space-s); margin-top: 0; }
  .lightbox__img { max-height: calc(100vh - 11rem); }
}

/* --- Noga ------------------------------------------------------------------- */
.site-footer {
  background: var(--tex-grain) var(--c-dark);
  color: var(--c-on-dark-muted);
  border-top: 1px solid rgb(245 241 234 / 0.12);
  padding-block: var(--space-2xl) var(--space-l);
  font-size: var(--fs-sm);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.footer-logo { color: var(--c-on-dark); font-family: var(--font-heading); font-size: 1.625rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: var(--space-2xs); }
.site-footer h2 {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-on-dark);
  margin-bottom: var(--space-xs);
}
.site-footer address { font-style: normal; }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer :focus-visible { outline-color: var(--c-on-dark); }
.site-footer .socials { display: flex; gap: var(--space-xs); margin-top: var(--space-s); }
.site-footer .social {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(245 241 234 / 0.28);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-footer .social:hover { background: rgb(245 241 234 / 0.12); border-color: var(--c-on-dark); }
.contact-socials { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-l); margin-top: var(--space-l); list-style: none; padding: 0; }
.contact-social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--c-on-dark);
  text-decoration: none;
}
.contact-social svg { width: 22px; height: 22px; padding: 9px; box-sizing: content-box; border: 1px solid rgb(245 241 234 / 0.28); border-radius: 50%; transition: border-color var(--dur) var(--ease); }
.contact-social:hover { color: var(--c-accent-light); }
.contact-social:hover svg { border-color: currentColor; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-2xl);
  padding-top: var(--space-m);
  border-top: 1px solid rgb(245 241 234 / 0.12);
}

/* --- Efekti -------------------------------------------------------------------
   Brez JS ali pri prefers-reduced-motion je vse takoj vidno.                  */
.anim [data-reveal],
.anim [data-stagger] > * { opacity: 0; }
.anim [data-split] { visibility: hidden; }
/* maska vrstic (SplitText) ne sme odrezati g, j, p ali strešic nad velikimi črkami */
[data-split] .split-line-mask { padding-block: 0.12em 0.22em; margin-block: -0.12em -0.22em; }

[data-parallax] { overflow: hidden; }
[data-parallax] img { width: 100%; height: 100%; object-fit: cover; }
.anim [data-parallax] img { transform: scale(1.15); will-change: transform; }

/* --- 404 -------------------------------------------------------------------- */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-section);
}
.not-found p { margin-inline: auto; }
.not-found .btn-row { justify-content: center; margin-top: var(--space-xl); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
