/* RESET CSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
a {
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}
a:hover {
    cursor: pointer;
}

/* FONTS */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins.ttf');
    font-weight: normal;
    font-style: normal;
}

/* ROOT */
:root {
    --nav-bg: black;
    --nav-link: #909395;
    --nav-link-hover: white;
    --nav-link-active: white;
    --nav-link-book: white;
    --nav-link-book-border: white;
    --nav-link-book-hover-text: #232323;

    --hero-link: white;
    --hero-link-border: white;
    --hero-link-hover-text: #232323;

    --section-bg-gray: #e6e6e6;
    --section-bg-white: white;

    --menu-bg: white;
    --menu-text-span: #8a8a8a;

    --button-bg: black;
    --button-text: white;

    --footer-bg: #232323;
    --footer-text: #8a8a8a;
    --footer-link: white;
    --footer-link-hover: #cbdbff;
}

* {
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s ease-in-out;
}

html,
#hero,
#chef,
#menu,
#contact {
    --scroll-behavior: smooth!important;
    scroll-behavior: smooth!important;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgb(255,255,255,0.3), rgba(0,0,0, 0));
}

.title {
    margin-top: 4rem;
    text-align: center;
    margin-bottom: 3rem;
}
.title h2 {
    font-weight: 300;
}

button:hover,
a:hover {
    cursor: pointer;
}

/* NAVBAR */
nav {
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    max-width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    display: flex;
    padding: 1rem 4rem;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
}

nav #links {
    display: flex;
    gap: 2rem;
}
nav #links a {
    color: var(--nav-link);
    font-size: 1rem;
}
nav #links a:hover {
    color: var(--nav-link-hover);
}
nav #book a {
    padding: 0.6rem 1.6rem;
    border: 1px solid var(--nav-link-book-border);
    color: var(--nav-link-book);
    font-size: 1rem;
}
nav #book a:hover {
    color: var(--nav-link-book-hover-text);
    background: var(--nav-link-book);
}

nav img {
    width: auto;
    height: 1.8rem;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    z-index: 10000;
}

.hamburger div {
    width: 2rem;
    height: 0.2rem;
    background: var(--nav-link);
    transition: all 0.3s ease;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--nav-bg);
    padding-top: 6rem;
    z-index: 99;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu a {
    font-size: 1.2rem;
    color: var(--nav-link);
    text-decoration: none;
}
.mobile-menu .book-mobile {
    padding: 0.6rem 1.6rem;
    border: 1px solid var(--nav-link-book-border);
    color: var(--nav-link-book);
}

.mobile-menu a:hover {
    color: var(--nav-link-hover);
}

/* ACTIVE STATES */
.mobile-menu.active {
    display: flex;
    transform: translateY(0);
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(0.3rem, 0.3rem);
}
.hamburger.active div:nth-child(2) {
    opacity: 0;
}
.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

/* MEDIA QUERIES */
@media (max-width: 840px) {
    nav {
        padding: 1rem 2rem;
    }

    nav #links,
    nav #book {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* HERO */
.hero {
    background: black;
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.hero .hero-image {
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: brightness(40%) blur(4px);
}

.hero .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.hero .hero-text h1 {
    font-size: 5rem;
}
.hero .hero-text h3 {
    margin-top: 1rem;
    word-spacing: 1rem;
    letter-spacing: 0.2rem;
}
.hero .hero-text p {
    width: max-content;
    margin-top: 2rem;
}

.hero .hero-text a {
    padding: 0.6rem 1.6rem;
    border: 1px solid var(--hero-link-border);
    color: var(--hero-link);
    font-size: 1.2rem;
}
.hero .hero-text a:hover {
    color: var(--hero-link-hover-text);
    background: var(--hero-link-border);
}

@media (max-width: 768px) {
    .hero .hero-text h1 {
        font-size: 4rem;
    }
}

/* CHEF */
.chef {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    height: 100%;
    padding: 4rem;
}

.chef .img-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.chef .img-wrapper:hover img {
    transform: scale(1.2);
}
.chef img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.chef .text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.chef #text h2 {
    margin-bottom: 2rem;
}

.chef #text p {
    word-spacing: 4px;
    line-height: 1.4rem;
}

@media (max-width: 864px) {
    .chef {
        padding: 4rem 1rem;
        height: auto;
        flex-direction: column;
    }

    .chef .img-wrapper {
        height: auto;
    }

    .chef .text-wrapper {
        width: calc(100% - 4rem);
        padding: 2rem;
    }
    .chef .img-wrapper {
        width: calc(100% - 4rem);
        padding: 2rem;
    }
    .chef img {
        height: auto;
        width: 100%;
    }
}

/* MENU */
.menu {
    padding: 4rem;
    background: var(--section-bg-gray);
}

.menu .wrapper {
    display: flex;
    gap: 2rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.menu #border {
    border: 1px solid black;
}

.menu .container {
    padding: 4rem 2rem;
    background: var(--menu-bg);
    flex: 1 1 calc(33.33% - 2rem);
    max-width: calc(33.33% - 2rem);
}

.menu .container h2 {
    font-weight: 400;
}

.menu .container p {
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 0.8rem;
}

.menu .container i {
    font-weight: 300;
    color: var(--menu-text-span);
}

@media (max-width: 1024px) {
    .menu .container {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .menu {
        padding: 2rem;
    }

    .menu .container {
        flex: 1 1 calc(100% - 2rem);
        max-width: calc(100% - 2rem);
    }
}

/* FOOD */
.food {
    padding: 4rem;
    background: var(--section-bg-gray);
}

.food .wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.food .wrapper .container {
    overflow: hidden;
    position: relative;
    flex: 1 1 calc(33.33% - 1rem);
    max-width: calc(33.33% - 1rem);
    height: 20rem;
    margin-bottom: 1rem;
}

.food .wrapper .container:hover img {
    transform: scale(1.2);
}

.food .wrapper .container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.food .wrapper .container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
}

.food .wrapper .container p {
    font-size: 1.4rem;
    position: absolute;
    bottom: 0.4rem;
    left: 0.4rem;
    z-index: 2;
    padding: 0.4rem;
    color: white;
    margin: 0;
}

@media (max-width: 1024px) {
    .food .wrapper .container {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .food .wrapper .container {
        flex: 1 1 calc(100% - 1rem);
        max-width: calc(100% - 1rem);
    }
    .food {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .food .wrapper .container p {
        font-size: 1rem;
        bottom: 0.2rem;
        left: 0.2rem;
        padding: 0.2rem;
    }
}

/* CONTACT */
.contact {
    padding: 2rem 4rem;
    background: var(--section-bg-gray);
}

.contact .wrapper {
    background: var(--section-bg-white);
    padding: 6rem;
}

.contact .top-bar {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.contact .bottom-bar form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact .bottom-bar input,
.contact .bottom-bar select,
.contact .bottom-bar textarea {
    width: 90%;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    font-size: 1rem;
    padding: 1rem;
    background: transparent;
    outline: none;
}
.contact .bottom-bar select {
    width: calc(90% + 2rem);
}

.contact .bottom-bar textarea {
    grid-column: span 2;
    resize: none;
}

.contact .bottom-bar button {
    grid-column: span 1;
    padding: 1rem;
    border: 1px solid var(--button-bg);
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 0.3rem;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.contact .bottom-bar button:hover {
    color: var(--button-bg);
    border: 1px solid var(--button-bg);
    background-color: var(--button-text)
}

@media (max-width: 768px) {
    .contact .top-bar {
        flex-direction: column;
    }

    .contact .bottom-bar form {
        grid-template-columns: 1fr;
    }

    .contact .bottom-bar textarea,
    .contact .bottom-bar button {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 0rem 2rem;
    }
    .contact .wrapper {
        padding: 2rem;
    }

    .contact .bottom-bar input,
    .contact .bottom-bar select,
    .contact .bottom-bar textarea,
    .contact .bottom-bar button {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* FOOTER */
footer {
    color: var(--footer-text);
    background: var(--footer-bg);
    padding: 2rem 4rem;
}

footer h3 {
    font-weight: 300;
    margin-bottom: 1rem;
}

footer h2 {
    font-weight: 400;
    margin-bottom: 1.4rem;
}

footer a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--footer-link-hover);
}

footer .top-bar {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-between;
}

footer .top-bar .column {
    flex: 1 1 40%;
    text-align: center;
    line-height: 1.4;
}

footer .top-bar .grid {
    flex: 1 1 60%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

footer .top-bar .wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

footer .top-bar .wrapper .container {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

footer .top-bar .wrapper .container .inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* BOTTOM BAR */
footer .bottom-bar {
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid var(--footer-divider);
}

footer .bottom-bar p {
    font-weight: 300;
    line-height: 1.4;
    margin: 0.3rem 0;
}

footer hr {
    border: none;
    border-top: 1px solid var(--footer-divider);
    margin: 2rem 0;
}

@media (max-width: 768px) {
    footer {
        padding: 0 2rem;
    }
    footer .top-bar {
        padding: 0;
        padding-top: 4rem;
        padding-bottom: 2rem;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    footer .bottom-bar {
        padding-bottom: 4rem;
    }

    footer .top-bar .column {
        flex: 1 1 100%;
    }

    footer .top-bar .grid {
        grid-template-columns: 1fr;
    }
}