/*
Theme Name: Restaurang Stadskällaren
Description: Custom theme for restaurangstadskallaren.se
Author: Staffan Estberg
Version: 1.0
*/

* {
    border: 0;
    margin: 0;
    outline: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
html, body {
    height: 100%;
}
body {
    overflow-x: hidden;
    background: white;
    color: black;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}
img {
    max-width: 100%;
    vertical-align: bottom;
}
a {
    color: black;
    text-decoration: none;
}
small {
    display: block;
    margin-top: 12px;
}

section.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
section.hero img {
    width: 256px;
}
section.hero nav {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
}
section.hero nav a {
    font-size: 20px;
    color: white;
    border-bottom: 1px solid;
    letter-spacing: -0.5px;
}

section.menu {
    padding: 48px 16px;
    background: #fafafa;
}
section.menu button {
    background: none;
    border-bottom: 1px solid black;
    padding: 0;
    font-size: 16px;
    cursor: pointer;
    color: black !important;
}
section.menu nav ul {
    max-width: 360px;
    margin: 0 auto;
    margin-top: 24px;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
}
section.menu h4 span {
    color: #666;
    margin-left: 8px;
    font-weight: 300;
}
section.menu .menu-item {
    margin-top: 20px;
}
section.menu #menu-container {
    max-width: 720px;
    margin: 0 auto;
}
section.menu .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
section.menu .price {
    vertical-align: middle;
}
section.menu p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 125%;
    margin-top: 4px;
    color: #666;
}
section.menu h2 {
    text-align: center;
}
section.menu h5 {
    margin-top: 24px;
    font-style: italic;
    color: #666;
    font-weight: 400;
    background: #f0f0f0;
    padding: 8px 16px;
    font-size: 14px;
}
section.menu .price {
    font-size: 14px;
    white-space: nowrap;
}
section.menu .menu-section:first-of-type {
    margin-top: 36px;
}
section.menu .menu-section:not(:first-of-type) {
    margin-top: 24px;
    border-top: 1px solid #ddd;
    padding-top: 24px;
}
.cols .text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.text div {
    padding: 24px;
}

h2 {
    text-transform: uppercase;
    font-size: 16px;
    width: 100%;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1;
}
h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    margin-bottom: 24px;
}
h4 {
    font-weight: 400;
    font-size: 18px;
    letter-spacing: -0.1px;
}
h5 {
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.1px;
}
p {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 150%;
    margin-top: 12px;
    letter-spacing: 0.1px;
    max-width: 50ch;
}

footer {
    padding: 48px 0;
    background: black;
    color: white;
    text-align: center;
}
footer .cols {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
footer .cols a {
    color: white;
    font-family: 'Playfair Display', serif;
    margin-top: 4px;
    display: inline-block;
    font-size: 16px;
}
footer .cols div {
    display: flex;
    flex-direction: column;
}
footer small {
    margin-top: 36px;
    display: block;
    opacity: 0.5;
}
footer p {
    font-size: 16px;
    margin-top: 4px;
    line-height: 125%;
    max-width: none;
}

@media screen and (max-width: 767px) {
    .reverse {
        display: flex;
        flex-direction: column;
    }
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url(images/cover-sm.jpg);
    }
    .cols .text {
        height: 50vh;
    }
    .food .image {
        order: 1;
    }
}

@media screen and (min-width: 768px) {
    footer .cols {
        flex-direction: row;
    }
    .cols {
        display: flex;
        flex-direction: column;
    }
    section.gallery {
        display: flex;
    }
    section.gallery picture {
        flex: 1;
    }
    section.menu p {
        font-size: 16px;
    }
    section.menu h5 {
        font-size: 16px;
    }
    section.menu {
        padding: 96px 16px 48px 16px;
        background: #fafafa;
    }
    .cols > * {
        flex: 1;
        min-width: 0;
    }
    h3 {
        font-size: 28px;
    }
    .image picture,
    .image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .hero img {
        width: 320px;
    }
    section.hero nav a {
        font-size: 22px;
    }
    .cols {
        flex-direction: row;
    }
    .text div {
        padding: 48px;
    }
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url(images/cover-lg.jpg);
    }
    h2 {
        font-size: 18px;
    }
    p {
        font-size: 20px;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 128px;
    margin-top: 12px;
    z-index: 99;
    padding: 8px 0;
}
.dropdown-content a {
    color: black !important;
    padding: 8px 12px !important;
    border-bottom: none !important;
    display: block;
    font-size: 16px !important;
}
.dropdown-content img {
    max-width: 20px;
    margin-right: 8px;
    display: inline-block;
}
.show {
    display: block;
}