/* HouseDream – predstavitvena stran. Brez zunanjih pisav ali knjižnic. */

:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #0f1f1d;
  --muted: #55615f;
  --line: #e2e8e6;
  --brand: #0f766e;
  --brand-dark: #134e4a;
  --brand-soft: #ccfbf1;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(15 31 29 / .05), 0 12px 32px -12px rgb(15 31 29 / .16);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Glava ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(246 248 247 / .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.brand b { color: var(--brand); font-weight: 800; }
.brand--small { font-size: 17px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.nav a:hover { background: #fff; color: var(--ink); }

.lang { display: inline-flex; padding: 3px; background: #e9eeec; border-radius: 999px; }
.lang button {
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  border: 0; background: transparent; color: var(--muted);
  min-width: 44px; height: 34px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }

/* ---------- Uvod ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: #92400e;
  font-size: 14px; font-weight: 600; padding: 6px 14px 6px 10px; border-radius: 999px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgb(245 158 11 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(245 158 11 / 0); } 100% { box-shadow: 0 0 0 0 rgb(245 158 11 / 0); } }

.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; margin: 20px 0 18px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgb(15 118 110 / .7); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: #c9d3d0; transform: translateY(-1px); }
.btn--block { width: 100%; }

.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 650; }

.hero__visual { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 6 / 5; background: #14524e; }
.hero__art, .hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo { z-index: 1; }

.blind { animation: blind 7s ease-in-out infinite; transform-box: fill-box; transform-origin: top; }
@keyframes blind { 0%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(.25); } }
.chip { animation: float 6s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .25)); }
.chip--b { animation-delay: -3s; }
.cam__led { animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- Sekcije ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 0; }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.eyebrow--light { color: #99f6e4; }

/* Kartice – kasneje kategorije trgovine */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 21px; font-weight: 750; margin: 22px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.card__icon svg { width: 28px; height: 28px; }
.card__icon--amber { background: var(--accent-soft); color: #b45309; }
.card__icon--slate { background: #e5e9f0; color: #334155; }
.card__icon--teal { background: var(--brand-soft); color: var(--brand); }
.card__icon--rose { background: #ffe4e6; color: #be123c; }
.badge {
  position: absolute; top: 28px; right: 28px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px;
}

/* Montaža */
.install {
  display: flex; gap: 28px; align-items: flex-start;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; border-radius: 28px; padding: 44px;
  position: relative; overflow: hidden;
}
.install::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgb(251 191 36 / .28), transparent 70%);
}
.install h2 { font-size: clamp(24px, 3vw, 32px); }
.install p:last-child { margin-top: 10px; color: #d1fae5; max-width: 40em; }
.install__icon { flex: none; width: 60px; height: 60px; border-radius: 18px; background: rgb(255 255 255 / .14); display: grid; place-items: center; }
.install__icon svg { width: 30px; height: 30px; color: #fff; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact__text { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 30em; }
.contact__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center; }
.contact__mail { display: inline-block; margin-top: 18px; font-weight: 650; font-size: 18px; color: var(--brand); text-decoration: none; word-break: break-all; }
.contact__mail:hover { text-decoration: underline; }
.contact__name { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 650; }
.contact__name span { font-weight: 400; color: var(--muted); font-size: 15px; }

/* Noga */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; }
.footer .brand { color: var(--ink); }

/* ---------- Telefon / tablica ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 32px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .topbar__inner { height: 60px; }
  .actions .btn { flex: 1 1 100%; }
  .section { padding: 56px 0; }
  .install { flex-direction: column; gap: 18px; padding: 28px 24px; border-radius: 22px; }
  .card { padding: 24px; }
  .badge { top: 24px; right: 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound img { margin: 0 auto 24px; }
.notfound h1 { font-size: 36px; font-weight: 800; }
.notfound p { color: var(--muted); margin: 8px 0 28px; }
