@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans-regular.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* General Resets */
body {
    overflow-x: hidden; /* Fix horizontal scrollbar from 100vw */
}
.zolar-header-wrapper,
.zolar-hero {
    font-family: 'DM Sans', sans-serif;
}
.zolar-header-wrapper * {
    box-sizing: border-box;
}

.zolar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Button Base */
.zolar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--zolar-accent, #c8e86b);
    padding: 2px 2px 2px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--zolar-accent, #c8e86b);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 48px;
}

.zolar-btn::before {
    content: "";
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 44px;
    background-color: #161616;
    border-radius: inherit;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.zolar-btn-text {
    position: relative;
    z-index: 2;
    padding-right: 12px;
    color: #161616;
    white-space: nowrap;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.zolar-btn-icon {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background-color: #161616;
    color: #ffffff;
    border-radius: 50%;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.zolar-btn-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: #ffffff !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.zolar-btn:hover .zolar-btn-icon svg {
    fill: #161616 !important;
}

.zolar-btn:hover::before {
    width: calc(100% - 4px);
}

.zolar-btn:hover .zolar-btn-text {
    color: #ffffff;
}

.zolar-btn:hover .zolar-btn-icon {
    background-color: var(--zolar-accent, #c8e86b);
    color: #161616;
}

/* Top Bar */
.zolar-topbar {
    background-color: #CAE28E;
    color: var(--zolar-primary, #08151d);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 101;
    min-height: 50px;
    display: flex;
    align-items: center;
}
.zolar-topbar-left {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    color: rgb(22, 22, 22);
    font-size: 16px;
    line-height: 26px;
    display: flex;
    gap: 30px;
    align-items: center;
}
.zolar-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Main Header */
.zolar-header {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--zolar-transition, 300ms ease);
}
.zolar-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.zolar-navigation {
    justify-self: start;
    display: flex;
    align-items: center;
}

.zolar-logo {
    justify-self: center;
}

.zolar-header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Scrolled State */
.zolar-header.zolar-header-scrolled {
    position: fixed;
    top: 0;
    background-color: rgba(8, 21, 29, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo */
.zolar-logo {
    display: flex;
    align-items: center;
}

.zolar-logo img {
    max-width: 250px;
    max-height: 70px;
    height: auto;
    object-fit: contain;
}

.zolar-logo a {
    text-decoration: none;
    color: #ffffff;
}

.zolar-logo a:visited {
    color: #ffffff;
}

.zolar-logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}.zolar-navigation {
    display: flex;
    align-items: center;
}
.zolar-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.zolar-nav-menu a {
    display: block;
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color var(--zolar-transition, 300ms ease);
}
.zolar-nav-menu li:first-child a {
    padding-left: 0;
}
.zolar-nav-menu li a:hover {
    color: var(--zolar-accent, #c8e86b);
}
.zolar-nav-menu li.current-menu-item > a {
    color: var(--zolar-accent, #c8e86b);
}

/* Mobile Toggle & Burger */
.zolar-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0;
}

.zolar-burger {
    color: var(--zolar-accent, #c8e86b);
    cursor: pointer;
    height: 1.3rem;
    line-height: 1rem;
    width: 2.2rem;
    text-decoration: none !important;
    position: relative;
    z-index: 1001; /* Stay above overlay if needed */
}

.zolar-burger-box {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.zolar-burger-inner,
.zolar-burger-inner::before,
.zolar-burger-inner::after {
    background: currentColor;
    content: "";
    height: 2px;
    position: absolute;
    left: 0;
    width: 100%;
    transition: left 300ms 350ms ease, top 300ms 350ms ease, transform 300ms 50ms ease, bottom 300ms 350ms ease, background 0s 300ms;
}

.zolar-burger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.zolar-burger-inner::before {
    top: -8px;
}

.zolar-burger-inner::after {
    bottom: -8px;
}

.zolar-burger.is-active .zolar-burger-inner {
    background: transparent;
}

.zolar-burger.is-active .zolar-burger-inner::before {
    top: 0;
    transform: rotate(45deg);
    transition: top 300ms 50ms ease, transform 300ms 350ms ease;
}

.zolar-burger.is-active .zolar-burger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
    transition: bottom 300ms 50ms ease, transform 300ms 350ms ease;
}
.zolar-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Menu Overlay */
.zolar-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all var(--zolar-transition, 300ms ease);
}
.zolar-mobile-menu-overlay.is-active {
    visibility: visible;
    opacity: 1;
}
.zolar-mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 21, 29, 0.9);
    backdrop-filter: blur(5px);
}
.zolar-mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: var(--zolar-primary, #08151d);
    padding: 30px 20px;
    transform: translateX(100%);
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.zolar-mobile-menu-overlay.is-active .zolar-mobile-menu-content {
    transform: translateX(0);
}
.zolar-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.zolar-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--zolar-header-text, #ffffff);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zolar-mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.zolar-mobile-nav-menu li a {
    text-decoration: none;
    color: var(--zolar-header-text, #ffffff);
    font-size: 20px;
    font-weight: 500;
    display: block;
    transition: color var(--zolar-transition, 300ms ease);
}
.zolar-mobile-nav-menu li a:hover {
    color: var(--zolar-accent, #c8e86b);
}
.zolar-mobile-cta {
    margin-top: 40px;
    text-align: center;
}
.zolar-btn-mobile {
    /* removed width 100% to keep button layout intact */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    .zolar-navigation,
    .zolar-btn-header {
        display: none !important;
    }
    
    .zolar-mobile-menu-toggle {
        display: inline-block;
    }

    .zolar-header-inner {
        grid-template-columns: 1fr auto;
        justify-content: space-between;
    }
    
    .zolar-logo {
        justify-self: start;
    }

    .zolar-topbar {
        position: relative;
        height: auto;
        padding: 10px 0;
        background-color: #CAE28E !important;
        display: flex !important;
    }

    .zolar-topbar-inner {
        flex-direction: column;
        gap: 15px;
        padding: 5px 0;
        text-align: center;
    }
    
    .zolar-topbar-left {
        display: none !important;
    }

    .zolar-topbar-right {
        justify-content: center;
        width: 100%;
        gap: 15px !important;
    }

    .zolar-topbar-right span,
    .zolar-topbar-right strong {
        white-space: nowrap;
    }
    
    .zolar-header-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 101;
    }

    .zolar-header {
        top: 0;
        position: relative;
        background-color: transparent; /* Let the hero show through */
        padding: 15px 0;
    }

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