/* ===== Header Effects ===== */

.whisper-shadow {
    box-shadow: 0 10px 35px -10px rgba(58, 43, 37, 0.22);
}

.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.painterly-gradient {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(201, 154, 90, 0.04) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(245, 239, 232, 0.5) 0%,
            transparent 50%
        );
}

/* ===== Header Layer ===== */

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

/* ===== Mobile Toggle Button ===== */

#menu-toggle {
    position: relative;
    z-index: 1;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.hamburger-icon {
    position: relative;
    display: block;
    width: 26px;
    height: 20px;
    pointer-events: none;
}

.hamburger-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.hamburger-icon span:nth-child(1) {
    top: 1px;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 17px;
}

/* ===== Mobile Menu ===== */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 90px 24px 40px;
}

.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1.5;
    text-decoration: none;
}

body.menu-open {
    overflow: hidden;
}

/* ===== Mobile Menu Close Button ===== */

.mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 24px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 70;

    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;

    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

.mobile-menu-close span {
    position: absolute;
    width: 27px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
    }
}

/* ===== وسم الهيد بلون للصفحة المزراة ===== */


.desktop-nav-link{
    position: relative;
    display: inline-block;
    color: var(--color-text);
    text-decoration: none;
    transition: color .3s ease;
}

.desktop-nav-link:hover,
.desktop-nav-link.active{
    color: var(--color-primary);
}

.desktop-nav-link::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;      /* المسافة أسفل النص */
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width .3s ease;
}

.desktop-nav-link:hover::after,
.desktop-nav-link.active::after{
    width: 100%;
}

/* =====  موبابل وسم الهيد بلون للصفحة المزراة ===== */
.mobile-nav-link.active{
    color:var(--color-primary);
    font-weight:600;
}
}