/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=Instrument+Sans:wght@700&display=swap");

/* ============================================
   🔥 PERBAIKAN HORIZONTAL SCROLL DI MOBILE
   (tidak mengubah tampilan desktop)
   ============================================ */

/* Cegah halaman melebar melebihi layar */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Semua elemen tidak boleh lebih lebar dari layar */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Khusus mobile: kecilkan garis hero & judul fitur */
@media (max-width: 768px) {
  /* Garis bawah hero yang tadinya 380px */
  .hero-text .subtitle::after {
    width: 100%;
    max-width: 280px;
  }

  /* Judul fitur: izinkan turun baris, jangan dipaksa 1 baris */
  .features-title {
    flex-wrap: wrap;
    font-size: 26px;
  }

  .features-subtitle {
    flex-wrap: wrap;
    font-size: 20px;
  }

  /* Garis dekoratif jangan terlalu panjang di mobile */
  .line-top,
  .line-bottom {
    width: 50px;
  }

  /* Tombol promo jangan overflow */
  .promo-btn {
    max-width: 100%;
    padding: 12px 24px;
    font-size: 12px;
  }

  /* Hero text jangan melebihi layar */
  .hero-text {
    max-width: 90%;
    left: 5%;
    padding: 15px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text .subtitle {
    font-size: 18px;
  }
}

body {
  margin: 0;
}

.logo img {
  max-height: 30px;
  height: auto;
  width: auto;
  display: inline-block;
}

.header {
  background-color: #523179;
  padding: 20px;
  text-align: center;
  color: white;
  font-size: 28px;
  font-weight: bold;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  text-align: left;
  color: white;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-text {
  position: absolute;
  bottom: 25%;
  left: 8%;
  padding: 20px;
  max-width: 700px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-text h1 {
  margin: 0 0 10px 0;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 1px;
}

.hero-text .subtitle {
  font-family: "Baskervville", serif;
  font-size: 24px;
  margin: 0 0 15px 0;
  font-weight: normal;
}

.hero-text .subtitle strong {
  font-family: "Baskervville", serif;
  font-style: italic;
  font-weight: bold;
}

.hero-text .subtitle::after {
  content: "";
  display: block;
  width: 380px;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.8);
  margin-top: 15px;
}

/* ================= PROMO ================= */
.promo-section {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.promo-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
}

.promo-left {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.promo-right {
  flex: 1;
  min-width: 0;
}

.promo-right img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.promo-left h2 {
  font-family: "Instrument Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 15px;
}

.promo-left h2 img {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.promo-left p {
  font-family: "Baskervville", serif;
  font-size: 18px;
  color: #523179;
  margin-bottom: 25px;
  line-height: 1.6;
}

.promo-text {
  font-family: "Instrument Sans", sans-serif;
  font-size: 18px;
  color: #523179;
  line-height: 1.6;
}

.promo-text strong {
  font-weight: 700;
  color: #523179;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 32px;
  background-color: transparent;
  color: #332244;
  border: 1px solid #332244;
  text-decoration: none;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.promo-btn:hover {
  background-color: #332244;
  color: #ffffff;
}

.promo-btn:hover span {
  transform: translateX(4px);
}

.promo-btn span {
  display: inline-block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* ================= FEATURES ================= */
.features-section {
  width: 100%;
  background-color: #ffffff;
  padding: 60px 20px 100px 20px;
  box-sizing: border-box;
}

.features-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
}

.features-left {
  flex: 0 0 40%;
  min-width: 0;
  text-align: left;
  position: relative; /* acuan untuk garis dekoratif */
}

/* Baris judul dibuat flex agar teks & garis sejajar */
.features-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #332244;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Perbaikan: hanya kata "Qualities" yang italic, bukan garis */
.features-title .italic-word {
  font-family: "Baskervville", serif;
  font-style: italic;
  font-weight: normal;
  text-transform: capitalize;
}

.features-subtitle {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #332244;
  margin: 5px 0 0 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Garis Dekoratif */
.line-deco {
  display: inline-block;
  height: 1.5px;
  background-color: #332244;
  flex: 0 0 auto;
}

.line-top {
  width: 100px; /* panjang garis atas */
}

.line-bottom {
  width: 100px; /* panjang garis bawah */
}

/* Ikon Fitur */
.features-right {
  flex: 0 0 58%;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.feature-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
}

.feature-item span {
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #071d49;
  line-height: 1.3;
}

/* ============================================
   SECTION GALLERY
   ============================================ */

.gallery-section {
  width: 100%;
  background-color: #ffffff;
  padding: 60px 20px 80px 20px;
  box-sizing: border-box;
}

.gallery-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Judul Gallery */
.gallery-title {
  text-align: center;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #523179; /* Warna ungu senada */
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Bagian italic pakai Baskervville */
.gallery-title .italic-title {
  font-family: "Baskervville", serif;
  font-style: italic;
  font-weight: normal;
  text-transform: capitalize;
  font-size: 32px;
  letter-spacing: 1px;
  margin-right: 10px;
}

/* Grid 5 Kolom */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
}

/* Item Galeri */
.gallery-item {
  position: relative;
  background-color: #595959; /* Background gelap di belakang */
  padding: 8px; /* Jarak antara border terluar dengan gambar */
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent; /* Border transparan awal */
  box-sizing: border-box;
}

/* Efek Hover & Active (Border Ungu Menyala) */
.gallery-item:hover,
.gallery-item.active {
  border-color: #9b51e0; /* Warna ungu terang sesuai gambar */
  box-shadow: 0 0 15px rgba(155, 81, 224, 0.4);
}

/* Wrapper Gambar */
.gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5; /* Proporsi persegi panjang ke atas */
  overflow: hidden;
  margin-bottom: 12px;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Efek Zoom gambar saat hover */
.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.05);
}

/* Label di bawah gambar (Di dalam kotak gelap) */
.gallery-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0 5px 5px 5px;
}

.gallery-label .tile-name {
  font-family: "Instrument Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.gallery-label .tile-type {
  font-family: "Instrument Sans", sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #cccccc;
}

/* ============================================
   MODAL LIGHTBOX (Untuk Klik Tiles)
   ============================================ */

.tile-modal {
  display: none; /* Sembunyikan default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Latar gelap transparan */
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  backdrop-filter: blur(4px); /* Efek blur elegan */
}

/* Muncul saat class active ditambahkan via JS */
.tile-modal.show {
  display: flex;
}

.tile-modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.tile-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.tile-modal-close:hover {
  color: #9b51e0; /* Ungu saat dihover */
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   SECTION E-CATALOG
   ============================================ */

.catalog-section {
  width: 100%;
  background-color: #ffffff;
  padding: 40px 20px 80px 20px; /* Jarak atas-bawah */
  box-sizing: border-box;
}

/* Container Utama dengan Gradasi dan Rounded */
.catalog-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  /* Gradasi dari putih ke ungu gelap */
  background: linear-gradient(135deg, #f9f9f9 0%, #e0d5eb 30%, #523179 100%);
  border-radius: 24px; /* Sudut membulat */
  padding: 10px 50px; /* Ruang di dalam container */

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;

  /* Opsional: bayangan halus agar terlihat timbul */
  box-shadow: 0 10px 30px rgba(82, 49, 121, 0.15);
}

/* --- Kolom Kiri --- */
.catalog-left {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.catalog-title {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #523179; /* Warna ungu gelap */
  margin: 0 0 30px 0;
  line-height: 1.4;
  letter-spacing: 1px;
}

/* Bagian italic menggunakan Baskervville */
.catalog-title .italic-word {
  font-family: "Baskervville", serif;
  font-style: italic;
  font-weight: normal;
  text-transform: capitalize;
  font-size: 36px;
  letter-spacing: 1.5px;
}

/* Tombol E-Catalog */
.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 32px;
  background-color: transparent;
  color: #523179; /* Warna teks dan border */
  border: 1.5px solid #523179;
  text-decoration: none;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px; /* Kapsul */
  transition: all 0.3s ease;
}

/* Efek Hover Tombol */
.catalog-btn:hover {
  background-color: #523179;
  color: #ffffff;
}

.catalog-btn:hover span {
  transform: translateX(4px);
}

.catalog-btn span {
  display: inline-block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* --- Kolom Kanan --- */
.catalog-right {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end; /* Gambar rata kanan */
}

.catalog-right img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  /* Opsional: bayangan pada gambar buku katalog */
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}

/* ============================================
   SECTION FOOTER (ALILA - LAYOUT BARU)
   ============================================ */

.footer-section {
  width: 100%;
  background-color: #523179; /* Warna ungu ALILA */
  color: #ffffff;
  padding: 60px 20px 30px 20px;
  box-sizing: border-box;
  font-family: "Instrument Sans", sans-serif;
}

.footer-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* --- BAGIAN ATAS: INFO ALAMAT --- */
.footer-top-info {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.footer-address-col {
  flex: 0 0 50%;
  max-width: 500px;
}

.footer-contact-col {
  flex: 0 0 30%;
}

.footer-top-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #eaaa00; /* Aksen kuning emas */
  margin: 0 0 15px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mt-20 {
  margin-top: 30px !important;
}

.footer-top-info p {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
}

/* Link Alamat (Maps) & WhatsApp */
.map-link {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
  display: block;
}

.map-link:hover {
  color: #eaaa00 !important;
}

.map-link:hover p {
  color: #eaaa00 !important;
}

/* Sosial Media Link */
.social-media-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.social-media-link i {
  font-size: 20px;
}

.social-media-link a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.social-media-link a:hover {
  color: #eaaa00;
}

/* Garis Pemisah Putih */
.footer-divider {
  border: none;
  border-top: 2px solid #ffffff;
  margin: 0 0 30px 0;
  width: 100%;
}

/* --- BAGIAN BAWAH: SERTIFIKASI --- */
.footer-certifications {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.cert-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
}

/* --- BARIS COPYRIGHT & LEGAL --- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

.footer-copyright {
  font-size: 11px;
  color: #b0a0c0; /* Abu-abu keunguan agar kontras */
  margin: 0;
}

.footer-legal {
  font-size: 11px;
  color: #b0a0c0;
}

.footer-legal a {
  color: #b0a0c0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ============================================
   RESPONSIVE (MOBILE / TABLET)
   ============================================ */
@media (max-width: 768px) {
  .footer-top-info {
    flex-direction: column;
    gap: 40px;
  }

  .footer-address-col,
  .footer-contact-col {
    flex: 1;
    max-width: 100%;
  }

  .footer-certifications {
    gap: 20px;
  }

  .cert-img {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-top: 20px;
  }
}
/* ============================================
   RESPONSIVE (TAMPILAN MOBILE & TABLET)
   ============================================ */

@media (max-width: 768px) {
  /* --- HERO --- */
  .hero-text {
    max-width: 90%;
    left: 5%;
    padding: 15px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-text .subtitle {
    font-size: 18px;
  }
  .hero-text .subtitle::after {
    width: 100%;
    max-width: 280px;
  }

  /* --- PROMO --- */
  .promo-container {
    flex-direction: column;
    gap: 30px;
  }
  .promo-btn {
    max-width: 100%;
    padding: 12px 24px;
    font-size: 12px;
  }

  /* --- FEATURES --- */
  .features-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .features-left,
  .features-right {
    flex: unset;
    width: 100%;
  }
  .features-title {
    flex-wrap: wrap;
    font-size: 26px;
  }
  .features-subtitle {
    flex-wrap: wrap;
    font-size: 20px;
  }
  .line-top,
  .line-bottom {
    width: 50px;
  }

  /* Perbaikan grid fitur */
  .features-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px 15px;
    width: 100%;
  }
  .feature-item {
    flex: 0 0 calc(33.333% - 15px); /* 3 Kolom */
    min-width: 0;
    max-width: 100%;
  }
  .feature-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }
  .feature-item span {
    font-size: 11px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* --- GALLERY --- */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .gallery-title {
    font-size: 20px;
  }
  .gallery-title .italic-title {
    font-size: 26px;
  }

  /* --- CATALOG --- */
  .catalog-container {
    flex-direction: column;
    padding: 30px 20px; /* Padding mobile disesuaikan agar tidak terlalu besar */
    gap: 30px;
    border-radius: 16px;
    background: linear-gradient(160deg, #f9f9f9 0%, #e0d5eb 40%, #523179 100%);
  }
  .catalog-left {
    text-align: center;
  }
  .catalog-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .catalog-title .italic-word {
    font-size: 28px;
  }
  .catalog-right {
    justify-content: center;
    width: 100%;
  }
  .catalog-right img {
    max-width: 100%;
  }

  /* --- FOOTER --- */
  .footer-top {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 30px;
  }
  .footer-brand {
    flex: 1;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    text-align: center;
  }
  .link-group {
    align-items: center;
    min-width: 120px;
  }
  .footer-newsletter {
    flex: 1;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .input-group {
    width: 100%;
    max-width: 350px;
  }
  .btn-submit {
    width: 100%;
    max-width: 350px;
  }
  .social-icons {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-top: 20px;
  }
}

/* 🔥 Tambahan KHUSUS untuk HP kecil (≤480px) */
@media (max-width: 480px) {
  .feature-item {
    flex: 0 0 calc(50% - 15px); /* Ubah jadi 2 kolom agar tidak sesak */
  }
}

.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #453213; /* warna background */
  color: #c69671; /* warna ikon */
  font-size: 22px; /* ukuran ikon */
  text-decoration: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
}

.floating-btn:hover {
  background-color: #5a4126;
  color: #fff;
  transform: scale(1.1);
}
