/*
Theme Name: Etika Hijau
Description: High-End Premium Consultancy Theme
Version: 3.0
Author: Antigravity
*/

:root {
    --navy: #0F2A3D;
    --navy-light: #16364A;
    --gold: #C5960C;
    --gold-light: #E8B923;
    --blue: #2E75B6;
    --white: #FFFFFF;
    --gray: #F4F7F9;
    --text: #2D3436;
    --muted: #636E72;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: #FAF8F2;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── BULLETPROOF HEADER ── */
#main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 2000;
    background: #0F2A3D; /* Solid dark base to avoid white-on-white */
    border-bottom: 3px solid var(--gold);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.header-logo-img { height: 45px; width: auto; }

.logo-text {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold) !important;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-menu-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 3rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none !important;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active, .current-menu-item a {
    color: var(--gold) !important;
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-social { 
    color: white !important; 
    font-size: 1.1rem; 
    display: flex; align-items: center; justify-content: center;
    transition: color 0.3s;
}
.nav-social:hover { color: var(--gold) !important; }

/* Facebook Tooltip */
.nav-social-wrap { position: relative; display: inline-flex; align-items: center; }
.nav-social-tooltip {
    position: absolute !important;
    top: calc(100% + 15px);
    left: 50%; transform: translateX(-50%) translateY(-6px);
    background: #0F2A3D; color: var(--gold);
    border: 1px solid var(--gold);
    font-size: .7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 4px;
    white-space: nowrap !important;
    opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
    transition: all 0.25s ease;
    z-index: 100;
    display: block !important;
    overflow: hidden !important;
}
.nav-social-tooltip::after {
    content: '';
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--gold);
}
.nav-social-wrap:hover .nav-social-tooltip {
    opacity: 1 !important; visibility: visible !important; transform: translateX(-50%) translateY(0);
}

.nav-btn {
    display: inline-flex !important;
    align-items: center; gap: 7px;
    padding: 10px 20px;
    background: var(--gold);
    color: #0F2A3D !important;
    font-weight: 800;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    white-space: nowrap;
    position: relative;
}
.nav-btn-icon { font-size: .8rem; transition: transform 0.3s; }

/* WhatsApp hover state */
.nav-btn-wrap { position: relative; display: inline-block; }
.nav-btn-wrap:hover .nav-btn {
    background: #25D366;
    color: #fff !important;
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.55);
    transform: translateY(-2px);
}
.nav-btn-wrap:hover .nav-btn-icon { transform: rotate(-15deg) scale(1.2); }

/* Tooltip */
.nav-btn-tooltip {
    position: absolute !important;
    top: calc(100% + 10px);
    left: 50%; transform: translateX(-50%) translateY(-6px);
    background: #25D366; color: #fff;
    font-size: .75rem; font-weight: 700;
    padding: 5px 12px; border-radius: 4px;
    white-space: nowrap !important;
    opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 100;
    display: block !important;
    overflow: hidden !important;
}
.nav-btn-tooltip::after {
    content: '';
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #25D366;
}
.nav-btn-wrap:hover .nav-btn-tooltip {
    opacity: 1 !important; visibility: visible !important; transform: translateX(-50%) translateY(0);
}

/* MOBILE LOGIC */
body.no-scroll { overflow: hidden !important; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 2200;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span { 
    display: block; 
    height: 2px; 
    background: white; 
    transition: all 0.3s ease; 
}

.menu-toggle span:nth-child(1) { width: 30px; }
.menu-toggle span:nth-child(2) { width: 20px; align-self: flex-end; }

.menu-toggle.active span:nth-child(1) { 
    transform: translateY(5px) rotate(45deg); 
    width: 30px;
}
.menu-toggle.active span:nth-child(2) { 
    transform: translateY(-5px) rotate(-45deg); 
    width: 30px;
}

@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    .nav-menu-wrap {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: #0F2A3D;
        flex-direction: column;
        justify-content: center;
        align-items: center; /* Center links in mobile */
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2100;
    }
    .nav-menu-wrap.active { right: 0; }
    .nav-menu { flex-direction: column; gap: 2.5rem; text-align: center; }
    .nav-menu a { font-size: 1.2rem !important; }
}

/* ── RESPONSIVE FIXES ── */
@media (max-width: 768px) {
    #main-header, .premium-footer, #slider1-25, .footer-container {
        width: 100vw !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .footer-grid {
        display: block !important; /* Stack vertically instead of grid for maximum safety */
    }
    .footer-col {
        width: 100% !important;
        margin-bottom: 40px !important;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .footer-logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .footer-logo .logo-text {
        text-align: center !important;
    }
    .logo-tagline {
        text-align: center !important;
        margin: 5px auto 0 !important;
    }
    .footer-links li {
        text-align: center !important;
    }
    .footer-logo {
        justify-content: center;
    }
    #slider1-25 {
        min-height: 450px !important; 
        height: 60vh !important;
        width: 100% !important;
        display: block !important;
    }
    .carousel-item {
        min-height: 450px !important;
        height: 60vh !important;
        display: none;
    }
    .carousel-item.active {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* ── FOOTER ── */
.premium-footer { background: #0A1926; color: white; padding: 80px 20px; border-top: 4px solid var(--gold); }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-heading { color: var(--gold); margin-bottom: 25px; font-family: 'Playfair Display', serif; }
.footer-logo .logo-text { font-family: 'Playfair Display', serif !important; font-size: 1.8rem; font-weight: 800; color: var(--gold) !important; }
.footer-logo .logo-text span { color: var(--gold) !important; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
