* {
    box-sizing: border-box;
}

:root {
    /* Primary Brand Signal */
    --village-green: #1B5E20;     /* Main “B”-monogram, fascia, trim */
    --paddy-green: #4CAF50;       /* Shelf tags, app buttons, icons */
    --naga-red: #C62828;          /* Promos, loyalty highlights, impulse buys */
    --bamboo-brown: #8D6E63;      /* Wall panels, kraft labels, coffee counter */
    --sunrise-yellow: #FFB300;    /* CTAs, arrows, safety steps */
    --slate-grey: #37474F;        /* Body text, frames, backgrounds */

    --nav-backgroundColor: var(--sunrise-yellow);
    --nav-textColor: var(--naga-red);
}

/* Defaults */
h1  {font-weight:800;}
nav h1 {margin: 0; color: var(--nav-textColor)}
p {
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--nav-backgroundColor);
}

main h2 {
    text-transform: uppercase;
    color: var(--nav-backgroundColor);
    font-size: 2em;
    border-bottom: 3px solid;
}

main h2:first-of-type {
    margin-top: 0px;
}

button {
    font-size: 1.5rem;
    background: none;
    border: 3px solid var(--nav-backgroundColor);
    padding: .5rem 1.5rem;
    border-radius: 1rem;
    color: var(--nav-backgroundColor);
}

button.center {
    display: block;
    margin: auto;
}


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

nav ul {
    margin: inherit;
    padding: inherit;
    list-style: none;
}

html {
    background-color: var(--village-green);
    margin: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
}

body > nav {
    background-color: var(--nav-backgroundColor);
    flex: none;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
}

body > main {
    flex: 1 1 auto;
    padding: 1rem;
    min-height: 100svh;
}

#logoText {
    margin: 0;
    text-transform: uppercase;
}

#logoText h1 {
    font-size: 1.5rem;
    color: black;
    line-height: .9em;
}
#logoText h1:first-of-type {
    font-size: 1.95em;
}

#menuText {
    margin: auto;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 2.25rem;
    text-transform: uppercase;
    flex: 1;
    text-wrap-mode: nowrap;
    overflow: auto;
}

#menuText h1 {
    line-height: 1;
    overflow: hidden;
}

#quickActions img {
    filter: url(#recolor-filter);
    max-height: 80%;
    max-width: 80%;
}
#quickActions a {
    zoom: .9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 3rem;
    height: 3rem;
    background: rgb(from var(--nav-textColor) r g b / 0.85);
    border-radius: 100%;
}

#menu-toggle {
    background-color: var(--nav-textColor);
    border-radius: 100%;
    color:  var(--slate-grey); /* (this color will stay but is now less important) */
    width: 3rem;
    height: 3rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px; /* spacing between bars */
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin: auto;
    position: relative;
}

body.menu-open #menu-toggle {
    margin: 0;
    margin-left: auto;
}

#menu-toggle span {
    display: block;
    width: 60%;
    height: 8%;
    background-color: var(--nav-backgroundColor);
    border-radius: 100px;
    transition: all 0.3s ease-in-out;
}

/* Morph into X when menu is open */
body.menu-open #menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
}

body.menu-open #menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open #menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
}

.itemList {
    display: flex;
    gap: 1rem;
}

.itemList .item {
    text-align: center;
}

.itemList > * {
    flex: 1;
}

.itemList img {
    max-width: 100%;
    border-radius: 2rem;
    background-color: var(--paddy-green);
}

.itemList h3 {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    color: var(--nav-backgroundColor);
}

@media (max-width: 768px), (max-height: 600px) {
    body {
        flex-direction: row-reverse;
        position: relative;
    }

    body.menu-open {
        padding-right: 4.75rem;
    }

    body > nav {
        max-width: 4rem;
        min-width: 3.5rem;
        padding: 1rem 0;
    }

    body.menu-open #menuText, body.menu-open #quickActions {
        display: none!important;
    }

    body.menu-open nav {
        max-width: 10rem;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        padding: 1rem;
    }

    #menuItems {
        display: none;
        flex: 1;
        text-wrap-mode: nowrap;
        overflow: auto;
    }

    body.menu-open #menuItems {
        display: inline-block;
    }

    body > main {
        flex: 1;
    }
}

/* Default: Everything hidden unless shown specifically */
.show-flex-mobile,
.show-block-mobile,
.show-inlineblock-mobile,
.show-flex-desktop,
.show-block-desktop,
.show-inlineblock-desktop {
    display: none;
}

/* Mobile first (max-width: 768px) */
@media (max-width: 768px),(max-height: 600px) {
    .show-flex-mobile {
        display: flex !important;
    }
    .show-block-mobile {
        display: block !important;
    }
    .show-inlineblock-mobile {
        display: inline-block !important;
    }
}

/* Desktop (min-width: 769px) */
@media (min-width: 769px),(max-height: 600px) {
    .show-flex-desktop {
        display: flex !important;
    }
    .show-block-desktop {
        display: block !important;
    }
    .show-inlineblock-desktop {
        display: inline-block !important;
    }
}
@media (max-height: 575px) {
    nav h1 {
        font-size: 1em;
    }
}

@media (max-height: 475px) {
    nav h1 {
        font-size: .8em;
    }
}