/* Grage Group — kustomisasi di atas template Insur (jangan edit insur.css langsung) */

/* --- Logo header & mobile nav, jaga aspect ratio asli (tidak di-crop) --- */
.main-menu__logo img,
.mobile-nav__content .logo-box img {
  height: 54px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* Sejajarkan logo secara vertikal dengan kotak menu navigasi di sebelahnya
   (keduanya float terpisah di tema asli sehingga tidak otomatis center-align) */
.main-menu__left {
  display: flex;
  align-items: center;
}

.main-menu__logo {
  padding: 0;
}

/* Logo putih hanya tampil saat navbar transparan di atas hero Home.
   .stricky-header (clone saat discroll) berada di luar .main-header sehingga
   tetap memakai logo warna default begitu header kembali solid/putih. */
.main-menu__logo .logo-white {
  display: none;
}

body.header-transparent .main-header .main-menu__logo .logo-default {
  display: none;
}

body.header-transparent .main-header .main-menu__logo .logo-white {
  display: inline-block;
}

/* --- Logo footer: logo putih tampil langsung di atas footer gelap --- */
.footer-widget__logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-widget__logo img {
  height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* --- Menu utama: state aktif --- */
.main-menu__list li.current > a {
  color: var(--insur-base, #fbb03b);
}

/* --- Halaman Unit & Mitra --- */
.unit-mitra-card {
  background: #fff;
  border-radius: 10px;
  padding: 35px 30px;
  text-align: center;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.07);
  height: 100%;
  transition: transform 0.3s ease;
}

.unit-mitra-card:hover {
  transform: translateY(-6px);
}

.unit-mitra-card__logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.unit-mitra-card__logo img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.unit-mitra-card__badge {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: rgba(37, 47, 89, 0.08);
  color: #252f59;
}

.unit-mitra-section-title {
  margin-bottom: 35px;
}

/* --- Halaman Tentang Kami: judul section Visi & Misi harus putih
   (section .why-choose-one berlatar gelap, judul default temanya hitam) --- */
.visi-misi-section .section-sub-title,
.visi-misi-section .section-title__title {
  color: #fff;
}

/* --- Kartu unit usaha modern (khusus section "Unit Usaha Kami" di Home) --- */
.unit-modern-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(160deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(22, 36, 61, 0.07);
  border-radius: 22px;
  padding: 34px 28px 28px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(22, 36, 61, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.unit-modern-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--insur-base, #015fc9), #5ec9f0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.unit-modern-card:hover {
  transform: translateY(-10px);
  border-color: rgba(1, 95, 201, 0.25);
  box-shadow: 0 26px 55px rgba(22, 36, 61, 0.12);
  text-decoration: none;
}

.unit-modern-card:hover:before {
  transform: scaleX(1);
}

.unit-modern-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.unit-modern-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--insur-extra, #f2f5f9);
  transition: background 0.35s ease, transform 0.35s ease;
}

.unit-modern-card:hover .unit-modern-card__logo {
  background: #fff;
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(22, 36, 61, 0.1);
}

.unit-modern-card__logo img {
  max-width: 70%;
  max-height: 70%;
  width: auto;
  object-fit: contain;
}

.unit-modern-card__logo .icon-insurance {
  font-size: 26px;
  color: var(--insur-base, #015fc9);
}

.unit-modern-card__badge {
  display: inline-block;
  margin-top: 4px;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(1, 95, 201, 0.08);
  color: var(--insur-base, #015fc9);
  white-space: nowrap;
}

.unit-modern-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--insur-black, #16243d);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.unit-modern-card:hover .unit-modern-card__title {
  color: var(--insur-base, #015fc9);
}

.unit-modern-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--insur-gray, #696e77);
  margin-bottom: 22px;
  flex-grow: 1;
}

.unit-modern-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--insur-black, #16243d);
  margin-top: auto;
}

.unit-modern-card__link i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.unit-modern-card:hover .unit-modern-card__link {
  color: var(--insur-base, #015fc9);
}

.unit-modern-card:hover .unit-modern-card__link i {
  transform: translateX(5px);
}

/* --- Halaman Galeri --- */
.gallery-grid-item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
}

.gallery-grid-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid-item:hover img {
  transform: scale(1.08);
}

/* --- Halaman Kebijakan Privasi: tipografi konten panjang --- */
.privacy-content h4 {
  margin-top: 30px;
  margin-bottom: 12px;
}

.privacy-content p,
.privacy-content li {
  color: #6f7172;
  line-height: 1.9;
}

.privacy-content ul {
  padding-left: 20px;
}

/* --- Form kontak: pesan hasil AJAX --- */
.form-result {
  margin-top: 15px;
}

.form-result .alert-success {
  background: #e6f6ec;
  color: #1e7e42;
  padding: 14px 18px;
  border-radius: 8px;
}

.form-result .alert-danger {
  background: #fdecec;
  color: #b02a2a;
  padding: 14px 18px;
  border-radius: 8px;
}

/* Honeypot anti-spam: sembunyikan dari pengguna, tetap terjangkau bot sederhana */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Hero slider Home: gambar penuh tanpa teks (dikelola via CMS), setinggi layar --- */
.main-slider .swiper-slide {
  height: 100vh;
  min-height: 480px;
}

.main-slider .image-layer {
  width: 100%;
}

.main-slider .image-layer:before {
  display: none;
}

/* --- Header transparan di Home (kembali normal/solid saat discroll lewat .stricky-header bawaan tema) --- */
body.header-transparent .main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 92;
  background: transparent;
}

body.header-transparent .main-header .main-header__top {
  background: rgba(0, 0, 0, 0.18);
}

body.header-transparent .main-header .main-menu__wrapper {
  background: transparent;
}

body.header-transparent .main-header .main-menu__main-menu-box {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body.header-transparent .main-header .main-menu__list > li > a {
  color: #fff;
}

body.header-transparent .main-header .main-menu__list > li.current > a,
body.header-transparent .main-header .main-menu__list > li:hover > a {
  color: #fff;
}

body.header-transparent .main-header .main-menu__search {
  color: #fff;
}

body.header-transparent .main-header .main-menu__call-icon {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

body.header-transparent .main-header .main-menu__call-content a,
body.header-transparent .main-header .main-menu__call-content p {
  color: #fff;
}

body.header-transparent .main-header .mobile-nav__toggler {
  color: #fff;
}

/* Gradasi gelap tipis di puncak hero agar teks navbar tetap terbaca di atas foto apa pun (terang/gelap) */
body.header-transparent .main-slider:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 260px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 5;
  pointer-events: none;
}
