:root {
  --bg: #ffffff;
  --muted: #6b7280;
  --accent: #005887;
  --accent-2: #f4a261;
  --container: 1200px;
  --radius: 10px;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: light;
}

body {
  background: var(--bg);
  color: #083D62;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Aturan global untuk semua link */
a {
  text-decoration: none; /* Hapus garis bawah dari semua link */
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex-grow: 1;
}

/* Header */
.site-header {
  background: linear-gradient(90deg, #073656 0%, #005887 50%, #073656 100%);
  border-bottom: 2px solid #1A2C43;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-weight: 700;
  color: #FBE04C;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 36px; /* Sesuaikan tinggi logo jika perlu */
}

.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0; /* Hapus padding agar ukuran pas */
  width: 40px; /* Ukuran tombol */
  height: 40px; /* Ukuran tombol */
  cursor: pointer;
  z-index: 1001; /* Pastikan di atas konten lain */
}

.hamburger-box {
  position: relative;
  display: inline-block;
  width: 24px; /* Lebar garis hamburger */
  height: 24px; /* Tinggi area hamburger */
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  position: absolute;
  width: 24px;
  height: 2px; /* Ketebalan garis */
  background-color: #004A73;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
}
.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { bottom: -8px; }

.nav-list {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: small;
}

.nav-list a {
  padding: 7px 0px;
  border-radius: 6px;
  background-color: #2766A7; /* Warna biru tua agar kontras */
  color: #fff; /* Teks putih */
  transition: background-color 0.3s ease;
  display: inline-block; /* Memastikan properti width bisa diterapkan */
  width: 90px; /* Menetapkan lebar yang sama untuk semua tombol */
  text-align: center; /* Memusatkan teks di dalam tombol */
}

.nav-list a:hover {
  background-color: #005887; /* Menggunakan warna primer untuk hover */
  color: #fff;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.6em;
  display: inline-block;
  vertical-align: middle;
  padding-left: 3px;
}

.dropdown-menu {
  /* Menggunakan opacity dan visibility untuk transisi */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 8px 0;
  margin-top: 8px;
  min-width: 160px;
  z-index: 1000;
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  width: 100%;
  color: #083D62;
  background-color: transparent;
}

/* Animasi Tombol ke 'X' */
.nav-toggle.is-open .hamburger-inner {
  transform: rotate(45deg);
  /* Warna diatur dalam media query mobile */
}
.nav-toggle.is-open .hamburger-inner::before {
  top: 0;
  transform: rotate(-90deg);
}
.nav-toggle.is-open .hamburger-inner::after {
  bottom: 0;
  transform: rotate(90deg);
}

/* Hero Slider */
.hero-slider .swiper {
  width: 100%;
  height: 480px; /* Anda bisa sesuaikan tinggi slider */
}
.hero-slider .swiper-slide {
  text-align: left;
  font-size: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: white;
}
.hero-slider .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Overlay gelap agar teks lebih terbaca */
}
.hero-slider .hero-text {
  position: relative;
  max-width: 600px;
}
.hero-slider .hero-text h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  color: #fff;
}
.hero-slider .hero-text p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
}
.hero-slider .swiper-pagination-bullet-active {
  background-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.btn.ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn.large {
  padding: 12px 20px;
  font-size: 1.05rem;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.card {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
  text-align: left;
}
.card img {
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  align-items: center;
  display: block;
  margin: 0 auto;
}
.card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--accent);
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.intro h2 {
  text-align: center;
  margin-top: 30px;
}

.lead {
  text-align: center;
  margin-top: 0px;
}

/* Product grid */
.products {
  background: linear-gradient(90deg, var(--accent) 0%, #007cb9 50%, var(--accent) 100%);
  color: #fff;
  padding: 40px 0;
  margin-top: 30px;
}
.products h2 {
  text-align: center;
  margin-top: -10px;
  margin-bottom: 30px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
  justify-content: center;
}

.products .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product,
.service {
  background: #fff;
  border-radius: 10px;
  padding: 10px; /* Padding di sekeliling seluruh konten kartu */
  text-align: center;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}
.product img {
  width: 90%; /* Gambar mengambil 90% dari lebar area konten kartu */
  margin: 0 auto; /* Memusatkan gambar secara horizontal */
  display: block; /* Penting agar margin:auto berfungsi untuk pemusatan horizontal */
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px; /* Memberi jarak atas dari tepi kartu */
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3); /* Membuat shadow lebih tebal dan sedikit lebih gelap */
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Menggunakan 1fr 1fr untuk konsistensi */
  gap: 18px;
  margin-top: 18px;
  /* Menghapus padding dan menggantinya dengan margin untuk membuat jarak */
  margin-left: 20%;
  margin-right: 20%;
  padding: 20px; /* Menambahkan padding di dalam kotak */
  border-radius: var(--radius); /* Menambahkan sudut melengkung */
  background-color: #fff; /* Warna latar belakang untuk kotak */
}

.service img {
  width: 90%; /* Gambar mengambil 90% dari lebar area konten kartu */
  margin: 0 auto; /* Memusatkan gambar secara horizontal */
  display: block; /* Penting agar margin:auto berfungsi untuk pemusatan horizontal */
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px; /* Memberi jarak atas dari tepi kartu */
  border: 8px solid #fff; /* Menambahkan border putih lebih tebal */
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3); /* Membuat shadow lebih tebal dan sedikit lebih gelap */
}

.product h4,
.service h3 {
  margin: 12px 0 8px;
  color: var(--accent);
}
.mission-list,
.services-list {
  text-align: left;
  padding-left: 20px; /* Memberi ruang untuk bullet points */
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.small-cta {
  display: inline-block;
  background: #004A73;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
  margin-bottom: 20px;
}

.small-cta:hover {
  background-color: #005887; /* Warna aksen yang sedikit lebih gelap untuk hover */
}

/* Trust Section */
.trust {
  padding-bottom: 30px;
}
.trust-list {
  list-style-position: outside; /* Pindahkan bullet ke luar blok teks */
  padding-left: 25px; /* Tambahkan padding untuk menggeser daftar ke kanan */
  text-align: left;
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  /* Menambahkan margin atas agar ada jarak dari judul */
  margin-top: 10px;
}

.trust-grid .card {
  padding: 20px;
  /* Menghapus shadow dari kartu di dalam karena sudah ada kotak pembungkus */
  box-shadow: none; 
  /* Menambahkan border tipis untuk memisahkan kartu dari latar belakang kotak */
  border: 1px solid #e5e7eb; 
  background: #DCDCDC;
}

/* Contact Page */
.contact-details {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 50px; /* Menambahkan jarak 50px antar tombol */
  flex-wrap: wrap; /* Memastikan tombol turun ke bawah pada layar kecil jika perlu */
}
.contact-details p {
  margin: 8px 0;
}
.contact-details a:not([class^="btn-"]) {
  color: var(--accent);
  font-weight: 500;
}

/* Contact Buttons (WhatsApp & Email) */
.btn-whatsapp,
.btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Memusatkan konten di dalam tombol */
  gap: 10px;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
  transition: background-color 0.2s ease;
  width: 300px; /* Menetapkan lebar yang sama */
  box-sizing: border-box;
}

.btn-whatsapp img,
.btn-email img {
  height: 24px;
  width: 24px;
}

.btn-whatsapp {
  background-color: #1DA851;
}
.btn-whatsapp:hover {
  background-color: #25D366;
}

.btn-email {
  background-color: #4b5563;
}
.btn-email:hover {
  background-color: #6b7280; /* Warna abu-abu lebih gelap saat hover */
}

/* Contact Form */
.contact-form-wrapper {
  margin-top: 50px;
  margin-bottom: 30px;
  padding: 30px;
  background-color: #AAD4FF;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.contact-form-wrapper h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--accent);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box; /* Penting untuk padding dan border */
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 88, 135, 0.2);
}

.form-actions {
  text-align: right;
}

/* Mengubah warna link di footer menjadi putih */
.foot-col a {
  color: #fff;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(90deg, var(--accent) 0%, #007cb9 50%, var(--accent) 100%);
  border-top: none;
  border-bottom: none;
  padding: 50px 0;
  text-align: center;
}
.cta-strip h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #fff;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
}

/* Menambahkan jarak atas untuk tombol di dalam cta-strip */
.cta-strip .btn.large {
  margin-top: 30px;
}

/* Footer */
.site-footer {
  margin-top: 0px;
  background: #083D62;
  border-top: 2px solid #1A2C43;
  color: #fff;
}
.footer-inner {
  display: flex;
  gap: 30px;
  padding: 28px 0;
  justify-content: center; /* Pusatkan kolom footer secara horizontal */
  text-align: center; /* Pusatkan teks di dalam setiap kolom */
}
.foot-col h4 {
  margin: 0 0 8px;
  color: #f2f9f5;
}
.foot-col p, .foot-col ul {
  margin: 0;
  color: #d8e9df;
  font-size: 0.95rem;
}
.foot-col ul {
  padding: 0; /* Hapus padding agar daftar rata tengah */
  list-style: none;
}
.foot-col a:hover {
  text-decoration: underline; /* Tambahkan garis bawah saat hover untuk feedback */
}
.footer-bottom {
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.12);
  text-align: center; /* Pusatkan teks di footer bawah */
}
.footer-bottom small {
  color: #fff;
}
.footer-bottom a {
  color: #fff;
  font-weight: 300;
}

/* Gallery Page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

/* Modal Styles */
.modal {
  display: none; /* Sembunyikan secara default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.modal.is-visible {
  display: flex; /* Gunakan flex untuk memusatkan */
}
.modal-content {
  display: block;
  max-width: 90%;
  max-height: 85%;
  animation: zoomIn 0.3s ease;
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Product Detail Page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Kolom gambar lebih kecil */
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
  margin-bottom: 30px;
}

.product-image-column img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-info-column h2 {
  margin-top: 0;
  color: var(--accent);
  text-align: left;
}

.product-info-column p {
  color: var(--muted);
  line-height: 1.6;
}

.product-info-column h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--accent);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  font-size: 0.95rem;
}
.spec-table td {
  padding: 12px;
  border: 1px solid #e5e7eb;
  color: var(--muted);
}
.spec-table tr:nth-child(odd) {
  background-color: #f9fafb;
}
.spec-table td:first-child {
  font-weight: 600;
  color: #374151;
  width: 40%;
}

.spec-list {
  list-style-type: disc;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Helper classes */
.mobile-only {
  display: none; /* Sembunyikan di desktop secara default */
}

/* Responsive */
@media (max-width:1000px){
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Menghapus margin horizontal pada tablet */
    margin-left: 0;
    margin-right: 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width:720px){
  .brand img {
    height: 36px; 
    margin-left: 10px;
  }
  .hero-slider .swiper {
    height: 400px;
  }
  .hero-slider .hero-text h1 {
    font-size: 1.6rem;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    /* Menghapus margin horizontal pada mobile */
    margin-left: 0;
    margin-right: 0;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .product-actions {
    text-align: center;
  }

  .contact-details {
    gap: 20px; /* Mengurangi jarak antar tombol pada mobile */
  }

  /* Menyamakan lebar tombol kontak pada mobile */
  .btn-whatsapp,
  .btn-email {
    width: 100%;
  }

  .mobile-only {
    display: block; /* Tampilkan kembali di mobile */
  }

  .nav-toggle {
    display: block;
    margin-right: 16px; /* Memberi jarak dari tepi kanan */
  }

  /* Mengubah warna hamburger menjadi putih pada mobile */
  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    background-color: #fff;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 44px;
    margin-right: 16px; /* Menyelaraskan menu dengan tombolnya */
    background: #073757; /* backgroung nav mobile */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    /* Properti untuk transisi halus */
    z-index: 1000; /* Pastikan menu tampil di atas elemen lain seperti slider */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-list.open {
    gap: 12px; /* Jarak vertikal antar tombol */
    min-width: 200px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list a {
    text-align: center; /* Membuat teks di dalam tombol menjadi rata tengah */
    display: block; /* Memastikan elemen <a> mengisi lebar <li> */
    width: auto; /* Mengatur ulang lebar agar mengisi kontainer */
    padding: 10px 10px;
    color: #fff;
  }

  /* Dropdown mobile adjustments */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 16px; /* Sesuaikan padding untuk transisi */
    margin-top: 0;
    background-color: transparent;
    /* Reset transisi agar tidak konflik */
    opacity: 1;
    visibility: visible;
    transform: none;
    /* Gunakan max-height untuk animasi */
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  }

  .dropdown.is-open .dropdown-menu {
    max-height: 200px; /* Atur tinggi maksimal yang cukup untuk konten */
    padding-top: 8px; /* Kembalikan padding atas saat terbuka */
  }
}

/* Product Page Specific Styles */
.product-page-section {
  background: #fff;
  color: #083D62;
  margin-top: 0px;
}

.product-page-section .featured-product-title {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0; /* Override default margin */
}

.product-page-section .product-grid {
  justify-content: center; /* Memusatkan item grid jika hanya ada satu */
  margin-bottom: 40px;
}

.product-page-section .all-products-title {
  border-top: 1px solid #e5e7eb; /* Light border for white background */
  padding-top: 40px;
  text-align: center;
  margin-top: 0;
}
.product-page-section .all-products-grid {
  margin-bottom: 0; /* Hapus margin bawah dari grid produk utama */
}

.product-page-section .product {
  background: #0074AE; /* Mengubah background kartu menjadi biru */
  color: #fff; /* Mengubah warna teks default di dalam kartu menjadi putih */
}

.product-page-section .product h4 {
  color: #fff; /* Memastikan judul kartu berwarna putih */
}

.product-page-section .product .small-cta {
  background: #fff; /* Mengubah tombol menjadi putih */
  color: var(--accent); /* Mengubah teks tombol menjadi biru */
}

.product-page-section .product .small-cta:hover {
  background-color: #e5e7eb; /* Warna hover yang sedikit lebih gelap untuk tombol */
}

/* Aturan untuk Featured Product Grid di Desktop */
@media (min-width: 721px) {
  .product-page-section .featured-product-grid {
    /* Mengatur agar grid hanya memiliki 1 kolom dengan lebar maksimal 50% */
    grid-template-columns: minmax(250px, 50%);
    justify-content: center; /* Memastikan grid itu sendiri terpusat */
  }
}

/* Wrapper for "View All Products" button on homepage */
.view-all-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Custom Separator */
.separator {
  border: 0;
  height: 1px;
  background-color: rgb(80, 106, 221);
  margin-top: 10px;
  margin-bottom: 0px;
}
