/* Base Header */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    font-family: var(--font-tertiary);
    padding: var(--header-padding);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Logo */
.header-logo img {
    height: 40px;
    width: auto;
}

/* Desktop Navigation */
.desktop-nav {
    margin-left: auto; /* Push to right */
    margin-right: 40px; /* Space between nav and buttons */
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn-custom {
    display: inline-block;
    padding: 10px 25px; /* Slightly larger buttons */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
}

.btn-solid {
    background: var(--accent-color);
    color: var(--white);
    border: 1px solid var(--accent-color);
}

.btn-solid:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Mobile Elements */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--accent-color);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    padding: 20px;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0; /* Slide in */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-close {
    font-size: 24px;
    color: var(--accent-color);
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list a {
    font-size: 18px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.mobile-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-actions .btn-custom {
    width: 100%;
    margin: 0;
    display: block;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    height: auto;
}

/* Responsive Rules */
@media (max-width: 991px) {
    .custom-header {
        padding: 0 20px;
    }

    .desktop-nav,
    .desktop-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 575px) {
    .custom-header {
        padding: 0 14px;
    }

    .header-logo img {
        height: 32px;
    }

    .mobile-toggle {
        font-size: 22px;
    }

    .mobile-menu {
        padding: 16px;
    }

    .mobile-nav-list a {
        font-size: 16px;
    }

    .mobile-actions .btn-custom {
        font-size: 13px;
        padding: 10px 16px;
    }
}

body.no-scroll {
    overflow: hidden;
}
