:root {
    --primary: #4A1CAA;
    --primary-transparent: rgba(74, 28, 170, 0.1);
    --primary-light: #CAB6F3;
    --primary-light-transparent: rgba(202, 182, 243, 0.2);
    --primary-lighter: #6C35DE;
    --primary-darker: #35147A;
    --primary-darkest: #200C49;
    --primary-lightest: #EDE7FB;
    --secondary: #39A0ED;
    --accent: #F5CC00;
    --accent-transparent: rgba(245, 204, 0, 0.2);
    --warning: #FF5400;
    --warning-transparent: rgba(255, 84, 0, 0.2);
    --danger: #F51441;
    --danger-transparent: rgba(245, 20, 65, 0.2);
    --success: #1CC497;
    --success-transparent: rgba(28, 196, 151, 0.2);
    --background: #0B0418;
    --background-lighter: #120728;
    --background-transparent: rgba(11, 4, 24, 0.8);
    --card-background: #200C49;
    --text: #F2F4F7;
    --button-text: #F2F4F7;
    --text-dark: #0B0418;
    --text-dimmed: #98A2B3;
    --border: #667085;
    --modal-background: #101828;
    --modal-header: #101828;
    --gray600: #475467;
    --gray700: #344054;
    --gray800: #1D2939;
    --black-transparent: rgba(0, 0, 0, 0.7);
    --white-transparent: rgba(255, 255, 255, 0.3);
    --white-very-transparent: rgba(255, 255, 255, 0.2);
    --gold: #E6B800;
    --silver: #B0B0B0;
    --bronze: #CD7F32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "SpaceGrotesk";
    src: url("../fonts/SpaceGrotesk-Bold.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "OpenSans";
    src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    height: 100vh;
    background-color: var(--background);
}

body {
    font-family: "OpenSans", system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--background);
    color: var(--text);
    width: 100%;
}

h1 {
    font-family: "SpaceGrotesk", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    text-align: center;
}

h3 {
    font-family: "SpaceGrotesk", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 3vw, 2rem);
    width: 100%;
    text-align: left;
}

p, span, li {
    font-family: "OpenSans", system-ui, sans-serif;
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    text-align: center;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--text)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    background: var(--primary);
    font-family: "SpaceGrotesk", system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--button-text);
    border-radius: 12px;
    border: 1px solid var(--border);
    gap: 0.4rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    width: auto;
    padding: 0.75rem 1.5rem;
    font-size: 1.3rem;
}

.btn:hover {
    background: var(--text);
    color: var(--primary);
}

.btn:active {
    transform: scale(0.97);
}

main {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem 0 0 0;
    z-index: 2;
}

header {
    padding: 3rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

header .brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

header .brand h1 {
    font-size: 2rem;
}

footer {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    color: var(--text-dimmed);
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer.initial {
    position: initial;
}

footer p, #year {
    color: var(--text-dimmed);
    font-size: 1rem;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.store-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.store-links a img {
    width: 200px;
}

/* Drawer overlay */
#drawer-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

/* Side Drawer desktop default (hidden left) */
#side-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(16, 24, 40, 0.5);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-right: 1px solid var(--border);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: left 0.3s ease;
}

/* Drawer links */
#side-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

#side-drawer ul li a {
    color: var(--text);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

#side-drawer ul li a:hover {
    color: var(--primary);
}

/* Close button */
#close-drawer {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    align-self: flex-end;
    cursor: pointer;
}

/* Hamburger button */
#drawer-toggle {
    z-index: 1001;
    color: var(--button-text);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Open states */
body.drawer-open.desktop #side-drawer {
    left: 0;
    right: auto;
}

body.drawer-open.mobile #side-drawer {
    left: 0;
    right: auto;
}

body.drawer-open #drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile adjustments */
@media (max-width: 900px) {
    header {
        padding: 2rem 1rem;
    }

    main {
        padding: 1rem;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    p {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .store-links {
        flex-direction: column;
    }

    #side-drawer {
        width: 80vw;
        right: auto;
        left: -80vw; /* fully hidden off screen */
        transition: left 0.3s ease;
        padding: 1rem;
    }
}

footer nav ul li {
    font-size: 1rem;
}