/* LANDING */
#landing {
    display: flex;
    position: relative;
    min-height: 100vh;
    margin-top: calc(var(--nav-height) * -1);
    overflow: hidden;
    justify-content: center;
    isolation: isolate;
}

#landing-bg {
    position: absolute;
    inset: -15vh 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: 75% 100%;

    transform: translate3d(0, var(--parallax-y, 0px), 0);
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: none;
    z-index: 0;
}

#landing-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    z-index: 1;
}

#landing-x {
    padding-top: var(--nav-height);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

#landing-x h1 {
    font-family: var(--font-main);
    color: var(--color-main);
    font-weight: 900;
    letter-spacing: -1px;
    font-size: clamp(2.25rem, 2.449vw + 1.76rem, 3.75rem);
    text-align: center;
    margin-bottom: 1rem;
}

#landing-x p {
    font-family: var(--font-body);
    color: var(--color-body);
    font-weight: 400;
    font-size: 1rem;
}



/* PROMO */
#promo {
    display: flex;
    position: relative;
    overflow: hidden;
    justify-content: center;
    background-color: var(--color-theme-one);
}

#promo-x {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#promo-text {
    display: flex;
    flex-direction: column;
    flex: 0 1 50%;
    max-width: 50%;
}

#promo-text h1 {
    font-family: var(--font-main);
    color: var(--color-main);
    font-weight: 900;
    letter-spacing: -1px;
    font-size: clamp(2.25rem, 2.449vw + 1.76rem, 3.75rem);
    margin-bottom: 1rem;
}

#promo-text p {
    font-family: var(--font-body);
    color: var(--color-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.85;
}

#promo-text a {
    display: inline-block;
    color: var(--color-body);
    transition: color 0.2s ease, transform 0.2s ease;
}

#promo-text a:hover {
    color: var(--color-main);
    transform: translateY(-0.125rem);
}

#promo-text .note {
    font-size: 0.75rem;
    line-height: 4;
}

.highlight {
    color: var(--color-main);
    font-weight: bold;
}

#promo-image {
    display: flex;
    flex: 0 1 50%;
    max-width: 50%;
    justify-content: center;
}

#mascot {
    width: 75%;
    max-width: 30rem;
    height: auto;
    display: block;
    margin: 4rem auto;
}

@media (max-width: 900px) {
    #promo-x {
        flex-direction: column;
        padding-top: 5rem;
        padding-bottom: 4rem;
    }

    #promo-text, #promo-image {
        max-width: 100%;
        flex-basis: 100%;
    }

    #mascot {
        width: 100%;
        margin: 2rem auto;
    }
}



/* SAVOURY MENU */
#savoury-menu {
    display: flex;
    position: relative;
    overflow: hidden;
    justify-content: center;
    background-color: var(--color-theme-two);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#savoury-menu-x {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#savoury-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-main);
    font-family: var(--font-main);
    letter-spacing: -1px;
}

#savoury-title h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.749rem, 1.808vw + 1.388rem, 2.856rem);
    font-weight: 900;
}

#savoury-title h2 {
    font-size: clamp(1.25rem, 0vw + 1.25rem, 1.25rem);
    font-weight: 900;
    text-transform: uppercase;
}

.menu-items h3 {
    text-transform: uppercase;
    font-weight: 900;
    color: var(--color-main);
    font-family: var(--font-main);
    font-size: calc(clamp(1.15rem, 0.245vw + 1.101rem, 1.3rem) / 1.25);
    letter-spacing: 1px;
    margin: 0.5rem;
}

.menu-items p {
    color: var(--color-body);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 2;
}

#savoury {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 0;
}

#savoury.double-column {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 4rem 3.5rem;
}

#savoury li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.menu-load {
    color: var(--color-main);
    font-size: clamp(1.322rem, 0.6vw + 1.202rem, 1.69rem);
    font-family: var(--font-main);
    text-decoration-color: var(--color-body);
    font-weight: 900;
    text-align: center;
    margin-top: 4rem;
}

@media (max-width: 900px) {
    #savoury.double-column {
        grid-template-columns: 1fr;
    }
}



/* SWEET MENU */
#sweet-menu {
    display: flex;
    position: relative;
    overflow: hidden;
    justify-content: center;
    background-color: var(--color-theme-one);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#sweet-menu-x {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#sweet-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-main);
    font-family: var(--font-main);
    letter-spacing: -1px;
}

#sweet-title h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.749rem, 1.808vw + 1.388rem, 2.856rem);
    font-weight: 900;
}

#sweet {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 0;
}

#sweet.double-column {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 4rem 3.5rem;
}

#sweet li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 900px) {
    #sweet.double-column {
        grid-template-columns: 1fr;
    }
}



/* MARKET BANNER */
#market-banner {
    background-color: var(--color-theme-two);
    display: flex;
    position: relative;
    overflow: hidden;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

#market-banner-x {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#market-banner-x h1 {
    font-family: var(--font-main);
    font-size: clamp(1.749rem, 1.808vw + 1.388rem, 2.856rem);
    font-weight: 900;
    color: var(--color-main);
    margin: 1rem;
}

#market-banner-x p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-body);
    line-height: 2;
}

#market-banner-x a {
    text-transform: uppercase;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-body);
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;

    padding: 0.75rem 1rem;
    display: inline-block;
    position: relative;

    margin-top: 4rem;

    transition: transform 0.25s ease;
    transform-origin: center;
}

#market-banner-x a::before, #market-banner-x a::after {
    content: "";
    position: absolute;
    border: 2px solid var(--color-theme-one);
    pointer-events: none;
}

#market-banner-x a::before {
    inset: 0px -8px;
}

#market-banner-x a::after {
    inset: -8px 0px;
}

#market-banner-x a:hover {
    transform: scale(1.05);
}



/* STORY */
#story {
    background-color: var(--color-theme-three);
    display: flex;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

#story-x {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#story-img {
    display: flex;
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
    justify-content: center;
    position: relative;
    padding: clamp(3rem, 6vw, 6rem);
    align-items: center;
    --bar-height: clamp(0.75rem, 2vw, 2rem);
}

#story-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
}

#story-img::before, #story-img::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--bar-height);
    background: var(--color-theme-three);
    z-index: 2;
}

#story-img::before {
    top: calc(33% + 1rem);
}

#story-img::after {
    bottom: calc(33% + 1rem);
}

#story-text {
    display: flex;
    align-self: flex-start;
    flex-direction: column;
    flex: 0 0 50%;
    box-sizing: border-box;
    padding-top: 6rem;
    padding-left: 1.5rem;
    margin-bottom: 8rem;
}

#story-text h1 {
    font-size: clamp(2.25rem, 0vw + 2.25rem, 2.25rem);
    font-family: var(--font-main);
    font-weight: 900;
    color: var(--color-focused);
    margin-bottom: 1rem;
}

#story-text p {
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-unfocused);
    line-height: 1.85;
    letter-spacing: 1px;
}

#story-text .tagline {
    text-transform: uppercase;
    color: var(--color-theme-two);
    font-weight: 700;
    letter-spacing: 0px;
    transform: skewX(-12deg) scaleX(1.05);
    transform-origin: left center;
}

#tagline {
    margin-top: 2rem;
}

@media (max-width: 900px) {
    #story-x {
        flex-direction: column;
        padding-top: 2rem;
    }

    #story-img,
    #story-text {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    #story-img {
        padding: 3rem;
        --bar-height: clamp(0.75rem, 4vw, 2rem);
    }

    #story-text {
        padding: 0 3rem 4rem;
        margin-bottom: 0;
    }
}

/* CONTACT */
#contact {
    background-color: var(--color-theme-two);
    display: flex;
    position: relative;
    overflow: hidden;
}

#contact-x {
    display: flex;
    flex-direction: row;
    padding-top: 4rem;
    padding-bottom: 4rem;
    justify-content: space-between;
    align-items: center;
}

#contact-x h1 {
    font-family: var(--font-main);
    font-size: clamp(1.749rem, 1.808vw + 1.388rem, 2.856rem);
    font-weight: 900;
    color: var(--color-main);
    max-width: 50%;
}

#contact-toggle {
    text-transform: uppercase;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-body);
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;

    padding: 0.75rem 1rem;
    display: inline-block;
    position: relative;

    transition: transform 0.25s ease;
    transform-origin: center;

    margin-right: 2rem;
    background: transparent;
    border: none;
    appearance: none;
    cursor: pointer;
}

#contact-toggle::before, #contact-toggle::after {
    content: "";
    position: absolute;
    border: 2px solid var(--color-theme-one);
    pointer-events: none;
}

#contact-toggle::before {
    inset: 0px -8px;
}

#contact-toggle::after {
    inset: -8px 0px;
}

#contact-toggle:hover {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    #contact-x {
        flex-direction: column;
    }

    #contact-x h1 {
        text-align: center;
        max-width: 90%;
        margin-bottom: 4rem;
    }

    #contact-toggle {
        margin-right: 0;
    }
}



/* POPUP */
#contact-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    opacity: 1;
    visibility: visible;
    transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0.35s ease;
}

#contact-popup.hide-panel {
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
}

#contact-content {
    position: relative;
    background: var(--color-theme-three);
    padding: 2rem;
    width: min(90%, 30rem);
    box-sizing: border-box;
    border-radius: 1.5rem;

    transform: translateY(0);
    transition: transform 0.4s ease;
}

#contact-popup.hide-panel #contact-content {
    transform: translateY(1rem);
}

#contact-content h1 {
    font-family: var(--font-main);
    font-weight: 900;
    margin-bottom: 2rem;
    font-size: 3rem;
}

#contact-content p {
    font-family: var(--font-body);
    letter-spacing: 1px;
    line-height: 1.5;
}

#contact-content a {
    display: inline-block;
    transform: translateY(0rem);
    color: var(--color-theme-two);
    font-weight: 400;
    transition: transform 0.2s ease;
}

#contact-content a:hover {
    transform: translateY(-0.125rem);
}

#popup-info {
    margin-bottom: 0.5rem;
}

#close-contact {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-unfocused);
    transition: color 0.3s ease;
}

#close-contact:hover {
    color: var(--color-focused);
}