/* =========================
   RESET + SYSTEM
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --primary:#0c4ca3;
  --accent:#00d4ff;
  --bg:#f8fafc;
  --text:#1a1a1a;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  padding-top:80px; /* navbar offset */
}

/* =========================
   LAYOUT
========================= */
.container{
  max-width:1200px;
  margin:auto;
  padding:0 16px;
}

.section{
  padding:80px 0;
}

.section-title{
  text-align:center;
  font-size:2rem;
  margin-bottom:40px;
  color:var(--primary);
}

/* =========================
   🔥 NAVBAR ULTRA
========================= */
.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;

  padding:18px 0;
  background:transparent;

  transition:all 0.3s ease;
}

/* biały tekst na hero */
.logo-text,
.nav-menu a{
  color:#fff;
  transition:0.3s;
}

/* po scrollu */
.header.scrolled{
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(10px);
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
  padding:10px 0;
}

.header.scrolled .logo-text,
.header.scrolled .nav-menu a{
  color:#1a1a1a;
}

.logo-text{
  font-weight:700;
}

.logo-text span{
  color:var(--accent);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.nav-menu{
  display:flex;
  gap:20px;
  list-style:none;
}

.nav-menu a{
  text-decoration:none;
  font-weight:600;
}

.menu-toggle{
  display:none;
  font-size:1.8rem;
  background:none;
  border:none;
  color:#fff;
}

/* =========================
   HERO
========================= */
.hero{
  min-height:100vh;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('img/hero.webp') center/cover no-repeat;

  display:flex;
  align-items:center;
  justify-content:center;
  padding:100px 15px;
}

.hero-content{
  max-width:420px;
  width:100%;
  padding:25px;
  border-radius:12px;
  text-align:center;

  background:rgba(0,0,0,0.4);
  box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.hero h1{
  color:#fff;
  font-size:1.9rem;
  font-weight:700;
  margin-bottom:10px;
}

.hero-subtitle{
  color:#eee;
  margin-bottom:15px;
}

.hero-logo{
  max-width:250px;
  margin-bottom:15px;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-block;
  padding:12px 20px;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  transition:0.3s;
}

.btn.primary{
  background:linear-gradient(135deg,#0c4ca3,#00d4ff);
  color:#fff;
}

.btn.secondary{
  border: 10px;
  display: inline-block;
  border:2px solid var(--primary);
  color:var(--primary);
}

/* =========================
   STATS
========================= */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  text-align:center;
}

.stats-grid strong{
  font-size:1.8rem;
  color:var(--primary);
}

.stats-grid span{
  color:#666;
}

/* =========================
   🔥 SYSTEM OBRAZÓW
========================= */
.img-box{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:12px;
  background:#eee;
}

.img-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 0.4s ease;
}

.img-box:hover img{
  transform:scale(1.05);
}

/* =========================
   ABOUT
========================= */
.about-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.about-image{
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:16px;
}

.about-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
}

.about-text p{
  margin-bottom:10px;
  line-height:1.6;
}

/* =========================
   GRID
========================= */
.services-grid,
.portfolio-grid,
.reports-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.service-card,
.report-card{
  background:#fff;
  padding:20px;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
  text-align:center;
}

/* =========================
   PORTFOLIO
========================= */
.portfolio-item figcaption{
  margin-top:8px;
  font-size:0.9rem;
  color:#555;
  text-align:center;
}

/* =========================
   CALCULATOR
========================= */
.calculator{
  background:#f5f7fa;
}

.calc-box{
  max-width:420px;
  margin:auto;
  background:#fff;
  padding:25px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.calc-box input,
.calc-box select{
  width:100%;
  padding:12px;
  margin-top:10px;
  border-radius:8px;
  border:1px solid #ddd;
}

.calc-box button{
  width:100%;
  margin-top:15px;
}

/* =========================
   FORM
========================= */
.form{
  max-width:420px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-bottom:160px;
}

.form input,
.form textarea{
  padding:12px;
  border-radius:8px;
  border:1px solid #ddd;
}

.form textarea{
  min-height:100px;
}

/* =========================
   CTA + WHATSAPP
========================= */
.sticky-cta{
  position:fixed;
  bottom:110px;
  left:15px;
  z-index:999;
}

.sticky-cta a{
  background:var(--primary);
  color:#fff;
  padding:12px 16px;
  border-radius:10px;
  text-decoration:none;
}

.whatsapp{
  position:fixed;
  bottom:20px;
  right:15px;
  background:#25D366;
  color:#fff;
  padding:14px 18px;
  border-radius:50px;
  text-decoration:none;
  box-shadow:0 6px 20px rgba(0,0,0,0.2);
}

/* =========================
   MOBILE
========================= */
@media(max-width:768px){

  .menu-toggle{
    display:block;
    color: #fff;
    transition: 0,3s;
  }

  .header.scrolled .menu-toggle{
    color: #1a1a1a;
  }

  .nav-menu{
    display:none;
    flex-direction:column;
    position:absolute;
    right:0;
    top:70px;
    background:#fff;
    width:220px;
    padding:15px;
  }

  .nav-menu.active{
    display:flex;
  }

  .nav-menu a{
    color:#1a1a1a;
  }

  .stats-grid{
    grid-template-columns:1fr;
  }

  .about-wrapper{
    grid-template-columns:1fr;
  }

  .hero{
    padding:80px 10px;
    background-position:65% center;
  }

  .hero-content{
    max-width:95%;
  }

  .hero h1{
    font-size:1.5rem;
  }

  .img-box{
    aspect-ratio:1/1;
  }

}