:root{
  --bg:#f2f4f7;
  --panel:#ffffff;
  --card:#ffffff;
  --text:#111827;
  --muted:rgba(17,24,39,.65);
  --line:rgba(17,24,39,.14);
  --radius:16px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);

  min-height:100vh;
  display:flex;
  flex-direction:column;

  background-image:url("./home-chimneys.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

.wrap{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}

.muted{
  color:var(--muted);
}

.hidden{
  display:none;
}

/* ================= HEADER ================= */

.header{
  border-bottom:1px solid var(--line);
  background:#ffffff;
  position:relative;
  z-index:1;
}

.header-inner{
  padding:16px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.brand-logo{
  width:150px;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  border:none;
  background:transparent;
  border-radius:0;
  cursor:pointer;
}

.brand-logo img{
  max-height:150px;
  max-width:200px;
  object-fit:contain;
  display:block;
}

.header-contact{
  margin-left:auto;
  text-align:right;
  font-size:14px;
  line-height:1.5;
  color:var(--text);
}

.header-contact strong{
  font-weight:900;
}

@media (max-width: 600px){
  .header-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .header-contact{
    margin-left:0;
    text-align:left;
    width:100%;
  }
}

/* ================= NAV ROW ================= */

.nav-row{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;

  background:#e5e7eb;
  border-top:1px solid rgba(0,0,0,.08);
  border-bottom:1px solid rgba(0,0,0,.08);

  padding:18px 16px;
  border-radius:12px;
  margin-top:12px;

  position:relative;
  z-index:1;
}

.nav-chip{
  min-width:160px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  color:var(--text);
  border-radius:var(--radius);
  padding:12px 14px;
  cursor:pointer;
  font-weight:800;
  transition:transform .08s ease, background .12s ease, box-shadow .12s ease;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
}

.nav-chip:hover{
  transform:translateY(-1px);
  background:#ffffff;
  box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.nav-chip.active{
  outline:2px solid rgba(90,167,255,.55);
}

.dropdown-chip{
  cursor:default;
  display:grid;
  gap:6px;
  min-width:240px;
}

.dropdown-label{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}

.dropdown{
  height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.95);
  color:var(--text);
  padding:0 10px;
  outline:none;
}

/* ================= CONTENT ================= */

.content{
  padding:10px 0 24px;
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:calc(100vh - 220px);
  position:relative;
  z-index:1;
}

.content-area{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#f8fafc;
  padding:16px;
  flex:1;
  min-height:240px;
  box-shadow:0 8px 30px rgba(17,24,39,.06);
}

/* začetno stanje */
.content-area.intro-mode{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  min-height:calc(100vh - 220px);
}

/* klikabilno uvodno okno */
.intro-panel{
  position:relative;
  width:100%;
  min-height:calc(100vh - 260px);
  border-radius:18px;
  overflow:hidden;
  cursor:pointer;
  background-image:url("./home-chimneys.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.intro-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.22);
}

.intro-text{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
  color:white;
  font-size:42px;
  font-weight:700;
  line-height:1.2;
}

/* ================= CARDS ================= */

.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--card);
  box-shadow:0 6px 18px rgba(17,24,39,.06);
}

.card img{
  width:100%;
  height:160px;
  object-fit:cover;
  background:rgba(17,24,39,.04);
}

.card-body{
  padding:12px;
  display:grid;
  gap:8px;
}

.card-title{
  font-weight:900;
}

.card-desc{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  min-height:34px;
}

.card-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.pill{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  background:rgba(17,24,39,.03);
  padding:4px 10px;
  border-radius:999px;
}

/* ================= FOOTER ================= */

.footer{
  background:#e2e5ea;
  border-top:1px solid rgba(0,0,0,.12);
  padding:20px 0;
  margin-top:auto;
  position:relative;
  z-index:1;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.footer-title{
  font-weight:900;
}

.footer-contact{
  line-height:1.6;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px){
  .cards{
    grid-template-columns:repeat(2, 1fr);
  }

  .intro-panel{
    min-height:calc(100vh - 220px);
  }

  .intro-text{
    font-size:30px;
    padding:20px;
  }
}

@media (max-width: 600px){
  .intro-panel{
    min-height:calc(100vh - 180px);
    border-radius:12px;
  }

  .intro-text{
    font-size:22px;
    line-height:1.3;
  }
}

@media (max-width: 520px){
  .cards{
    grid-template-columns:1fr;
  }
}