/* Dalmatia Systems – static site template (inspired by plavo-st.hr layout) */
:root{
  --bg:#0b1220;
  --card:#0f1a33;
  --card2:#101f3f;
  --text:#eaf0ff;
  --muted:#b8c4e6;
  --accent:#2aa8ff;
  --accent2:#39d98a;
  --border:rgba(255,255,255,.10);
  --shadow:0 10px 35px rgba(0,0,0,.35);
  --radius:16px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(42,168,255,.25), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(57,217,138,.20), transparent 60%),
    linear-gradient(180deg, #050914, #0b1220 45%, #070b14);
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%; height:auto; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.section{padding:48px 0}
.section-title{
  font-size:28px;
  margin:0 0 10px;
  letter-spacing:.2px;
}
.section-lead{color:var(--muted); margin:0 0 22px}

header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom:1px solid var(--border);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 210px;
}
.brand img{width:44px; height:44px; border-radius:12px; border:1px solid var(--border); background:#0a1329}
.brand .name{font-weight:800; letter-spacing:.4px; line-height:1.15}
.brand .tag{font-size:12px; color:var(--muted); margin-top:2px}

.nav{
  display:flex;
  gap:12px;
  align-items:center;
}

.nav > .item{
  position:relative;
}

.nav a.link{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 10px;
  border-radius:12px;
  color:var(--text);
  font-weight:650;
  font-size:14px;
}

.nav a.link:hover{
  background:rgba(255,255,255,.06);
}

.chev{
  width:8px; height:8px;
  border-right:2px solid rgba(234,240,255,.8);
  border-bottom:2px solid rgba(234,240,255,.8);
  transform: rotate(45deg);
  margin-top:-2px;
  opacity:.7;
}

.dropdown{
  position:absolute;
  top:44px;
  left:0;
  min-width:260px;
  padding:10px;
  border-radius:16px;
  background:rgba(15,26,51,.96);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  display:none;
}

.item:focus-within .dropdown,
.item:hover .dropdown{
  display:block;
}

.dropdown a{
  display:block;
  padding:10px 10px;
  border-radius:12px;
  color:var(--text);
  font-weight:600;
  font-size:14px;
}
.dropdown a:hover{background:rgba(255,255,255,.06)}
.dropdown .group{
  padding:8px 10px 6px;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:750;
  font-size:14px;
}
.btn.primary{
  border-color:rgba(42,168,255,.35);
  background: linear-gradient(180deg, rgba(42,168,255,.26), rgba(42,168,255,.12));
}
.btn.success{
  border-color:rgba(57,217,138,.35);
  background: linear-gradient(180deg, rgba(57,217,138,.22), rgba(57,217,138,.10));
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0)}

.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  margin:0 auto;
  background:rgba(234,240,255,.85);
  border-radius:2px;
}
.burger span + span{margin-top:4px}

.mobile{
  display:none;
  padding:10px 0 16px;
}
.mobile a{
  display:block;
  padding:10px 10px;
  border-radius:12px;
  color:var(--text);
  font-weight:700;
}
.mobile a:hover{background:rgba(255,255,255,.06)}
.mobile .sub{margin-left:10px; color:var(--muted); font-weight:650}

.hero{
  padding:56px 0 28px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}
.hero-card{
  border-radius:var(--radius);
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(15,26,51,.90), rgba(15,26,51,.70));
  box-shadow:var(--shadow);
  padding:26px;
  overflow:hidden;
  position:relative;
}
.hero-card:before{
  content:"";
  position:absolute;
  inset:-80px -120px auto auto;
  width:260px;
  height:260px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(42,168,255,.45), transparent 55%);
  filter: blur(1px);
}
.kicker{
  color:var(--muted);
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:12px;
  font-weight:800;
}
.h1{
  font-size:42px;
  line-height:1.12;
  margin:10px 0 10px;
  letter-spacing:-.3px;
}
.hero p{color:var(--muted); margin:0 0 16px; max-width:54ch}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:6px}

.hero-side{
  border-radius:var(--radius);
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(16,31,63,.86), rgba(16,31,63,.62));
  box-shadow:var(--shadow);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:hidden;
}
.badge{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
}
.dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--accent);
  margin-top:6px;
  box-shadow:0 0 0 6px rgba(42,168,255,.12);
}
.dot.green{background:var(--accent2); box-shadow:0 0 0 6px rgba(57,217,138,.12)}
.badge b{display:block}
.badge small{display:block; color:var(--muted); margin-top:2px}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  border-radius:var(--radius);
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(15,26,51,.82), rgba(15,26,51,.62));
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card .img{
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.04);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
}
.card .body{padding:16px}
.card h3{margin:0 0 8px; font-size:18px}
.card p{margin:0 0 12px; color:var(--muted)}
.card .meta{display:flex; gap:8px; flex-wrap:wrap}
.pill{
  font-size:12px;
  font-weight:800;
  color:rgba(234,240,255,.92);
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  padding:6px 10px;
  border-radius:999px;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}

.box{
  border-radius:var(--radius);
  border:1px solid var(--border);
  background: rgba(15,26,51,.78);
  padding:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.box h3{margin:0 0 10px}
.list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}
.list li{margin:6px 0}

.footer{
  padding:26px 0;
  border-top:1px solid var(--border);
  color:var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap:16px;
  align-items:start;
}
.footer a{color:var(--text)}
.social{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.note{font-size:12px; color:var(--muted); margin-top:8px}

.kv{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px 12px;
  margin:0;
  color:var(--muted);
}
.kv dt{font-weight:800; color:rgba(234,240,255,.92)}
.kv dd{margin:0}

.form{
  display:grid;
  gap:10px;
}
.input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
  outline:none;
}
textarea{min-height:130px; resize:vertical}
.input:focus, textarea:focus{border-color:rgba(42,168,255,.55)}

.toast{
  position:fixed;
  right:18px;
  bottom:18px;
  max-width: 360px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(15,26,51,.95);
  box-shadow:var(--shadow);
  display:none;
  z-index:100;
}
.toast b{display:block; margin-bottom:2px}
.toast small{color:var(--muted)}

.loader{
  position:fixed;
  inset:0;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #050914;
  transition: opacity .35s ease, visibility .35s ease;
}
.loader.hide{opacity:0; visibility:hidden}
.loader .wrap{
  width:min(520px, 86vw);
  text-align:center;
}
.loader img{
  width: min(340px, 60vw);
  margin:0 auto 14px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
}
.loader .bar{
  height:8px;
  border-radius:999px;
  overflow:hidden;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
}
.loader .bar > i{
  display:block;
  height:100%;
  width:35%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(42,168,255,.95), rgba(57,217,138,.90));
  animation: load 1.15s ease-in-out infinite;
}
@keyframes load{
  0%{transform: translateX(-120%)}
  60%{transform: translateX(220%)}
  100%{transform: translateX(220%)}
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .nav, .actions{display:none}
  .burger{display:inline-flex; align-items:center; justify-content:center}
  .mobile{display:block}
  .h1{font-size:34px}

  /* Footer: stack nicely on mobile */
  .footer-grid{grid-template-columns:1fr}
  .footer-grid > .box{max-width:none; justify-self:stretch}
  .social{justify-content:flex-start}
  /* Key/Value list: stack to avoid squish */
  .kv{grid-template-columns:1fr}
  .kv dt{margin-top:6px}

}


@media (max-width: 700px){
  /* Stronger footer fix for phones */
  .footer-grid{
    display:flex;
    flex-direction:column;
    gap:14px;
  }
  .footer-grid > *{
    width:100%;
  }
  .footer-grid > .box{
    margin-top:0;
    max-width:none;
  }

  /* Social buttons: 2-column grid, full width pills */
  .social{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:10px;
  }
  .social .pill{
    width:100%;
    justify-content:center;
    text-align:center;
  }

  /* Footer brand row: allow wrap so title doesn't collide with 'Kontakt' block */
  .footer .footer-grid > div:first-child > div:first-child{
    flex-wrap:wrap;
  }

  /* Reduce footer padding a bit on very small screens */
  .footer{padding:18px 0}
}


/* Subtle separators so sections don't visually blend */
.section + .section{
  border-top: 1px solid rgba(255,255,255,.06);
}








.hero-slider-card{
  border-radius:var(--radius);
  border:1px solid var(--border);
  background: rgba(15,26,51,.55);
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-slider{
  position:absolute;
  inset:0;
}
.hero-slider img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition: opacity 900ms ease;
}
.hero-slider img.active{opacity:1}
.hero-slider-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 80% 20%, rgba(42,168,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(11,18,32,.10), rgba(11,18,32,.35));
}



/* Hero: image on top (≈70%) + text below (≈30%) */
.hero-grid.hero-top{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}
.hero-top-media{
  min-height: min(62vh, 520px);
}
.hero-top-text{
  padding:22px;
}
.hero-top-text .h1{
  font-size:40px;
}
.hero-top-badges{
  background: linear-gradient(180deg, rgba(16,31,63,.86), rgba(16,31,63,.62));
}

/* On small screens make it a bit more compact */
@media (max-width: 980px){
  .hero-top-media{min-height: min(46vh, 380px);}
  .hero-top-text .h1{font-size:32px;}
}


/* FAQ */
.faq details{
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:12px 14px;
  margin:10px 0;
  background: rgba(15,26,51,.55);
}
.faq summary{cursor:pointer;font-weight:800}
.faq p{margin:10px 0 0;color:var(--muted)}
