@font-face {
    font-family: "Souvenir";
    src: url("../font/itc-souvenir/Souvenir-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}
/* --- PENGATURAN DASAR --- */
:root {
    --primary-red: #ff0000;
    --dark-red: #8b0000;
    --yellow: #ffff00;
    --dark: #1a1a1a;
    --light-bg: #f9f9f9;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.text-center { text-align: center; }
.text-red { color: var(--primary-red); }
.text-yellow { color: var(--yellow); }
.text-white { color: #fff; }
.bg-light { background-color: var(--light-bg); }
.mt-2 { margin-top: 20px; display: inline-block; }

/* --- TOMBOL (BUTTONS) --- */
.btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}
.btn-red { background: var(--primary-red); color: #fff; border: 2px solid var(--primary-red); }
.btn-red:hover { background: #cc0000; }
.btn-outline { background: transparent; color: var(--primary-red); border: 2px solid var(--primary-red); }
.btn-outline:hover { background: var(--primary-red); color: #fff; }
.btn-outline-red { color: var(--primary-red); border: 2px solid var(--primary-red); border-radius: 30px; padding: 10px 30px; }
.btn-outline-red:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}
.btn-dark { 
    background: rgba(0,0,0,0.7); 
    color: #fff; 
    border: 2px solid #fff; 
}
.btn-dark:hover { 
    background: #fff; 
    color: var(--dark); 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

/* Tombol Kuning */
.btn-yellow { 
    background: var(--yellow); 
    color: var(--dark); 
    border: none; 
}
.btn-yellow:hover { 
    background: #e6e600; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 0, 0.3);
}

/* Tombol Putih */
.btn-white { 
    background: #fff; 
    color: var(--primary-red); 
    border: none; 
}
.btn-white:hover { 
    background: #f0f0f0; 
    color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    position: absolute;
    top: 35px;
    left: 35px;
    right: 35px;
    z-index: 100;
    border-radius: 20px; /* Sudut lebih bulat menyesuaikan desain */
    overflow: hidden;
    padding: 0 12px 0 0; /* Padding kanan disesuaikan untuk tombol menyatu */
}

/* Redesain Efek Miring & Garis Kuning (Pure CSS) */
.logo-container {
    position: relative;
    padding: 12px 45px 12px 35px;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 1;
    clip-path: none; /* Dihapus agar garis kuning bisa terlihat */
}

/* Background Merah Miring */
.logo-container::before {
    content: '';
    position: absolute;
    top: 0; left: -20px; bottom: 0; right: 15px; /* Menyisakan ruang untuk kuning di kanan */
    background: var(--primary-red);
    transform: skewX(-22deg); /* Kemiringan presisi */
    z-index: -1;
}

/* Background Kuning Miring */
.logo-container::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 7px;
    width: 15px; /* Lebar garis kuning */
    background: var(--yellow);
    transform: skewX(-22deg);
    z-index: -2;
}

.logo-text {
    color: var(--yellow);
    font-weight: 800; /* Dibuat lebih tebal */
    font-size: 1.9rem; /* Ukuran disesuaikan */
    margin: 0;
    font-family: 'Souvenir', serif;
}

/* Tipografi Menu Dirapikan */
.nav-links a {
    margin: 0 12px;
    color: var(--primary-red);
    font-weight: 800; /* Sangat tebal (bold) seperti desain */
    font-size: 13.5px;
    letter-spacing: 0.5px; /* Sedikit renggang agar mudah dibaca */
}

.nav-links a:hover {
    color: var(--dark-red);
}

/* --- TOMBOL NAVBAR MENYATU (BUTTON GROUP) --- */
.nav-buttons {
    display: flex;
    gap: 12px; /* Memberikan jarak antar tombol */
    padding-right: 0;
}

.nav-buttons .btn-red {
    border-radius: 30px; /* Kembali oval penuh */
    margin-right: 0;
    padding: 10px 22px;
}

.nav-buttons .btn-red:hover { 
    background: #cc0000; 
    border-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

.nav-buttons .btn-outline {
    border-radius: 30px; /* Kembali oval penuh */
    margin-left: 0; /* Hapus margin negatif */
    padding: 10px 22px;
}

.nav-buttons .btn-outline:hover { 
    background: var(--primary-red); 
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

/* --- WADAH MENU DESKTOP --- */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-right: 30px; /* Memberi jarak pas antara teks menu dan grup tombol */
}

/* Sembunyikan tombol hamburger di Desktop */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding-right: 20px;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../pic/hero-background.png') no-repeat center 100%/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 0 5%; /* Padding atas ditambah agar teks tidak tertutup navbar */
    text-align: left;
    position: relative;
}

.hero-content h2 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-content p {
    color: #eee;
    font-size: 1.15rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px; /* Memberi jarak antar tombol yang presisi */
}

.hero-buttons .btn {
    padding: 12px 28px;
    font-size: 14px;
    margin-right: 0; /* Reset margin karena sudah pakai fitur gap */
}

/* --- TENTANG KAMI --- */
.about {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-image img { width: 100%; border-radius: 10px; }
.subtitle { color: var(--primary-red); font-weight: 700; font-size: 14px; margin-bottom: 10px; display: block; }
.about-text h2 { font-size: 2rem; margin-bottom: 20px; font-weight: 800; }
.about-text p { margin-bottom: 15px; color: #555; }

/* --- LAYOUT GRID --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 30px; }
.grid-4 { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 30px; }

/* --- CABANG KAMI --- */
.branch-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.branch-card img {
    width: 100%;
    height: 200px; /* Sesuaikan tinggi kotak */
    object-fit: cover; /* Memastikan gambar terpotong rapi tanpa gepeng */
    display: block;
}
.branch-card h3 { padding: 15px; font-size: 1.2rem; }

/* --- KEUNGGULAN --- */
.feature-item { padding: 20px 10px; }
.icon-circle {
    width: 60px; height: 60px;
    background: #ffe6e6; color: var(--primary-red);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px; margin: 0 auto 15px auto;
}
.feature-item h4 { margin-bottom: 10px; font-size: 1rem; }
.feature-item p { font-size: 0.9rem; color: #666; }

/* --- TESTIMONI --- */
.testimonials { background: var(--dark-red); padding: 60px 20px; }
.testi-card { background: #fff; padding: 25px; border-radius: 10px; text-align: left; }
.stars { color: var(--yellow); margin-bottom: 10px; font-size: 1.2rem; }
.testi-card p { font-size: 0.95rem; font-style: italic; margin-bottom: 20px; }
.user-info { display: flex; align-items: center; gap: 15px; }
.user-info img { width: 50px; height: 50px; border-radius: 50%; }
.user-info strong { display: block; font-size: 0.95rem; }
.user-info span { font-size: 0.8rem; color: #777; }
.dots { margin-top: 30px; display: flex; justify-content: center; gap: 8px; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; }
.dot.active { background: var(--yellow); }

/* --- CTA --- */
.cta { background: var(--primary-red); padding: 40px 20px; }
.cta-content { display: flex; justify-content: space-between; align-items: center; padding: 0;}
.cta-text h2, .cta-text p { color: #fff; margin: 0; }
.cta-buttons .btn { margin-left: 15px; }

/* --- FOOTER --- */
footer { background: var(--dark); color: #ccc; padding-top: 50px; }
.footer-col h2 { margin-bottom: 15px; }
.footer-col h3 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col p { font-size: 0.9rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ccc; transition: 0.3s; font-size: 0.9rem;}
.footer-col ul li a:hover { color: var(--primary-red); }
.contact-info li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.social-links a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 35px; height: 35px; background: #333; color: #fff; border-radius: 50%;
    margin-right: 10px; transition: 0.3s;
}
.social-links a:hover { background: var(--primary-red); }
.footer-bottom { text-align: center; padding: 20px; background: #111; font-size: 0.85rem; margin-top: 40px; }

/* --- RESPONSIVE UNTUK HP --- */
@media (max-width: 992px) {
    .grid-3, .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about { flex-direction: column; }
    .cta-content { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 768px) {
    .grid-3, .grid-5, .grid-4 { grid-template-columns: 1fr; }

    .navbar {
        position: sticky; 
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        overflow: visible;
        
        flex-direction: row; 
        flex-wrap: wrap; 
        align-items: center;
        justify-content: space-between;
        
        /* ATUR INI: Ubah padding atas-bawah jadi 0 agar menempel penuh */
        padding: 0 16px 0 0; 
        
        background: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .logo-container {
        height: 100%;
        display: flex;
        align-items: center;
        
        /* ATUR INI: Berikan padding vertikal di sini agar tinggi kotak merahnya ikut menyesuaikan */
        padding: 15px 40px 15px 25px; 
        
        border-radius: 0;
        clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
        background: var(--primary-red);
    }

    .logo-text {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 25px;
        color: var(--dark);
        padding: 0;
    }

    .nav-menu {
        display: none; /* Disembunyikan secara default */
        flex-direction: column;
        width: 100%;
        background: #ffffff;
        position: absolute;
        top: 100%; /* Pas di bawah navbar */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        border-top: 1px solid #f0f0f0;
        z-index: 999; /* Diberi z-index tinggi agar di ATAS hero image */
    }

    /* Saat tombol hamburger diklik (Javascript menambah class active) */
    .nav-menu.active {
        display: flex !important; /* Pakai !important agar pasti muncul */
    }

    .nav-links { 
        display: flex; 
        flex-direction: column; 
        text-align: center; 
        width: 100%; 
        
        /* INI KUNCINYA: Hapus efek dorongan dari desktop */
        margin-right: 0; 
    }
    .nav-links a { margin: 12px 0; font-size: 15px; }

    .nav-buttons { 
        display: flex; 
        flex-direction: column; /* Memaksa turun ke bawah */
        gap: 15px; /* Memberi jarak antar tombol */
        padding: 0 20px;
        margin-top: 20px;
    }
    
    /* 2. Reset tombol agar kembali oval penuh dan lebarnya 100% */
    .nav-buttons .btn-red, 
    .nav-buttons .btn-outline {
        width: 100%; 
        text-align: center;
        border-radius: 30px; /* Kembalikan sudut jadi bulat penuh */
        margin: 0; /* Hapus efek margin negatif (-2px) dari desktop */
    }

    /* Hero Khusus Mobile Saja */
    .hero {
        background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), 
                    url('../pic/vertical-hero-background.png') no-repeat center center/cover;
        
        /* UBAH INI: Kembalikan jadi 100dvh penuh selayar */
        height: 100dvh; 
        min-height: unset;
        
        /* Tambahkan padding-top agar teks tidak ketutupan navbar */
        padding: 80px 20px 0 20px; 
        
        text-align: center;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column; /* Tombol tumpuk HANYA di HP */
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
}