/* FILE: style.css */

:root {
    --primary-color: #28a745;
    --secondary-color: #218838;
    --accent-color: #ffc107;
    --text-color: #343a40;
    --bg-color: #ffffff;
    --card-bg: #fdfdfd;
    --footer-bg: #212529;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e9ecef' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text-color);
    margin-left: 10px;
}

.logo-text span {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 2em;
    cursor: pointer;
    border: none;
    background: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    background-color: #f8f9fa;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-button {
    padding: 10px 25px;
    font-size: 1em;
    font-weight: 600;
    border: 2px solid #ddd;
    color: #555;
    background-color: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* --- TATA LETAK BARIS LAYANAN YANG DISEMPURNAKAN --- */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px 25px;
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.service-card .service-info {
    flex-grow: 1;
    margin-right: 15px;
}

.service-card h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin: 0;
}

.service-card .description {
    color: #555;
    margin-top: 4px;
    font-size: 0.95em;
    line-height: 1.5;
}

.service-card .price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    margin: 0 20px;
}

.service-card .cta-button {
    flex-shrink: 0;
    padding: 12px 30px;
}

/* --- Tata letak Paket & Promo (tidak diubah) --- */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.package-card {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.package-card h3 { color: white; }
.package-card .price { color: white; }
.package-card .cta-button { background-color: var(--accent-color); color: var(--text-color); }
.package-card .cta-button:hover { background-color: #ffca2c; }

.package-card .hemat-badge {
    position: absolute;
    top: 15px;
    right: -40px;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 5px 40px;
    font-weight: 700;
    transform: rotate(45deg);
}

.package-card ul {
    list-style: none;
    margin: 20px 0;
    color: #f0f0f0;
    text-align: left;
}

.package-card ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.package-card ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.promo-list, .area-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.promo-item, .area-card {
    background: var(--card-bg);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex-basis: 300px;
}

.area-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- Galeri Slider (tidak berubah) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gallery-slider {
    display: flex;
    width: 300%;
    height: 100%;
    position: relative;
    animation: slide-animation 15s infinite ease-in-out;
}

.gallery-slider img {
    width: 33.333%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover .gallery-slider {
    animation-play-state: paused;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slide-animation {
    0%, 25% { left: 0; }
    33%, 58% { left: -100%; }
    66%, 91% { left: -200%; }
    100% { left: 0; }
}

/* --- Footer & Media Queries --- */
footer {
    background-color: var(--footer-bg);
    color: #ecf0f1;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: white;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p, .footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9em;
    color: #95a5a6;
}

.error-message {
    text-align: center;
    padding: 40px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 65px; /* Sesuaikan dengan tinggi header */
        left: 0;
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid #eee;
        text-align: center;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .footer-container {
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Penyesuaian kartu layanan untuk mobile */
    .service-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-card .service-info {
        margin-right: 0;
        width: 100%;
    }

    .service-card .price {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .service-card .cta-button {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
}

/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pxiByp8kv8JHgFVrLCz7Z11lFc-K.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === Floating Action Button (FAB) - Sejuk Theme === */
.fab-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1100; /* di atas header (1000) */
}

.fab {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  background: var(--primary-color);
  color: #fff;
  font-size: 28px;
  line-height: 0;
  cursor: pointer;
  transition: transform var(--transition-speed) ease, background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.fab:hover { background: var(--secondary-color); transform: translateY(-2px); }
.fab:focus { outline: 3px solid rgba(40,167,69,.35); outline-offset: 2px; }

/* Panel aksi */
.fab-actions {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.fab-container.open .fab-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tombol aksi */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--text-color);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border: 1px solid #eee;
}
.action-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.action-btn:focus { outline: 3px solid rgba(40,167,69,.35); outline-offset: 2px; }

.action-btn.login { border-left: 4px solid var(--primary-color); }  /* seragam dengan tema */
.action-btn.wa    { border-left: 4px solid #25D366; }               /* hijau WA */

.action-btn svg { width: 18px; height: 18px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fab-actions { transition: none; }
  .action-btn:hover { transform: none; }
}

/* Mobile */
@media (max-width: 768px) {
  .fab-container { right: 14px; bottom: 14px; }
}


    /* Chatbox AI Styles - Dipindahkan ke kiri bawah */
    .chatbox-container {
        position: fixed;
        bottom: 20px;
        left: 20px; /* Diubah dari right ke left */
        z-index: 1000;
    }
    
    .chatbox-toggle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: #2e86de;
        color: white;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        transition: all 0.3s ease;
    }
    
    .chatbox-toggle:hover {
        background-color: #1c6bc2;
        transform: scale(1.05);
    }
    
    .chatbox-panel {
        position: absolute;
        bottom: 70px;
        left: 0; /* Diubah dari right ke left */
        width: 350px;
        height: 450px;
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .chatbox-panel.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .chatbox-header {
        background-color: #2e86de;
        color: white;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .chatbox-header h3 {
        margin: 0;
        font-size: 16px;
    }
    
    .chatbox-close {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 18px;
    }
    
    .chatbox-messages {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .message {
        max-width: 80%;
        padding: 10px 15px;
        border-radius: 18px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .message.bot {
        background-color: #f0f2f5;
        align-self: flex-start;
        border-bottom-left-radius: 4px;
    }
    
    .message.user {
        background-color: #2e86de;
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 4px;
    }
    
    .chatbox-input {
        display: flex;
        padding: 10px;
        border-top: 1px solid #eaeaea;
        background-color: white;
    }
    
    .chatbox-input input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 20px;
        outline: none;
    }
    
    .chatbox-input button {
        margin-left: 10px;
        padding: 10px 15px;
        background-color: #2e86de;
        color: white;
        border: none;
        border-radius: 20px;
        cursor: pointer;
    }
    
    .chatbox-typing {
        display: none;
        padding: 10px 15px;
        color: #666;
        font-style: italic;
    }
    
    @media (max-width: 768px) {
        .chatbox-container {
            bottom: 80px; /* Memberikan ruang untuk FAB di mobile */
            left: 10px;
        }
        
        .chatbox-panel {
            width: 300px;
            height: 400px;
            left: 0;
        }
        
        /* Memastikan FAB tetap di kanan bawah */
        .fab-container {
            right: 20px;
            bottom: 20px;
            left: auto;
        }
    }
    
    @media (max-width: 480px) {
        .chatbox-panel {
            width: 280px;
            height: 380px;
        }
        
        .chatbox-container {
            bottom: 70px;
            left: 5px;
        }
    }