

/* =====================================================
   ROOT VARIABLES
===================================================== */

:root {
    --primary: #a63d24;
    --primary-dark: #822e1b;
    --dark: #171513;
    --dark-soft: #292522;
    --cream: #f8f4ee;
    --cream-dark: #eee7dc;
    --white: #ffffff;
    --text: #282421;
    --text-light: #756d66;
    --border: #ddd5cb;
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
    --transition: 0.3s ease;
    --heading: "Playfair Display", serif;
    --body: "DM Sans", sans-serif;
}



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

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: var(--body);

    color: var(--text);

    background: var(--cream);

    line-height: 1.6;

}


img {

    width: 100%;

    display: block;

    object-fit: cover;

}


button,
a {

    font-family: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;

    text-decoration: none;

}



/* =====================================================
   GLOBAL
===================================================== */

.container {

    width: min(1180px, 92%);

    margin: 0 auto;

}


.section {

    padding: 110px 0;

}


.section-label {

    display: block;

    margin-bottom: 15px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

}


.section-heading {

    max-width: 650px;

    margin-bottom: 60px;

}


.section-heading.centered {

    margin-left: auto;

    margin-right: auto;

    text-align: center;

}


.section-heading h2,
.intro h2,
.about-content h2 {

    font-family: var(--heading);

    font-size: clamp(38px, 5vw, 62px);

    line-height: 1.05;

    font-weight: 600;

}


.section-heading p {

    margin-top: 20px;

    color: var(--text-light);

}



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

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    padding: 0 28px;

    border: 1px solid transparent;

    font-size: 14px;

    font-weight: 700;

    transition: var(--transition);

}


.btn-primary {

    background: var(--primary);

    color: var(--white);

}


.btn-primary:hover {

    background: var(--primary-dark);

    transform: translateY(-2px);

}


.btn-outline {

    border-color: rgba(255,255,255,0.7);

    color: var(--white);

}


.btn-outline:hover {

    background: var(--white);

    color: var(--dark);

}


.text-link {

    display: inline-block;

    margin-top: 25px;

    color: var(--primary);

    font-weight: 700;

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

    padding-bottom: 3px;

}



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

.site-header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 1000;

    color: var(--white);

    transition: var(--transition);

}


.site-header.scrolled {

    background: var(--white);

    color: var(--dark);

    box-shadow: 0 4px 20px rgba(0,0,0,0.08);

}


.header-container {

    width: min(1240px, 94%);

    min-height: 82px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;

}


.logo-mark {

    display: grid;

    place-items: center;

    width: 45px;

    height: 45px;

    border: 1px solid currentColor;

    font-family: var(--heading);

    font-size: 17px;

}


.logo-text {

    display: flex;

    flex-direction: column;

    font-family: var(--heading);

    font-size: 20px;

    font-weight: 700;

    line-height: 1;

}


.logo-text small {

    margin-top: 5px;

    font-family: var(--body);

    font-size: 8px;

    letter-spacing: 2px;

}


.main-nav {

    display: flex;

    align-items: center;

    gap: 35px;

}


.nav-link {

    position: relative;

    font-size: 13px;

    font-weight: 600;

}


.nav-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -7px;

    width: 0;

    height: 1px;

    background: currentColor;

    transition: var(--transition);

}


.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;

}


.header-actions {

    display: flex;

    align-items: center;

    gap: 15px;

}


.cart-button {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 15px;

    border: 1px solid currentColor;

    background: transparent;

    color: inherit;

    font-size: 12px;

    font-weight: 700;

}


.cart-count {

    display: grid;

    place-items: center;

    min-width: 21px;

    height: 21px;

    padding: 0 5px;

    background: var(--primary);

    color: var(--white);

    border-radius: 50%;

    font-size: 10px;

}


.menu-toggle {

    display: none;

    width: 42px;

    height: 42px;

    border: 0;

    background: transparent;

}


.menu-toggle span {

    display: block;

    width: 24px;

    height: 2px;

    margin: 5px auto;

    background: currentColor;

}



/* =====================================================
   MOBILE NAV
===================================================== */

.mobile-nav {

    position: fixed;

    top: 82px;

    left: 0;

    width: 100%;

    z-index: 999;

    display: none;

    flex-direction: column;

    background: var(--white);

    color: var(--dark);

    box-shadow: var(--shadow);

}


.mobile-nav.open {

    display: flex;

}


.mobile-nav a {

    padding: 18px 25px;

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

}



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

.hero {

    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    overflow: hidden;

    color: var(--white);

}


.hero-image {

    position: absolute;

    inset: 0;

}


.hero-image img {

    height: 100%;

    animation: heroZoom 12s ease-in-out infinite alternate;

}


@keyframes heroZoom {

    from {

        transform: scale(1);

    }

    to {

        transform: scale(1.06);

    }

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.72),
            rgba(0,0,0,0.20)
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    width: min(1180px, 92%);

    margin: auto;

    padding-top: 80px;

    max-width: 760px;

}


.hero-content h1 {

    font-family: var(--heading);

    font-size: clamp(58px, 8vw, 105px);

    line-height: 0.95;

    font-weight: 500;

}


.hero-content p {

    max-width: 550px;

    margin: 28px 0;

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

    font-size: 17px;

}


.hero-buttons {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}


.hero-scroll {

    position: absolute;

    right: 4%;

    bottom: 40px;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 12px;

    transform: rotate(-90deg);

    transform-origin: right center;

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

}


.scroll-line {

    width: 60px;

    height: 1px;

    background: currentColor;

}



/* =====================================================
   INTRO
===================================================== */

.intro {

    background: var(--white);

}


.intro-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: end;

}


.intro-text {

    max-width: 500px;

}


.intro-text p {

    color: var(--text-light);

    font-size: 18px;

}



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

.menu-section {

    background: var(--cream);

}


.menu-filters {

    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 45px;

}


.filter-button {

    padding: 10px 20px;

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

    background: transparent;

    color: var(--text);

    font-size: 12px;

    font-weight: 700;

    transition: var(--transition);

}


.filter-button:hover,
.filter-button.active {

    background: var(--dark);

    border-color: var(--dark);

    color: var(--white);

}


.menu-grid {

    display: grid;

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

    gap: 25px;

}


.menu-card {

    overflow: hidden;

    background: var(--white);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.05);

    animation: cardIn 0.4s ease;

}


@keyframes cardIn {

    from {

        opacity: 0;

        transform: translateY(15px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


.menu-image {

    position: relative;

    aspect-ratio: 1 / 0.82;

    overflow: hidden;

}


.menu-image img {

    height: 100%;

    transition:
        transform 0.5s ease;

}


.menu-card:hover .menu-image img {

    transform: scale(1.06);

}


.menu-card-body {

    padding: 22px;

}


.menu-card-top {

    display: flex;

    justify-content: space-between;

    gap: 15px;

}


.menu-card h3 {

    font-family: var(--heading);

    font-size: 22px;

}


.menu-price {

    color: var(--primary);

    font-weight: 700;

    white-space: nowrap;

}


.menu-description {

    margin-top: 8px;

    color: var(--text-light);

    font-size: 13px;

}


.add-to-cart {

    width: 100%;

    margin-top: 18px;

    padding: 12px;

    border: 0;

    background: var(--dark);

    color: var(--white);

    font-size: 12px;

    font-weight: 700;

    transition: var(--transition);

}


.add-to-cart:hover {

    background: var(--primary);

}



/* =====================================================
   FEATURED DISH
===================================================== */

.featured-dish {

    display: grid;

    grid-template-columns: 1.25fr 0.75fr;

    min-height: 650px;

    background: var(--dark);

    color: var(--white);

}


.featured-image {

    overflow: hidden;

}


.featured-image img {

    height: 100%;

    transition: transform 0.8s ease;

}


.featured-dish:hover .featured-image img {

    transform: scale(1.04);

}


.featured-content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 70px;

}


.featured-content h2 {

    max-width: 450px;

    font-family: var(--heading);

    font-size: clamp(42px, 5vw, 70px);

    line-height: 1;

}


.featured-content p {

    max-width: 430px;

    margin: 25px 0;

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

}


.featured-price {

    margin-bottom: 25px;

    color: var(--primary);

    font-size: 22px;

    font-weight: 700;

}



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

.gallery-section {

    background: var(--white);

}


.gallery-grid {

    display: grid;

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

    grid-auto-rows: 260px;

    gap: 12px;

}


.gallery-item {

    overflow: hidden;

    padding: 0;

    border: 0;

    background: none;

}


.gallery-item img {

    height: 100%;

    transition:
        transform 0.6s ease;

}


.gallery-item:hover img {

    transform: scale(1.06);

}


.gallery-large {

    grid-column: span 2;

    grid-row: span 2;

}



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

.about-section {

    background: var(--cream);

}


.about-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;

}


.about-image {

    height: 650px;

}


.about-image img {

    height: 100%;

}


.about-content p {

    max-width: 520px;

    margin-top: 22px;

    color: var(--text-light);

}



/* =====================================================
   TESTIMONIALS
===================================================== */

.testimonials {

    background: var(--white);

}


.testimonial-grid {

    display: grid;

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

    gap: 20px;

}


.testimonial-card {

    padding: 35px;

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

}


.stars {

    margin-bottom: 20px;

    color: var(--primary);

    letter-spacing: 3px;

}


.testimonial-card p {

    margin-bottom: 25px;

    font-family: var(--heading);

    font-size: 21px;

    line-height: 1.4;

}



/* =====================================================
   CTA
===================================================== */

.cta-section {

    position: relative;

    min-height: 620px;

    display: grid;

    place-items: center;

    background:
        url("../assets/images/gallery/cta-food.jpg")
        center / cover
        no-repeat;

    color: var(--white);

    text-align: center;

}


.cta-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,0.62);

}


.cta-content {

    position: relative;

    z-index: 2;

    max-width: 700px;

    padding: 30px;

}


.cta-content h2 {

    font-family: var(--heading);

    font-size: clamp(48px, 7vw, 82px);

    line-height: 0.95;

}


.cta-content p {

    margin: 25px auto;

    max-width: 500px;

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

}



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

.contact-section {

    background: var(--cream);

}


.contact-container {

    display: grid;

    grid-template-columns: 1fr 0.7fr;

    gap: 80px;

    align-items: center;

}


.contact-info h2 {

    max-width: 550px;

    font-family: var(--heading);

    font-size: clamp(45px, 6vw, 70px);

    line-height: 1;

}


.contact-info > p {

    margin-top: 20px;

    color: var(--text-light);

}


.contact-details {

    display: grid;

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

    gap: 25px;

    margin-top: 45px;

}


.contact-detail {

    display: flex;

    flex-direction: column;

    gap: 6px;

}


.contact-detail strong {

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.contact-detail span {

    color: var(--text-light);

    font-size: 14px;

}


.reservation-card {

    padding: 50px;

    background: var(--dark);

    color: var(--white);

}


.reservation-card h3 {

    font-family: var(--heading);

    font-size: 38px;

    line-height: 1.1;

}


.reservation-card p {

    margin: 20px 0 30px;

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

}



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

.site-footer {

    background: var(--dark);

    color: var(--white);

}


.footer-container {

    display: grid;

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

    gap: 70px;

    padding: 70px 0;

}


.footer-logo {

    font-family: var(--heading);

    font-size: 45px;

}


.footer-brand p {

    max-width: 300px;

    margin-top: 15px;

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

}


.footer-links {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.footer-links h4 {

    margin-bottom: 10px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.footer-links a {

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

    font-size: 13px;

}


.footer-links a:hover {

    color: var(--white);

}


.footer-bottom {

    padding: 20px;

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

    text-align: center;

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

    font-size: 12px;

}



/* =====================================================
   LIGHTBOX
===================================================== */

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background: rgba(0,0,0,0.9);

}


.lightbox.open {

    display: flex;

}


.lightbox img {

    width: auto;

    max-width: 90%;

    max-height: 85vh;

}


.lightbox-close {

    position: absolute;

    top: 25px;

    right: 30px;

    border: 0;

    background: transparent;

    color: var(--white);

    font-size: 40px;

}



/* =====================================================
   CART
===================================================== */

.cart-overlay {

    position: fixed;

    inset: 0;

    z-index: 1500;

    display: none;

    background: rgba(0,0,0,0.5);

}


.cart-overlay.open {

    display: block;

}


.cart-drawer {

    position: fixed;

    top: 0;

    right: 0;

    z-index: 1600;

    width: min(420px, 92%);

    height: 100vh;

    display: flex;

    flex-direction: column;

    background: var(--white);

    transform: translateX(100%);

    transition:
        transform 0.35s ease;

}


.cart-drawer.open {

    transform: translateX(0);

}


.cart-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 25px;

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

}


.cart-header h3 {

    font-family: var(--heading);

    font-size: 27px;

}


.cart-header button {

    border: 0;

    background: transparent;

    font-size: 30px;

}


.cart-items {

    flex: 1;

    overflow-y: auto;

    padding: 25px;

}


.empty-cart {

    padding: 50px 10px;

    text-align: center;

    color: var(--text-light);

}


.cart-item {

    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 15px;

    padding-bottom: 20px;

    margin-bottom: 20px;

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

}


.cart-item-image {

    width: 70px;

    height: 70px;

}


.cart-item-image img {

    height: 100%;

}


.cart-item h4 {

    font-size: 14px;

}


.cart-item-price {

    margin-top: 5px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;

}


.cart-controls {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 8px;

}


.cart-controls button {

    width: 25px;

    height: 25px;

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

    background: var(--cream);

}


.cart-footer {

    padding: 25px;

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

}


.cart-total {

    display: flex;

    justify-content: space-between;

    margin-bottom: 20px;

    font-size: 17px;

}


.cart-total strong {

    color: var(--primary);

}


.cart-checkout {

    width: 100%;

}



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

@media (max-width: 900px) {

    body.mobile-menu-open {
        overflow: hidden;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
        position: relative;
        z-index: 10001;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 3px auto;
        background: currentColor;
        transition: transform .25s ease, opacity .25s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-nav {
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100dvh - 82px);
        padding-bottom: env(safe-area-inset-bottom);
        overflow-y: auto;
        z-index: 9999;
        display: none;
        flex-direction: column;
        background: var(--white);
        color: var(--dark);
        box-shadow: 0 12px 30px rgba(0,0,0,.16);
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav a {
        display: block;
        width: 100%;
        min-height: 56px;
        padding: 18px 25px;
        box-sizing: border-box;
        color: var(--dark);
        text-decoration: none;
        border-bottom: 1px solid var(--border);
        background: var(--white);
    }

    .mobile-nav a:active,
    .mobile-nav a:hover {
        background: #f5f5f5;
    }

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

    .featured-dish {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 500px;
    }

    .about-container,
    .intro-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image {
        height: 500px;
    }

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

    .contact-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 65px 0;
    }

    .header-container {
        width: 92%;
        min-height: 72px;
    }

    .mobile-nav {
        top: 72px;
        max-height: calc(100dvh - 72px);
    }

    .logo-text {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .cart-button {
        padding: 8px 10px;
    }

    .cart-button span:first-child {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile hero */
    .hero {
        min-height: 100svh;
        height: 100svh;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        animation: none;
        transform: none;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0,0,0,.45),
            rgba(0,0,0,.75)
        );
    }

    .hero-content {
        width: 90%;
        max-width: 100%;
        margin: auto;
        padding-top: 55px;
    }

    .hero-content h1 {
        font-size: clamp(45px, 14vw, 62px);
        line-height: .98;
    }

    .hero-content p {
        max-width: 100%;
        margin: 22px 0;
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

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

    .hero-scroll {
        display: none;
    }

    .menu-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .menu-card {
        display: block !important;
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

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

    .featured-image {
        min-height: 350px;
    }

    .featured-content {
        padding: 50px 25px;
    }

    .about-image {
        height: 350px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .reservation-card {
        padding: 35px 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
