:root {
    /* Sizing */
    --content-width: 1200px;
    --slim-content-width: 750px;
    --min-margin: 48px;
    --content-margin: max(calc((100vw - var(--content-width)) / 2), var(--min-margin));
    --slim-content-margin: max(calc((100vw - var(--slim-content-width)) / 2), var(--min-margin));
    --header-height: 120px;
    --hero-image-height: calc(min(100svh, 850px) - var(--header-height));
    --max-header-width: min(100%, 1200px);
    --ultrawide-width: 2200px;

    /* Typography */
    --sans-font: system-ui;
    --serif-font: 'Georgia', serif;
    --header-font-size: 0.9rem;
    --section-title-size: 2.5rem;
    --subtitle-font-size: 1.5rem;
    --main-text-size: 1.2rem;
    --smaller-main-text-size: 1.1rem;
    --footer-text-size: 1rem;
    --paragraph-line-height: 1.5;

    /* Colors */
    /** background **/
    --background-color-primary: #ffffff;
    --background-color-secondary: #eceae4;
    --background-color-tertiary: #303540;
    /** accent **/
    --accent-color-primary: #c49136;
    --accent-color-secondary: #eceae4;
    /** text **/
    --header-text-color: var(--accent-color-primary);
    --main-text-color-dark: var(--background-color-tertiary);
    --main-text-color-light: var(--background-color-primary);
    /** shadows **/
    --shadow-color: rgb(184, 184, 184);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--sans-font);
    color: var(--main-text-color-dark);
}

#header-logo>a {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 111;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color-secondary);
    font-size: var(--main-text-size);
}

p {
    line-height: var(--paragraph-line-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--serif-font);
    font-weight: 400;
}

h2 {
    font-size: var(--section-title-size);
    color: var(--accent-color-primary)
}

h3 {
    font-size: var(--subtitle-font-size);
}

*:target {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

header {
    /* ensure header sits on top */
    position: sticky;
    z-index: 101;
    /* Ensure header always sits on top */
    top: 0;
    background-color: var(--background-color-secondary);
    height: var(--header-height);
    padding: 0 var(--content-margin);
    font-size: var(--header-font-size);
}

.nav {
    display: flex;
    justify-content: space-around;
    list-style: none;
    gap: 1rem;
    align-items: center;
    z-index: 10;
    padding-top: 60px;
    width: var(--max-header-width);
    letter-spacing: 0.1em;
    margin: 0 auto;
}

.nav>li:nth-child(3)>a {
    margin-right: 160px;
}

.nav>li:nth-child(4)>a {
    margin-left: 160px;
}

header>#header-logo {
    position: absolute;
    left: 0;
    right: 0;
    width: 300px;
    height: 45px;
    background-image: url(../images/logos/long.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
    margin-top: 40px;
    z-index: 2000;
}

.nav>li>a {
    text-decoration: none;
    text-transform: uppercase;
}

.hero {
    /* Position and center the image to scale nicely on all screens */
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    max-width: var(--ultrawide-width);
    margin: 0 auto;
    height: var(--hero-image-height);
    background-image: url(../images/photos/hero_large_cropped.jpg);

    /* Center the content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero_content {
    max-height: 80%;
}

.hero_logo {
    height: 300px;
    margin: 0 auto;
    max-height: 100%;
    aspect-ratio: 1;
    flex: 0 1 1;
    background-image: url(../images/logos/round.svg);
}

.welcome {
    display: flex;
    flex-direction: column;
    padding: 110px var(--content-margin);
    gap: 8rem;
}

.welcome_info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
}

.welcome_info h2 {
    flex-basis: 40%;
}

.welcome_info h3 {
    margin-top: 15px;
    flex-basis: 60%;
    font-size: var(--main-text-size);
    line-height: 1.4;
}

.gallery {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 3rem;
}

.gallery_description {
    font-display: normal;
}

.gallery_item {
    display: flex;
    flex-direction: column-reverse;
    flex: 1;
    min-width: 0;
    gap: 25px;
}

.gallery_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 20px;
    gap: 1rem;
}


.banner {
    padding: 100px var(--slim-content-margin);
}

.banner,
.bookings-content {
    background-color: var(--background-color-tertiary);
    gap: 2rem;
    color: var(--main-text-color-light);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.banner * {
    color: var(--main-text-color-light);
}

.banner-footer {
    font-style: italic;
}

.banner-footer::before {
    display: flex;
    flex-direction: column;
    content: "";
    width: 70px;
    height: 1px;
    margin: auto;
    margin-bottom: 20px;
    background-color: var(--accent-color-primary);
}

.details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 100px var(--slim-content-margin);
}

.details>h2 {
    text-align: center;
    color: var(--background-color-tertiary);
    margin-bottom: 40px;
}

.details>div {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    margin: 0 100px;
}

.details_item {
    font-size: var(--main-text-size);
}

.details_item h3 {
    text-transform: uppercase;
    font-size: var(--main-text-size);
    font-family: var(--sans-font);
    color: var(--accent-color-primary);
    margin-bottom: 10px;
}

.details_item span,
.name {
    font-weight: 600;
}

.caveats {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-right: 20px;
    font-size: 0.8rem;
    text-align: center;
}

.caveats>span {
    color: var(--accent-color-primary);
    margin: 0 10px;
}

.menu {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-preview {
    background-image: url(../menu/menu_preview.webp);
    background-size: cover;
    background-repeat: no-repeat;
}

.menu-preview>a {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.background-image {
    max-width: calc(var(--ultrawide-width) - 400px);
}

.menu-download-button {
    display: block;
    text-transform: uppercase;
    background-color: var(--accent-color-primary);
    color: var(--main-text-color-light);
    padding: 12px 30px;
    text-decoration: none;
    font-size: var(--main-text-size);
    font-weight: 600;
    outline-offset: 3px;
    outline: 1px solid var(--accent-color-primary);
}

.contact-button {
    display: inline-block;
    background-color: var(--background-color-primary);
    color: var(--background-color-tertiary);
    border: 2px solid var(--background-color-tertiary);
    padding: 10px 20px;
    font-size: var(--main-text-size);
    text-decoration: none;
    text-transform: uppercase;
}

.accent_line {
    width: 1px;
    height: 180px;
    margin-top: 3px;
    background-color: var(--accent-color-primary);
}

.menu>.background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 650px;
    width: 100%;
}

.menu>.menu-preview {
    position: absolute;
    top: 110px;
    width: 100%;
    max-width: min(90%, 1000px);
    aspect-ratio: 1.41549295775;
    background-color: white;
    box-shadow: 0 0 10px var(--shadow-color);
    /* border: 1px solid var(--accent-color-primary); */
}

.bookings {
    display: flex;
    flex-direction: row;
    margin: 100px auto 0px auto;
    justify-content: space-evenly;
    max-width: calc(1.5 * var(--ultrawide-width));
}

.bookings>.left-image {
    background-image: url(../images/photos/buns_1.png);
}

.left-image::before,
.right-image::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--background-color-tertiary);
    opacity: 0.4;
}

.bookings>.right-image {
    background-image: url(../images/photos/pies_1.png);
}

.bookings>.left-image,
.right-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-grow: 1;
}

.bookings-content {
    text-align: center;
    padding: 150px;
    flex-basis: 45%;
    background-color: var(--background-color-tertiary);
}

.bookings-content * {
    color: var(--main-text-color-light);
}

.bookings-content>p {
    font-size: var(--main-text-size);
    font-family: var(--serif-font);
    margin-bottom: 20px;
}

.bookings-footer::before {
    display: flex;
    flex-direction: column;
    content: "";
    width: 70px;
    height: 1px;
    margin: auto;
    margin-bottom: 40px;
    background-color: var(--accent-color-primary);
}

.awards {
    display: flex;
    flex-direction: row;
    gap: 60px;
    padding: 200px var(--content-margin);
}

.awards>.logos>img {
    height: 200px;
}

.awards>.logos {
    display: flex;
    flex-direction: row;
    height: 200px;
    gap: 20px;
    padding-left: 20px;
    width: auto;
    flex: 1;
}

.awards>.info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.awards>.info>h2 {
    color: var(--background-color-tertiary);
}

.gallery-section {
    display: grid;
    margin: 0 var(--content-margin);
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    height: 1000px;
}

.gallery-section * {
    background-color: var(--accent-color-primary);
    background-size: cover;
    background-position: center;
}

.gallery-section>.gal-1 {
    background-image: url(../images/photos/gallery/gallery_1.jpg);
    grid-row: 1 / 3;
}

.gallery-section>.gal-2 {
    background-image: url(../images/photos/gallery/gallery_2.jpg);
    grid-column: 2 / 2;
    grid-row: 1 / 1;
}

.gallery-section>.gal-3 {
    background-image: url(../images/photos/gallery/gallery_3.jpg);
    grid-column: 3 / 3;
    grid-row: 1 / 3;
}

.gallery-section>.gal-4 {
    background-image: url(../images/photos/gallery/gallery_4.jpg);
    grid-column: 2 / 2;
    grid-row: 2 / 4;
}

.gallery-section>.gal-5 {
    background-image: url(../images/photos/gallery/gallery_5.jpg);
    grid-column: 1 / 1;
    grid-row: 3 / 5;
}

.gallery-section>.gal-6 {
    background-image: url(../images/photos/gallery/gallery_6.jpg);
    grid-column: 3 / 3;
    grid-row: 3 / 5;
}

.gallery-section>.gal-7 {
    background-image: url(../images/photos/gallery/gallery_7.jpg);
    grid-column: 2 / 2;
    grid-row: 4 / 4;
}

.gallery_description {
    font-size: var(--smaller-main-text-size);
    line-height: normal;
}

.page-decoration {
    margin: 150px var(--content-margin);
    height: 120px;
    display: flex;
    justify-content: center;
}

footer {
    display: flex;
    flex-direction: row;
    background-color: var(--background-color-primary);
    padding: 80px var(--content-margin);
    gap: 10vw;
    font-size: var(--footer-text-size);
}

footer * {
    color: var(--main-text-color-dark);
}

footer>div {
    flex: 50%;
}

footer>.footer-secondary {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-secondary>img {
    max-width: 400px;
}

.footer-secondary>.socials {
    display: flex;
    gap: 10px;
}

.footer-secondary>.socials>a>img {
    width: 40px;
}

.footer-primary>.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.footer-primary>.contact-links>a {
    text-decoration: underline;
}

.footer-primary>.contact-links>a::before {
    content: url("../images/icons/SVG/email.svg");
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url("../images/icons/phone.svg");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.footer-primary>.contact-links>a:nth-of-type(2)::before {
    content: url("../images/icons/SVG/phone.svg");
}

.hamburger {
    display: none;
}

/* Hamburger menu */
@media (max-width: 950px) {
    header {
        height: auto;
    }

    .nav {
        flex-direction: column;
        justify-items: left;
        padding-top: var(--header-height);
        padding-bottom: 0;
    }

    .nav>li:nth-child(3)>a {
        margin: 0;
    }

    .nav>li:nth-child(4)>a {
        margin: 0;
    }

    /* We want to hide the menu items by default */
    .nav>li {
        display: none;
    }

    .nav.active li {
        display: block;
    }

    .nav.active {
        padding-bottom: 30px;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 8px;
        padding: 20px;
        cursor: pointer;
    }

    .hamburger>div {
        width: 24px;
        height: 2px;
        background-color: var(--background-color-tertiary);
        margin: 6px 0;
    }
}


/* Phone */
@media (max-width: 960px) {
    :root {
        --header-height: 105px;
        --min-margin: 25px;
        --section-title-size: 2.1rem;
    }

    header>#header-logo {
        margin-top: 30px;
        height: 40px;
    }

    .welcome_info {
        flex-direction: column;
        text-align: center;
    }

    .gallery {
        flex-direction: column;
        align-items: stretch;
    }

    .details>h2 {
        text-align: left;
    }

    .details>div {
        margin: 0px;
        flex-direction: column;
    }

    .details>div * {
        font-size: var(--main-text-size);
    }

    .caveats>span {
        display: none;
    }

    .caveats {
        font-size: var(--main-text-size);
        flex-direction: column;
        text-align: left;
    }

    .caveats p:nth-of-type(2) {
        font-weight: bold;
    }

    .caveats p:nth-of-type(2)::first-letter {
        text-transform: uppercase;
    }

    .menu * {
        display: none;
    }

    .menu>.menu-download-button {
        display: block;
        font-size: var(--main-text-size);
        margin-bottom: 70px;
    }

    .page-decoration {
        margin: 100px var(--content-margin);
        margin-top: 50px;
    }

    .menu>.background-image {
        display: none;
        max-height: 400px;
        margin-top: 70px;
    }

    #bookings {
        flex-direction: column;
        margin-top: 50px;
    }

    .bookings-content {
        padding: 50px 20px;
    }

    #awards {
        flex-direction: column;
        padding: 100px var(--content-margin);
        text-align: center;
        align-items: center;
        gap: 30px;
    }

    #awards>.info {
        margin-top: 0px;
    }

    .awards>.logos {
        flex-direction: row;
        gap: 10px;
        padding-left: 0;
        width: 100vw;
        justify-content: center;
    }

    .awards>.logos>img {
        width: 100%;
        height: auto;
        max-width: 200px;
    }

    .gallery-section {
        /* make the grid one column */
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }

    .gallery-section>div {
        grid-column: 1 / 1 !important;
        grid-row: auto !important;
    }

    footer {
        flex-direction: column;
        gap: 40px;
        padding: 50px var(--content-margin);
    }

    footer>.footer-secondary {
        gap: 20px;
    }

}