:root {
    --sa-obsidian: #0d1d1f;
    --sa-mint: #2dd4a8;
    --sa-mint-dark: #22b991;
    --sa-paper: #f5f3ee;
    --sa-warm: #e8e4dd;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--sa-paper);
    color: var(--sa-obsidian);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

/* =========================
   HEADER
========================= */
.sa-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: var(--sa-obsidian);
    border-bottom: 1px solid rgba(245, 243, 238, 0.10);
}

.sa-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    min-height: 66px;
    gap: 24px;
}

.sa-header__left {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.sa-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sa-header__logo img {
    height: 20px;
    width: auto;
}

/* =========================
   DESKTOP NAV
========================= */
.sa-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sa-header__nav a {
    color: rgba(245, 243, 238, 0.60);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.sa-header__nav a:hover {
    color: var(--sa-paper);
}

/* =========================
   ACTION BUTTONS
========================= */
.sa-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sa-header__employee-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(245, 243, 238, 0.15);
    border-radius: 2px;
    background: transparent;
    color: var(--sa-paper);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sa-header__employee-login:hover {
    background: rgba(245, 243, 238, 0.05);
    border-color: rgba(245, 243, 238, 0.25);
    color: var(--sa-paper);
}

.sa-header__account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--sa-mint);
    border-radius: 2px;
    background: var(--sa-mint);
    color: var(--sa-obsidian);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sa-header__account-button:hover {
    color: var(--sa-obsidian);
    background: var(--sa-mint);
    box-shadow: 0 0 30px rgba(45, 212, 168, 0.35);
}

/* =========================
   MOBILE MENU BUTTON
========================= */
.sa-header__menu-button {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(245, 243, 238, 0.15);
    border-radius: 2px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.sa-header__menu-button span {
    width: 16px;
    height: 1px;
    background: var(--sa-paper);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sa-header__menu-button.is-open span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.sa-header__menu-button.is-open span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* =========================
   MOBILE NAV
========================= */
.sa-header__mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding: 0 24px 16px;
    border-top: 1px solid rgba(245, 243, 238, 0.10);
    background: var(--sa-obsidian);
}

.sa-header__mobile-menu.is-open {
    display: flex;
}

.sa-header__mobile-menu a {
    padding: 10px 0;
    color: rgba(245, 243, 238, 0.70);
    font-size: 14px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    transition: color 0.2s ease;
}

.sa-header__mobile-menu a:hover {
    color: var(--sa-paper);
}

.sa-header__mobile-login {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(245, 243, 238, 0.10);
    color: var(--sa-paper) !important;
}


/* =========================================================
   EMPLOYEE LOGIN DROPDOWN

   Keeps existing header button styling.
   ========================================================= */

.sa-employee-dropdown {
    position: relative;

    display: inline-flex;
}


/* Existing employee button appearance is retained */

.sa-employee-dropdown__button {
    gap: 8px;

    cursor: pointer;
}


.sa-employee-dropdown__chevron {
    display: inline-block;

    color: rgba(245, 243, 238, 0.65);

    font-size: 10px;

    line-height: 1;

    transition: transform 0.2s ease;
}


.sa-employee-dropdown__button[aria-expanded="true"]
.sa-employee-dropdown__chevron {
    transform: rotate(180deg);
}


/* =========================================================
   DESKTOP DROPDOWN MENU
   ========================================================= */

.sa-employee-dropdown__menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 100;

    display: none;

    width: 220px;

    padding: 6px;

    border: 1px solid rgba(13, 29, 31, 0.10);

    border-radius: 2px;

    background: #f5f3ee;

    box-shadow:
        0 18px 40px
        rgba(13, 29, 31, 0.16);
}


.sa-employee-dropdown__menu.is-open {
    display: block;
}


.sa-employee-dropdown__menu a {
    display: block;

    width: 100%;

    padding: 11px 12px;

    border-radius: 2px;

    color: #0d1d1f;

    font-family: "DM Sans", sans-serif;

    font-size: 14px;
    font-weight: 500;

    line-height: 20px;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.sa-employee-dropdown__menu a:hover {
    background: #e8e4dd;

    color: #0d1d1f;
}


/* Small mint indicator */

.sa-employee-dropdown__menu a::before {
    content: "";

    display: inline-block;

    width: 5px;
    height: 5px;

    margin-right: 10px;

    border-radius: 50%;

    background: #2dd4a8;

    vertical-align: 2px;
}


/* =========================================================
   MOBILE EMPLOYEE LOGIN
   ========================================================= */

.sa-mobile-employee {
    display: none;

    margin-top: 8px;

    padding-top: 8px;

    border-top:
        1px solid
        rgba(245, 243, 238, 0.10);
}


.sa-mobile-employee__button {
    display: flex;

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

    width: 100%;

    padding: 10px 0;

    border: 0;

    background: transparent;

    color: #f5f3ee;

    font-family: "DM Sans", sans-serif;

    font-size: 14px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;
}


.sa-mobile-employee__chevron {
    color: rgba(245, 243, 238, 0.60);

    font-size: 11px;

    transition: transform 0.2s ease;
}


.sa-mobile-employee__button.is-open
.sa-mobile-employee__chevron {
    transform: rotate(180deg);
}


.sa-mobile-employee__menu {
    display: none;

    padding-bottom: 4px;
}


.sa-mobile-employee__menu.is-open {
    display: block;
}


.sa-mobile-employee__menu a {
    padding:
        9px
        14px;

    color: rgba(245, 243, 238, 0.65);

    font-size: 13px;

    border-left:
        1px solid
        rgba(45, 212, 168, 0.45);
}


.sa-mobile-employee__menu a:hover {
    color: #f5f3ee;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    /*
     * Desktop login dropdown disappears because
     * login is available inside mobile navigation.
     */

    .sa-employee-dropdown {
        display: none;
    }


    .sa-mobile-employee {
        display: block;
    }

}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .sa-header__nav {
        gap: 18px;
    }

    .sa-header__nav a {
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .sa-header__nav {
        display: none;
    }

    .sa-header__menu-button {
        display: flex;
    }
}

@media (max-width: 576px) {
    .sa-header__inner {
        padding: 12px 16px;
        min-height: 60px;
    }

    .sa-header__logo img {
        height: 18px;
    }

    .sa-header__employee-login {
        display: none;
    }

    .sa-header__account-button {
        font-size: 13px;
        padding: 8px 12px;
        min-height: 38px;
    }

    .sa-header__mobile-menu {
        padding-left: 16px;
        padding-right: 16px;
    }
}