/* ... (Variabel CSS :root dan Global Styles dari CSS Modern sebelumnya tetap sama) ... */
/* Anda bisa menyalin bagian :root dan body, container, h1-h6, p, a, section dari CSS modern sebelumnya ke sini */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto+Slab:wght@400;700&display=swap');

:root {
    --primary-green-dark: #004d00;
    --primary-green-medium: #2E8B57;
    --primary-green-light: #3CB371;
    --accent-gold: #FFD700;
    --accent-gold-darker: #e6c300;
    --neutral-light-bg: #f8f9fa;
    --neutral-white: #ffffff;
    --neutral-dark-text: #343a40;
    --neutral-medium-text: #6c757d;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 77, 0, 0.12);
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--neutral-light-bg);
    color: var(--neutral-dark-text);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px; /* Base font size untuk skalabilitas */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow-x: hidden; /* Mencegah horizontal scroll */
    padding: 0 15px; /* Padding lebih kecil di mobile */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    color: var(--primary-green-dark);
    margin-bottom: 0.7em;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.2em; } /* Sedikit lebih kecil untuk mobile first */
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }

p {
    margin-bottom: 1.2em;
    color: var(--neutral-medium-text);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: var(--primary-green-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

section {
    padding: 60px 0; /* Padding section default untuk mobile */
}

/* Header Styles - Mobile-First Focus */
header {
    background: var(--neutral-white);
    padding: 12px 0; /* Padding header lebih kecil */
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Izinkan wrap jika nama logo panjang */
}

header .logo {
    display: flex;
    align-items: center;
    margin-bottom: 0; /* Default, akan di-override di mobile jika perlu */
}

header .logo-img {
    width: 40px; /* Logo lebih kecil di mobile */
    height: 40px;
    margin-right: 10px;
    border-radius: var(--border-radius-sm);
}

header h1 {
    margin: 0;
    font-size: 1.3em; /* Nama perusahaan lebih kecil di header mobile */
    color: var(--primary-green-dark);
    font-weight: 600;
}

header .subtitle {
    display: none; /* Sembunyikan subtitle di header mobile untuk menghemat ruang */
    /* Jika ingin tetap tampil, sesuaikan font-size & line-height */
    /* font-size: 0.7em; */
    /* color: var(--neutral-medium-text); */
    /* font-family: 'Poppins', sans-serif; */
    /* font-weight: 400; */
    /* width: 100%; */ /* Jika logo & title di baris sendiri */
    /* text-align: center; */ /* Jika logo & title di baris sendiri */
    /* margin-top: 5px; */ /* Jika logo & title di baris sendiri */
}


/* Navigasi Mobile: Pertimbangkan menu "hamburger" dengan JavaScript */
/* Untuk CSS-only sederhana (jika tidak ada JS untuk hamburger): */
header nav {
    width: 100%; /* Navigasi mengambil lebar penuh di mobile */
    margin-top: 10px; /* Spasi jika di bawah logo */
    display: none; /* Sembunyikan secara default, tampilkan dengan JS atau :target hack */
                    /* Jika ingin selalu tampil (kurang ideal untuk banyak item): */
                    /* display: block; */
}
/* Implementasi Hamburger Menu (Contoh Sederhana dengan Checkbox Hack - Butuh HTML) */
/*
#menu-toggle { display: none; }
.menu-button-container { display: block; text-align: right; }
.menu-button { cursor: pointer; padding: 5px; display: inline-block; }
#menu-toggle:checked ~ nav { display: block; }
*/


header nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center; /* Menu mobile terpusat */
}

header nav ul li {
    display: block; /* Setiap item menu satu baris */
    margin: 0; /* Hapus margin samping */
    border-bottom: 1px solid #f0f0f0; /* Garis pemisah antar item */
}
header nav ul li:last-child {
    border-bottom: none;
}

header nav ul li a {
    display: block; /* Link mengambil lebar penuh */
    padding: 12px 10px; /* Padding yang cukup untuk disentuh */
    color: var(--neutral-dark-text);
    font-weight: 500;
    font-size: 1em;
}
header nav ul li a:hover {
    background-color: var(--neutral-light-bg);
    color: var(--primary-green-medium);
}
header nav ul li a::after { /* Sembunyikan underline modern di nav mobile block */
    display: none;
}


/* Hero Section - Disesuaikan untuk Mobile */
.hero {
    background: linear-gradient(rgba(0, 77, 0, 0.65), rgba(0, 77, 0, 0.65)), url('https://via.placeholder.com/800x600/228B22/FFFFFF?text=S3+Mobile+Hero') no-repeat center center/cover; /* Gambar mungkin perlu versi mobile */
    color: var(--neutral-white);
    text-align: center;
    padding: 80px 15px; /* Padding disesuaikan */
    min-height: 50vh;
}

.hero h2 {
    font-size: 2em; /* Font lebih kecil di mobile hero */
    margin-bottom: 20px;
    color: var(--neutral-white);
}

.hero p {
    font-size: 1em;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-green-dark);
    padding: 12px 25px; /* Tombol lebih kecil */
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em; /* Font tombol lebih kecil */
    transition: background-color 0.3s ease;
}
.cta-button:hover { /* Efek transform mungkin berlebihan di mobile, bisa dihilangkan */
    background: var(--accent-gold-darker);
    /* transform: translateY(-2px); */
}


/* About Section - Mobile Layout */
.about {
    background-color: var(--neutral-white);
}
.about-content {
    display: flex; /* Kembali ke flex untuk tumpukan sederhana */
    flex-direction: column;
    gap: 30px;
    text-align: center; /* Pusatkan konten di mobile */
}
.about-text p:first-of-type {
    font-size: 1.05em;
}
.about-image img {
    width: 100%;
    max-width: 350px; /* Batasi lebar gambar agar tidak terlalu besar di mobile */
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    margin: 20px auto 0 auto; /* Spasi atas jika gambar di bawah teks */
}

/* Services Section - Card Mobile */
.services {
    background-color: var(--neutral-light-bg);
}
.services h2 {
    text-align: center;
    margin-bottom: 40px;
}
.service-grid {
    display: grid;
    grid-template-columns: 1fr; /* Selalu satu kolom di mobile */
    gap: 25px;
}
.service-item {
    background: var(--neutral-white);
    padding: 25px;
    text-align: center;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    border-top: 3px solid var(--primary-green-medium);
    /* Hapus transform hover di mobile untuk performa & UX */
    /* transition: none;  */
}
/* .service-item:hover {
    transform: none;
    box-shadow: var(--shadow-light);
} */

.service-item .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}
.service-item h3 {
    font-size: 1.3em;
}
.service-item p {
    font-size: 0.9em;
}

/* Gallery Section - Mobile */
.gallery {
    background-color: var(--neutral-white);
    text-align: center;
}
.gallery h2 {
    margin-bottom: 10px;
}
.gallery > p {
    margin-bottom: 30px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* Satu kolom */
    gap: 20px;
    margin-bottom: 30px;
}
.gallery-grid img {
    width: 100%;
    height: 200px; /* Tinggi gambar galeri disesuaikan */
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-light);
    filter: grayscale(0%); /* Mungkin nonaktifkan grayscale default di mobile */
    /* Hapus transform hover di mobile */
    /* transition: none; */
}
/* .gallery-grid img:hover {
    transform: none;
    box-shadow: var(--shadow-light);
    filter: grayscale(0%);
} */

.instagram-link {
    margin-top: 15px;
    font-size: 0.95em;
    padding: 10px 20px;
}

/* Contact Section - Mobile */
.contact {
    background-color: var(--primary-green-dark);
    color: var(--neutral-white);
    text-align: center;
}
.contact h2 {
    color: var(--neutral-white);
    margin-bottom: 10px;
}
.contact > p {
    margin-bottom: 30px;
    font-size: 0.95em;
}
.contact-info p {
    font-size: 1em;
    margin-bottom: 12px;
}
.contact-info a {
    color: var(--accent-gold);
}

/* Footer - Mobile */
footer {
    background: var(--neutral-dark-text);
    color: var(--neutral-medium-text);
    text-align: center;
    padding: 25px 0;
    font-size: 0.85em;
}
footer p {
    margin: 6px 0;
    color: #a0a0a0;
}

/* Desktop & Tablet Styles - Override mobile styles dari sini */
@media (min-width: 768px) {
    .container {
        padding: 0 20px; /* Kembalikan padding container */
    }

    h1 { font-size: 2.8em; } /* Kembalikan ukuran font desktop */
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.6em; }

    section {
        padding: 80px 0; /* Kembalikan padding section */
    }

    header {
        padding: 15px 0;
    }
    header .container {
        flex-wrap: nowrap; /* Pastikan tidak wrap di desktop */
    }
    header .logo-img {
        width: 45px;
        height: 45px;
    }
    header h1 {
        font-size: 1.6em;
    }
    header .subtitle {
        display: block; /* Tampilkan subtitle di desktop */
        font-size: 0.8em;
        color: var(--neutral-medium-text);
        font-family: 'Poppins', sans-serif;
        font-weight: 400;
        width: auto;
        text-align: left;
        margin-top: 0;
    }

    header nav {
        width: auto; /* Navigasi tidak full width */
        margin-top: 0;
        display: block !important; /* Pastikan selalu tampil, override display:none mobile */
    }
    header nav ul {
        text-align: left; /* Kembalikan alignment */
    }
    header nav ul li {
        display: inline-block; /* Item menu inline lagi */
        margin-left: 25px;
        border-bottom: none; /* Hapus border antar item */
    }
    header nav ul li:first-child {
        margin-left: 0;
    }
    header nav ul li a {
        display: inline; /* Link tidak block */
        padding: 5px 0; /* Padding vertikal lebih kecil */
        font-size: 0.95em;
    }
    header nav ul li a::after { /* Tampilkan underline modern lagi */
        display: block;
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--accent-gold);
        transition: width 0.3s ease-in-out;
    }
    header nav ul li a:hover::after,
    header nav ul li a.active::after {
        width: 100%;
    }
    header nav ul li a:hover {
        background-color: transparent; /* Hapus bg hover dari mobile */
        color: var(--primary-green-medium);
    }


    .hero {
        padding: 120px 0;
        min-height: 70vh;
    }
    .hero h2 { font-size: 3em; }
    .hero p { font-size: 1.3em; }
    .cta-button {
        padding: 15px 35px;
        font-size: 1em;
    }
    .cta-button:hover {
        transform: translateY(-3px);
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        text-align: left; /* Kembalikan text-align */
    }
    .about-image img {
        margin: 0 0 0 auto; /* Dorong ke kanan jika kolom lebih lebar */
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 35px;
    }
    .service-item:hover { /* Kembalikan efek hover desktop */
        transform: translateY(-8px);
        box-shadow: var(--shadow-medium);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .gallery-grid img {
        height: 250px;
        filter: grayscale(30%);
    }
    .gallery-grid img:hover { /* Kembalikan efek hover desktop */
        transform: scale(1.03);
        box-shadow: var(--shadow-medium);
        filter: grayscale(0%);
    }
    .instagram-link {
        font-size: 1em;
        padding: 12px 25px;
    }

    .contact > p { font-size: 1em; }
    .contact-info p { font-size: 1.1em; }

    footer {
        padding: 30px 0;
        font-size: 0.9em;
    }
}

/* Khusus untuk Navigasi Hamburger jika menggunakan JS */
/*
.nav-active nav {
    display: block !important;
}
.menu-button-container { display: none; } // Sembunyikan tombol hamburger di desktop
@media (max-width: 767px) {
    .menu-button-container { display: block; }
    header nav { display: none; } // Sembunyikan nav default di mobile, JS yg handle
}
*/

.menu-toggle-button {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    font-size: 1.8em; /* Ukuran ikon hamburger */
    color: var(--primary-green-dark);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 767px) {
    header .subtitle {
        display: block; /* Tampilkan subtitle di mobile jika diinginkan */
        width: 100%;
        text-align: center; /* Atau sesuaikan dengan posisi logo */
        margin-top: 3px;
        font-size: 0.75em;
    }
    .menu-toggle-button {
        display: block; /* Tampilkan tombol hamburger di mobile */
    }
    header nav {
        display: none; /* Sembunyikan nav default, JS yang handle */
        width: 100%;
        order: 3; /* Pastikan nav di bawah logo dan tombol */
        margin-top: 10px;
    }
    header nav.nav-active { /* Class yang ditambahkan oleh JS */
        display: block;
    }
}