/* =====================================================
   TASTE HAVEN
   PROFESSIONAL RESTAURANT WEBSITE
===================================================== */

:root {

    --primary: #b8864a;
    --primary-dark: #946a36;

    --dark: #171513;
    --dark-light: #25211d;

    --cream: #f8f5ef;
    --white: #ffffff;

    --text: #5e5953;
    --border: #e8e1d7;

    --font-body: "DM Sans", sans-serif;
    --font-heading: "Playfair Display", serif;

    --container: 1180px;

    --transition: 0.3s ease;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* ================= GENERAL ================= */

.container {
    width: min(92%, var(--container));
    margin: auto;
}

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 20px;
}

.section-heading p:last-child {
    color: var(--text);
}


/* ================= BUTTONS ================= */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 52px;
    padding: 0 30px;

    border: 1px solid transparent;

    font-size: 0.9rem;
    font-weight: 700;

    transition: var(--transition);
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    color: var(--dark);
    background: var(--white);
}


/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 22px 0;

    transition: var(--transition);
}

.header.scrolled {
    padding: 14px 0;
    background: rgba(23, 21, 19, 0.96);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--white);

    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;

    color: rgba(255, 255, 255, 0.9);

    font-size: 0.88rem;
    font-weight: 600;

    transition: var(--transition);
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-book {
    padding: 11px 20px;

    color: var(--white);
    background: var(--primary);

    font-size: 0.82rem;
    font-weight: 700;

    transition: var(--transition);
}

.nav-book:hover {
    background: var(--primary-dark);
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    margin: 5px auto;

    background: var(--white);

    transition: var(--transition);
}


/* ================= HERO ================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    background:
        url("https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=2000&q=85")
        center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82),
            rgba(0, 0, 0, 0.38),
            rgba(0, 0, 0, 0.18)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 760px;

    padding-top: 80px;
}

.hero-subtitle {
    color: #e2bd87;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;

    margin-bottom: 18px;
}

.hero h1 {
    color: var(--white);

    font-size: clamp(3.5rem, 8vw, 6.8rem);

    margin-bottom: 25px;
}

.hero-description {
    max-width: 570px;

    color: rgba(255, 255, 255, 0.85);

    font-size: 1.05rem;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* ================= ABOUT ================= */

.about {
    background: var(--white);
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;
}

.about-images {
    position: relative;

    min-height: 570px;
}

.about-image {
    position: absolute;

    overflow: hidden;
}

.about-image img {
    height: 100%;
    object-fit: cover;
}

.image-one {
    width: 72%;
    height: 470px;

    top: 0;
    left: 0;
}

.image-two {
    width: 53%;
    height: 330px;

    right: 0;
    bottom: 0;

    border: 12px solid var(--white);
}

.about-content > p:not(.section-label) {
    margin-bottom: 18px;
}

.about-features {
    display: flex;
    gap: 35px;

    margin-top: 35px;

    padding-top: 30px;

    border-top: 1px solid var(--border);
}

.feature strong {
    display: block;

    color: var(--primary);

    font-family: var(--font-heading);
    font-size: 2rem;
}

.feature span {
    font-size: 0.78rem;
}


/* ================= SPECIAL ================= */

.special {
    background: var(--cream);
}

.special-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.special-card {
    padding: 35px 25px;

    text-align: center;

    background: var(--white);

    border: 1px solid var(--border);

    transition: var(--transition);
}

.special-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.special-icon {
    font-size: 2.1rem;
    margin-bottom: 20px;
}

.special-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.special-card p {
    font-size: 0.88rem;
}


/* ================= MENU ================= */

.menu {
    background: var(--white);
}

.menu-filter {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-bottom: 45px;

    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;

    color: var(--text);
    background: transparent;

    border: 1px solid var(--border);

    font-size: 0.82rem;
    font-weight: 600;

    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
    background: var(--dark);
    border-color: var(--dark);
}

.menu-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.menu-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.menu-card.hide {
    display: none;
}

.menu-image {
    position: relative;

    height: 230px;

    overflow: hidden;
}

.menu-image img {
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.menu-card:hover .menu-image img {
    transform: scale(1.06);
}

.price {
    position: absolute;

    top: 15px;
    right: 15px;

    padding: 7px 12px;

    color: var(--white);
    background: var(--primary);

    font-weight: 700;
    font-size: 0.82rem;
}

.menu-info {
    padding: 22px;
}

.menu-info h3 {
    font-size: 1.25rem;

    margin-bottom: 8px;
}

.menu-info p {
    font-size: 0.83rem;
}


/* ================= GALLERY ================= */

.gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    grid-auto-rows: 260px;

    gap: 15px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}


/* ================= RESERVATION ================= */

.reservation {
    background: var(--dark);

    color: rgba(255, 255, 255, 0.75);
}

.reservation-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 90px;

    align-items: center;
}

.reservation-content h2 {
    color: var(--white);
}

.reservation-content > p:not(.section-label) {
    margin-bottom: 35px;
}

.opening-hours {
    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.opening-hours h3 {
    color: var(--white);

    margin-bottom: 18px;
}

.opening-hours div {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 10px 0;

    font-size: 0.85rem;
}

.opening-hours strong {
    color: #e2bd87;
}

.reservation-form {
    padding: 40px;

    background: var(--white);

    color: var(--text);
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    color: var(--dark);

    font-size: 0.78rem;
    font-weight: 700;

    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--border);

    outline: none;

    background: #fcfbf9;

    color: var(--dark);

    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-button {
    width: 100%;

    border: 0;
}

.form-message {
    display: none;

    margin-top: 15px;

    color: #43804c;

    font-size: 0.85rem;
    font-weight: 600;

    text-align: center;
}

.form-message.show {
    display: block;
}


/* ================= CONTACT ================= */

.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    margin-bottom: 50px;
}

.contact-card {
    padding: 30px 20px;

    text-align: center;

    border: 1px solid var(--border);
}

.contact-icon {
    font-size: 1.8rem;

    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 1.2rem;

    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.82rem;
}

.map {
    width: 100%;
    height: 400px;

    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;

    border: 0;
}


/* ================= FOOTER ================= */

.footer {
    padding-top: 70px;

    background: #11100e;

    color: rgba(255, 255, 255, 0.65);
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 60px;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 15px;
}

.footer-grid > div:first-child p {
    max-width: 360px;

    font-size: 0.85rem;
}

.footer h3 {
    color: var(--white);

    font-family: var(--font-body);
    font-size: 0.95rem;

    margin-bottom: 20px;
}

.footer-grid > div:not(:first-child) a,
.footer-grid > div:not(:first-child) p {
    display: block;

    margin-bottom: 8px;

    font-size: 0.82rem;
}

.footer-grid a:hover {
    color: var(--primary);
}

.socials {
    display: flex;
    gap: 18px;

    margin-top: 22px;
}

.socials a {
    font-size: 0.75rem;
}

.footer-bottom {
    padding: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    text-align: center;

    font-size: 0.75rem;
}


/* ================= SCROLL TOP ================= */

.scroll-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background: var(--primary);

    border: 0;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: var(--transition);

    z-index: 900;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1050px) {

    .navbar {
        gap: 18px;
    }

    .special-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 50px;
    }
}


@media (max-width: 800px) {

    .section {
        padding: 75px 0;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        padding: 25px;

        background: var(--dark);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition: var(--transition);
    }

    .navbar.open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .nav-link {
        padding: 10px 0;
    }

    .nav-book {
        text-align: center;
        margin-top: 10px;
    }

    .about-grid,
    .reservation-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        min-height: 500px;
    }

    .reservation-grid {
        gap: 45px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

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


@media (max-width: 560px) {

    .hero {
        min-height: 750px;
    }

    .hero h1 {
        font-size: 3.3rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .about-images {
        min-height: 390px;
    }

    .image-one {
        height: 330px;
        width: 78%;
    }

    .image-two {
        height: 220px;
        width: 55%;
    }

    .about-features {
        gap: 15px;
        flex-wrap: wrap;
    }

    .special-grid,
    .menu-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item.large {
        grid-column: auto;
    }

    .reservation-form {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .opening-hours div {
        flex-direction: column;
        gap: 0;
    }

    .map {
        height: 300px;
    }
}