/* FILE: style.css - LENGKAP & UTUH FINAL */

/* --- 1. Global & Variabel --- */
:root {
  --warna-gelap: #1a1a1a;
  --warna-emas: #E6A825;
  --warna-putih: #FFFFFF;
  /* Font didefinisikan inline via header.php */
  /* --font-judul: 'Playfair Display', serif; */
  /* --font-isi: 'Poppins', sans-serif; */
  --warna-teks-footer: #a0a0a0;
  --warna-border-footer: #333;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  /* Terapkan font utama dari variabel (dioverride oleh inline style di header.php) */
  font-family: var(--font-isi, 'Poppins', sans-serif); /* Fallback ke Poppins */
  background-color: var(--warna-putih);
  color: #333;
  overflow-x: hidden; /* Mencegah scroll horizontal */
}
/* Class untuk mencegah scroll saat menu mobile aktif */
body.no-scroll {
  overflow: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Judul (H1-H6) akan menggunakan font judul dari variabel */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-judul, 'Playfair Display', serif); /* Fallback ke Playfair */
}

/* --- Tombol Global --- */
.cta-button {
  background-color: var(--warna-emas);
  color: var(--warna-gelap);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid var(--warna-emas);
  font-family: var(--font-isi, 'Poppins', sans-serif); /* Tambah font family */
}
.cta-button:hover {
  background-color: transparent;
  color: var(--warna-emas);
  transform: translateY(-3px);
}
.cta-button-outline {
  background-color: transparent;
  color: var(--warna-gelap);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  border: 2px solid var(--warna-emas);
  transition: all 0.3s ease;
  display: inline-block;
  font-family: var(--font-isi, 'Poppins', sans-serif); /* Tambah font family */
}
.cta-button-outline:hover {
  background-color: var(--warna-emas);
  color: var(--warna-gelap);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 168, 37, 0.3);
}

/* --- Judul Bagian Global --- */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title .pre-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--warna-emas);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  font-family: var(--font-isi, 'Poppins', sans-serif); /* Font isi */
}
.section-title h2 {
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 2.5rem;
  color: var(--warna-gelap);
  margin-bottom: 15px;
}
.section-title p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}
.section-cta-button {
  text-align: center;
  margin-top: 60px;
}

/* --- 2. Header --- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 25px 0;
  transition: background-color 0.3s ease, padding 0.3s ease;
  background-color: transparent;
}
#main-header.scrolled {
  background-color: var(--warna-gelap);
  padding: 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 40px;
  transition: height 0.3s ease;
}
#main-header.scrolled .logo img {
  height: 35px;
}
nav {
  display: block; /* Default di desktop */
}
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding-left: 0; /* Reset default padding */
  margin-bottom: 0; /* Reset default margin */
}
/* Item menu utama */
nav ul li {
  position: relative; /* Membuat submenu absolut relatif terhadap li */
}
nav ul li a {
  text-decoration: none;
  color: var(--warna-putih);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  padding-bottom: 5px;
  font-family: var(--font-isi, 'Poppins', sans-serif); /* Font isi */
  display: flex; /* Untuk ikon panah */
  align-items: center;
}
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--warna-emas);
  transition: width 0.3s ease;
}
nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}
nav ul li a.active {
  color: var(--warna-emas);
}

/* Tombol Hamburger */
#hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Harus di atas menu mobile nanti */
}
#hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--warna-putih);
  margin: 5px 0;
  transition: all 0.3s ease-in-out; /* Perhalus animasi */
  border-radius: 3px;
}

/* Animasi Hamburger ke X */
#hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
#hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* --- 3. Hero Slider (Swiper) --- */
.hero-slider, .mainSlider {
  width: 100%;
  height: 100vh;
  position: relative;
}
.swiper-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.slider-content {
  position: relative;
  z-index: 10;
  color: var(--warna-putih);
  max-width: 800px;
  padding: 20px;
}
.slider-content h1 {
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.slider-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--warna-emas) !important;
}

/* --- 5. Homepage - Bagian Tentang Kami --- */
#homepage-about {
  padding: 100px 0;
  background-color: var(--warna-putih);
}
.about-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-content {
  flex: 1;
}
.about-image {
  flex: 1;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.about-content h2 {
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 2.5rem;
  color: var(--warna-gelap);
  margin-bottom: 20px;
}
.about-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 30px;
}

/* --- Section Statistik --- */
.stats-section {
    background-color: var(--warna-gelap);
    color: var(--warna-putih);
    padding: 60px 0;
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.stat-item {
    padding: 20px;
}
.stat-icon {
    font-size: 3rem;
    color: var(--warna-emas);
    margin-bottom: 15px;
    display: block;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-judul, 'Playfair Display', serif);
}
.stat-label {
    font-size: 1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 7. Homepage - Bagian Layanan --- */
#homepage-layanan {
  padding: 100px 0;
  background-color: #f9f9f9;
}
.layanan-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.layanan-card {
  background-color: var(--warna-putih);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.layanan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.layanan-icon {
  font-size: 3rem;
  color: var(--warna-emas);
  margin-bottom: 25px;
}
.layanan-card h3 {
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 1.5rem;
  color: var(--warna-gelap);
  margin-bottom: 15px;
}
.layanan-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* --- Section Keunggulan --- */
.advantages-section {
    padding: 100px 0;
    background-color: var(--warna-putih); /* Atau #f9f9f9 */
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.advantage-card {
    background-color: #fff; /* Atau #f9f9f9 jika section putih */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    /* border: 1px solid #eee; */ /* Opsional border */
     box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Soft shadow */
}
.advantage-icon {
    font-size: 2.8rem;
    color: var(--warna-emas);
    margin-bottom: 20px;
}
.advantage-title {
    font-family: var(--font-judul, 'Playfair Display', serif);
    font-size: 1.4rem;
    color: var(--warna-gelap);
    margin-bottom: 10px;
}
.advantage-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}


/* --- 9. Homepage - Portofolio --- */
#homepage-portofolio {
  padding: 100px 0;
  background-color: var(--warna-putih);
}
/* Grid 4 kolom untuk homepage */
.portofolio-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.portofolio-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: var(--warna-putih);
  height: 350px;
}
.portofolio-card:hover {
  transform: translateY(-5px);
}
.portofolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portofolio-card:hover img {
  transform: scale(1.05);
}
.portofolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  z-index: 2;
}
.portofolio-overlay span {
  font-size: 13px;
  font-weight: 500;
  color: var(--warna-emas);
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-isi, 'Poppins', sans-serif); /* Font isi */
}
.portofolio-overlay h3 {
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 1.25rem;
  line-height: 1.3;
}
/* Style untuk grid 3 kolom di halaman produk.php */
.portofolio-wrapper.full-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* --- 11. Homepage - Promo (CTA) --- */
#homepage-promo {
  width: 100%;
}
.promo-background {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--warna-putih);
  text-align: center;
}
.promo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.promo-content {
  position: relative;
  z-index: 2;
}
.promo-content h2 {
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 2.8rem;
  margin-bottom: 20px;
}
.promo-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.promo-content .cta-button {
  background-color: var(--warna-emas);
  color: var(--warna-gelap);
  border-color: var(--warna-emas);
}
.promo-content .cta-button:hover {
  background-color: transparent;
  color: var(--warna-putih);
  border-color: var(--warna-putih);
}

/* --- 12. Footer (Kontak) --- */
#main-footer {
  padding-top: 80px;
  background-color: var(--warna-gelap);
  color: var(--warna-teks-footer);
  font-size: 15px;
}
.footer-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-widget {
  padding-right: 20px;
}
.widget-title {
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 1.5rem;
  color: var(--warna-putih);
  margin-bottom: 25px;
}
.footer-logo {
  height: 45px;
  margin-bottom: 20px;
}
.widget-about p {
  line-height: 1.7;
}
.widget-links ul {
  list-style: none;
  padding-left: 0;
}
.widget-links ul li {
  margin-bottom: 12px;
}
.widget-links ul li a {
  text-decoration: none;
  color: var(--warna-teks-footer);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.widget-links ul li a:hover {
  color: var(--warna-emas);
  padding-left: 5px;
}
.footer-contact-list {
  list-style: none;
  padding-left: 0;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}
.footer-contact-list i {
  color: var(--warna-emas);
  font-size: 1.1rem;
  margin-right: 15px;
  margin-top: 5px;
  width: 20px;
  text-align: center;
}
.footer-contact-list li span {
  flex: 1;
  line-height: 1.6;
}
/* Link WA di Footer & Kontak */
a.contact-wa-link {
    color: inherit; /* Ambil warna dari parent */
    text-decoration: none;
    transition: color 0.2s ease;
}
a.contact-wa-link:hover {
    color: #25D366; /* Warna WhatsApp */
    text-decoration: underline;
}
.footer-contact-list a.contact-wa-link {
     color: var(--warna-teks-footer); /* Warna default footer */
}
.footer-contact-list a.contact-wa-link:hover {
     color: #25D366;
}
.widget-social p {
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--warna-border-footer);
  color: var(--warna-putih);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.social-links a:hover {
  background-color: var(--warna-emas);
  color: var(--warna-gelap);
}
.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid var(--warna-border-footer);
}
.footer-bottom p {
  text-align: center;
  font-size: 14px;
  color: var(--warna-teks-footer);
}

/* --- 13. Style Halaman Internal --- */
.page-header {
  padding: 120px 0;
  padding-top: 180px;
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--warna-putih);
}
.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.page-header h1 {
  position: relative;
  z-index: 2;
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 3.5rem;
}
.page-content {
  padding: 80px 0;
  background-color: var(--warna-putih);
}
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}
.content-wrapper p {
  margin-bottom: 20px;
}
.content-wrapper h2 {
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 2rem;
  color: var(--warna-gelap);
  margin-top: 40px;
  margin-bottom: 20px;
}

/* --- 14. Style Halaman Kontak --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px; /* Dihilangkan jika tidak ada map */
}
.contact-info h2, .contact-form h2 {
  font-family: var(--font-judul, 'Playfair Display', serif); /* Font judul */
  font-size: 2rem;
  color: var(--warna-gelap);
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 30px;
}
.contact-details {
  margin-top: 30px;
}
.contact-details li i {
  font-size: 1.3rem;
}
.main-contact-form .form-group {
  margin-bottom: 20px;
}
.main-contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-family: var(--font-isi, 'Poppins', sans-serif); /* Font isi */
}
.main-contact-form label .required {
  color: #dc3545;
}
.main-contact-form input[type="text"],
.main-contact-form input[type="email"],
.main-contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: var(--font-isi, 'Poppins', sans-serif);
  font-size: 1rem;
}
.main-contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.main-contact-form button {
  width: 100%;
  padding: 18px;
  font-size: 1rem;
}
/* Captcha Container */
.recaptcha-container {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex; /* Coba tengahkan captcha */
    justify-content: center;
}

/* --- 15. Style Halaman Detail Portofolio --- */
.page-header .project-category {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--warna-emas);
  position: relative;
  z-index: 2;
  font-family: var(--font-isi, 'Poppins', sans-serif); /* Font isi */
}
.project-detail .content-wrapper h2 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

/* --- 16. Style Submenu Navigasi --- */
nav ul ul.sub-menu {
    display: none; /* Sembunyikan submenu secara default */
    position: absolute; /* Posisi relatif terhadap parent li */
    top: 100%; /* Muncul tepat di bawah item induk */
    left: 0;
    background-color: var(--warna-gelap); /* Background submenu */
    min-width: 200px; /* Lebar minimum submenu */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 0 0 5px 5px; /* Sudut bawah melengkung */
    padding: 10px 0; /* Padding atas/bawah */
    z-index: 100; /* Pastikan di atas konten lain */
    list-style: none; /* Hapus bullet point */
}

/* Tampilkan submenu saat item induk di-hover */
nav ul li.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}

/* Style item submenu */
nav ul ul.sub-menu li {
    /* position: relative; */ /* Hapus ini agar submenu level 2 benar */
    width: 100%;
}

nav ul ul.sub-menu li a {
    color: var(--warna-putih);
    padding: 10px 20px; /* Padding link submenu */
    display: block; /* Buat link mengisi lebar li */
    white-space: nowrap; /* Cegah teks wrap */
    font-size: 15px; /* Ukuran font submenu */
    border-bottom: 1px solid #333; /* Garis pemisah tipis */
    transition: background-color 0.2s ease, color 0.2s ease;
}
nav ul ul.sub-menu li:last-child a {
    border-bottom: none; /* Hapus border di item terakhir */
}

nav ul ul.sub-menu li a:hover {
    background-color: var(--warna-emas);
    color: var(--warna-gelap);
}
/* Hapus garis bawah aktif saat di submenu */
nav ul ul.sub-menu li a::after {
    display: none;
}

/* Style ikon panah */
nav ul li a .arrow-down {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

/* Putar panah saat submenu terbuka (opsional, perlu JS atau :hover di li) */
nav ul li.menu-item-has-children:hover > a .arrow-down {
     transform: rotate(180deg);
}

/* Atur posisi submenu level 2 (jika ada) - Pastikan parent li punya position relative */
nav ul ul.sub-menu li { position: relative; } /* Tambahkan ini agar level 2 benar */
nav ul ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%; /* Muncul di samping kanan */
    border-radius: 0 5px 5px 5px; /* Sesuaikan radius */
    margin-top: -1px; /* Naik sedikit agar menyambung */
    margin-left: 1px; /* Beri jarak sedikit */
}

/* --- 20. Style Halaman Berita --- */
.news-list-page .no-news-found { text-align: center; padding: 50px 0; font-size: 1.2rem; color: #555; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.news-card-image-link { display: block; overflow: hidden; background-color: #eee; }
.news-card-image { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.news-card:hover .news-card-image { transform: scale(1.05); }
.news-card-image-placeholder { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; background-color: #e9ecef; color: #adb5bd; font-size: 0.9rem; }
.news-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: 0.85rem; color: #777; margin-bottom: 8px; display: block; }
.news-card-title { font-family: var(--font-judul, 'Playfair Display', serif); font-size: 1.4rem; line-height: 1.4; color: var(--warna-gelap); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: calc(1.4em * 1.4 * 2); }
.news-card-title a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.news-card-title a:hover { color: var(--warna-emas); }
.news-card-excerpt { font-size: 0.95rem; line-height: 1.6; color: #555; margin-bottom: 20px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.news-card-readmore { color: var(--warna-emas); text-decoration: none; font-weight: 500; font-size: 0.9rem; align-self: flex-start; transition: color 0.2s ease; margin-top: auto; }
.news-card-readmore:hover { color: var(--warna-gelap); }
.news-detail-page .article-meta { margin-top: 10px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); position: relative; z-index: 2; }
.news-content-area img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 5px; }

/* --- 21. Style Halaman Marketing --- */
.marketing-list-page { background-color: #f9f9f9; }
.marketing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.marketing-card { background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; padding: 30px 20px; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.marketing-card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.marketing-card-image-wrapper { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto 25px; border: 4px solid var(--warna-emas); background-color: #eee; }
.marketing-card-image { width: 100%; height: 100%; object-fit: cover; }
.marketing-card-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-color: #e9ecef; color: #adb5bd; font-size: 4rem; }
.marketing-card-image-placeholder i { opacity: 0.5; }
.marketing-card-content { flex-grow: 1; display: flex; flex-direction: column; }
.marketing-card-name { font-family: var(--font-judul, 'Playfair Display', serif); font-size: 1.5rem; color: var(--warna-gelap); margin-bottom: 10px; }
.marketing-card-contact { font-size: 1rem; color: #555; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.marketing-card-contact i { color: var(--warna-emas); }
.marketing-card-whatsapp-button { background-color: #25D366; color: white; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 500; font-size: 0.9rem; display: inline-block; margin-top: auto; transition: background-color 0.2s ease; }
.marketing-card-whatsapp-button i { margin-right: 8px; }
.marketing-card-whatsapp-button:hover { background-color: #1DAE52; color: white; }

/* --- 22. Style Halaman Galeri --- */
.gallery-page { background-color: #f9f9f9; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; display: block; aspect-ratio: 16 / 9; background-color: #ddd; }
.gallery-item img, .gallery-item .video-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; text-align: center; padding: 15px; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i { font-size: 2.5rem; margin-bottom: 10px; }
.gallery-item-overlay p { font-size: 1rem; font-weight: 500; }
.video-placeholder { display: flex; align-items: center; justify-content: center; background-color: #333; }
.video-placeholder span i { font-size: 3rem; color: rgba(255,255,255,0.7); }


/* Tombol Scroll to Top */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--warna-emas);
    color: var(--warna-gelap);
    border: none;
    border-radius: 50%; /* Bulat */
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0; /* Sembunyi awal */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    display: flex; /* Untuk tengahkan ikon */
    align-items: center;
    justify-content: center;
}
#scroll-to-top.active { /* Style saat aktif/muncul */
    opacity: 1;
    visibility: visible;
}
#scroll-to-top:hover {
    background-color: var(--warna-gelap);
    color: var(--warna-emas);
}

/* =================================
X. Media Queries (Responsif)
=================================
*/
@media (max-width: 1024px) {
  /* 2 kolom di homepage */
  .portofolio-wrapper { grid-template-columns: repeat(2, 1fr); }
  /* 2 kolom di halaman produk */
  .portofolio-wrapper.full-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-wrapper { grid-template-columns: 1fr 1fr; gap: 50px; }
}
@media (max-width: 900px) {
  .about-wrapper { gap: 30px; }
  .about-content h2 { font-size: 2rem; }
  .layanan-wrapper { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } /* Keunggulan di tablet */
}

@media (max-width: 768px) {
  .section-title h2 { font-size: 2rem; }

  /* Nav Mobile (AKTIF) */
  nav {
      display: flex; flex-direction: column; justify-content: center; align-items: center;
      position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
      background-color: rgba(26, 26, 26, 0.98);
      transition: left 0.4s ease-in-out; z-index: 1000;
  }
  nav.active { left: 0; }
  nav ul { flex-direction: column; gap: 30px; text-align: center; padding-left: 0; }
  nav ul li { position: static; /* Reset position relative di mobile */ }
  nav ul li a { font-size: 1.5rem; font-weight: 500; padding-bottom: 10px; }
  nav ul li a::after { height: 2px; }
  #hamburger-btn { display: block; }

  /* Submenu di mobile */
  nav ul ul.sub-menu {
      position: static; background-color: transparent; box-shadow: none; border-radius: 0;
      padding: 10px 0 10px 30px; min-width: unset;
      /* display: block; */ /* Hapus display block */
      max-height: 0; /* Sembunyikan default */
      overflow: hidden;
      transition: max-height 0.3s ease-out;
      margin-top: 0; margin-bottom: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  nav ul li.menu-item-has-children.open > ul.sub-menu {
      max-height: 500px; /* Tampilkan saat open */
  }

   nav ul ul.sub-menu li a {
      padding: 8px 15px; font-size: 1rem; color: #ccc; border-bottom: none;
  }
   nav ul ul.sub-menu li a:hover { background-color: transparent; color: var(--warna-emas); }
  nav ul li a .arrow-down { transition: transform 0.3s ease; }
  nav ul li.menu-item-has-children.open > a .arrow-down { transform: rotate(180deg); }


  /* Sisa Style Mobile */
  .slider-content h1 { font-size: 2.5rem; }
  .slider-content p { font-size: 1rem; }
  .about-wrapper { flex-direction: column; }
  .about-image { order: 1; margin-bottom: 30px; }
  .about-content { order: 2; }
  .about-content h2, .about-content .pre-title { text-align: center; }
  .about-content p { text-align: justify; }
  .cta-button-outline { display: block; text-align: center; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; } /* Statistik mobile */
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.9rem; }
  .promo-content h2 { font-size: 2.2rem; }
  .footer-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .footer-widget { padding-right: 0; text-align: center; }
  .footer-contact-list li { text-align: left; }
  .social-links { justify-content: center; }
  .footer-bottom p { font-size: 13px; }
  .page-header h1 { font-size: 2.5rem; }
  /* Kontak Mobile */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
  .contact-info { text-align: center; }
  .contact-details li { text-align: left; }
  .recaptcha-container > div { transform: scale(0.9); transform-origin: center center; } /* Kecilkan captcha */

}
@media (max-width: 600px) {
  .layanan-wrapper { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; } /* Keunggulan mobile */
  /* 1 kolom di HP (berlaku untuk homepage dan produk) */
  .portofolio-wrapper { grid-template-columns: 1fr; }
  .portofolio-card { height: 300px; }
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px;} /* Galeri mobile */
}

@media (max-width: 400px) {
     .stats-grid { grid-template-columns: 1fr 1fr; } /* Statistik 2 kolom di layar sangat kecil */
     .stat-icon { font-size: 2.5rem; }
     .stat-number { font-size: 1.8rem; }
     .stat-label { font-size: 0.8rem; }
     .recaptcha-container > div { transform: scale(0.8); } /* Kecilkan lagi captcha */

}