/* bertaut ke index */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     font-family: 'Lexend', sans-serif;
}

body {
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fbf9;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
   background-color: #ffffff;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between; /* Logo kiri, Menu/Button kanan */
    align-items: center;
    height: 80px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- 3. Logo & Menu Styling --- */

.logo img {
    height: 55px; /* Sesuaikan ukuran logo */
    display: block;
}

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    gap: 25px; /* Jarak antar menu teks */
}

.nav-links li {
      position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
      text-decoration: none;
    color: #555;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s;
    display: inline-block;
}

.nav-links a:hover {
    color: #2d5a27;
}

.nav-links a::after {
     content: '';
    position: absolute;
    bottom: -5px; /* Jarak garis di bawah teks */
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #2d5a27;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    pointer-events: none; 
}

/* --- Kondisi: Muncul saat Hover ATAU Saat Class .active Ada --- */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%; /* Garis memanjang penuh */
}

/* --- Warna Khusus untuk Teks Aktif --- */
.nav-links a.active {
    color: #2d5a27;
}

/* --- Penyesuaian Khusus Tombol Reservasi agar Garis Tidak Menempel --- */
.nav-links a.btn-reservasi::after {
    bottom: -10px; /* Lebih turun agar tidak menempel di oval */
    width: 0;
}

/* --- 4. Button Style --- */
.btn-reservasi {
    background: linear-gradient(135deg, #2d5a27 0%, #4a8a3f 100%) !important;
    color: white !important;
    
    /* KUNCI UKURAN: Padding kiri-kanan ditambah agar teks tidak sesak */
    padding: 12px 32px !important; 
    
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    
    /* Mencegah teks turun atau terpotong */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important; 
    line-height: 1.2 !important; /* Memberi ruang vertikal yang stabil */
    
    border: none !important;
    transition: 0.3s !important;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-reservasi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- 5. Mobile Toggle Logic --- */
#check {
    display: none !important;
}

.menu-btn {
    display: none; /* Sembunyi di desktop */
    font-size: 28px;
    cursor: pointer;
    color: #2d5a27;
    z-index: 10002;
}




/* --- REVISI: ABOUT SECTION (Disesuaikan agar lebih elegan) --- */
.about-section {
   display: block !important; /* Memastikan section ini tidak ikut jadi flex */
    width: 100%;
    clear: both;
    font-family: 'Lexend', sans-serif;
}



.about-grid {
    display: grid;
    /* P1: Mengatur kolom agar teks lebih dominan (60%) dan logo (40%) */
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px;
    align-items: center; /* P1: Agar teks dan logo sejajar vertikal di tengah */
}

.about-text {
    /* P0: Batasi lebar area teks agar nyaman dibaca (max-width) */
    max-width: 600px; 
}

.about-text h2 {
    color: #2d5a27;
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text p {
    /* P0: Ganti ke rata kiri (Hapus justify jika ada sebelumnya) */
    text-align: left; 
    
    /* P0: Line-height lebih lega agar tidak sesak */
    line-height: 1.8; 
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ffffff;
}

/* --- REVISI LOGO (Kecilkan & Proporsional) --- */
.about-image {
    display: flex;
    justify-content: center; /* Menaruh logo di tengah kolom kanan */
}

.about-image img {
    /* P1: Kecilkan logo agar tidak "mengisi ruang" secara paksa */
    max-width: 250px; 
    height: auto;
    object-fit: contain;
    /* Mempertahankan efek bayangan halus yang kamu buat sebelumnya */
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.1));
}

/* --- MOBILE RESPONSIVE (P1: Stack Layout) --- */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Jadi satu kolom atas-bawah */
        gap: 40px;
        text-align: center;
    }

    .about-text {
        max-width: 100%;
        order: 1; /* Teks di atas */
    }

    .about-text p {
        text-align: center; /* Di mobile biasanya lebih rapi rata tengah */
    }

    .about-image {
        order: 2; /* Logo di bawah teks */
    }

    .about-image img {
        max-width: 150px; /* Lebih kecil lagi di mobile */
    }
}

/* --- 7. Tablet & iPad Responsive (769px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
     /* Navbar: Kurangi padding agar tidak memakan tempat */
    .navbar {
        height: 75px;
        padding: 0 3%;
    }

    .nav-links {
        gap: 15px; /* Perkecil jarak menu teks */
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Hero Section Tablet */
    .about-hero {
        padding: 100px 40px 40px;
        min-height: 50vh;
    }

    .about-hero h1 {
        font-size: 2.8rem !important;
    }

    /* About Section Grid Tablet */
    .about-grid {
        grid-template-columns: 1fr; /* Stack layout di iPad Portrait agar tidak sesak */
        text-align: center;
        gap: 40px;
    }

    .about-text {
        max-width: 100%;
        padding: 0 20px;
        order: 1;
    }

    .about-text p {
        text-align: center; /* Lebih rapi rata tengah untuk layout satu kolom */
        font-size: 1.05rem;
    }

    .about-image {
        order: 2;
    }

    .about-image img {
        max-width: 200px; /* Ukuran logo sedang */
    }
}


/* --- 5. FOOTER STYLING --- */
.main-footer {
     background-color: #1e3d1a;
    color: #ffffff;
    padding: 60px 0 20px; 
    font-family: 'Lexend', sans-serif;
}

.footer-grid {
    display: grid;
    /* KUNCI: 3 kolom sama rata (1fr) agar posisi tengah benar-benar presisi */
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.footer-brand {
   display: flex;
    flex-direction: column;
    align-items: flex-start;
}

 .footer-logo {
   height: 80px;
    margin-bottom: 15px;
}

.footer-brand h3 {
     font-size: 1.5rem;
    margin-bottom: 10px;
    color: #f1f8f1;
    font-weight: 700;
}


.footer-brand p {
   line-height: 1.6;
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 320px;
}

.main-footer h4 {
    color: #ffffff;
    font-size: 1.1rem; /* Ukuran font dikecilkan sedikit */
    margin-bottom: 15px; /* Jarak bawah judul dikurangi dari 25px */
    margin-top: 0; /* Pastikan tidak ada margin atas tambahan */
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
    
}

.main-footer h4::after {
   content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #78a962;
}

/* 1. KODE UTAMA (UNTUK LAPTOP) - Taruh di Atas */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 0.8fr; /* 3 Kolom sejajar kiri */
    text-align: left; /* Rata kiri agar elegan di laptop */
}



/* Judul Kolom (h4) */
.footer-contact h4, 
.footer-social h4,
.main-footer h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    margin-top: 0;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
    font-weight: 600;
}

/* Garis bawah judul - Rata Kiri Konsisten */
.footer-contact h4::after, 
.footer-social h4::after,
.main-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #78a962;
}

/* --- 1. FOOTER COMPONENTS --- */
.footer-contact ul {
   list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact ul li {
   display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-contact ul li i {
    color: #78a962;
    margin-top: 4px;
    width: 18px;
}



.social-icons {
     display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
   background-color: #78a962;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
}

.footer-bottom hr {
   border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.85rem;
    margin: 5px 0;
}



/* Bagian copyright bawah */
.footer-bottom {
    text-align: center;
    padding-top: 15px;
    margin-top: 30px; /* Kurangi margin atas footer bottom */
}

.footer-bottom hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}


/* Ikon Hamburger */
.menu-btn {
    font-size: 24px;
    color: #2d5a27; /* Gunakan warna hijau gelap Anda agar kontras */
    cursor: pointer;
    display: none; /* Default sembunyi di desktop */
    
    /* KUNCI UTAMA */
    position: relative; 
    z-index: 9999;  /* Berikan nilai tertinggi agar tidak tertutup apapun */
    float: right;
    line-height: 60px; /* Sesuaikan dengan tinggi navbar Anda */
    margin-right: 10px;
}

@media (min-width: 750px) and (max-width: 1024px) {
    /* Footer iPad: Tetap 3 kolom tapi dengan penyesuaian lebar */
    .footer-grid {
        grid-template-columns: 1.5fr 1.2fr 1fr !important;
        gap: 20px;
        text-align: left;
    }

    .footer-brand .footer-logo {
        height: 60px; /* Perkecil sedikit logo di footer */
    }
}


@media (max-width: 992px) {
    .menu-btn { 
        display: block; /* Ini yang memunculkan icon garis 3 */
        position: relative;
        z-index: 1100;
        cursor: pointer;
    }
}


/* --- 4. RESPONSIVE (Unified Mobile) --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Menjadi 1 kolom */
        text-align: center;         /* Semua teks ke tengah */
        gap: 50px;
    }

    .footer-brand, 
    .footer-contact, 
    .footer-social {
        align-items: center;        /* Menengahkan konten flex */
        text-align: center;
    }

    .footer-brand .footer-logo {
        margin: 0 auto 15px;        /* Logo ke tengah */
    }

    .main-footer h4::after {
        left: 50%;
        transform: translateX(-50%); /* Garis bawah judul ke tengah */
    }

    .footer-contact ul li {
        justify-content: center;    /* Isi alamat ke tengah */
    }

    .social-icons {
        justify-content: center;    /* Ikon sosmed ke tengah */
    }
}


/* wa ngambang */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    text-decoration: none;
    
    /* Keadaan Awal: Sembunyi */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Class 'show' akan ditambahkan via JavaScript */
.fab-whatsapp.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebea5;
}

/* Tooltip kecil di samping tombol */
.tooltip-text {
    position: absolute;
    right: 75px;
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.fab-whatsapp:hover .tooltip-text {
    opacity: 1;
}



/*Card mengenal rumah sehat bahtera herbal */
/* Container Utama */
.about-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f4f9f4);
}

.about-intro {
    text-align: left;
    max-width: 900px;
    margin-bottom: 50px;
}

.section-title-modern {
    font-size: 2.4rem;
    color: #2d5a27;
    font-family: 'Lexend', sans-serif;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-title-modern span {
    color: #22a43f; /* Warna biru sesuai logo */
    font-family: 'Lexend', sans-serif;
}

.section-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

/* Container Utama */
.threats-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #2d4a22;
    margin-bottom: 60px;
    font-family: 'Georgia', serif;
}

/* Grid Layout agar sejajar samping */
.cards-grid {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Membuat tinggi kartu sama */
    gap: 60px; /* Jarak horizontal antar kartu */
    flex-wrap: wrap; /* Turun ke bawah jika layar sempit */
    padding: 0 20px;
}

/* Styling Kartu */
.threat-card {
    background: linear-gradient(135deg, #2d4a22 0%, #3e662e 100%);
    flex: 1;
    max-width: 500px; /* Batas lebar kartu */
    min-height: 250px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 30px 30px 30px 100px; /* Padding kiri besar untuk gambar */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-left: 40px; /* Ruang tambahan agar gambar offset tidak terpotong */
}

/* Gambar Lingkaran Offset */
.card-image {
    position: absolute;
    left: -50px; /* Gambar menonjol keluar kartu */
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow: 5px 10px 20px rgba(0,0,0,0.2);
    z-index: 2;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Body & List Teks */
.card-body {
    text-align: left;
    color: #ffffff;
}

.card-body h3 {
    font-size: 1.4rem;
     color: #ffffff;
    margin-bottom: 15px;
}

.feature-item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.item i {
    color: #a8e063; /* Warna hijau terang untuk ceklis */
    margin-top: 4px;
    font-size: 0.9rem;
}

.item p {
    font-size: 0.85rem;
     color: #ffffff;
     font-family: 'Lexend', sans-serif;
    line-height: 1.4;
    margin: 0;
}

.feature-item-list .item p strong {
font-family: 'Lexend', sans-serif;
    color: #ffffff; 
}

/* Media Query untuk Mobile */
@media (max-width: 992px) {
    .cards-grid {
        flex-direction: column;
        align-items: center;
    }
    .threat-card {
        margin-left: 0;
        margin-top: 40px;
    }
}
/* Responsif untuk layar HP */
@media (max-width: 768px) {
    .cards-grid {
        /* Memastikan kontainer utama memposisikan anak-anaknya di tengah */
        display: flex;
        flex-direction: column;
        align-items: center; 
        padding: 20px; /* Jarak aman dari pinggir layar HP */
    }

    .threat-card {
        /* Hapus margin-left: 40px yang lama */
        margin: 40px auto; 
        width: 90%; /* Lebar kotak agar tidak menyentuh pinggir layar */
        max-width: 350px; /* Membatasi agar tidak terlalu lebar di HP besar */
        height: auto;
        padding: 40px 20px 30px 80px; /* Padding kiri dikurangi sedikit agar teks lebih luas */
        position: relative; /* Penting agar gambar absolut mengacu ke kotak ini */
    }
    
    .card-image {
        width: 120px;
        height: 120px;
        position: absolute; /* Pastikan posisi absolut */
        left: -40px; /* Gambar tetap menonjol keluar ke kiri */
        top: 50%;
        transform: translateY(-50%); /* Gambar tepat di tengah secara vertikal */
        z-index: 2;
    }

    .card-body {
        margin-left: 0; /* Tidak perlu margin lagi karena padding kotak sudah cukup */
        text-align: left;
    }
}
/* RESPONSIVE: Safe Area untuk Mobile */
@media (max-width: 768px) {
    .fab-whatsapp {
        bottom: 20px; /* Jarak aman dari bawah layar HP */
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    .tooltip-text { display: none; } /* Sembunyikan tooltip di HP agar bersih */
}

/* --- IPAD & TABLET RESPONSIVE (768px - 1024px) --- */
@media (min-width: 600px) and (max-width: 1024px) {
    
    /* 1. Values Section: Ubah dari 4 kolom ke 2 kolom */
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
        padding: 0 40px;
    }

    /* 2. Vision Mission Section */
    .vm-wrapper {
        flex-direction: row; /* Tetap sejajar jika muat, atau gunakan wrap */
        gap: 20px;
        padding: 0 30px;
    }
    
    .vm-card {
        min-width: 45%; /* Memberi ruang seimbang kiri-kanan */
        padding: 30px;
    }

    /* 3. About Features Section (Card Mengenal Rumah Sehat) */
    .about-features-container {
        grid-template-columns: 1fr 1fr !important; /* Pastikan tetap 2 kolom */
        gap: 20px;
        padding: 0 20px;
    }

    .glass-card {
        padding: 30px 20px;
    }

    .section-title-modern {
        font-size: 2.2rem;
        text-align: center;
        margin: 0 auto 30px;
    }

    .about-intro {
        text-align: center;
        margin: 0 auto 40px;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }

    .value-card h3 {
        min-height: auto; /* Reset height agar tidak ada ruang kosong berlebih */
        margin-bottom: 10px;
    }
    
    .value-card p {
        font-size: 0.95rem;
    }
}