/* =========================================================
   TASTE HOUSE
   CLEAN FINAL STYLE SHEET
========================================================= */


/* =========================================================
   1. BASIC SETTINGS
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4efe6;
    color: #3d281d;
    font-family: "DM Sans", sans-serif;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   2. NAVIGATION
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background-color: #f4efe6;

    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    font-weight: 400;
}

.desktop-navigation {
    display: flex;
    gap: 35px;
}

.desktop-navigation a {
    font-size: 13px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.desktop-navigation a:hover {
    color: #8b5e3c;
}


/* =========================================================
   3. MOBILE MENU BUTTON
========================================================= */

.menu-button {
    display: none;

    width: 45px;
    height: 45px;

    border: 1px solid #b9a998;
    background: transparent;

    color: #3d281d;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    position: relative;
    z-index: 2000;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.menu-button:hover {
    background-color: #4a2c1d;
    color: #f8f1e7;
    transform: translateY(-2px);
}


/* =========================================================
   4. NAV BUTTON
========================================================= */

.nav-button {
    position: relative;
    overflow: hidden;

    border: 1px solid #3d281d;
    padding: 10px 20px;

    font-size: 13px;

    box-shadow:
        0 8px 20px rgba(61, 40, 29, 0.10);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease,
        color 0.35s ease;
}

.nav-button:hover {
    background-color: #3d281d;
    color: white;

    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(61, 40, 29, 0.18);
}

.nav-button::after {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );

    transform: skewX(-20deg);

    transition: left 0.7s ease;

    pointer-events: none;
}

.nav-button:hover::after {
    left: 130%;
}


/* =========================================================
   5. MOBILE NAVIGATION
========================================================= */

.mobile-navigation {
    display: none;

    background-color: #2e1b12;

    padding: 30px 8%;

    flex-direction: column;

    gap: 0;

    border-top: 1px solid rgba(248, 241, 231, 0.15);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);

    position: relative;
    z-index: 1500;
}

.mobile-navigation.show {
    display: flex;

    animation: mobileMenuOpen 0.35s ease forwards;
}

.mobile-navigation a {
    color: #f8f1e7;

    font-family: "Playfair Display", serif;

    font-size: 21px;

    letter-spacing: 1px;

    padding: 18px 0;

    border-bottom: 1px solid rgba(248, 241, 231, 0.12);

    transition:
        color 0.3s ease,
        padding-left 0.3s ease;
}

.mobile-navigation a:hover {
    color: #c9a47c;
    padding-left: 10px;
}

.mobile-navigation a:last-child {
    border-bottom: none;
}

@keyframes mobileMenuOpen {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   6. HERO
========================================================= */

.hero {
    padding: 20px 5% 70px;
}

.hero-image {
    height: 650px;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(46, 27, 18, 0.12);
}

.hero-image img {
    height: 100%;

    object-fit: cover;

    transform: scale(1.02);

    transition: transform 1.2s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(30, 18, 12, 0.72),
            rgba(30, 18, 12, 0.18),
            rgba(30, 18, 12, 0.02)
        );
}

.hero-content {
    position: absolute;

    left: 8%;
    bottom: 12%;

    color: white;

    max-width: 600px;

    animation:
        heroContent 1s ease forwards;
}

@keyframes heroContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.small-title {
    letter-spacing: 4px;
    font-size: 12px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(50px, 7vw, 95px);

    line-height: 0.95;

    font-weight: 500;
}

.hero h1 em {
    font-weight: 400;
}

.hero-description {
    margin-top: 25px;

    max-width: 400px;

    line-height: 1.7;
}


/* =========================================================
   7. BUTTON SYSTEM
========================================================= */

.main-button,
.light-button,
.filter-button,
.menu-pagination button,
.menu-page-number {
    position: relative;
    overflow: hidden;

    cursor: pointer;

    font-family: "DM Sans", sans-serif;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;
}


/* Main button */

.main-button {
    display: inline-block;

    margin-top: 30px;

    padding: 14px 28px;

    background-color: #6b4228;

    color: white;

    border: none;

    font-size: 13px;

    box-shadow:
        0 8px 20px rgba(61, 40, 29, 0.10);
}

.main-button:hover {
    background-color: #4b2d1b;

    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(61, 40, 29, 0.18);
}


/* Light button */

.light-button {
    margin-top: 30px;

    padding: 14px 28px;

    border: 1px solid #f8f1e7;

    color: #f8f1e7;

    font-size: 13px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.light-button:hover {
    background-color: #f8f1e7;

    color: #4a2c1d;

    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.14);
}


/* Button shine */

.main-button::after,
.light-button::after,
.filter-button::after,
.menu-pagination button::after,
.menu-page-number::after {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );

    transform: skewX(-20deg);

    transition: left 0.7s ease;

    pointer-events: none;
}

.main-button:hover::after,
.light-button:hover::after,
.filter-button:hover::after,
.menu-pagination button:hover::after,
.menu-page-number:hover::after {
    left: 130%;
}


/* =========================================================
   8. INTRO
========================================================= */

.intro {
    padding: 120px 10%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}

.section-label {
    font-size: 11px;

    letter-spacing: 3px;

    color: #936b4d;

    margin-bottom: 20px;
}

.intro h2,
.about h2,
.contact h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(45px, 5vw, 70px);

    line-height: 1.05;

    font-weight: 500;
}

.intro-description {
    align-self: end;

    max-width: 450px;

    line-height: 1.8;

    font-size: 17px;
}

.text-link {
    display: inline-block;

    margin-top: 25px;

    border-bottom: 1px solid #3d281d;

    padding-bottom: 5px;

    transition:
        color 0.3s ease,
        border-color 0.3s ease;
}

.text-link:hover {
    color: #8b5e3c;
    border-color: #8b5e3c;
}


/* =========================================================
   9. MENU
========================================================= */

.menu-section {
    padding: 100px 6%;

    background-color: #eee6d9;
}

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 50px;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(40px, 5vw, 65px);

    font-weight: 500;
}

.section-heading > p {
    max-width: 280px;

    line-height: 1.6;
}


/* Menu filters */

.menu-filters {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-bottom: 45px;

    flex-wrap: wrap;
}

.filter-button {
    background: transparent;

    border: 1px solid #b9a998;

    color: #3d281d;

    padding: 10px 22px;

    font-size: 13px;
}

.filter-button:hover {
    background-color: #6b4228;

    color: white;

    border-color: #6b4228;

    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(61, 40, 29, 0.18);
}

.filter-button.active {
    background-color: #4a2c1d;

    color: white;

    border-color: #4a2c1d;

    box-shadow:
        0 8px 20px rgba(61, 40, 29, 0.14);
}


/* Menu grid */

.menu-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* Menu card */

.menu-card {
    position: relative;

    background-color: #f8f4ed;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(61, 40, 29, 0.06),
        0 2px 6px rgba(61, 40, 29, 0.04);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 45px rgba(61, 40, 29, 0.12),
        0 5px 12px rgba(61, 40, 29, 0.06);
}


/* Menu image */

.menu-image {
    height: 330px;

    overflow: hidden;

    position: relative;
}

.menu-image img {
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.menu-card:hover .menu-image img {
    transform: scale(1.05);
}

.menu-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(46, 27, 18, 0.18),
            transparent 50%
        );

    opacity: 0;

    transition: opacity 0.4s ease;
}

.menu-card:hover .menu-image::after {
    opacity: 1;
}


/* Menu info */

.menu-info {
    padding: 25px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    transition: transform 0.4s ease;
}

.menu-card:hover .menu-info {
    transform: translateY(-2px);
}

.menu-info h3 {
    font-family: "Playfair Display", serif;

    font-size: 22px;

    font-weight: 600;
}

.menu-info p {
    margin-top: 8px;

    font-size: 13px;

    color: #765b49;

    line-height: 1.5;
}

.menu-info span {
    font-weight: 600;

    white-space: nowrap;
}

.menu-card.hide {
    display: none;
}


/* =========================================================
   10. MENU PAGINATION
========================================================= */

.menu-pagination {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    margin-top: 60px;
}

#pageNumbers {
    display: flex;

    gap: 8px;
}

.menu-pagination button,
.menu-page-number {
    min-width: 46px;

    height: 46px;

    padding: 0 15px;

    background: #f8f4ed;

    border: 1px solid #c9b9a8;

    color: #3d281d;

    font-size: 13px;
}

.menu-pagination button:hover,
.menu-page-number:hover {
    background-color: #4a2c1d;

    color: #f8f1e7;

    border-color: #4a2c1d;

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(61, 40, 29, 0.12);
}

.menu-page-number.active {
    background-color: #4a2c1d;

    color: #f8f1e7;

    border-color: #4a2c1d;

    box-shadow:
        0 8px 20px rgba(61, 40, 29, 0.12);
}

.menu-pagination button:disabled {
    opacity: 0.35;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   11. FEATURE
========================================================= */

.feature {
    background-color: #4a2c1d;

    color: #f8f1e7;

    display: grid;

    grid-template-columns: 1fr 1fr;
}

.feature-image {
    min-height: 600px;
}

.feature-image img {
    height: 100%;

    object-fit: cover;
}

.feature-content {
    padding: 90px 10%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;
}

.feature-content h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(45px, 5vw, 70px);

    line-height: 1.05;

    font-weight: 500;

    margin-bottom: 30px;
}

.feature-content > p:not(.section-label) {
    line-height: 1.8;

    max-width: 450px;
}


/* =========================================================
   12. ABOUT
========================================================= */

.about {
    padding: 130px 10%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}

.about-content > p:not(.section-label) {
    margin-top: 30px;

    max-width: 450px;

    line-height: 1.8;
}

.about-image {
    height: 600px;
}

.about-image img {
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   13. GALLERY
========================================================= */

.gallery {
    padding: 110px 6%;

    background-color: #eee6d9;
}

.center {
    display: block;

    text-align: center;
}

.center h2 {
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr;

    gap: 20px;
}

.gallery-grid img {
    height: 430px;

    object-fit: cover;

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);

    box-shadow:
        0 15px 35px rgba(61, 40, 29, 0.10);
}


/* =========================================================
   14. RESERVATION / CONTACT
========================================================= */

.contact {
    padding: 120px 10%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;

    background-color: #f4efe6;
}

.contact-content {
    max-width: 500px;
}

.reservation-text {
    margin-top: 30px;

    max-width: 450px;

    line-height: 1.8;

    color: #765b49;
}


/* Contact details */

.contact-details {
    margin-top: 55px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    max-width: 700px;
}

.contact-detail {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 22px;

    background: rgba(238, 230, 217, 0.55);

    border: 1px solid #d8cbbb;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.contact-detail:hover {
    transform: translateY(-5px);

    background-color: #eee6d9;

    box-shadow:
        0 15px 35px rgba(61, 40, 29, 0.08);
}

.contact-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #b9a998;

    font-size: 18px;

    color: #6b4228;
}

.contact-label {
    display: block;

    margin-bottom: 6px;

    font-size: 9px;

    letter-spacing: 2px;

    color: #936b4d;
}

.contact-detail p {
    margin: 0;

    font-size: 14px;

    line-height: 1.5;
}


/* Reservation form */

.reservation-form {
    background-color: #eee6d9;

    padding: 45px;

    width: 100%;

    max-width: 550px;

    box-shadow:
        0 15px 40px rgba(61, 40, 29, 0.06);
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 22px;
}

.form-group label {
    font-size: 12px;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid #c9b9a8;

    background-color: #f8f4ed;

    color: #3d281d;

    font-family: "DM Sans", sans-serif;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6b4228;

    box-shadow:
        0 0 0 3px rgba(107, 66, 40, 0.08);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.reservation-button {
    width: 100%;

    border: none;
}


/* =========================================================
   15. FOOTER
========================================================= */

footer {
    background-color: #2e1b12;

    color: #f4efe6;

    padding: 50px 6%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

.footer-logo {
    font-family: "Playfair Display", serif;

    font-size: 25px;

    letter-spacing: 3px;
}


/* =========================================================
   16. SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   17. GLOBAL FADE-UP ELEMENTS
========================================================= */

.menu-card,
.about-content,
.about-image,
.feature-content,
.feature-image,
.gallery-grid img,
.contact {
    animation:
        fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;

        transform: translateY(25px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================================================
   18. RESPONSIVE TABLET / MOBILE
========================================================= */

@media (max-width: 800px) {

    /* Navigation */

    .desktop-navigation {
        display: none;
    }

    .nav-button {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .navbar {
        height: auto;

        padding: 25px;

        flex-wrap: wrap;

        gap: 20px;
    }


    /* Hero */

    .hero {
        padding: 10px 15px 50px;
    }

    .hero-image {
        height: 600px;
    }

    .hero-content {
        left: 8%;

        right: 8%;
    }


    /* Main sections */

    .intro,
    .about,
    .contact,
    .feature {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .intro {
        padding: 80px 8%;
    }


    /* Menu */

    .menu-section {
        padding: 80px 6%;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 20px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }


    /* Feature */

    .feature-image {
        min-height: 400px;
    }

    .feature-content {
        padding: 70px 8%;
    }


    /* About */

    .about {
        padding: 80px 8%;
    }

    .about-image {
        height: 450px;
    }


    /* Gallery */

    .gallery {
        padding: 80px 6%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 400px;
    }


    /* Contact */

    .contact {
        padding: 80px 8%;
    }

    .contact-details {
        grid-template-columns: 1fr;

        margin-top: 40px;
    }

    .reservation-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    /* Footer */

    footer {
        flex-direction: column;

        text-align: center;
    }
}


/* =========================================================
   19. SMALL PHONES
========================================================= */

@media (max-width: 600px) {

    /* Pagination */

    .menu-pagination {
        gap: 6px;

        margin-top: 40px;
    }

    .menu-pagination button,
    .menu-page-number {
        min-width: 40px;

        height: 40px;

        padding: 0 10px;

        font-size: 12px;
    }

    #pageNumbers {
        gap: 5px;
    }


    /* Menu filters */

    .menu-filters {
        gap: 8px;
    }

    .filter-button {
        padding: 9px 15px;

        font-size: 12px;
    }
}


/* =========================================================
   20. ACCESSIBILITY / MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}