/* Krovstvo Strešnik – primer paketa Start. Brez knjižnic. */

:root {
  --ink: #1d2428;
  --ink-2: #2a3338;
  --paper: #f5f2ec;
  --white: #ffffff;
  --muted: #55606a;
  --line: #ddd6cb;
  --copper: #b5582f;
  --copper-dark: #94431f;
  --copper-light: #e8a27f;
  --radius: 6px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

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

.eyebrow {
  margin-bottom: .8em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper-dark);
}
.eyebrow--light { color: var(--copper-light); }

.tag {
  display: inline-block; vertical-align: middle;
  padding: .2em .6em; border: 1px solid currentColor; border-radius: 99px;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  opacity: .85;
}

/* ───── Gumbi ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.5em;
  border: 2px solid var(--copper); border-radius: var(--radius);
  background: var(--copper); color: var(--white);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
.btn--small { min-height: 44px; padding: .5em 1.1em; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .75); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper); border-color: var(--paper); }
.btn--block { width: 100%; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ───── Oznaka primera ───── */
.demo-bar {
  margin: 0; padding: .45em 16px;
  background: var(--copper-dark); color: var(--white);
  font-size: .85rem; text-align: center;
}

/* ───── Glava ───── */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(29, 36, 40, .96); color: var(--white);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; font-size: 1.05rem; letter-spacing: .06em; }
.logo strong { font-weight: 800; }
.logo__mark { width: 32px; height: 32px; color: var(--copper-light); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { text-decoration: none; font-weight: 500; }
.nav__link:hover { color: var(--copper-light); }

/* ───── Uvod ───── */
.hero { position: relative; display: grid; min-height: min(88vh, 760px); color: var(--white); background: var(--ink); overflow: hidden; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 26, 29, .92) 0%, rgba(20, 26, 29, .78) 45%, rgba(20, 26, 29, .25) 100%);
}
.hero__inner { position: relative; z-index: 1; align-self: center; padding-block: 72px; }
.hero h1 { max-width: 12ch; }
.hero__lead { max-width: 34rem; font-size: 1.2rem; color: #e7e3dc; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 0; list-style: none; color: #d5d0c8; font-size: .95rem; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--copper-light); border-bottom: 2px solid var(--copper-light); transform: rotate(-45deg); }
.facts strong { color: var(--white); }

/* ───── Sekcije ───── */
.section { padding-block: clamp(64px, 10vw, 112px); }
[id] { scroll-margin-top: 72px; } /* da pripeta glava ne prekrije naslova */
.section__head { max-width: 40rem; margin-bottom: 40px; }
.section__head p:last-child { color: var(--muted); }
.section__head--works { margin-top: clamp(64px, 9vw, 104px); }

.services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  margin: 0; padding: 0; list-style: none;
  background: var(--line); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service { padding: 28px 24px 24px; background: var(--white); }
.service__num { display: block; margin-bottom: 18px; font-size: .85rem; font-weight: 800; color: var(--copper); letter-spacing: .1em; }
.service p { margin: 0; color: var(--muted); }

.works { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.work { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.work--wide { grid-row: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.work--wide img { aspect-ratio: auto; min-height: 100%; }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 16px; color: #e7e3dc; font-size: .9rem;
  background: linear-gradient(transparent, rgba(20, 26, 29, .88));
}
.work figcaption strong { display: block; color: var(--white); font-size: 1.1rem; }

/* ───── Kontakt ───── */
.section--dark { background: var(--ink); color: var(--white); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info > p { color: #d5d0c8; }
.contact__phone { display: inline-block; margin: 8px 0 28px; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; text-decoration: none; color: var(--copper-light); }
.contact__phone:hover { text-decoration: underline; }
.contact__list { margin: 0; }
.contact__list div { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.contact__list dt { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b9b3aa; }
.contact__list dd { margin: 2px 0 0; overflow-wrap: anywhere; }

.form { padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.form__demo { padding: .7em .9em; border-left: 3px solid var(--copper); background: #f8ece5; font-size: .9rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.label { display: block; margin-bottom: 16px; }
.label > span { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.field {
  width: 100%; min-height: 50px; padding: .7em .8em;
  border: 1.5px solid #b8b0a4; border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: inherit;
}
.field:focus { outline: 3px solid rgba(181, 88, 47, .35); border-color: var(--copper); }
.field--area { min-height: 120px; resize: vertical; }
.form__privacy { color: var(--muted); font-size: .85rem; }
.form__status { margin: 14px 0 0; font-weight: 600; }

.reviews { margin-top: clamp(64px, 9vw, 96px); }
.reviews__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 1.5rem; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; padding: 24px; border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); background: var(--ink-2); }
.review blockquote { margin: 0 0 14px; font-size: 1.05rem; }
.review figcaption { color: #b9b3aa; font-size: .9rem; }

/* ───── Noga ───── */
.footer { padding: 48px 0 24px; background: #141a1d; color: #c9c4bc; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer__logo { margin-bottom: .3em; color: var(--white); font-weight: 800; letter-spacing: .08em; }
.footer__legal p { margin-bottom: .4em; overflow-wrap: anywhere; }
.tag--dark { color: var(--copper-light); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bottom p { margin: 0; }

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

/* ───── Nevsiljivo razkritje ob drsenju ───── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ───── Tablica ───── */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
}

/* ───── Telefon ───── */
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .nav__links { display: none; } /* klic in povpraševanje sta v pripeti vrstici spodaj */
  .nav { min-height: 60px; }
  .logo { font-size: .95rem; }
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(20, 26, 29, .55) 0%, rgba(20, 26, 29, .9) 60%); }
  .hero__inner { padding-block: 56px 48px; }
  .hero__actions .btn { width: 100%; }
  .facts { flex-direction: column; margin-top: 28px; }
  .services { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .work--wide { grid-row: auto; }
  .work--wide img { aspect-ratio: 4 / 3; }
  .row { grid-template-columns: 1fr; }
  .callbar {
    display: grid; grid-template-columns: 1.3fr 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: rgba(29, 36, 40, .97); box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
  }
  .callbar .btn { min-height: 56px; padding-inline: .6em; font-size: 1.05rem; }
}
