/* =========================
   STYLE.CSS - FINAL VERSION
   CV Multi Sena Sarana Fire Protection
   ========================= */

/* ==== GENERAL ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

/* ==== HEADER ==== */
header {
  background: linear-gradient(135deg, #c62828, #8e0000);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

header p {
  font-size: 1rem;
  font-weight: 400;
}

/* ==== NAVBAR ==== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  color: #fff;
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff5252;
  font-weight: 600;
}

/* ==== HERO ==== */
.hero {
  background: url('img/fire-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero h2,
.hero p,
.hero a {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #ff5252;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #ff1f1f;
}

/* ==== SECTION TITLES ==== */
section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #b71c1c;
  font-size: 1.8rem;
}

/* ==== PRODUK ==== */
/* ==== PRODUK ==== */
#produk {
  padding: 4rem 2rem;
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Kotak produk bisa diklik penuh */
.product-card {
  display: block;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1.5rem;
  text-decoration: none !important; /* paksa hilang underline */
  color: inherit !important;        /* paksa hilang warna biru */
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-card h3 {
  color: #b71c1c;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.product-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}


/* ==== LAYANAN ==== */
#layanan {
  background: #f8f8f8;
  padding: 4rem 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: #b71c1c;
  margin-bottom: 1rem;
}

/* ==== KEUNGGULAN ==== */
.advantages {
  padding: 3rem 2rem;
  text-align: center;
  background: #fff;
}

.advantages ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.advantages li {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.advantages li::before {
  content: "✔";
  color: #b71c1c;
  position: absolute;
  left: 0;
}

/* ==== CTA ==== */
.cta {
  background: linear-gradient(135deg, #b71c1c, #e53935);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.cta .btn-contact {
  display: inline-block;
  background: #fff;
  color: #b71c1c;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  margin-top: 1rem;
  text-decoration: none;
  transition: 0.3s;
}

.cta .btn-contact:hover {
  background: #ffe0e0;
}

/* ==== KONTAK ==== */
#kontak {
  padding: 4rem 2rem;
  background: #f8f8f8;
}

.kontak-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.kontak-card {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: center;
  width: 250px;
}

.kontak-card h3 {
  color: #b71c1c;
  margin-bottom: 0.5rem;
}

.kontak-card a {
  color: #222;
  text-decoration: none;
}

.form-section {
  display: flex;
  justify-content: center;
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
}

.contact-form button {
  background: #b71c1c;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #ff5252;
}

/* ==== FOOTER ==== */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .product-card img {
    height: 150px;
  }

  .contact-form {
    width: 90%;
  }
}



.map {
  text-align: center; /* Judul di tengah */
  margin: 50px 0;
}

.map h2 {
  margin-bottom: 20px;
}

.map-container {
  display: flex;
  justify-content: center; /* Peta di tengah secara horizontal */
  align-items: center;
}

.map-container iframe {
  width: 80%;
  max-width: 800px;
  height: 400px;
  border: 0;
  border-radius: 10px; /* opsional, biar tampil halus */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* opsional */
}



    /* ==== TAMBAHAN KHUSUS UNTUK ABOUT ==== */
 @media (max-width: 768px) {
  .about-container {
        flex-direction: column;
        text-align: center;
      }

  .visi-misi {
        flex-direction: column;
        gap: 2rem;
      }
    }
  
.about-container {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      padding: 4rem 2rem;
      background: #fff;
    }

.about-text {
      flex: 1 1 400px;
      max-width: 600px;
      text-align: justify;
    }

.about-text p {
      margin-bottom: 1rem;
    }

.about-image {
      flex: 1 1 350px;
      text-align: center;
    }

.about-image img {
      width: 90%;
      max-width: 400px;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      transition: transform 0.3s ease;
    }

.about-image img:hover {
      transform: scale(1.05);
    }

.sejarah, .visi-misi, .nilai, .layanan, .legalitas, .tim {
      padding: 4rem 2rem;
      background: #f8f8f8;
      margin-top: 2rem;
    }

.sejarah p, .tim p {
      max-width: 900px;
      margin: 0 auto;
      text-align: justify;
      line-height: 1.7;
    }

.visi-misi {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 3rem;
      background: #fff;
    }

.visi, .misi {
      flex: 1 1 300px;
      background: #fafafa;
      border-radius: 10px;
      padding: 2rem;
      box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    }

.misi ul {
      margin-top: 1rem;
      padding-left: 1.2rem;
    }

.misi li {
      margin-bottom: 0.6rem;
    }

.nilai ul {
      list-style: none;
      max-width: 700px;
      margin: 0 auto;
    }

.nilai li {
      background: #fff;
      border-left: 5px solid #b71c1c;
      padding: 1rem;
      margin-bottom: 1rem;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

.layanan-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

.layanan-card {
      background: #fff;
      border-radius: 10px;
      padding: 2rem 1rem;
      text-align: center;
      box-shadow: 0 3px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s;
    }

.layanan-card:hover {
      transform: translateY(-5px);
    }

.legalitas .legal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1rem;
      margin-top: 2rem;
    }

.legal-card {
      background: #fff;
      padding: 1rem;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      text-align: center;
    }

/* 🔹 Tombol WhatsApp melayang */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
  display: block;
}

/* 🔹 Popup WhatsApp */
.wa-popup {
  position: fixed;
  bottom: 90px; /* di atas tombol */
  right: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 16px 18px;
  max-width: 280px;
  display: none; /* disembunyikan default */
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  z-index: 1000;
  animation: fadeInUp 0.4s ease;
}

.wa-popup.show {
  display: flex;
}

.wa-popup p {
  font-size: 15px;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

/* 🔹 Tombol di dalam popup */
.wa-popup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
}

.wa-chat-btn {
  background-color: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.wa-chat-btn:hover {
  background-color: #1EBE57;
}

/* 🔹 Tombol tutup popup */
.wa-close {
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.3s ease;
}

.wa-close:hover {
  color: #000;
}

/* 🔹 Animasi muncul popup */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Responsif */
@media (max-width: 480px) {
  .wa-popup {
    bottom: 80px;
    right: 10px;
    max-width: 240px;
    padding: 12px;
  }

  .wa-chat-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    padding: 10px;
  }

  .whatsapp-float img {
    width: 36px;
    height: 36px;
  }
}


/* ==== PAKSA HAPUS WARNA BIRU & GARIS BAWAH DARI LINK ==== */
a:-webkit-any-link {
  color: inherit !important;
  text-decoration: none !important;
}

#produk a,
#produk a:visited,
#produk a:hover,
#produk a:active {
  color: inherit !important;
  text-decoration: none !important;
}

.product-card {
  color: #222 !important; /* warna teks default */
}
