/* ==========================================================================
   JANPLEKS — oblikovni sistem (večstranska postavitev, po zgledu serviceplast.com)
   Temno modra + živo modra, fotografije čez celo širino, bela kartica čez fotografijo,
   sivi pasovi, ostri robovi. Podpis: poševna črta v glavi podstrani se izriše kot laserski rez.
   ========================================================================== */

:root {
  --graphite:  #0f2238;
  --black:     #0a1828;
  --accent:    #1f6fd1;
  --accent-2:  #185cb0;
  --accent-hi: #7cc0ff;   /* modra za besedilo in črte na temni podlagi */
  --accent-soft: #e3effc;
  --paper:     #ffffff;
  --concrete:  #eaf1f8;
  --ink:       #0d1b2a;
  --ink-2:     #3a4a5e;
  --steel:     #56657a;
  --rule:      #d3dfeb;
  --rule-dark: rgba(255,255,255,.13);
  --on-dark:   #c5d3e3;
  --success: #1d7a4b;
  --danger:  #c3302a;
  --warning: #945e00;

  --f-display: "Sora", "Segoe UI", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", Arial, sans-serif;
  --f-mono: "DM Mono", Consolas, "Courier New", monospace;

  --fs-hero: clamp(2.5rem, 6.2vw, 5rem);
  --fs-h1: clamp(2.1rem, 4.4vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.6rem);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --section: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
p { max-width: 68ch; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 3px; }
.page-head :focus-visible, .section :focus-visible, .overlap :focus-visible, .plate :focus-visible, .products :focus-visible { outline-color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 500; padding: 12px 18px; background: var(--accent); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }

.h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.strong { font-weight: 700; color: var(--ink); }
.mono { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; }
.kicker { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 14px; }
.section { padding-block: var(--section); }
.section--grey { background: var(--concrete); }

/* Blue arrow bullets (reference) */
.arrow-list { display: grid; gap: 6px; margin-block: 14px 20px; }
.arrow-list li { position: relative; padding-left: 26px; font-weight: 600; font-size: .95rem; }
.arrow-list li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 16px; height: 10px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h13M9 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h13M9 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arrow-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }

/* ---------- Buttons: flat block with a brushed right edge (reference) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 12px 30px; border: 2px solid transparent;
  font-family: var(--f-display); font-weight: 600; font-size: .92rem; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0 0 0 45%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(112deg, transparent 0 7px, rgba(255,255,255,.22) 7px 9px, transparent 9px 15px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateX(-18%); }
.btn--sm { min-height: 44px; padding: 9px 22px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent::before { background: repeating-linear-gradient(112deg, transparent 0 7px, rgba(255,255,255,.45) 7px 9px, transparent 9px 15px); }
.btn--accent:hover { background: var(--accent-2); }
.btn--black { background: var(--black); color: #fff; }
.btn--black::before { background: repeating-linear-gradient(112deg, transparent 0 7px, rgba(255,255,255,.1) 7px 9px, transparent 9px 15px); }
.btn--black:hover { background: #000; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line::before, .btn--line-light::before { display: none; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--line-light:hover { border-color: var(--accent-hi); color: var(--accent-hi); }
.btn--arrow::after {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1v10h10M9 7l4 4-4 4' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1v10h10M9 7l4 4-4 4' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 200; height: var(--header-h); display: flex; align-items: center; background: var(--graphite); transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.28); }
body[data-page="home"] .site-header { position: fixed; left: 0; right: 0; background: rgba(12,30,52,.82); }
body[data-page="home"] .site-header.scrolled { background: var(--graphite); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1; padding-block: 8px; }
.logo__word { font-family: var(--f-display); font-weight: 800; font-size: 1.65rem; letter-spacing: -.04em; color: #fff; }
.logo__word span { color: var(--accent-hi); }
.logo__cut { display: flex; gap: 4px; }
.logo__cut i { width: 7px; height: 4px; background: var(--accent-hi); transform: skewX(-35deg); }
.logo__cut i:last-child { width: 44px; }

.nav-links { display: flex; align-items: center; }
.nav-links a { position: relative; white-space: nowrap; padding: 10px 14px 10px 26px; font-family: var(--f-display); font-weight: 600; font-size: .9rem; color: #fff; transition: color .2s; }
.nav-links a::before { content: "\\"; position: absolute; left: 12px; top: 50%; transform: translateY(-52%); font-weight: 400; color: #7d91a8; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-hi); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; }
.lang-switch button { min-width: 36px; min-height: 40px; font-family: var(--f-mono); font-size: .75rem; color: #93a6bb; box-shadow: inset 0 -2px 0 transparent; }
.lang-switch button:hover { color: #fff; }
.lang-switch button.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--accent-hi); }
.nav-toggle { display: none; width: 46px; height: 46px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span:not(.sr-only) { width: 24px; height: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HOME — HERO SLIDES
   ========================================================================== */
.hero { position: relative; height: clamp(560px, 86svh, 800px); background: var(--black); color: #fff; overflow: hidden; }
.hero__slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease); }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); }
.hero.is-playing .slide.is-active .slide__img { animation: slowZoom var(--slide-ms, 7000ms) linear both; }
@keyframes slowZoom { from { transform: scale(1.08); } to { transform: scale(1.001); } }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,20,36,.86) 0%, rgba(7,20,36,.68) 50%, rgba(7,20,36,.3) 100%); }
.slide__body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); padding-bottom: 90px; }
.slide__title { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-hero); line-height: 1; letter-spacing: -.035em; color: #fff; max-width: 13ch; margin-bottom: 16px; }
.slide__desc { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #e2e2e2; max-width: 38ch; margin-bottom: 30px; }
.slide.is-active .slide__title, .slide.is-active .slide__desc, .slide.is-active .btn-row { animation: rise .8s var(--ease) both; }
.slide.is-active .slide__desc { animation-delay: .08s; }
.slide.is-active .btn-row { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 26px; }
.hero__tab { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 6px; text-align: left; font-family: var(--f-display); font-weight: 600; font-size: .86rem; color: rgba(255,255,255,.62); transition: color .2s; }
.hero__tab:hover, .hero__tab.is-active { color: #fff; }
.hero__bar { position: relative; display: block; width: 100%; height: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.hero__bar::after { content: ""; position: absolute; inset: 0; background: var(--accent-hi); transform: scaleX(0); transform-origin: left; }
.hero__tab.is-active .hero__bar::after { transform: scaleX(1); }
.hero.is-playing .hero__tab.is-active .hero__bar::after { animation: fillBar var(--slide-ms, 7000ms) linear both; }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================================
   HOME — OVERLAP BLOCKS (photo + white card) and grey plates
   ========================================================================== */
.overlap { position: relative; isolation: isolate; padding-top: var(--section); }
.overlap__wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.overlap__media { grid-row: 1; }
.overlap__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.overlap__card { grid-row: 1; position: relative; z-index: 1; background: var(--paper); padding: clamp(28px, 4vw, 52px); }
.overlap__card p { color: var(--ink-2); margin-bottom: 12px; }
.overlap__card .strong { color: var(--ink); }
.overlap__card .btn-row { margin-top: 20px; }

.overlap--right .overlap__media { grid-column: 1 / 8; }
.overlap--right .overlap__card { grid-column: 7 / 13; margin-top: clamp(40px, 9vw, 110px); }
.overlap--right::after { content: ""; position: absolute; z-index: -1; left: 0; right: 10%; bottom: 0; height: 30%; background: var(--concrete); }

.overlap--left { padding-bottom: 0; }
.overlap--left .overlap__card { grid-column: 1 / 7; margin-top: clamp(40px, 7vw, 80px); padding-left: 0; }
.overlap--left .overlap__media { grid-column: 6 / 13; }
.overlap--left::after { content: ""; position: absolute; z-index: -1; left: 6%; right: 0; bottom: 0; height: 42%; background: var(--concrete); }
.overlap--left .overlap__wrap { padding-bottom: var(--section); }

.plate { background: var(--concrete); margin-right: 10%; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 88px); }
.plate__inner { max-width: calc(var(--container) - 2 * var(--gutter)); margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-right: var(--gutter); }
.plate__title { margin-bottom: 36px; padding-left: 64px; }
.plate__cta { padding-left: 64px; margin-top: 36px; }

/* rail */
.rail { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 16px; align-items: center; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__btn { width: 48px; height: 48px; display: grid; place-items: center; }
.rail__btn::after {
  content: ""; width: 26px; height: 16px; background: var(--accent); transition: transform .2s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'%3E%3Cpath d='M0 8h23M16 1l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'%3E%3Cpath d='M0 8h23M16 1l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rail__btn--prev::after { transform: scaleX(-1); }
.rail__btn--next:hover::after { transform: translateX(4px); }
.rail__btn--prev:hover::after { transform: scaleX(-1) translateX(4px); }
.sheet-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.sheet-card h3 { font-size: 1.02rem; font-weight: 600; padding-left: 12px; }
.sheet-card__art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--paper); padding: 10%; }
.sheet-card__art svg { width: 100%; transition: transform .4s var(--ease); }
.sheet-card:hover .sheet-card__art svg { transform: translateY(-5px); }
.sheet-card .mono { color: var(--steel); padding-left: 12px; }

/* ==========================================================================
   HOME — PRODUCTS (image grid + text)
   ========================================================================== */
.products { padding-block: var(--section); }
.products__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.products__images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.products__images a { display: block; overflow: hidden; }
.products__images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.products__images a:hover img { transform: scale(1.05); }
.products__copy p { color: var(--ink-2); }

/* ==========================================================================
   SUBPAGE HEADER — breadcrumbs + laser-cut line (signature)
   ========================================================================== */
.page-head { position: relative; overflow: hidden; background: var(--concrete); padding-block: clamp(36px, 5vw, 60px) clamp(44px, 6vw, 72px); }
.page-head .container { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--f-mono); font-size: .75rem; color: var(--steel); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.page-head h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.03em; max-width: 18ch; }
.page-head__lead { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }
.cutline { position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 44%); pointer-events: none; overflow: visible; }
.cutline path { fill: none; stroke-width: 3; }
.cutline__base { stroke: #c3d3e4; }
.cutline__cut { stroke: var(--accent); stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: cut 1.5s .25s var(--ease) forwards; }
.cutline__spark { stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: .015 2; stroke-dashoffset: .015; opacity: 0; filter: drop-shadow(0 0 5px var(--accent)) drop-shadow(0 0 10px var(--accent)); animation: spark 1.5s .25s var(--ease) forwards; }
@keyframes cut { to { stroke-dashoffset: 0; } }
@keyframes spark { 0% { opacity: 1; stroke-dashoffset: .015; } 92% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -1; } }

/* ==========================================================================
   SERVICES PAGE
   ========================================================================== */
.svc-index { display: flex; flex-wrap: wrap; gap: 4px 0; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.svc-index a { position: relative; padding: 8px 14px 8px 24px; font-family: var(--f-display); font-weight: 600; font-size: .88rem; }
.svc-index a::before { content: "\\"; position: absolute; left: 10px; color: var(--accent); font-weight: 700; }
.svc-index a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.svc-row { padding-block: clamp(48px, 7vw, 88px); }
.svc-row--flip { background: var(--concrete); }
.svc-row__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.svc-row--flip .svc-row__img { order: 2; }
.svc-row__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-row__copy .tag { display: inline-block; margin-bottom: 12px; color: var(--steel); }
.svc-row__copy > p { color: var(--ink-2); margin-bottom: 14px; }
.svc-row__copy .use { font-size: .95rem; padding-left: 14px; border-left: 3px solid var(--accent); margin-bottom: 26px; }
.svc-row__copy .use strong { color: var(--ink); }

/* ==========================================================================
   MATERIALS PAGE
   ========================================================================== */
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.catalog__item { display: flex; flex-direction: column; }
.catalog__item h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; padding-left: 12px; }
.catalog__item h2 span { display: block; margin-top: 4px; font-family: var(--f-body); font-weight: 500; font-size: .85rem; letter-spacing: 0; color: var(--steel); }
.catalog__art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--concrete); padding: 12%; margin-bottom: 16px; }
.catalog__art svg { width: 100%; }
.catalog__item p { color: var(--ink-2); font-size: .95rem; flex: 1; margin-bottom: 14px; }
.spec { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: .82rem; }
.spec dt { color: var(--steel); }
.spec dd { font-weight: 500; }
.catalog__note { background: var(--graphite); color: #fff; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.catalog__note h2 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.catalog__note p { color: var(--on-dark); margin-bottom: 12px; font-size: .95rem; }
.catalog__note .btn-row { margin-top: 12px; }

/* ==========================================================================
   GALLERY PAGE + LIGHTBOX
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.gal-item { display: flex; flex-direction: column; }
.gal-item__t { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; padding-left: 12px; }
.gal-open { display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.gal-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gal-open:hover .gal-img { transform: scale(1.05); }
.note { margin-top: 40px; font-size: .88rem; color: var(--steel); }

.lightbox { position: fixed; inset: 0; z-index: 600; display: none; align-items: center; justify-content: center; padding: clamp(12px, 5vw, 72px); background: rgba(7,20,36,.95); }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 80vh; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: clamp(12px, 3vw, 28px); margin-inline: auto; text-align: center; color: #fff; font-family: var(--f-display); font-weight: 600; padding: 0 16px; }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.6rem; line-height: 1; }
.lightbox__btn:hover { background: var(--accent-2); }
.lightbox__prev { left: clamp(8px, 2vw, 24px); }
.lightbox__next { right: clamp(8px, 2vw, 24px); }
.lightbox__close { top: clamp(10px, 2vw, 24px); right: clamp(10px, 2vw, 24px); transform: none; width: 46px; height: 46px; font-size: 1.15rem; background: #fff; }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-hero { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.about-word { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.04em; margin-bottom: 20px; }
.about-copy > p { color: var(--ink-2); margin-bottom: 12px; }
.about-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.about-mosaic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.process { counter-reset: p; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-block: 36px 40px; }
.process li { counter-increment: p; background: var(--paper); padding: 28px 24px; border-top: 4px solid var(--accent); }
.process li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: .85rem; color: var(--steel); margin-bottom: 14px; }
.process h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process p { color: var(--ink-2); font-size: .93rem; }

/* ==========================================================================
   CONTACT PAGE + FORMS
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.form-flag { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 10px 14px; margin-bottom: 20px; font-weight: 600; font-size: .92rem; }
.contact-card { background: var(--graphite); color: #fff; padding: clamp(24px, 3.5vw, 44px); border-top: 6px solid var(--accent); }
.contact-card h2 { color: #fff; font-size: 1.4rem; margin-bottom: 18px; }
.contact-list > div { padding-block: 14px; border-bottom: 1px solid var(--rule-dark); }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #93a6bb; }
.contact-list dd { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-hi); }

.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field--sm { flex: 0 0 96px; min-width: 84px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--paper); border: 1px solid #bccbdb; border-radius: 0; color: var(--ink); font-size: .95rem; font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.field select { appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%230d1b2a' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input.is-readonly { background: var(--concrete); font-family: var(--f-mono); color: var(--ink-2); cursor: default; }
.field input.is-readonly:focus { box-shadow: none; border-color: #bccbdb; }
.field .file-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; background: var(--concrete); border: 1px dashed #a9bccf; font-size: .9rem; font-weight: 500; cursor: pointer; }
.field .file-attach:hover { border-color: var(--ink); }
.field .file-attach input { width: auto; min-height: 0; padding: 0; border: 0; background: none; font-size: .82rem; max-width: 100%; }
.hint { font-size: .76rem; font-weight: 400; color: var(--steel); }
.req { color: var(--danger); }
.field-error { font-size: .8rem; color: var(--danger); min-height: 1em; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.form-note { margin-top: 12px; font-size: .92rem; min-height: 1.3em; }
.form-note.is-ok { color: var(--success); }
.form-note.is-err { color: var(--danger); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--graphite); color: var(--on-dark); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: .9fr 1.15fr 1.15fr 1fr; gap: 36px; align-items: start; }
.footer-h { font-size: 1.2rem; color: #fff; margin-bottom: 16px; }
.arrow-list--footer { margin: 0; gap: 2px; }
.arrow-list--footer li { font-weight: 500; font-size: .92rem; }
.arrow-list--footer a { display: inline-block; padding-block: 4px; transition: color .2s; }
.arrow-list--footer a:hover { color: var(--accent-hi); }
.footer-contact { display: grid; gap: 12px; font-size: .95rem; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--accent-hi); }
.fc-ic { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; }
.footer-quote { background: var(--accent); color: #fff; padding: 26px 28px; display: flex; flex-direction: column; }
.footer-quote__t { font-size: 1.4rem; margin-bottom: 12px; color: #fff; }
.footer-quote__small { font-size: .78rem; }
.footer-quote__big { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; text-transform: uppercase; }
.footer-quote__big:last-child { margin-bottom: 0; }
.footer-quote__big:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 6vw, 72px); padding-block: 22px; border-top: 1px solid var(--rule-dark); font-size: .8rem; color: #93a6bb; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-links a { padding-inline: 22px 8px; font-size: .86rem; }
  .nav-links a::before { left: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--header-h); left: 0; right: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 24px; background: var(--graphite); border-top: 1px solid var(--rule-dark); box-shadow: 0 30px 40px rgba(0,0,0,.35);
  }
  .nav-links.open a { padding: 15px 4px 15px 24px; font-size: 1.05rem; border-bottom: 1px solid var(--rule-dark); }
  .nav-links.open a::before { left: 4px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .overlap__wrap { grid-template-columns: minmax(0, 1fr); }
  .overlap--right .overlap__media, .overlap--left .overlap__media { grid-column: 1; grid-row: 1; }
  .overlap--right .overlap__card, .overlap--left .overlap__card { grid-column: 1; grid-row: 2; margin: -48px 20px 0; padding-left: clamp(24px, 4vw, 40px); }
  .overlap--left .overlap__wrap { padding-bottom: 0; }
  .overlap--left { padding-bottom: var(--section); }
  .overlap--right::after, .overlap--left::after { left: 0; right: 0; height: 40%; }
  .plate { margin-right: 0; }
  .plate__inner { margin-left: var(--gutter); }
  .plate__title, .plate__cta { padding-left: 0; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .rail__btn { display: none; }
  .rail__track { grid-auto-columns: calc((100% - 20px) / 2); }
  .products__grid, .svc-row__grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-row--flip .svc-row__img { order: 0; }
  .catalog, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cutline { width: 55%; opacity: .7; }
}

@media (max-width: 620px) {
  .hero { height: auto; min-height: 600px; }
  .slide__body { padding-bottom: 110px; }
  .hero__tabs { gap: 10px; }
  .hero__tab span { font-size: .72rem; line-height: 1.25; }
  .btn-row .btn { flex: 1 1 100%; }
  .arrow-list--2col { grid-template-columns: minmax(0, 1fr); }
  .overlap--right .overlap__card, .overlap--left .overlap__card { margin-inline: 0; margin-top: -28px; }
  .rail__track { grid-auto-columns: 80%; }
  .catalog, .gallery, .process, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .products__images { gap: 10px; }
  .field-row { flex-direction: column; gap: 0; }
  .field--sm { flex: 1; }
  .opt-grid { grid-template-columns: minmax(0, 1fr); }
  .qty-table { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ops-reset { margin-left: 0; }
  .logo__word { font-size: 1.4rem; }
  .lang-switch button { min-width: 32px; }
  .cutline { width: 70%; opacity: .45; }
  .about-hero { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Modre puščice na temni podlagi */
.site-footer .arrow-list li::before { background: var(--accent-hi); }

/* ==========================================================================
   PRELIVI MED RAZDELKI
   Razdelki se ne menjajo več v ostrih blokih (belo / sivo / temno), ampak se
   mehko prelivajo iz bele v svetlo modro. Temna ostaneta le uvod in noga,
   noga pa se v temno modro preliva postopoma.
   ========================================================================== */
:root { --mist: #dce8f4; }

/* domača stran: brez odrezanih sivih plošč, namesto njih zvezni prelivi */
.overlap--right::after, .overlap--left::after { content: none; }
.overlap--right { background: linear-gradient(180deg, var(--concrete) 0, var(--paper) 240px, var(--paper) 55%, var(--concrete) 100%); padding-bottom: var(--section); }
.plate { margin-right: 0; background: linear-gradient(180deg, var(--concrete) 0%, var(--mist) 55%, var(--concrete) 100%); }
.plate__inner { margin-left: auto; margin-right: auto; max-width: var(--container); padding-inline: var(--gutter); }
.overlap--left { background: linear-gradient(180deg, var(--concrete) 0, var(--paper) 30%, var(--paper) 60%, var(--concrete) 100%); }


.products { background: linear-gradient(180deg, var(--concrete) 0, var(--paper) 35%, var(--paper) 100%); }

/* podstrani */
.page-head { background: linear-gradient(180deg, var(--mist) 0%, var(--concrete) 45%, var(--paper) 100%); }
.svc-index { border-bottom-color: transparent; }
.svc-row--flip { background: linear-gradient(180deg, var(--paper) 0%, var(--concrete) 30%, var(--concrete) 70%, var(--paper) 100%); }
.section--grey { background: linear-gradient(180deg, var(--paper) 0%, var(--concrete) 30%, var(--mist) 100%); }

/* noga: postopen prehod iz svetle v temno modro */
.site-footer { background: linear-gradient(180deg, var(--paper) 0, var(--concrete) 40px, #6f8fb3 130px, var(--graphite) 220px, var(--graphite) 100%); padding-top: 250px; }
.section--grey + .site-footer, main:has(> .section--grey:last-child) + .site-footer { background: linear-gradient(180deg, var(--mist) 0, #6f8fb3 110px, var(--graphite) 220px, var(--graphite) 100%); }

@media (max-width: 960px) {
  .overlap--left { padding-bottom: var(--section); }
  .site-footer { padding-top: 200px; background: linear-gradient(180deg, var(--paper) 0, var(--concrete) 30px, #6f8fb3 100px, var(--graphite) 170px, var(--graphite) 100%); }
}

/* uvod: fotografija se na dnu mehko prelije v svetlo modro */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(234,241,248,0) 0%, rgba(234,241,248,.12) 50%, rgba(234,241,248,.7) 88%, var(--concrete) 100%); }
.hero__tabs { bottom: 34px; }
.slide__body { padding-bottom: 130px; }
@media (max-width: 620px) {
  .hero::after { height: 44px; }
  .hero__tabs { bottom: 26px; }
  .slide__body { padding-bottom: 150px; }
}


/* dovolj veliki cilji za dotik na telefonu (telefon, e-pošta) */
.footer-contact a, .contact-list a, .footer-quote__big { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact { gap: 2px; }
.footer-quote__big { margin-bottom: 4px; }

/* ==========================================================================
   LOGOTIP
   ========================================================================== */
.logo { padding-block: 0; }
.logo__img { height: 46px; width: auto; }
.footer-logo { width: 190px; height: auto; margin-bottom: 18px; }
.about-logo { width: min(330px, 80%); height: auto; margin-bottom: 22px; }
@media (max-width: 620px) {
  .logo__img { height: 36px; }
  .footer-logo { width: 170px; }
}

/* dovolj veliki cilji za dotik: povezave v nogi in logotip */
.arrow-list--footer a { display: inline-flex; align-items: center; min-height: 40px; padding-block: 0; }
.logo { min-height: 44px; justify-content: center; }
@media (max-width: 960px) {
  .arrow-list--footer a { min-height: 44px; }
}
