/* Elektro Iskra – tretji primer paketa Start. Brez knjižnic in brez animacij. */

/* ───── Pisave (shranjene v mapi fonts) ───── */
@font-face {
  font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ink: #14161a;
  --panel: #1c1f26;
  --line: #3a3f4a;
  --white: #ffffff;
  --text: #e9ebef;
  --muted: #b4b9c3;
  --yellow: #ffd400;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
  overflow-wrap: break-word;
}
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .45em; color: var(--white); font-family: var(--font-head); font-weight: 700; }
h1 { font-size: clamp(3.75rem, 8vw, 7.25rem); line-height: 1; letter-spacing: -.005em; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; }
h3 { font-size: 1.75rem; line-height: 1.12; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
[id] { scroll-margin-top: 84px; } /* da pripeta glava ne prekrije naslova */

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: .6em 1em; background: var(--yellow); color: var(--ink); font-weight: 600;
}
.skip:focus { top: 8px; }

.eyebrow {
  margin-bottom: .9em;
  font-weight: 600; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--yellow);
}

/* ───── Gumbi ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: .6em 1.4em;
  border: 2px solid var(--yellow); border-radius: 0;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1.1;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--white); border-color: var(--white); }
.btn--call { min-height: 76px; padding-inline: 1.3em; font-size: clamp(1.7rem, 3vw, 2.1rem); }
.btn--ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--small { min-height: 46px; padding: .3em 1em; font-size: 1.3rem; }
.btn--block { width: 100%; }
.icon { width: 1.05em; height: 1.05em; flex: none; }

/* ───── Glava ───── */
.header {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: .55em;
  color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: .04em;
}
.logo strong { color: var(--yellow); font-weight: 700; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }
.nav__link:hover { color: var(--yellow); }

/* ───── Uvod ───── */
.hero { border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero__lead { max-width: 33rem; font-size: 1.35rem; line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__actions .btn--ghost { min-height: 76px; padding-inline: 1.5em; }
.board { display: block; width: 100%; height: auto; }

/* ───── Storitve ───── */
.section { padding-top: clamp(64px, 9vw, 112px); }
.services-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
  padding-bottom: clamp(64px, 9vw, 112px);
}
.section__head p:last-child { margin-bottom: 0; color: var(--muted); }

.services { border-top: 2px solid var(--line); }
.service {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px;
  padding: 26px 0; border-bottom: 2px solid var(--line);
}
.service h3 { margin-bottom: .3em; }
.service p { margin: 0; color: var(--muted); }
.service__code {
  display: flex; align-items: center; gap: 12px;
  align-self: start;
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; line-height: 1.12; color: var(--yellow);
}

/* Majhna varovalka: ob prehodu z miško se vklopi. */
.breaker { position: relative; width: 26px; height: 40px; background: #2b2f38; }
.breaker::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 13px;
  background: var(--muted);
}
.service:hover .breaker::after { top: 6px; bottom: auto; background: var(--yellow); }
@media (hover: none) {
  .breaker::after { top: 6px; bottom: auto; background: var(--yellow); }
}

/* ───── Nujni primeri ───── */
.urgent { background: var(--yellow); color: var(--ink); }
.urgent__inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px); align-items: center;
  padding-block: clamp(36px, 5vw, 56px);
}
.urgent__code { margin: 0; font-family: var(--font-head); font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 700; line-height: 1; }
.urgent h3 { margin-bottom: .2em; color: var(--ink); font-size: clamp(2rem, 3.6vw, 2.75rem); }
.urgent p { margin: 0; }
.urgent__text p { max-width: 48rem; }
.urgent :focus-visible { outline-color: var(--ink); }

/* ───── Kontakt ───── */
#kontakt { padding-bottom: clamp(64px, 9vw, 112px); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__phone {
  display: inline-block; margin-bottom: 24px;
  color: var(--yellow); text-decoration: none;
  font-family: var(--font-head); font-size: clamp(3.25rem, 7vw, 5rem); font-weight: 700; line-height: 1.05;
}
.contact__phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact__list { margin: 0; }
.contact__list div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__list dt { color: var(--muted); }
.contact__list dd { margin: 0; color: var(--white); font-weight: 600; }

.form { padding: clamp(20px, 3.5vw, 36px); border: 1px solid var(--line); background: var(--panel); }
.form__title { font-size: 2.25rem; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.label { display: block; margin-bottom: 16px; }
.label > span { display: block; margin-bottom: 6px; font-size: 1rem; font-weight: 600; color: var(--white); }
.field {
  width: 100%; min-height: 52px; padding: .6em .75em;
  border: 2px solid #858c99; border-radius: 0;
  background: var(--ink); color: var(--white); font: inherit;
}
.field:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--yellow); }
.field::placeholder { color: #a5abb6; opacity: 1; }
.field--area { min-height: 120px; resize: vertical; }
.form__note { margin: 12px 0 0; color: var(--muted); font-size: 1rem; }
.form__status { margin: 12px 0 0; padding: .7em .9em; border-left: 4px solid var(--yellow); background: var(--ink); color: var(--white); font-size: 1rem; }

/* ───── Noga ───── */
.footer { padding: 48px 0 24px; border-top: 1px solid var(--line); background: #0e0f12; color: var(--muted); font-size: 1rem; }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px 48px; }
.footer p { margin-bottom: .5em; }
.footer a:hover { color: var(--yellow); }
.footer__logo { color: var(--white); font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; }
.footer__logo strong { color: var(--yellow); font-weight: 700; }
.footer__social { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer__social a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; text-decoration: none; }
.footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.footer__bottom p { margin: 0; }

/* ───── Pripeta vrstica na telefonu ───── */
.callbar { display: none; }

/* ───── Tablica ───── */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .board { max-width: 560px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .urgent__inner { grid-template-columns: auto minmax(0, 1fr); }
  .urgent__inner .btn { grid-column: 1 / -1; justify-self: start; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ───── Telefon ───── */
@media (max-width: 720px) {
  body { padding-bottom: 80px; font-size: 1.0625rem; }
  [id] { scroll-margin-top: 16px; }
  .header { position: static; }
  .nav { min-height: 62px; }
  .nav__call { display: none; } /* klic je v pripeti vrstici spodaj */
  .nav__links { gap: 20px; }
  .logo { font-size: 1.4rem; }
  .logo__mark { width: 30px; height: 30px; }
  .hero__lead { font-size: 1.2rem; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn--ghost { min-height: 60px; }
  .service { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .urgent__inner { grid-template-columns: 1fr; }
  .urgent__inner .btn { grid-column: auto; justify-self: stretch; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--line);
  }
  .callbar .btn { min-height: 56px; padding-inline: .5em; font-size: 1.35rem; }
}
