/* Layout: ena dolga stran kot pogled na most. Naslov in lok mostu v prvem zaslonu, pod njim stebra mostu (dve storitve), nato proces, cenik, avtor, obrazec in klic. */
:root {
  --bg: #EDF2F7;
  --bg-2: #E1E9F1;
  --ink: #0A2540;
  --muted: #3E5168;
  --line: #BFCCDA;
  --accent: #14B8A6;
  --accent-ink: #0B6B63;
  --btn-bg: #0A2540;
  --btn-fg: #EDF2F7;
  --band: #0A2540;
  --band-ink: #EDF2F7;
  --band-muted: #A9BACB;
  --field: #F8FAFC;
  --tint: #D9EFEC;
  --font-display: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08182B; --bg-2: #0D2239; --ink: #E8EFF6; --muted: #A3B5C8; --line: #23405E;
    --accent: #14B8A6; --accent-ink: #3CD3C0; --btn-bg: #E8EFF6; --btn-fg: #08182B;
    --band: #0D2A47; --band-ink: #E8EFF6; --band-muted: #A3B5C8; --field: #0D2239; --tint: #0F3340;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08182B; --bg-2: #0D2239; --ink: #E8EFF6; --muted: #A3B5C8; --line: #23405E;
  --accent: #14B8A6; --accent-ink: #3CD3C0; --btn-bg: #E8EFF6; --btn-fg: #08182B;
  --band: #0D2A47; --band-ink: #E8EFF6; --band-muted: #A3B5C8; --field: #0D2239; --tint: #0F3340;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  padding: 0;
}
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* glava */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { width: 46px; height: auto; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 2px; line-height: 1; }
.brand-name small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 7px; color: var(--accent-ink); margin-top: 6px; }
nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-weight: 600; font-size: 16px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.btn {
  display: inline-block; background: var(--btn-bg); color: var(--btn-fg); font-family: var(--font-display);
  font-weight: 600; font-size: 17px; text-decoration: none; padding: 15px 26px; border-radius: 4px; border: 0; cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }
nav .btn { padding: 11px 20px; font-size: 15px; }
nav .btn:hover { text-decoration: none; }

/* naslovnica */
.hero { padding-top: clamp(36px, 7vw, 96px); }
.hero h1 { font-weight: 800; font-size: clamp(40px, 8.4vw, 112px); line-height: 0.98; letter-spacing: -0.03em; max-width: 12ch; }
.hero-sub { max-width: 52ch; font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin-top: 30px; }
.hero-cta { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-cta a.text { font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

.span { margin-top: clamp(30px, 5vw, 70px); }
.span svg { width: 100%; height: auto; overflow: visible; }
.span .deck { stroke: var(--accent); stroke-width: 7; stroke-linecap: round; }
.span .arch { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; fill: none; }
.span .post { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.span .node { fill: var(--accent); }

.piers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); }
.pier { min-width: 0; }
.pier h2 { font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; }
.pier .tag { font-weight: 700; color: var(--accent-ink); margin-bottom: 8px; font-size: 17px; }
.pier p { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.pier ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 2px solid var(--line); }
.pier li { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.pier.right { justify-self: end; }
@media (max-width: 760px) {
  .piers { grid-template-columns: 1fr; }
  .pier.right { justify-self: start; }
}

/* poglavja */
section { padding-block: clamp(56px, 8vw, 112px); }
.alt { background: var(--bg-2); }
h2.sec { font-weight: 800; font-size: clamp(32px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.02em; max-width: 18ch; }
.lead { color: var(--muted); max-width: 56ch; margin-top: 20px; }

/* proces: dejansko zaporedje, zato cesta s postajami */
.road { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; background: var(--accent); border-radius: 2px; }
.road li { position: relative; padding-top: 44px; }
.road li::before { content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); border: 4px solid var(--ink); }
.road h3 { font-size: 22px; font-weight: 700; }
.road p { color: var(--muted); margin-top: 8px; font-size: 16.5px; }
@media (max-width: 860px) {
  .road { grid-template-columns: 1fr; gap: 0; }
  .road::before { left: 11px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .road li { padding: 0 0 34px 56px; }
  .road li:last-child { padding-bottom: 0; }
}

/* cenik */
.price-group { margin-top: 48px; }
.price-group h3 { font-size: 24px; font-weight: 700; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) auto; gap: 8px 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row .name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.row .what { color: var(--muted); font-size: 16.5px; }
.row .eur { font-family: var(--font-display); font-weight: 700; font-size: 20px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.row .eur small { font-weight: 600; font-size: 14px; color: var(--muted); }
.combo { margin-top: 48px; background: var(--accent); color: #062B2A; padding: clamp(24px, 4vw, 40px); border-radius: 4px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: center; }
.combo h3 { color: #062B2A; font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.combo p { margin-top: 6px; max-width: 52ch; }
.combo .eur { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); white-space: nowrap; }
.combo .eur small { font-size: 15px; font-weight: 600; }
.note { color: var(--muted); font-size: 16px; margin-top: 22px; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; }
  .row .what { grid-column: 1 / -1; grid-row: 2; }
  .combo { grid-template-columns: 1fr; }
}

/* o meni */
.about { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { border-radius: 999px 999px 4px 4px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about p { margin-top: 18px; max-width: 58ch; }
.about p:first-of-type { margin-top: 26px; }
dl.cv { margin: 36px 0 0; border-top: 3px solid var(--ink); }
dl.cv div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 4px 28px; padding: 14px 0; border-bottom: 1px solid var(--line); }
dl.cv dt { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
dl.cv dd { margin: 0; color: var(--muted); font-size: 16.5px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
  dl.cv div { grid-template-columns: 1fr; }
}

/* obrazec */
form { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; max-width: 880px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 16px; }
input, select, textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--field); border: 2px solid var(--line);
  border-radius: 4px; padding: 13px 14px; width: 100%; min-width: 0;
}
textarea { min-height: 112px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.help { color: var(--muted); font-size: 15.5px; }
#result { grid-column: 1 / -1; display: none; border: 2px solid var(--accent); border-radius: 4px; padding: 22px; background: var(--field); }
#result.on { display: block; }
#result h3 { font-size: 22px; font-weight: 700; }
#result p { margin-top: 8px; color: var(--muted); }
#result textarea { margin-top: 14px; min-height: 190px; font-size: 15.5px; }
#result .acts { display: flex; gap: 16px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 11px 22px; }
@media (max-width: 640px) { form { grid-template-columns: 1fr; } }

/* klic */
.call { background: var(--band); color: var(--band-ink); padding-block: clamp(56px, 8vw, 104px); }
.call h2 { color: var(--band-ink); font-weight: 800; font-size: clamp(34px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.025em; max-width: 14ch; }
.call-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-top: 40px; }
.contacts { display: grid; gap: 6px; font-size: clamp(19px, 2.4vw, 26px); font-weight: 600; min-width: 0; }
.contacts .k { font-size: 15px; color: var(--band-muted); font-weight: 600; margin-top: 18px; }
.contacts .k:first-child { margin-top: 0; }
.contacts a { text-underline-offset: 5px; text-decoration-color: var(--accent); overflow-wrap: anywhere; }
.qr { width: 190px; }
.qr img { width: 190px; height: auto; }
.qr p { font-size: 15px; color: var(--band-muted); margin-top: 10px; line-height: 1.4; }
.qr a { color: var(--band-ink); }
@media (max-width: 760px) { .call-grid { grid-template-columns: 1fr; align-items: start; } }

footer { padding-block: 34px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* vodnik (prijava za brezplačni PDF) */
.guide { background: var(--tint); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.guide h2.sec { max-width: 16ch; }
#vodnik-form { margin-top: 0; grid-template-columns: 1fr; max-width: none; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent-ink); }
.check label { font-weight: 500; font-size: 15.5px; }
.check a { color: var(--ink); }
#vodnik-msg { display: none; border: 2px solid var(--accent); border-radius: 4px; padding: 20px; background: var(--field); }
#vodnik-msg.on { display: block; }
#vodnik-msg h3 { font-size: 22px; font-weight: 700; }
#vodnik-msg p { margin-top: 8px; color: var(--muted); }
#vodnik-msg .btn { margin-top: 14px; }
@media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; } }
footer a { color: var(--muted); }
.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal h1 { font-weight: 800; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.legal h2 { font-size: 22px; font-weight: 700; margin-top: 36px; }
.legal p, .legal li { max-width: 68ch; margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 0; }
