/* =========================
   NIAKOLL MAIN STYLE SHEET
   Poppins Font + Sticky Header + Modern Effects
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', Arial, sans-serif;
  color: #002f6c;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}
a { text-decoration: none; transition: color .25s ease; }

/* Fade */
.fade-in { opacity: 0; animation: fadeIn 1.0s ease forwards; }
@keyframes fadeIn { from {opacity:0; transform: translateY(12px);} to {opacity:1; transform:none;} }

/* Header (Sticky) */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
}
header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 10px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0));
  opacity: .35; transition: opacity .25s ease;
}
header.is-stuck::after { opacity: .6; }

.header-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
}

/* Logo */
.logo { width: 170px; height: 35px; object-fit: contain; image-rendering: crisp-edges; }

/* Navigation */
nav { display: flex; align-items: center; flex-wrap: wrap; }
nav a {
  color: #009999; font-weight: 600; margin: 0 12px;
  letter-spacing: 0.3px; transition: color .25s ease, transform .2s ease;
}
nav a:hover, nav a.active { color: #007373; transform: scale(1.05); text-decoration: underline; }

/* Hero (index) */
.hero {
  position: relative; width: 100%; height: 600px;
  background: url('images/hero.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; text-align: center; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero-overlay { position: relative; z-index: 1; max-width: 800px; padding: 0 20px; }
.hero-overlay h1 { font-weight: 600; letter-spacing: 0.5px; }
.hero-overlay p { font-weight: 300; line-height: 1.8; }
.btn {
  background: #009999; color: #fff; padding: 12px 26px; border-radius: 4px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  transition: all .35s ease; display: inline-block;
}
.btn:hover { background:#00b3b3; box-shadow: 0 0 15px rgba(0,153,153,.55); transform: translateY(-2px); }
.hero-btn { position: absolute; bottom: 0; left: 0; margin: 25px; z-index: 2; }

/* Hero image (inner pages) */
.hero-image { width: 100%; height: 400px; background-position: center; background-size: cover; background-repeat: no-repeat; position: relative; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.25); }
.hero-title {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: #fff; text-align: center; font-size: 2em; font-weight: 600; z-index: 2;
}

/* Content */
.content { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.content h1, .content h2, .content h3 { color: #009999; font-weight: 600; margin-bottom: 18px; }
.content p, .content ul { color: #333; font-weight: 400; }

/* Features (home cards) */
.features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  text-align: center; padding: 60px 20px; background: #f9f9f9;
}
.card {
  flex: 1 1 250px; max-width: 340px; padding: 24px 20px;
  background: #fff; border: 1px solid #dcdcdc; border-radius: 10px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.card img {
  display: block; width: 100px; height: 100px; object-fit: contain; margin: 0 auto 14px;
  transition: transform .35s ease;
}
.card:hover img { transform: scale(1.08); }

/* ✅ رنگ تیتر کارت‌ها به سبز تیره‌تر (#005f5f) */
.features .card h3 { color: #005f5f !important; font-weight: 600; }
/* ✅ رنگ توضیحات کارت‌ها سبز برند */
.features .card p { color: #009999 !important; font-weight: 400; }

/* Image grid (e.g. Packaging) */
.image-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 40px; }
.image-item { text-align: center; }
.image-item img {
  width: 150px; height: 150px; object-fit: cover;
  border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display: block; margin: 0 auto 8px auto;
  transition: transform .3s ease, box-shadow .3s ease;
}
.image-item img:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.image-item p { font-weight: 500; color: #009999; margin: 0; }

/* Footer */
footer {
  background:#fff; border-top: 1px solid #e8e8e8; color:#009999;
  text-align:center; padding: 22px 0 28px; margin-top: 60px;
}
.footer-contacts { max-width: 1100px; margin: 0 auto 6px; padding: 0 20px; }
.footer-contacts strong { color:#007373; }
.footer-contacts .thin { font-weight: 300; color:#006d6d; display:inline-block; }
.footer-copy { font-weight: 500; color:#009999; }

/* Responsive */
@media (max-width: 992px) {
  .hero { height: 500px; }
  .hero-image { height: 320px; }
}
@media (max-width: 768px) {
  .header-container { flex-direction: column-reverse; text-align: center; }
  .logo { width: 150px; height: auto; margin-top: 8px; }
  nav a { margin: 6px; display: inline-block; }
  .hero { height: 400px; }
  .hero-btn { margin: 15px; padding: 10px 18px; }
  .hero-image { height: 240px; }
}
