/* ========================================================== */
/* 1. GLOBAL & PENGATUR HALAMAN (SPA VISIBILITY SYSTEM)        */
/* ========================================================== */
body {
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Secara default, semua halaman disembunyikan agar tidak bocor ke halaman lain */
.page {
  display: none !important;
}

/* Hanya tampilkan halaman yang memiliki kelas aktif/show */
.page.active, 
.page.show,
#page-tentang.active,
#page-tentang.show {
  display: block !important;
}

body h1, body h2, body h3, body h4 {
  font-family: 'Plus Jakarta Sans', 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.logo, .nav-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hero Title */
.hero h1, 
.hero-title {
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-title span,
.text-highlight {
  color: #00a8ff;
  font-weight: 800;
}

/* ========================================================== */
/* 2. TATA LETAK KHUSUS HALAMAN ABOUT (2 KOLOM SEJAJAR)       */
/* ========================================================== */
#page-tentang.active,
#page-tentang.show {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#page-tentang > .about-banner {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Wadah Grid 2 Kolom untuk Logo di Kiri & Teks di Kanan */
#page-tentang .about-main-container {
  display: grid !important;
  grid-template-columns: 380px 1fr !important;
  gap: 40px !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: -60px auto 60px auto !important;
  padding: 0 20px !important;
  position: relative !important;
  z-index: 10 !important;
}

#page-tentang .arigal-card {
  width: 100% !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 40px 20px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #eaeaea !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 280px !important;
}

#page-tentang .arigal-card .arigal-logo-wrapper {
  max-width: 250px !important;
  width: 100% !important;
}

#page-tentang .about-content {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* ========================================================== */
/* 3. PARTNER GRID                                            */
/* ========================================================== */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.partner-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 8px;
}

.partner-chip img {
  max-width: 200px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ========================================================== */
/* 4. PRODUCT THUMB                                           */
/* ========================================================== */
.product-thumb {
  width: 100%;
  height: 200px; /* Sesuaikan tinggi kotak gambar, misal 200px agar lebih proporsional */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff; /* Bisa diganti #f8f9fa jika ingin agak abu-abu */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Kunci agar gambar menyesuaikan secara utuh di dalam kotak */
  padding: 10px;
  box-sizing: border-box;
}

/* ========================================================== */
/* 5. VISION & MISSION / VALUES                               */
/* ========================================================== */
.vm-grid, .values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.vm-item, .value-card {
  background: #ffffff;
  border: 1px solid rgba(225, 232, 234, 0.8);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vm-item:hover, .value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(54, 215, 231, 0.12);
}

.vm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vm-title h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f2a3f;
}

.vm-icon, .value-icon {
  width: 24px;
  height: 24px;
  stroke: #29abe2;
}

.value-icon {
  width: 56px;
  height: 56px;
  background: #EBFBFC;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.vm-item p, .value-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a6e7f;
}

/* ========================================================== */
/* 6. SERVICES GRID                                           */
/* ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(225, 232, 234, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 128, 255, 0.08);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: #f0f7ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.2rem;
  color: #0f2a3f;
  margin: 0 0 12px 0;
}

.service-card p {
  font-size: 0.9rem;
  color: #5a6e7f;
  line-height: 1.55;
  margin: 0;
}

/* ========================================================== */
/* 7. ARIGAL LOGO CARD (UMUM)                                 */
/* ========================================================== */
.arigal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.arigal-logo-wrapper {
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
}

.arigal-logo-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================================== */
/* 8. CONTACT PAGE                                            */
/* ========================================================== */
.contact-head {
  padding: 50px 24px 30px;
  text-align: center;
}

.contact-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
  color: var(--ink);
}

.contact-head p {
  color: var(--steel);
}

.contact-content-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1.3fr !important;
  gap: 28px !important;
  align-items: start !important;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 40px auto !important;
  padding: 0 24px;
  box-sizing: border-box;
}

.contact-info-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
}

.contact-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.contact-info-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
  border: 1px solid #E1E8EA;
  box-shadow: 0 4px 14px rgba(15, 42, 63, 0.04);
  box-sizing: border-box;
  margin: 0 !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card-link:hover .contact-info-card {
  transform: translateY(-4px);
  border-color: #29abe2;
  box-shadow: 0 8px 20px rgba(41, 171, 226, 0.15);
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #0f2a3f;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: #5a6e7f;
  line-height: 1.45;
  margin: 0;
}

.contact-form-wrap {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px !important;
  border: 1px solid #E1E8EA;
  box-shadow: 0 8px 24px rgba(15, 42, 63, 0.05);
  box-sizing: border-box;
}

.contact-form {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #D7E0E3;
  border-radius: 8px;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================================== */
/* 9. FOOTER & SPACING BAWAH                                  */
/* ========================================================== */
footer, 
.site-footer, 
#footer,
[class*="footer"] {
  margin-top: 0 !important;
  padding-top: 25px !important;
  padding-bottom: 25px !important;
  height: auto !important;
  min-height: 0 !important;
}

/* ========================================================== */
/* 10. RESPONSIF MOBILE (MAX 768px)                           */
/* ========================================================== */
@media (max-width: 768px) {
  #page-tentang .about-main-container {
    grid-template-columns: 1fr !important;
    margin-top: -30px !important;
    gap: 20px !important;
  }

  .services-grid,
  .vm-grid,
  .values-grid,
  .contact-content-wrapper {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-bottom: 20px !important;
  }

  .service-card,
  .vm-item,
  .value-card {
    padding: 20px 16px !important;
  }

  .arigal-card {
    padding: 24px 16px !important;
    border-radius: 14px !important;
  }

  .arigal-logo-wrapper {
    max-width: 250px !important;
  }

  footer,
  .footer,
  #footer {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    margin-top: 0 !important;
  }
}





/* ========================================================== */
/* TATA LETAK UTAMA (DESKTOP)                                 */
/* ========================================================== */
#page-tentang {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

#page-tentang > .about-banner {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Kontainer utama 2 kolom yang aman untuk desktop */
#page-tentang .about-main-container {
  display: grid !important;
  grid-template-columns: 380px 1fr !important;
  gap: 40px !important;
  align-items: center !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 30px auto 60px auto !important; /* Gunakan margin positif (misal 30px) agar posisinya turun ke bawah dengan aman tanpa ketarik ke atas */
  padding: 0 20px !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Kartu Logo di Kiri */
#page-tentang .arigal-card {
  width: 100% !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 20px 20px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #eaeaea !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 280px !important;
}

#page-tentang .arigal-card .arigal-logo-wrapper {
  max-width: 2500px !important;
  width: 500% !important;
}

/* Konten Teks di Kanan */
#page-tentang .about-content {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* ========================================================== */
/* KHUSUS RESPONSIF HP (Layar di bawah 768px saja)             */
/* ========================================================== */
@media (max-width: 768px) {
  #page-tentang .about-main-container {
    grid-template-columns: 1fr !important; /* Hanya jadi 1 kolom jika benar-benar di HP */
    margin-top: 20px !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }
}



/* ========================================================== */
/* NILAI UTAMA: 3 KOLOM SEJAJAR KE SAMPING                    */
/* ========================================================== */
.values-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  max-width: 1200px !important;
  margin: 30px auto 50px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.value-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 30px 24px !important;
  border: 1px solid rgba(225, 232, 234, 0.8) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; 
  text-align: center !important; /* <-- Kunci agar semua teks di dalam kartu rata tengah */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Memastikan judul dan paragraf benar-benar di tengah */
.value-card h3,
.value-card p {
  text-align: center !important;
  width: 100% !important;
}

/* Memastikan kotak ikon/logo berada tepat di tengah */
.value-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px auto !important;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(41, 171, 226, 0.12);
}

/* Responsif untuk HP */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 16px !important;
  }
}





/* ========================================================== */
/* PENGATURAN FOOTER (SEJAJAR & TIDAK TERLALU KE ATAS)        */
/* ========================================================== */
footer, .footer-container, .site-footer {
  width: 100% !important;
  box-sizing: border-box !important;
  
  /* Tambahkan padding atas dan bawah yang lebih longgar agar tidak terlalu ke atas */
  padding: 60px 20px 40px 20px !important; 
  
  background-color: #0b192c !important; /* Sesuaikan warna latar gelap Anda */
}

/* Memastikan grid 3 kolom di dalam footer sejajar dan rapi */
.footer-grid, .footer-content {
  display: grid !important;
  grid-template-columns: 2fr 1.5fr 1.5fr !important; /* Lebar kolom proporsional */
  gap: 40px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  align-items: start !important; /* Memastikan bagian atas kolom sejajar rata */
}

/* Mengatur agar setiap judul kolom di footer (KANTOR PUSAT, HUBUNGI KAMI) sejajar */
.footer-col h3, .footer-col h4 {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  letter-spacing: 0.5px !important;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
  .footer-grid, .footer-content {
    grid-template-columns: 1fr !important; /* Jadi 1 kolom ke bawah di HP */
    gap: 30px !important;
  }
}


.brand-title, 
.navbar-brand span {
  font-family: 'Poppins', 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-style: italic !important;
  letter-spacing: 0.5px !important;
}



/* Mengatur kotak kartu utama agar isinya berada di tengah */
.value-card {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Mengatur kotak pembungkus ikon agar posisinya di tengah */
.value-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 12px !important;
}

/* Memastikan judul dan paragraf ikut berada di tengah */
.value-card h3, 
.value-card p {
  text-align: center !important;
  width: 100% !important;
}


