/* =========================================================
   WORLD PHILOSOPHY DAY MALAYSIA
   HEADER & NAVIGATION
   ========================================================= */


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.wpd-header {
    position: relative;
    z-index: 999;

    width: 100%;

    background: var(--wpd-navy);
    color: var(--wpd-white);

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


/* ---------------------------------------------------------
   INNER
   --------------------------------------------------------- */

.wpd-header__inner {
    width: min(94%, 1440px);
    height: 88px;

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}


/* ---------------------------------------------------------
   BRAND
   --------------------------------------------------------- */

.wpd-header__brand {
    display: flex;
    align-items: center;

    gap: 0.9rem;

    color: var(--wpd-white);
    text-decoration: none;

    flex-shrink: 0;
}

.wpd-header__brand:hover {
    color: var(--wpd-white);
}

.wpd-header__logo {
    display: block;

    width: 100px;
    height: 100px;

    object-fit: contain;
    flex-shrink: 0;
}

.wpd-header__identity {
    display: flex;
    flex-direction: column;

    font-family: "Lora", Georgia, serif;

    line-height: 1.05;
}

.wpd-header__identity span {
    font-size: 0.95rem;
}

.wpd-header__identity strong {
    margin-top: 0.18rem;

    color: var(--wpd-gold-light);

    font-size: 1.05rem;
    font-weight: 500;
}


/* ---------------------------------------------------------
   DESKTOP NAVIGATION
   --------------------------------------------------------- */

.wpd-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(1.2rem, 2.1vw, 2.3rem);

    margin-left: auto;
}

.wpd-nav a {
    position: relative;

    padding-block: 2rem;

    color: rgba(255, 255, 255, 0.86);

    font-size: 0.78rem;
    font-weight: 600;

    letter-spacing: 0.04em;

    text-decoration: none;

    transition: color 0.2s ease;
}

.wpd-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 1.55rem;

    width: 0;
    height: 1px;

    background: var(--wpd-gold);

    transition: width 0.25s ease;
}

.wpd-nav a:hover {
    color: var(--wpd-white);
}

.wpd-nav a:hover::after {
    width: 100%;
}


/* ---------------------------------------------------------
   HEADER ACTIONS
   --------------------------------------------------------- */

.wpd-header__actions {
    display: flex;
    align-items: center;

    gap: 1.3rem;

    flex-shrink: 0;
}


/* ---------------------------------------------------------
   LANGUAGE
   --------------------------------------------------------- */

.wpd-language {
    display: flex;
    align-items: center;

    gap: 0.35rem;

    font-size: 0.68rem;
}

.wpd-language span {
    color: rgba(255, 255, 255, 0.35);
}

.wpd-language__option {
    padding: 0;

    border: 0;
    background: transparent;

    color: rgba(255, 255, 255, 0.5);

    font-family: inherit;
    font-size: inherit;
    font-weight: 700;

    cursor: pointer;
}

.wpd-language__option:hover,
.wpd-language__option.is-active {
    color: var(--wpd-gold-light);
}


/* ---------------------------------------------------------
   REGISTER
   --------------------------------------------------------- */

.wpd-header__register {
    display: inline-flex;
    align-items: center;

    gap: 0.6rem;

    padding: 0.75rem 1.1rem;

    background: var(--wpd-gold);

    color: var(--wpd-white);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.wpd-header__register:hover {
    background: var(--wpd-gold-light);

    color: var(--wpd-navy-dark);

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   MOBILE TOGGLE
   --------------------------------------------------------- */

.wpd-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.wpd-menu-toggle span {
    display: block;

    width: 25px;
    height: 1px;

    margin: 6px auto;

    background: var(--wpd-white);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* Open state */

.wpd-menu-toggle.is-active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.wpd-menu-toggle.is-active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}


/* ---------------------------------------------------------
   MOBILE MENU
   --------------------------------------------------------- */

.wpd-mobile-menu {
    display: none;

    position: fixed;

    top: 72px;
    left: 0;

    width: 100%;
    height: calc(100dvh - 72px);

    padding: 2rem 5%;

    background: var(--wpd-navy-dark);

    overflow-y: auto;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.wpd-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.wpd-mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.wpd-mobile-menu nav a {
    display: flex;
    align-items: center;

    gap: 1.2rem;

    padding: 1rem 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    color: var(--wpd-white);

    font-family: "Lora", Georgia, serif;
    font-size: clamp(1.6rem, 7vw, 2.5rem);

    text-decoration: none;
}

.wpd-mobile-menu nav a span {
    width: 24px;

    color: var(--wpd-gold);

    font-family: "Inter", Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   MOBILE MENU BOTTOM
   --------------------------------------------------------- */

.wpd-mobile-menu__bottom {
    margin-top: 2rem;
}

.wpd-mobile-menu__language {
    display: flex;

    gap: 1rem;

    margin-bottom: 1.5rem;
}

.wpd-mobile-menu__language button {
    padding: 0;

    border: 0;

    background: transparent;

    color: rgba(255, 255, 255, 0.55);

    font-family: inherit;
    font-size: 0.8rem;

    cursor: pointer;
}

.wpd-mobile-menu__language button.is-active {
    color: var(--wpd-gold-light);
}

.wpd-mobile-menu__register {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 1rem 1.2rem;

    background: var(--wpd-gold);

    color: var(--wpd-white);

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.05em;

    text-decoration: none;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .wpd-nav,
    .wpd-language,
    .wpd-header__register {
        display: none;
    }

    .wpd-menu-toggle {
        display: block;
    }

    .wpd-mobile-menu {
        display: block;
    }

}


@media (max-width: 767px) {

    .wpd-header__inner {
        height: 72px;
    }

    .wpd-header__logo {
        width: 48px;
        height: 48px;
    }

    .wpd-header__identity span {
        font-size: 0.78rem;
    }

    .wpd-header__identity strong {
        font-size: 0.9rem;
    }

}