/* ==== Global ==== */
html, body {
  font-family: 'Inter', system-ui, sans-serif;
  scroll-behavior: smooth;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  min-height: 200vh;
  overflow-x: hidden;
  background-color: #e2edee; /* satu kali saja */
}

/* ==== HEADER ==== */
#mainHeader {
  background-color: transparent;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll dan hover */
#mainHeader.scrolled {
  background-color: white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

#mainHeader:hover {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Container */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigasi Link */

nav.nav-links a {
  position: relative;
  text-decoration: none;
}

nav.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: linear-gradient(to right,#6b0b03, #25221e);
  transition: width 0.3s ease;
}

nav.nav-links a:hover::after {
  width: 100%;
}

/* === Underline untuk halaman aktif === */
nav.nav-links a.active::after {
  width: 100%;
}


/* Desktop only */
@media (min-width: 768px) {
  nav.nav-links {
    display: flex !important;
    gap: 1.5rem;
  }
}

/* ==== Logo Default (Putih) ==== */
.logo {
  width: 250px;
  height: auto;
  transition: filter 0.3s ease, opacity 0.3s ease;
  filter: brightness(0) invert(1); /* Logo putih */
}

/* Logo kembali normal saat scroll dan hover */
#mainHeader.scrolled .logo,
#mainHeader:hover .logo,
.logo:hover {
  filter: none; /* Kembali ke logo asli */
}

/* Tombol Toggle Mobile (Putih default) */
#menuToggle svg {
  color: white;
  transition: color 0.3s ease;
}

/* ==== Default nav (putih sebelum scroll) ==== */
#mainHeader:not(.scrolled) nav.nav-links a {
  color: white;
  transition: color 0.3s ease;
}

/* Hover efek saat belum scroll: putih → merah tua / biru terang */
#mainHeader:not(.scrolled) nav.nav-links a:hover {
  color: #950417; /* Bisa diganti Tailwind blue-300: #93c5fd */
}

/* ==== Saat scroll atau hover header: nav hitam ==== */
#mainHeader.scrolled nav.nav-links a,
#mainHeader:hover nav.nav-links a,
#mainHeader.scrolled #menuToggle svg,
#mainHeader:hover #menuToggle svg {
  color: #1f2937; /* Tailwind gray-800 */
}


/* Hover efek setelah scroll: jadi biru */
#mainHeader.scrolled nav.nav-links a:hover,
#mainHeader:hover nav.nav-links a:hover {
  color: #950417; /* Tailwind blue-600 */
}

/* Responsive header fix untuk mobile */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1rem; /* kecilin padding */
  }

  .logo {
    width: 150px; /* kecilin logo biar muat */
  }

  /* Pastikan toggle menu tetap di kanan */
  #menuToggle {
    margin-left: auto;
  }

  /* Sembunyikan nav-links di mobile (diganti mobile menu) */
  nav.nav-links {
    display: none !important;
  }
}


/* === DROPDOWN PRODUK DESKTOP === */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 200px;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #1f2937;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #f3f4f6;
  color: #950417;
}

/* Tampilkan dropdown desktop saat hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* === HAMBURGER BUTTON === */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle:focus {
  outline: none;
}

.menu-icon {
  width: 24px;
  height: 24px;
  stroke: #333;
  transition: stroke 0.2s ease-in-out;
}

.menu-toggle:hover .menu-icon {
  stroke: #751006;
}

/* Sembunyikan tombol hamburger di layar besar */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none; /* default hidden */
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 8px 16px;
}

.mobile-menu.active {
  display: block; /* muncul saat ada class active */
}

/* Link style */
.mobile-link {
  display: block;
  padding: 8px 0;
  color: #4a4a4a;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.mobile-link:hover {
  color: #751006;
}

/* Submenu Mobile */
.mobile-dropdown-menu {
  display: none;
  padding-left: 12px;
}

.mobile-dropdown.open .mobile-dropdown-menu {
  display: block;
}

/* Pastikan mobile menu hanya berlaku di mobile */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}



/* ==== Hero Section ==== */
.hero-section {
  position: relative;
  height: 100vh;
  padding-top: 6rem;
  display: flex;
  align-items: center;
  background-image: url('../assets/tentang-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Rata kiri */
  text-align: left;
  padding-left: 5%; /* Geser sedikit dari tepi kiri */
  padding-right: 16px;
  box-sizing: border-box;
}

.hero-text-wrapper {
  color: white;
  max-width: 900px;
}

/* Judul */
.hero-title {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: left;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0; /* Hilangkan auto agar tidak center */
  line-height: 1.6;
}

.text-norgren {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 4rem;
  background: linear-gradient(120deg, #6d0303, #d32121, #6d0303);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* Tombol */
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

/* Tombol */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #000000;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.btn-hero:hover {
  background-color: #751006; /* Warna latar belakang tombol saat hover */
  color: #ffffff; /* Warna teks tombol saat hover */
  transform: translateY(-2px);
}

/* Gambar ikon */
.icon-small {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease; /* Transisi halus */
}

/* Efek hover untuk ikon (mengikuti tombol) */
.btn-hero:hover .icon-small {
  filter: invert(1); /* Ubah ikon menjadi putih saat tombol di-hover */
  transform: scale(1.1); /* Perbesar sedikit saat hover */
}



/* ==== SECTION WRAPPER ==== */
#tentang {
  background: linear-gradient(to bottom, #f3f5f6, #ffffff);
  padding: 4rem 1.5rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ==== CONTAINER ==== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==== SECTION TITLE ==== */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(to right, #6b0b03, #25221e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==== CARD ==== */
.profil-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profil-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, #6b0b03, #25221e);
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.profil-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ==== TEKS ==== */
.profil-teks h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #6b0b03;
  margin-bottom: 1rem;
}

.profil-teks p {
  color: #222;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

/* ==== GAMBAR ==== */
.profil-gambar img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profil-gambar img:hover {
  transform: scale(1.02);
}

/* ==== RESPONSIVE ==== */
@media (min-width: 768px) {
  .profil-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2.5rem 3rem;
  }
}



/* ==== WRAPPER ==== */
.visi-misi-section {
  background: linear-gradient(to bottom, #ffffff, #e2edee);
  padding: 4rem 1.5rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ==== CONTAINER ==== */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ==== TITLE ==== */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(to right, #6b0b03, #25221e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==== GRID ==== */
.visi-misi-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .visi-misi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==== BOX ==== */
.visi-box,
.misi-box {
  position: relative;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1.8rem 1.5rem 1.8rem 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visi-box::before,
.misi-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, #6b0b03, #25221e);
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.visi-box:hover,
.misi-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ==== JUDUL BOX ==== */
.visi-box h3,
.misi-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #6b0b03;
  margin-bottom: 1rem;
}

/* ==== TEKS ==== */
.visi-box p,
.misi-box ul {
  color: #222;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

/* ==== LIST ==== */
.misi-box ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}

.misi-box ul li {
  margin-bottom: 0.75rem;
}




/* ==== Section Keunggulan ==== */
.section-keunggulan {
  background-color: transparent !important;
  padding: 3rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: #111827;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card Styling */
.card {
  position: relative;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* penting agar border tidak keluar */
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 8px;
  width: 100%;
  background: linear-gradient(to bottom, #6b0b03, #25221e); /* Biru gradasi */
}


.card-icon {
  width: 3rem;
  margin: 0 auto 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.card-text {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.5;
}



/* ==== CTA Section ==== */
.section-cta {
  background: linear-gradient(to right, #6b0b03, #25221e);
  padding: 2.5rem 1rem;
  color: #ede5e5;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-subtitle {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.cta-button {
  background-color: white;
  color: #080808;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 9999px; /* rounded-full */
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #6b0b03; /* Tailwind's gray-200 */
  color: #f8f8fa;
}

/* ==== Footer ==== */
.footer-section {
  background-color: transparent !important;
  color: #050505;
  padding: 3rem 1.5rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* ... lainnya tetap sama */


.footer-column {
  flex: 1 1 300px;
}

.footer-logo {
  width: 200px;
  margin-bottom: 1rem;
}

.footer-cert {
  width: 80px;
  margin-bottom: 1rem;
}

.footer-desc {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000509;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.social-icons {
  display: flex;
  justify-content: flex-start; /* bisa diubah ke center atau flex-end jika ingin ditengah atau kanan */
  align-items: center;
  margin-top: 1rem;
}

.social-icons img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.tokopedia-icon {
  width: 40px;
  height: 40px;
  object-fit: contain; /* menjaga rasio asli tanpa distorsi */
}

.social-icons img:hover {
  transform: scale(1.1);
}

.contact-info {
  display: inline-flex;
  align-items: left;
  gap: 8px;
  margin-bottom: 6px;
}

.inline-icon {
  width: 20px;
  height: 20px;
}


.subscribe-form {
  display: flex;
  flex-direction: column;
  max-width: 250px;
}

.subscribe-form input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.subscribe-form button {
  background: linear-gradient(to right,  #6b0b03, #f9f8f8, #6b0b03);
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.subscribe-form button:hover {
  background: linear-gradient(to right, #6b0b03, #25221e);
  color: rgb(255, 255, 255);
}

/* ==== Default sembunyikan dengan opacity ==== */
#scrollTopBtn,
#floatingChat,
#floatingChatIcon {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none; /* Tidak bisa diklik saat hidden */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Saat muncul */
#scrollTopBtn.show,
#floatingChat.show,
#floatingChatIcon.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tombol Scroll */
#scrollTopBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6b0b03, #25221e);
  color: white;
  font-size: 1.25rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  animation: float 2.5s ease-in-out infinite;
}

/* Ikon Desktop */
.floating-chat {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9999;
  width: 220px;
  max-width: 90vw;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.floating-chat:hover {
  transform: scale(1.05);
}

/* Mobile */
.floating-chat-container {
  display: none;
}
@media (max-width: 768px) {
  .floating-chat {
    display: none;
  }
  .floating-chat-container {
    display: block;
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    animation: bounce 2s infinite;
  }
  .floating-chat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* Animasi */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}




.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #000a0f;
}

.footer-bottom hr {
  border: none;
  border-top: 1px solid #000; /* Ubah warna garis jadi hitam */
  margin-bottom: 1rem;
}
