/* ============================================================
   BASE.CSS - Gaya Dasar untuk Semua Halaman
   ============================================================ */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: #fcfaf7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #1e2a36;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1.2rem; }

/* ===== HEADER ===== */
.site-header {
    background: rgba(0,0,0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    background: rgba(30, 42, 54, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* ===== BRANDING / LOGO ===== */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.custom-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}
.custom-logo-link:hover {
    opacity: 0.85;
}
.custom-logo {
    max-height: 64px;
    width: auto;
    height: auto;
}
@media (max-width: 768px) {
    .custom-logo {
        max-height: 48px;
    }
}
.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}
.site-title a {
    color: #ffffff;
}
.site-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ============================================================
   MOBILE MENU TOGGLE - CHECKBOX SYSTEM
   ============================================================ */

/* Sembunyikan checkbox */
.menu-toggle-checkbox {
    display: none !important;
}

/* Tombol hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px 6px;
    cursor: pointer;
    z-index: 1000;
    order: 2;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================================
   MAIN NAVIGATION (DESKTOP)
   ============================================================ */
.main-navigation {
    display: flex;
    align-items: center;
}
.main-navigation .menu-container ul {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.main-navigation .menu-container ul li {
    position: relative;
}
.main-navigation .menu-container ul li a {
    display: inline-block;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}
.main-navigation .menu-container ul li a:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.10);
}
.main-navigation .menu-container ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.main-navigation .menu-container ul li a:hover::after {
    width: 50%;
}

/* ============================================================
   RESPONSIVE MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Tampilkan tombol hamburger */
    .menu-toggle {
        display: flex !important;
    }

    /* Sembunyikan menu secara default */
    .main-navigation {
        display: none !important;
        width: 100%;
        flex-basis: 100%;
        background: #1e2a36;
        border-radius: 16px;
        margin-top: 12px;
        padding: 16px 12px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.06);
        order: 3;
    }

    /* Saat checkbox dicentang, tampilkan menu */
    .menu-toggle-checkbox:checked ~ .main-navigation {
        display: flex !important;
        flex-direction: column;
    }

    /* Style menu mobile */
    .main-navigation .menu-container ul {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    .main-navigation .menu-container ul li {
        width: 100%;
    }
    .main-navigation .menu-container ul li a {
        display: block;
        padding: 14px 16px;
        text-align: center;
        font-size: 1rem;
        color: #ffffff;
        border-radius: 10px;
        background: transparent;
        width: 100%;
    }
    .main-navigation .menu-container ul li a:hover {
        background: rgba(212, 175, 55, 0.15);
        color: #d4af37;
    }
    .main-navigation .menu-container ul li a::after {
        display: none;
    }

    /* Efek hamburger berubah jadi X saat aktif */
    .menu-toggle-checkbox:checked + .menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .menu-toggle-checkbox:checked + .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-checkbox:checked + .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Background header saat menu terbuka */
    .site-header:has(.menu-toggle-checkbox:checked) {
        background: #1e2a36;
        border-bottom-color: rgba(255, 255, 255, 0.15);
    }
}

/* ============================================================
   BUTTONS GLOBAL
   ============================================================ */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: #d4af37;
    color: #fff;
    border-color: #d4af37;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}
.btn-primary:hover {
    background: #b8942a;
    border-color: #b8942a;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.35);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover {
    background: #ffffff;
    color: #1e2a36;
    border-color: #ffffff;
    transform: translateY(-3px);
}
.btn-cta {
    background: #d4af37;
    color: #fff;
    border-color: #d4af37;
    padding: 16px 44px;
    font-size: 1.05rem;
}
.btn-cta:hover {
    background: #b8942a;
    border-color: #b8942a;
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(212, 175, 55, 0.3);
}

/* ============================================================
   SECTION GLOBAL
   ============================================================ */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    text-align: center;
    color: #1e2a36;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, #d4af37, #f5e5b0, #d4af37);
    border-radius: 4px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #5a6f80;
    max-width: 640px;
    margin: 0 auto 50px;
    font-weight: 300;
    line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1e2a36;
    color: #b0c4d0;
    padding: 60px 0 30px;
}
.site-footer a {
    color: #d4af37;
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: #ffffff;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 18px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 8px;
    display: inline-block;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
}
.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}
.footer-separator {
    opacity: 0.2;
}
.footer-navigation .footer-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}
.footer-navigation .footer-menu a {
    font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE FOOTER
   ============================================================ */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-info {
        justify-content: center;
    }
    .footer-navigation .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: #6b7a88; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

.breadcrumb { padding: 10px 0; font-size: 14px; }
.breadcrumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb-item { display: inline-flex; align-items: center; }
.breadcrumb-item:not(:last-child)::after { content: '/'; margin: 0 8px; color: #999; }
.breadcrumb-link { color: #2563eb; text-decoration: none; }
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-item.current { color: #333; font-weight: 600; }

/* ============================================================
   FLOATING CONTACT BUTTONS
   ============================================================ */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    align-items: flex-end;
}
.floating-contact .contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 28px;
    position: relative;
    border: none;
    outline: none;
}
.floating-contact .contact-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.floating-contact .contact-btn .tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.floating-contact .contact-btn:hover .tooltip {
    opacity: 1;
}
.floating-contact .btn-wa {
    background: #25D366;
}
.floating-contact .btn-wa:hover {
    background: #1ebe5c;
}
.floating-contact .btn-telp {
    background: #2563eb;
}
.floating-contact .btn-telp:hover {
    background: #1d4ed8;
}
.floating-contact .contact-btn {
    animation: floatIn 0.5s ease forwards;
    opacity: 0;
    transform: translateX(30px);
}
.floating-contact .contact-btn:nth-child(1) { animation-delay: 0.05s; }
.floating-contact .contact-btn:nth-child(2) { animation-delay: 0.12s; }
.floating-contact .contact-btn:nth-child(3) { animation-delay: 0.19s; }
.floating-contact .contact-btn:nth-child(4) { animation-delay: 0.26s; }
@keyframes floatIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .floating-contact .contact-btn {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }
    .floating-contact .contact-btn .tooltip {
        display: none;
    }
}
@media (max-width: 480px) {
    .floating-contact .contact-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ============================================================
   PERBAIKAN OVERFLOW HORIZONTAL (Mencegah scroll ke kanan)
   ============================================================ */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    width: 100%;
}

/* Semua section dengan elemen absolute/relatif yang berpotensi overflow */
.hero-section,
.hero-image-wrapper,
section[class*="-section"] {
    overflow: hidden;
}

/* Gambar sudah diatur max-width 100%, tapi dipastikan lagi */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container tidak boleh melebihi viewport */
.container {
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}