/* style.css - KODE LENGKAP FINAL UNTUK MB STAR GLOW (Light Mode: Hijau Mint & Emas) */

/* ------------------------------------- */
/* 0. DEFENISI VARIABEL WARNA GLOBAL */
/* ------------------------------------- */
:root {
    --color-light: #f9f9f9; /* Latar Belakang Terang */
    --color-dark-text: #333333; /* Warna Teks Gelap */
    --color-accent-gold: #D4AF37; /* Emas (Premium Touch) */
    --color-accent-mint: #4CAF50; /* Hijau Mint (Aksen Utama) */
    --color-card-bg: #ffffff; /* Latar belakang card putih bersih */
    --color-shadow: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-light);
    color: var(--color-dark-text);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ------------------------------------- */
/* 1. HEADER & NAVIGATION */
/* ------------------------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* PENTING: Membuat elemen rata tengah vertikal */
    padding: 15px 5%; 
    background-color: var(--color-light); 
    box-shadow: 0 2px 10px var(--color-shadow); 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.logo {
    display: flex; 
    align-items: center; /* PENTING: Membuat Logo dan Teks rata tengah vertikal */
    gap: 10px;
}
.logo-img {
    height: 45px; /* TINGGI LOGO KECIL DAN ELEGAN */
    width: auto;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.1)); /* Tambahkan sedikit bayangan */
}
.logo-text {
    color: var(--color-accent-mint); 
    font-size: 1.2em; 
    font-weight: 700;
    line-height: 1.2; 
}
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}
nav a {
    color: var(--color-dark-text);
    text-decoration: none;
    transition: color 0.3s;
}
nav a:hover {
    color: var(--color-accent-mint);
}
.cta-header {
    background-color: var(--color-accent-gold); 
    color: var(--color-dark-text);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none; 
    transition: background-color 0.3s;
}
.cta-header:hover {
    background-color: #bfa76f;
}

/* ------------------------------------- */
/* 2. HERO SECTION (HOME) */
/* ------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* GANTI URL di bawah dengan gambar berkualitas tinggi Anda */
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9)), url('path/to/gambar-facial-home.jpg'); 
    background-size: cover;
    background-position: center;
}
.hero-content h1 {
    font-size: 4em;
    margin-bottom: 0.1em;
    color: var(--color-dark-text);
}
.tagline {
    font-size: 1.5em;
    color: var(--color-accent-mint); 
    margin-bottom: 20px;
}
.clock-display {
    font-size: 1em;
    font-weight: 400;
    color: var(--color-dark-text);
    opacity: 0.7;
    margin-bottom: 30px;
}
.cta-main {
    background-color: var(--color-accent-mint);
    color: var(--color-light);
    padding: 15px 35px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}
.cta-main:hover {
    background-color: #3b8e40;
}

/* ------------------------------------- */
/* 3. KEUNGGULAN SECTION (Mini Card di Index) */
/* ------------------------------------- */
.keunggulan {
    display: flex;
    justify-content: space-around;
    padding: 50px 5%;
    gap: 20px;
    background-color: var(--color-card-bg); 
}
.keunggulan .card {
    flex: 1;
    background-color: #e8f5e9; /* Shade Hijau Muda */
    border: 1px solid rgba(76, 175, 80, 0.2);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px var(--color-shadow);
}
.keunggulan .card h3 {
    color: var(--color-accent-mint); 
    margin-top: 0;
}
.keunggulan .card p {
    color: var(--color-dark-text);
}

/* ------------------------------------- */
/* 4. LAYANAN & TITLE STYLING (Semua Halaman) */
/* ------------------------------------- */
.page-title {
    padding: 120px 5% 40px; 
    text-align: center;
}
.page-title h2 {
    font-size: 2.5em;
    color: var(--color-accent-mint);
    margin-bottom: 5px;
}
.tagline-layanan {
    color: var(--color-dark-text);
    opacity: 0.8;
    font-size: 1.1em;
}
.treatment-category {
    padding: 30px 5%;
}
.treatment-category h3 {
    text-align: center;
    color: var(--color-accent-gold); /* Judul Kategori Emas */
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-bottom: 15px;
}
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.treatment-card {
    background-color: var(--color-card-bg); 
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    box-shadow: 0 4px 8px var(--color-shadow);
}
.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--color-accent-mint);
}
.treatment-card h4 {
    color: var(--color-accent-mint);
    font-size: 1.4em;
    margin-top: 0;
    padding-bottom: 10px;
}
.description {
    font-size: 0.95em;
    color: var(--color-dark-text);
    opacity: 0.8;
    min-height: 50px; 
}

/* HARGA STYLING */
.price-box {
    margin: 15px 0;
    padding: 10px;
}
.price-promo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-accent-gold); 
}
.price-strike {
    font-size: 1em;
    color: #909090;
    text-decoration: line-through;
    margin-right: 15px;
}
.cta-card {
    background-color: var(--color-accent-mint);
    color: var(--color-light);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 5px;
    width: 100%;
    margin-top: 10px;
}
.cta-card:hover {
    background-color: #3b8e40;
}

/* ------------------------------------- */
/* 5. GALERI / PORTFOLIO SECTION */
/* ------------------------------------- */
.galeri-section {
    padding: 80px 5%;
    background-color: var(--color-light); 
    text-align: center;
}
.galeri-section h2 {
    color: var(--color-accent-mint);
    font-size: 2.2em;
    margin-bottom: 10px;
}
.galeri-tagline {
    color: var(--color-dark-text);
    opacity: 0.7;
    margin-bottom: 40px;
}
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.galeri-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--color-shadow);
    transition: transform 0.3s;
}
.galeri-item:hover {
    transform: scale(1.03);
}
.galeri-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.galeri-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(76, 175, 80, 0.8); 
    color: var(--color-light);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}
.galeri-item:hover .galeri-overlay {
    opacity: 1;
}
.cta-galeri {
    background-color: var(--color-accent-gold);
    color: var(--color-dark-text);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}
.cta-galeri:hover {
    background-color: #bfa76f;
}

/* ------------------------------------- */
/* 6. TESTIMONI SECTION */
/* ------------------------------------- */
.testimoni-section {
    padding: 60px 5%;
    background-color: #e8f5e9; /* Latar Belakang Hijau Muda */
    text-align: center;
}
.testimoni-section h2 {
    color: var(--color-dark-text);
    font-size: 2.2em;
}
.testimoni-tagline {
    color: var(--color-dark-text);
    opacity: 0.7;
    margin-bottom: 30px;
}
.testimoni-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; 
}
.testimoni-card {
    background-color: var(--color-card-bg);
    max-width: 350px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
    text-align: left;
}
.quote {
    font-style: italic;
    color: var(--color-dark-text);
    margin-bottom: 15px;
    line-height: 1.8;
}
.user-info {
    font-weight: 700;
    color: var(--color-accent-mint); 
    border-top: 1px solid rgba(76, 175, 80, 0.2);
    padding-top: 10px;
}

/* ------------------------------------- */
/* 7. KEUNGGULAN DETAIL SECTION */
/* ------------------------------------- */
.keunggulan-detail-section {
    padding: 60px 5%;
    background-color: var(--color-light);
}
.detail-card {
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--color-shadow);
}
.detail-card h3 {
    font-size: 1.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
}
.mint-accent {
    color: var(--color-accent-mint);
}

.detail-content {
    display: flex;
    gap: 30px;
    align-items: center;
}
.detail-content p {
    flex: 2;
    font-size: 1.05em;
    color: var(--color-dark-text);
}
.detail-icon {
    flex: 1;
    max-width: 150px;
    height: auto;
    border-radius: 5px;
}
.detail-card.reverse .detail-content {
    flex-direction: row-reverse;
}
@media (max-width: 768px) {
    .detail-content, .detail-card.reverse .detail-content {
        flex-direction: column;
        text-align: center;
    }
    .detail-icon {
        order: -1; 
    }
}


/* ------------------------------------- */
/* 8. KONTAK INFO SECTION */
/* ------------------------------------- */
.kontak-info-section {
    padding: 40px 5% 80px;
    background-color: var(--color-light);
}
.kontak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.info-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--color-shadow);
}
.info-card ul {
    list-style: none;
    padding: 0;
}
.info-card ul li {
    margin-bottom: 10px;
    color: var(--color-dark-text);
}
.info-card a {
    color: var(--color-accent-mint);
    text-decoration: none;
    font-weight: 500;
}
.gold-accent {
    color: var(--color-accent-gold);
    font-size: 2em;
}
.small-text {
    font-size: 0.85em;
    opacity: 0.7;
}

/* Map Styling */
.alamat-map-container {
    padding: 20px 0;
}
.map-container {
    overflow: hidden;
    padding-bottom: 56.25%; /* Rasio 16:9 */
    position: relative;
    height: 0;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
}
.map-container iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}


/* ------------------------------------- */
/* 9. FOOTER & CHATBOT (Elegan & Modern) */
/* ------------------------------------- */
footer {
    text-align: center;
    padding: 30px 5%;
    background-color: #f0f0f0;
    font-size: 0.9em;
    color: var(--color-dark-text);
    opacity: 0.7;
}

/* Ikon Floating */
.chatbot-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent-mint);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); 
    cursor: pointer;
    font-weight: 700;
    z-index: 1000;
    transition: transform 0.2s, background-color 0.3s;
}
.chatbot-icon:hover {
    background-color: var(--color-accent-gold);
    transform: translateY(-2px);
}

/* Kotak Dialog Chatbot */
#chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 330px; 
    height: 480px; 
    background: var(--color-card-bg);
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25); 
    z-index: 1001;
    display: none; 
    flex-direction: column;
    overflow: hidden; 
}

#chatbot-header {
    background: var(--color-accent-mint);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default; 
}

#close-chatbot {
    font-size: 1.6em;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
#close-chatbot:hover {
    opacity: 1;
}

#chatbot-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fdfdfd; 
    border-bottom: 1px solid #eee;
}

/* Styling Pesan */
.message {
    padding: 10px 14px;
    border-radius: 18px; 
    margin-bottom: 12px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 0.9em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); 
}

.user-message {
    background: #c8e6c9; /* Hijau Mint yang lebih terang */
    margin-left: auto;
    text-align: right;
    color: var(--color-dark-text);
    border-bottom-right-radius: 4px; 
}

.bot-message {
    background: var(--color-card-bg);
    margin-right: auto;
    text-align: left;
    border: 1px solid #eee;
    color: var(--color-dark-text);
    border-bottom-left-radius: 4px; 
}

/* Footer Input */
#chatbot-footer {
    display: flex;
    padding: 10px;
    background: #f0f0f0; 
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 1em;
    transition: border-color 0.3s;
}
#user-input:focus {
    border-color: var(--color-accent-mint); 
    outline: none;
}

#send-btn {
    background: var(--color-accent-gold);
    color: var(--color-dark-text);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}
#send-btn:hover {
    background: #bfa76f;
}

/* Styling Khusus untuk Tombol Booking di Chatbot */
.chatbot-booking-btn {
    display: block;
    background-color: var(--color-accent-mint);
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}
.chatbot-booking-btn:hover {
    background-color: #3b8e40;
}

/* ------------------------------------- */
/* 10. RESPONSIVE STYLING (Mobile) */
/* ------------------------------------- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .keunggulan, .testimoni-container {
        flex-direction: column;
        gap: 15px;
    }
    header {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 5%;
    }
    nav ul {
        gap: 15px;
        margin-top: 10px;
    }
    .detail-content, .detail-card.reverse .detail-content {
        flex-direction: column;
        text-align: center;
    }
    .detail-icon {
        order: -1; 
    }
}