/* ============================================= */
/* ELGA FLORA - MAIN STYLESHEET                  */
/* Version: Colored Header Options               */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

/* ============================================= */
/* CSS VARIABLES                                  */
/* ============================================= */
:root {
    /* Brand Colors */
    --emerald: #064E3B;
    --emerald-dark: #04362A;
    --emerald-light: #065F46;
    --gold: #D4AF37;
    
    /* Base Colors */
    --white: #FFFFFF;
    --dark: #1c1c1c;
    --light: #F8FAF8;
    --light-cream: #FBF9F5;
    --light-mint: #F0F7F4;
    --light-gold: #FDFBF7;
    --light-sage: #EDF3F0;
    --gray: #666666;
    --border: #eeeeee;
    
    /* Spacing */
    --section-padding: 80px 5%;
    --card-gap: 30px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================= */
/* RESET & BASE                                   */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-size: 16px;
}

/* ============================================= */
/* HEADER - EMERALD DARK VERSION                  */
/* ============================================= */
.header {
    background: var(--emerald-dark); /* ✨ EMERALD DARK */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Gold border */
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Logo Container */
.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white); /* ✨ TEXT PUTIH */
    transition: opacity var(--transition-base);
}

.logo-wrapper:hover {
    opacity: 0.9;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    margin-right: 12px;
    filter: brightness(1.1); /* Slightly brighter logo */
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold); /* ✨ TEXT GOLD */
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9); /* ✨ TEXT PUTIH */
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-base);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: var(--gold);
    transition: width var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--gold); /* ✨ HOVER GOLD */
}

.nav-menu a:hover::after {
    width: 100%;
}

/* CTA Button in Header */
.btn-cta-header {
    background: var(--gold);
    color: var(--dark);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-cta-header:hover {
    background: var(--white);
    color: var(--emerald-dark);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-cta-header:active {
    transform: translateY(0);
}

/* ============================================= */
/* HERO SECTION                                   */
/* ============================================= */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
    background: url('uploads/fotos/IMG_20251012_112537.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    margin: 0 0 1rem 0;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
    font-weight: 800;
    line-height: 1.2;
}

.hero-title strong {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================= */
/* BUTTONS                                        */
/* ============================================= */
.btn-lux {
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--transition-base);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-emerald {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
}

.btn-emerald:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-emerald-outline {
    background: transparent;
    color: var(--emerald);
    border: 2px solid var(--emerald);
}

.btn-emerald-outline:hover {
    background: var(--emerald);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================= */
/* SECTIONS                                       */
/* ============================================= */
.section {
    padding: var(--section-padding);
    max-width: 1400px;
    margin: 0 auto;
}

.section-light {
    background: var(--white);
}

.section-light-cream {
    background: var(--light-cream);
}

.section-light-mint {
    background: var(--light-mint);
}

.section-light-gold {
    background: var(--light-gold);
}

.section-light-sage {
    background: var(--light-sage);
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--emerald);
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-align: center;
}

.section-dark .section-title {
    color: var(--gold);
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================= */
/* PRODUCT GRID & CARDS                           */
/* ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--card-gap);
    margin-top: 40px;
}

.card-product {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--light);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.card-product:hover .card-image {
    transform: scale(1.05);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: var(--gray);
    font-weight: 600;
    font-size: 1.1rem;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-description {
    color: var(--gray);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-button {
    display: block;
    text-align: center;
    padding: 12px 0;
    margin-top: auto;
    background: var(--emerald);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all var(--transition-base);
    border: 2px solid var(--emerald);
}

.card-button:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.product-more {
    text-align: center;
    margin-top: 50px;
}

/* ============================================= */
/* UTILITY CLASSES                                */
/* ============================================= */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray);
}

.full-width {
    grid-column: 1 / -1;
}

.empty-message {
    padding: 20px 0;
    font-style: italic;
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 60px auto;
    max-width: 1400px;
}

.section-divider-bold {
    border: none;
    border-top: 3px solid var(--gold);
    margin: 0 auto;
    max-width: 1400px;
    opacity: 0.3;
}

.section-spacing {
    padding: 40px 0;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* ============================================= */
/* GALLERY COMPONENTS                             */
/* ============================================= */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.gallery-preview-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.gallery-preview-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.gallery-preview-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 1;
}

.gallery-preview-item:hover::after {
    opacity: 1;
}

.gallery-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-preview-item:hover .gallery-preview-image {
    transform: scale(1.08);
}

.gallery-preview-video {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, #064E3B 0%, #0a3d2f 100%);
    padding: 20px;
}

.video-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.9;
    transition: all var(--transition-base);
}

.gallery-preview-item:hover .video-icon {
    transform: scale(1.15);
    opacity: 1;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    padding: 0 20px;
    opacity: 0.85;
    line-height: 1.5;
}

.gallery-preview-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gallery-media-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.gallery-video-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
}

.gallery-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-caption {
    padding: 15px;
    font-weight: 600;
    color: var(--emerald);
    text-align: center;
}

/* ============================================= */
/* FOOTER                                         */
/* ============================================= */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================= */
/* FLOATING WHATSAPP                              */
/* ============================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: var(--emerald);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all var(--transition-base);
    text-decoration: none;
    border: none;
}

.whatsapp-float:hover {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.1);
}

/* ============================================= */
/* RESPONSIVE DESIGN                              */
/* ============================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-menu {
        width: 100%;
        gap: 15px;
        font-size: 0.85rem;
        justify-content: center;
    }

    .btn-cta-header {
        display: none;
    }

    .logo-img {
        height: 40px;
    }

    .brand-text {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .product-grid,
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }

    .gallery-preview-item {
        height: 220px;
    }

    .section-divider {
        margin: 40px auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .btn-lux {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 3%;
    }

    .nav-menu {
        order: -1;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Gold border di mobile */
        padding-bottom: 10px;
    }

    .logo-wrapper {
        order: 2;
    }

    .logo-img {
        height: 35px;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .hero {
        min-height: 450px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section {
        padding: 50px 3%;
    }

    .gallery-preview-item {
        height: 180px;
    }

    .video-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .video-title {
        font-size: 0.85rem;
        padding: 0 15px;
    }

    .card-image-wrapper {
        height: 220px;
    }
}
/* ===================================== */
/* --- STYLE KHUSUS FORM KEMITRAAN --- */
/* ===================================== */
.form-section {
    padding: 60px 5%;
}

.container-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.form-section .section-title {
    color: var(--emerald);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.form-section .section-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1rem;
    text-align: left;
}

.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1; /* Membuat kolom dalam baris memiliki lebar yang sama */
    margin-bottom: 0;
}

.luxury-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.95rem;
}

.luxury-form input[type="text"],
.luxury-form input[type="email"],
.luxury-form input[type="tel"],
.luxury-form select,
.luxury-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--light);
}

.luxury-form input:focus,
.luxury-form select:focus,
.luxury-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); /* Glow efek emas */
    outline: none;
}

.luxury-form select {
    appearance: none; /* Hilangkan default style select di browser */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23064E3B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-24.7%200L146.2%20205.9%2029.4%2069.4a17.6%2017.6%200%200%200-24.7%2024.7l130.6%20130.6c7.7%207.7%2020.2%207.7%2027.9%200l130.6-130.6a17.6%2017.6%200%200%200%200-24.7z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}

.luxury-form textarea {
    resize: vertical;
}

.required {
    color: #e74c3c; /* Warna merah untuk tanda wajib */
    font-weight: 700;
}

.form-submit {
    text-align: right;
    margin-top: 10px;
}

/* Responsif untuk Form */
@media (max-width: 768px) {
    .container-form {
        padding: 25px;
    }
    .form-row {
        flex-direction: column; /* Ubah kolom menjadi tumpukan di HP */
        gap: 0;
    }
    .form-row .form-group {
        margin-bottom: 15px;
    }
    .form-submit {
        text-align: center;
    }
}
/* Style untuk input file yang lebih rapi */
.custom-file-input {
    padding: 12px 15px;
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: block; /* Agar mengambil seluruh lebar */
}

.upload-area .upload-note {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--gray);
}