/* ===============================
   1. Reset & Typography (Dasar)
   =============================== */
:root {
    --primary-color: #A9907E; /* Warna cokelat lembut/beige */
    --secondary-color: #675e58; /* Warna teks yang lebih gelap */
    --background-light: #F8F4F0; /* Latar belakang sangat terang */
    --text-dark: #333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0; /* Padding vertikal */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.8em;
    text-align: center;
    margin-top: 1.5em;
    margin-bottom: 1em;
    letter-spacing: 1px;
}

/* ===============================
   2. Header & Navigation (Mobile-First)
   =============================== */
.main-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    flex-direction: column; /* Tumpuk H1 dan Nav di mobile */
    align-items: center;
    text-align: center;
}

.main-header h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    margin: 0 10px;
    font-weight: 400;
    transition: color 0.3s;
    font-size: 0.9em;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* ===============================
   3. Buttons & Elements
   =============================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===============================
   4. Hero Section
   =============================== */
.hero-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.hero-section h2 {
    font-size: 2.2em;
    margin-bottom: 0.3em;
}

.hero-section p {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

/* ===============================
   5. Portfolio Grid (Highlight Section)
   =============================== */
.highlight-section {
    padding: 20px 0;
}

.portfolio-grid {
    display: grid;
    /* Default: 1 kolom untuk tampilan HP */
    grid-template-columns: 1fr; 
    gap: 30px;
    padding: 0 10px;
}

.highlight-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.image-wrapper {
    width: 100%;
    height: 300px; /* Tinggi tetap untuk mobile */
    overflow: hidden;
}

.highlight-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.highlight-item:hover img {
    transform: scale(1.05);
}

.item-content {
    padding: 20px 15px;
}

.item-content h3 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.item-content .date {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* ===============================
   6. Testimonial
   =============================== */
.testimonial-preview {
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0;
    background-color: #fff;
    border-radius: 8px;
}

.elegant-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5em;
    color: var(--secondary-color);
    margin: 20px auto;
    max-width: 600px;
    line-height: 1.4;
}

.elegant-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 0.8em;
    color: #999;
}


/* ===============================
   7. Footer
   =============================== */
.main-footer {
    background-color: var(--secondary-color);
    color: #eee;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.85em;
}

/* ===============================
   8. Media Queries (Untuk Desktop/Tablet)
   =============================== */

/* Untuk tablet dan tampilan yang lebih besar */
@media (min-width: 768px) {
    
    /* Header/Navigasi */
    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    .main-header h1 {
        margin-bottom: 0;
        font-size: 1.8em;
    }
    
    /* Grid Portfolio */
    .portfolio-grid {
        /* Ubah menjadi 2 kolom di tablet */
        grid-template-columns: 1fr 1fr; 
    }
    
    .hero-section {
        padding: 80px 40px;
    }
}

/* Untuk desktop */
@media (min-width: 1024px) {
    
    h2 {
        font-size: 2.2em;
    }
    
    .portfolio-grid {
        /* Ubah menjadi 3 kolom di desktop */
        grid-template-columns: repeat(3, 1fr); 
    }
}



/* PORTFOLIO */

/* ===============================
   9. Portfolio List Page Specific
   =============================== */

/* Ganti judul halaman agar terlihat seragam */
.page-title {
    margin-top: 30px;
}

/* Container untuk daftar portfolio (menggunakan Grid) */
.portfolio-list {
    display: grid;
    /* 1 kolom di mobile */
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 0;
}

.portfolio-item-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
    display: flex; /* Flexbox untuk tata letak horizontal di desktop */
    flex-direction: column; /* Default: tumpuk gambar di atas teks di mobile */
}

.portfolio-item-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.image-container {
    width: 100%;
    /* Atur tinggi gambar yang proporsional untuk tampilan mobile */
    height: 250px; 
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item-card:hover .image-container img {
    transform: scale(1.05);
}

.item-content-list {
    padding: 20px;
}

.item-content-list h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.item-content-list .location-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 5px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.8em;
    margin-top: 15px;
}

.no-data-message {
    text-align: center;
    padding: 50px;
    color: #999;
    font-style: italic;
}


/* Media Query untuk Desktop/Tablet */
@media (min-width: 768px) {
    
    .portfolio-list {
        /* 2 kolom di tablet */
        grid-template-columns: 1fr 1fr; 
    }
    
    .portfolio-item-card {
        /* Kembali ke tampilan kolom di grid */
        flex-direction: column;
    }
    
    .image-container {
        /* Tinggi gambar di desktop grid */
        height: 300px; 
    }
}

@media (min-width: 1024px) {
    .portfolio-list {
        /* 3 kolom di desktop */
        grid-template-columns: repeat(3, 1fr); 
    }
}


/* DETAIL PORFOLIO */

/* ===============================
   10. Project Detail Page
   =============================== */

.project-detail-page {
    padding-top: 20px;
    padding-bottom: 50px;
}

.project-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.project-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.project-info-meta {
    margin: 15px 0;
    font-size: 1em;
    color: #666;
    display: flex;
    flex-direction: column; /* Tumpuk di mobile */
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.btn-back {
    margin-top: 20px;
}

.separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--primary-color), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

/* Deskripsi */
.project-description {
    padding: 0 10px;
}
.project-description h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.project-description p {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05em;
    color: var(--text-dark);
}

/* Galeri */
.gallery-section h3 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    /* Default: 1 kolom penuh di mobile */
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 5px;
}

.gallery-item {
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    /* Tinggi dinamis, tapi set min-height agar tidak terlalu pendek */
    min-height: 250px; 
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 10px;
    font-size: 0.9em;
    text-align: center;
    opacity: 0; /* Sembunyikan secara default */
    transition: opacity 0.3s;
}


/* Media Queries untuk Tampilan yang Lebih Besar */
@media (min-width: 768px) {
    
    .project-info-meta {
        /* Tampilkan berdampingan di tablet/desktop */
        flex-direction: row;
        gap: 30px;
        font-size: 1.1em;
    }
    
    .gallery-grid {
        /* 2 kolom di tablet */
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Tampilkan caption saat kursor di atas gambar di desktop */
    .gallery-item:hover .image-caption {
        opacity: 1;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        /* 3 kolom di desktop */
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* PACKAGES */

/* ===============================
   11. Packages Page Styling
   =============================== */

.package-intro {
    text-align: center;
    max-width: 700px;
    margin: 10px auto 40px auto;
    font-size: 1.1em;
    color: #555;
}

.packages-list {
    display: grid;
    /* Default: 1 kolom di mobile */
    grid-template-columns: 1fr; 
    gap: 30px;
    padding: 20px 0;
}

.package-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.package-card h3 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.price-box {
    margin: 20px 0;
    padding: 15px 0;
    background-color: var(--background-light);
    border-radius: 8px;
}

.package-card h4 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--accent-color);
    font-weight: 700;
}

.description-text {
    min-height: 50px; /* Menjaga konsistensi tinggi deskripsi */
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95em;
}

/* Daftar Fitur */
.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: var(--text-dark);
}

.feature-list li span {
    margin-right: 10px;
    color: green;
    font-weight: bold;
}

/* Highlighting Card (misal: Gold Premium) */
.package-card.highlight {
    border: 3px solid var(--primary-color);
    background: #fff; 
    padding-top: 50px; /* Ruang untuk ribbon */
}

.package-card.highlight h4 {
    color: var(--primary-color);
}

.package-card .btn-highlight {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.package-card .btn-highlight:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Ribbon "Best Value" */
.ribbon {
    position: absolute;
    top: 15px;
    right: -10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.9em;
    font-weight: 700;
    transform: rotate(5deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Custom Note Section */
.custom-note {
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
    border-top: 1px dashed #ccc;
}
.custom-note p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}


/* Media Query untuk Layout Grid */
@media (min-width: 768px) {
    
    .packages-list {
        /* 2 kolom di tablet */
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    
    .packages-list {
        /* 3 kolom di desktop */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CONTACT */
/* ===============================
   12. Contact Page Styling
   =============================== */

.contact-section {
    padding: 30px 0;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 10px auto 40px auto;
    font-size: 1.1em;
    color: #555;
}

.contact-form-design {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: grid;
    /* Default: 1 kolom di mobile */
    grid-template-columns: 1fr; 
    gap: 20px;
}

.form-group {
    margin-bottom: 5px;
}

.form-group.full-width {
    grid-column: 1 / -1; /* Mengambil lebar penuh di grid */
}

.contact-form-design label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95em;
}

.contact-form-design input[type="text"],
.contact-form-design input[type="email"],
.contact-form-design input[type="tel"],
.contact-form-design select,
.contact-form-design textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fcfcfc;
}

.contact-form-design input:focus,
.contact-form-design select:focus,
.contact-form-design textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(169, 144, 126, 0.3);
    outline: none;
}

.contact-form-design textarea {
    resize: vertical;
}

.btn-submit {
    margin-top: 10px;
    width: 100%;
    padding: 15px;
    font-size: 1em;
    letter-spacing: 1px;
}

/* Pesan Sukses/Error */
.success-msg, .error-msg {
    padding: 15px;
    margin: 20px auto;
    text-align: center;
    border-radius: 4px;
    font-weight: 500;
    max-width: 600px;
}

.success-msg {
    background-color: #e6f7e6; /* Hijau muda */
    color: #387038;
    border: 1px solid #c8e6c9;
}

.error-msg {
    background-color: #ffe6e6; /* Merah muda */
    color: #cc0000;
    border: 1px solid #fcc;
}

/* Media Queries untuk Layout Form */
@media (min-width: 600px) {
    .contact-form-design {
        /* Tata letak 2 kolom untuk kolom input yang lebih pendek */
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-form-design .form-group:nth-child(5) {
        /* Dropdown paket tetap di kolom kanan/kiri, jangan penuh */
        grid-column: auto;
    }
}

/* Styling Tombol WhatsApp */
.btn-submit {
    /* Mengubah warna agar lebih menonjol untuk WA */
    background-color: #25D366; /* Hijau WhatsApp */
    border-color: #25D366;
    color: white;
    font-weight: 700;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex; /* Untuk menempatkan ikon di samping teks */
    justify-content: center;
    align-items: center;
}

.btn-submit:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

/* Styling Ikon WhatsApp */
.btn-submit .fab.fa-whatsapp {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Sesuaikan juga warna pesan error agar terlihat profesional */
.error-msg {
    background-color: #ffe0e0; /* Merah muda lembut */
    color: #a00000;
    border: 1px solid #ffaaaa;
}

/* Jika Anda ingin mempertahankan styling sukses (meskipun redirect WA tidak akan menampilkannya) */
.success-msg {
    background-color: #e0fff2; /* Hijau muda lembut */
    color: #008040;
    border: 1px solid #b3ffda;
}


/* CONTAINER GALERI */
.gallery-grid {
    display: grid;
    /* Membuat kolom responsif: minimal 250px, mengisi hingga maksimal yang bisa dimuat */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px; /* Jarak antara gambar */
    padding: 20px 0;
}

/* LINK WRAPPER */
.gallery-item-link {
    display: block;
    overflow: hidden;
    border-radius: 8px; /* Sudut membulat */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item-link:hover {
    transform: scale(1.02); /* Efek zoom ringan saat di-hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* WRAPPER GAMBAR (Untuk menjaga Aspect Ratio) */
.gallery-item-link .image-wrapper {
    width: 100%;
    /* Menggunakan padding-bottom untuk menjaga aspect ratio (misal: 4:3) */
    padding-bottom: 75%; /* (3/4)*100% = 75%. Untuk 1:1 gunakan 100% */
    position: relative;
}

/* GAMBAR AKTUAL */
.gallery-item-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar mengisi area tanpa terdistorsi */
    transition: opacity 0.3s;
}



