/* 1. Color variables */
:root {
    --base-color: #EBE7E4;
    --primary-color: #DBCAC0;
    --primary-color-transparent: #dbcac042;
    --secondary-color: #BC9474;
    --text-primary: #282828;
    --text-secondary: #FFFCEC;
}

/* 2. Font-faces */
@font-face {
    font-family: Playfair-Display-Regular;
    src: url(../media/fonts/Playfair_Display/static/PlayfairDisplay-Regular.ttf);
}

@font-face {
    font-family: Playfair-Display-MediumItalic;
    src: url(../media/fonts/Playfair_Display/static/PlayfairDisplay-MediumItalic.ttf);
}

@font-face {
    font-family: Inter-Regular;
    src: url(../media/fonts/Inter//static/Inter_18pt-Regular.ttf);
}

@font-face {
    font-family: Inter-ExtraLight;
    src: url(../media/fonts/Inter/static/Inter_18pt-ExtraLight.ttf);
}

@font-face {
    font-family: Inter-Thin;
    src: url(../media/fonts/Inter/static/Inter_18pt-Thin.ttf);
}

/* 3. Global styles */
body {
    margin: 0;
    box-sizing: border-box;
    background-color: var(--base-color);
    font-family: "Inter-Regular";
    color: var(--text-primary);
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: Playfair-Display-Regular;
}

/* 4. Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 2rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    background-color: var(--primary-color-transparent);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.sticky {
    position: fixed;
    top: 1rem;
    min-width: 87%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    background-color: rgba(40, 40, 40, 0.345);
    z-index: 1000;
}



header>h3,
a {
    color: var(--text-secondary);
}

header>h3 {
    font-family: "Playfair-Display-MediumItalic";
    margin: 0;
}

a {
    text-decoration: none;
    font-family: "Inter-Thin";
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    display: inline-block;
}

.hamburger {
    display: none;
    height: 45px;
    width: 45px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: var(--text-secondary);
    margin: 5px 0;

    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5. Hero Section */
#hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../media/images/hero-section.webp") no-repeat center center;
    background-size: cover;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
}

#hero>h1 {
    font-family: "Playfair-Display-Regular";
    color: var(--text-secondary);
    padding-top: 5rem;
    margin-bottom: 0;
}

#hero>p {
    font-family: "Inter-Regular";
    color: var(--text-secondary);
    justify-self: center;
    max-width: 30rem;
    margin-bottom: 3rem;
}

#hero>a {
    background-color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    max-width: fit-content;
    transition: background-color 0.6s ease;
}

#hero>a:hover {
    background-color: #ae8768;
}

#menu,
#story-section,
#contact {
    width: min(900px, 100% - clamp(1.5rem, 6rem, 10rem));
    margin-inline: auto;

}

/* 6. Menu */
#menu-section {
    padding-top: 3rem;
    color: #5b402b;
    ;
    background: linear-gradient(rgba(235, 231, 228, 0.6), rgba(235, 231, 228, 0.6)),
        url("../media/images/menu-background.jpg") no-repeat center center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-align: center;
}

#menu-section h1 {
    font-family: "Playfair-Display-MediumItalic";
    margin-bottom: 0;
}

#menu-section p {
    margin-top: .5em;
}

#menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    row-gap: .5rem;
    text-align: left;

}

.category:first-child {
    grid-row: 1/2;
    grid-column: 1/2;
}

#menu li {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px dotted;
}

li p {
    margin-bottom: 0;
    font-size: 0.8em;
}

#menu h2 {
    margin-top: 0;
}

/* 7. Our Story - section */

#story-section {
    padding-top: 6rem;
}

#story {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

#story-section>h1 {
    text-align: center;
    font-family: "Playfair-Display-MediumItalic";
}

#story>p {

    text-align: center;
}

article img {
    width: 100%;
    border-radius: 30px;
    object-fit: cover;
    aspect-ratio: 1/1;
    content-visibility: auto;
}

article {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-items: center;
}

article img:first-child,
article img:last-child {
    aspect-ratio: 3 / 7;
}

article img:nth-child(2) {
    aspect-ratio: 3 / 8;
}

/* 8. Contact section */

ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

li {
    margin-bottom: 2rem;
}

i {
    margin-right: 1rem;
}

li>a {
    color: var(--text-primary);
    font-family: "Inter-Regular";
}

#contact {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 6rem;
}

#contact h1 {
    margin-top: 0;
}

form {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

form>div {
    display: flex;
    gap: 0.5rem;
}

input,
textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 0.75rem;
    background-color: var(--secondary-color);
    color: var(--text-secondary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    flex: 1;
}

.btn-submit:hover {
    background-color: #ae8768;
}

/* 9. Footer */

footer {
    margin-top: 6rem;
    padding: 1rem 5rem 0.5rem 5rem;
    background-color: var(--primary-color);
    color: var(--text-primary);
    text-align: center;
}

footer>p:first-child {
    font-family: "Playfair-Display-MediumItalic";
    font-weight: 800;
    font-size: 1.5rem;
}

footer>p:last-child,
footer>p:first-child {
    margin-bottom: 0;
}

footer>p:last-child {
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

@media(max-width:790px) {

    nav {
        display: flex;
        justify-content: space-between;
    }

    nav a {
        display: none;
    }

    nav.nav-open {
        flex-direction: column;
        align-items: flex-end;
        background-color: rgba(66, 59, 55, 0.9);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 51.5px;
        right: 40px;
        width: 150px;
        padding: 1rem;
        border-radius: 10px;
    }

    nav.nav-open a {
        display: block;
        color: var(--text-secondary);
        font-family: "Inter-Regular";
    }

    nav.nav-open .hamburger {
        position: relative;
    }

    nav.nav-background {
        background-color: var(--secondary-color);
    }

    nav.nav-background a {
        color: var(--text-secondary);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.5);

    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4.5px, -5px);
    }


    header {
        margin: 0;
        padding: .2rem 2rem;
    }

    header.header-mobile h3 {
        display: none;
    }

    header.header-mobile {
        display: inline-block;
        width: auto;
        min-width: unset;
        left: 90%;
        padding: 0;
        border-radius: 50%;
        background-color: var(--secondary-color);
    }

    .hamburger {
        display: inline-block;
        padding: 0.5rem;
    }

    .hamburger span {
        margin: 5px auto;
    }



    #story-section h1,
    #menu-section h1,
    #contact h1 {
        font-size: 1.5rem;
    }



    #menu {
        grid-template-columns: 1fr;
    }

    #story-section {
        padding-top: 2rem;
    }

    #story,
    #contact {
        flex-direction: column;
        justify-content: center;
    }

    #contact {
        padding-top: 3rem;
    }

    #contact li {
        font-size: 0.9rem;
    }

    #contact li:last-child {
        margin-bottom: 0;
    }

    article {
        width: 100%;
        max-width: 420px;
    }

    form div {
        flex-direction: column;
    }

    #contact>div:first-child,
    form {
        width: 100%;
        max-width: none;
    }

    #contact {
        align-items: center;
        gap: 0.5rem;
    }

    footer {
        padding: 0.5rem 2rem 0.5rem 2rem;
        margin-top: 4rem;
    }

    footer p:first-child {
        font-size: 1.2rem;
    }

    footer p:nth-child(2) {
        font-size: 0.8rem;
    }

}