/* ===============================
   OCES HEADER — NATURAL EARTHY
   File: assets/css/oces-header.css
================================ */

/* ── VARIABLES ── */
:root {
    --oces-forest:      #3C6626;
    --oces-forest-dark: #3C6626;
    --oces-sage:        #7A9E6E;
    --oces-sage-light:  #A8CCA0;
    --oces-cream:       #F7F3EC;
    --oces-sand:        #E8DCC8;
    --oces-earth:       #6B4F2A;
    --oces-text:        #F7F3EC;
    --oces-text-muted:  rgba(247, 243, 236, 0.65);
    --oces-border:      rgba(247, 243, 236, 0.12);
    --header-height-desktop: 68px;
    --header-height-mobile:  60px;
    --transition: all 0.25s ease;
}

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

/* ── BODY OFFSET ── */
body {
    padding-top: var(--header-height-desktop);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.home,
body.front-page {
    padding-top: 0 !important;
}

/* ── HEADER BASE ── */
.oces-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--oces-forest);
    border-bottom: 1px solid var(--oces-border);
    height: var(--header-height-desktop);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.oces-header.scrolled {
    background: var(--oces-forest-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* ── CONTAINER ── */
.oces-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ── HAMBURGER (HIDDEN DESKTOP) ── */
.oces-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1002;
}

.toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--oces-text);
    margin: 3.5px 0;
    transition: var(--transition);
    transform-origin: center;
}

.oces-toggle[aria-expanded="true"] .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.oces-toggle[aria-expanded="true"] .toggle-line:nth-child(2) {
    opacity: 0;
}
.oces-toggle[aria-expanded="true"] .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ── LOGO ── */
.oces-logo img {
    height: 38px;
    width: auto;
    display: block;
}

/* ── NAV ── */
.oces-nav {
    margin-left: auto;
}

.oces-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── MENU ITEMS ── */
.menu-item a {
    display: block;
    padding: 8px 14px;
    color: var(--oces-text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 400;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.menu-item a:hover {
    color: var(--oces-text);
    background: rgba(247, 243, 236, 0.08);
}

.menu-item.current a {
    color: var(--oces-sage-light);
}

/* ── CTA BUTTON ── */
.menu-item.menu-cta {
    margin-left: 8px;
}

.menu-item.menu-cta a {
    background: var(--oces-sage);
    color: #fff;
    padding: 9px 18px;
    font-weight: 500;
    border-radius: 8px;
}

.menu-item.menu-cta a:hover {
    background: #6a8f5e;
    color: #fff;
}

/* ── ACTIVE INDICATOR ── */
.menu-item.current:not(.menu-cta) a {
    position: relative;
}

.menu-item.current:not(.menu-cta) a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--oces-sage-light);
    border-radius: 1px;
}

/* ===============================
   MOBILE OVERLAY
================================ */
.mobile-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── SLIDE PANEL ── */
.mobile-container {
    position: fixed;
    top: 0; left: 0;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: var(--oces-forest-dark);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.mobile-overlay.active .mobile-container {
    transform: translateX(0);
}

/* ── MOBILE HEADER ── */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--oces-border);
    flex-shrink: 0;
}

.mobile-logo img {
    height: 32px;
    width: auto;
}

.mobile-close {
    background: none;
    border: none;
    color: var(--oces-text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.mobile-close:hover {
    color: var(--oces-text);
}

/* ── MOBILE SEARCH ── */
.mobile-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--oces-border);
    flex-shrink: 0;
}

.mobile-search form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(247, 243, 236, 0.08);
    border-radius: 8px;
    padding: 0 12px;
    border: 1px solid var(--oces-border);
}

.mobile-search input {
    flex: 1;
    background: none;
    border: none;
    padding: 11px 0;
    color: var(--oces-text);
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.mobile-search input::placeholder {
    color: var(--oces-text-muted);
}

.mobile-search button {
    background: none;
    border: none;
    color: var(--oces-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}

.mobile-search button:hover {
    color: var(--oces-sage-light);
}

/* ── MOBILE MENU ── */
.mobile-menu {
    list-style: none;
    padding: 8px 0;
    flex: 1;
}

.mobile-item a {
    display: block;
    padding: 14px 20px;
    color: var(--oces-text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.mobile-item a:hover {
    color: var(--oces-text);
    background: rgba(247, 243, 236, 0.05);
    border-left-color: var(--oces-sage);
}

/* ── MOBILE CTA ── */
.mobile-item-cta {
    margin: 8px 20px 0;
    border-bottom: none !important;
}

.mobile-item-cta a {
    background: var(--oces-sage);
    color: #fff !important;
    border-radius: 8px;
    text-align: center;
    padding: 13px 20px;
    font-weight: 500;
    border-left: none !important;
    margin-top: 8px;
}

.mobile-item-cta a:hover {
    background: #6a8f5e !important;
    border-left-color: transparent !important;
}

/* ── MOBILE FOOTER INFO ── */
.mobile-footer-info {
    padding: 20px;
    border-top: 1px solid var(--oces-border);
    flex-shrink: 0;
}

.mobile-footer-info p {
    font-size: 11px;
    color: rgba(247, 243, 236, 0.35);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* ── FOCUS STATES ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--oces-sage-light);
    outline-offset: 2px;
}

/* RIGHT GROUP */
.menu-right-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    list-style: none;
}

/* CTA */
/* GROUP */
.menu-right-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 14px;
    list-style: none;
}

/* HUBUNGI KAMI */
.menu-right-group .menu-cta {
    width: 100%;
}

.menu-right-group{
    display:flex;
    flex-direction:column;
    align-items:center;

    position:relative;
    top:42px;

    gap:16px; /* INI jarak antar item */
}

.menu-right-group .menu-cta a:hover {
    background: #6a8f5e;
}



.menu-language .language-switcher,
.menu-language .lang-switcher,
.menu-language select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-height-mobile) !important;
    }

    body.home,
    body.front-page {
        padding-top: 0 !important;
    }

    .oces-header {
        height: var(--header-height-mobile);
    }

    .oces-container {
        padding: 0 16px;
        gap: 12px;
    }

    .oces-toggle {
        display: flex;
    }

    .oces-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .oces-logo img {
        height: 30px;
    }

    .oces-nav {
        display: none;
    }
}

.mobile-language {
    padding: 18px 20px 10px;
}

.mobile-language .language-switcher,
.mobile-language .lang-switcher,
.mobile-language select {
    width: 100%;
    background: rgba(247,243,236,0.08);
    border: 1px solid rgba(247,243,236,0.12);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

@media (min-width: 769px) {
    .oces-toggle,
    .mobile-overlay {
        display: none !important;
    }
}