/* --- Root Variables (Tone Warna Berdasarkan Logo) --- */
:root {
    --primary-blue: #1A365D;
    --primary-green: #2E7D32;
    --accent-red: #D32F2F;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

/* --- Base & Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--primary-blue); }
.bg-light { background-color: var(--bg-light); }

/* --- Buttons --- */
.btn { padding: 12px 30px; border-radius: 5px; font-weight: 600; cursor: pointer; transition: 0.3s; display: inline-block; }
.btn-primary { background-color: var(--primary-green); color: var(--white); border: none; }
.btn-primary:hover { background-color: #1b5e20; }
.btn-outline { background-color: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue); }
.btn-outline:hover { background-color: var(--primary-blue); color: var(--white); }

/* --- Navbar & Logo --- */
.navbar { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo h2 { color: var(--primary-blue); font-size: 1.5rem; }
.logo span { color: var(--primary-green); }
.nav-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-green); }

/* --- Hero Section & Background Slideshow --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossFadeSlideshow 16s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }

@keyframes crossFadeSlideshow {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    30% { opacity: 1; transform: scale(1.05); }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.82);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 1.5rem; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* --- Grid Layouts (About & Services) --- */
.about-grid, .services-grid, .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.service-card { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: left; transition: transform 0.3s; border-bottom: 4px solid var(--primary-green); }
.service-card:hover { transform: translateY(-10px); }
.service-icon { font-size: 3rem; color: var(--primary-blue); margin-bottom: 20px; }

/* --- Uniform Image Container (Fixed Height, Responsive Width, No Distortion) --- */
.product-card-img {
    height: 250px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 15px;
}
.product-card-img img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* --- Contact & Forms --- */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 20px; }
.info-item i { font-size: 1.5rem; color: var(--primary-green); margin-top: 5px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-family: 'Inter', sans-serif; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-blue); }

/* --- Floating WhatsApp --- */
.wa-floating-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; }
.wa-options { background: var(--white); border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.15); margin-bottom: 15px; overflow: hidden; display: none; flex-direction: column; width: 260px; transform-origin: bottom right; animation: scaleUp 0.3s ease; }
.wa-option { padding: 15px 20px; color: var(--white); font-weight: 600; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.wa-option.reguler { background-color: #25D366; }
.wa-option.reguler:hover { background-color: #128C7E; }
.wa-option.emergency { background-color: var(--accent-red); }
.wa-option.emergency:hover { background-color: #B71C1C; }
.wa-btn { background-color: #25D366; color: var(--white); border: none; width: 60px; height: 60px; border-radius: 50%; font-size: 2rem; cursor: pointer; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); transition: transform 0.3s; display: flex; justify-content: center; align-items: center; }
.wa-btn:hover { transform: scale(1.1); }

@keyframes scaleUp { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.3rem; }
    .section { padding: 50px 0; }
}

/* --- Uniform Image Container untuk Kartu Layanan & Produk --- */
.product-card-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f3f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-card-img img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Menyesuaikan agar kotak terisi penuh secara estetis tanpa gepeng */
}