/* ------------------- 
   Import Google Fonts
------------------- */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ------------------- 
   Root Variables (CSS Custom Properties)
------------------- */
:root {
    --primary-color: #f2994a;
    --primary-color-dark: #d48540;
    --secondary-color: #481911;
    --text-dark: #1c1917;
    --text-light: #57534e;
    --extra-light: #d6d3d1;
    --white: #ffffff;
    --max-width: 1200px;
    --header-font: "Noto Serif", serif;
}

/* Reset Styles (remove default spacing & set box model) */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ------------------- 
   Reusable Section Styles
------------------- */
.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
}

.section__header {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--header-font);
    color: var(--text-dark);
}

/* ------------------- 
   Buttons
------------------- */
.btn {
    padding: 0.75rem 1.5rem;
    outline: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: 0.3s;
    cursor: pointer;
}

/* Button Hover Effect */
.btn:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

/* ------------------- 
   Generic Elements
   ------------------- */
img {
    display: flex;
    width: 100%;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
}

/* ------------------- 
   Header Section
   ------------------- */
header {
    min-height: 75vh;
    background-image: url("/assets/header-bg.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ------------------- 
   Navigation Styles
   ------------------- */
nav {
    position: fixed;
    /* Sticks nav to top */
    isolation: isolate;
    width: 100%;
    z-index: 9;
}

/* Nav header (logo + menu btn in mobile) */
.nav__header {
    padding: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
}

.nav__logo img {
    max-width: 110px;
}

.nav__menu__btn {
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* Nav links (mobile) */
.nav__links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--primary-color);
    transition: transform 0.5s;
    z-index: -1; /* Hidden initially */
}

/* Nav links visible when menu is open */
.nav__links.open {
    transform: translateY(100%);
}

.nav__links a {
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
}

.nav__links a:hover {
    color: var(--text-dark);
}

/* ------------------- 
   Hero/Header Content
------------------- */
.header__container h1 {
    margin-bottom: 2rem;
    font-size: 4rem;
    font-weight: 600;
    font-family: var(--header-font);
    color: var(--white);
    text-align: center;
}

.header__container p {
    margin-bottom: 2rem;
    line-height: 1.75rem;
    color: var(--white);
    text-align: center;
}

.header__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Buttons inside hero */
.header__btns .btn {
    min-width: 150px;
}

/* Second button styled differently */
.header__btns .btn:nth-child(2) {
    border-color: var(--white);
    background-color: transparent;
}

.header__btns .btn:nth-child(2):hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}



/* ================= MENU SECTION ================= */
.menu {
    position: relative; /* Allows ::before background overlay */
    isolation: isolate; /* Ensures child stacking is contained */
}

/* Background overlay on the right side of the section */
.menu::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: calc(50% - 450px); /* Dynamic width based on container */
    background-color: #2a1d1c; /* Dark background accent */
    z-index: -1; /* Keeps it behind the content */
}

/* Section header (Popular Menu) */
.menu__container .section__header {
    margin-bottom: 1rem;
}

/* "View All" link style */
.menu__container a {
    display: inline-block;
    margin-bottom: 4rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color); /* Brand color */
    transition: 0.3s;
}

/* Hover effect for "View All" link */
.menu__container a:hover {
    color: var(--primary-color-dark);
}

/* Grid layout for menu cards */
.menu__grid {
    display: grid;
    gap: 2rem 1rem; /* Vertical & horizontal spacing */
}

/* Single menu card */
.menu__card {
    max-width: 300px;
    margin-inline: auto; /* Center horizontally */
    box-shadow: 20px 5px 30px rgba(0, 0, 0, 0.4); /* Shadow for depth */
    transition: 0.3s; /* Smooth hover animation */
}

/* Card hover effect (lift up) */
.menu__card:hover {
    transform: translateY(-1rem);
}

/* Card content wrapper */
.menu__card__content {
    padding: 1rem;
    background-color: var(--white);
}

/* Dish name */
.menu__card__content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--header-font);
    color: var(--text-dark);
}

/* Price */
.menu__card__content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}


/* ============================
   Book a Table Section Styles
============================ */
.book {
    /* Space above and below the section */
    margin-block: 5rem;

    /* Background image of the booking section */
    background-image: url("/assets/book.jpg");
    background-size: cover; /* Cover entire section */
    background-position: center center; /* Keep image centered */
    background-repeat: no-repeat; /* Prevent repeating */
}

/* ============================
   Form Container Styling
============================ */
.book__container form {
    max-width: 600px; /* Limit form width for readability */
    padding: 1rem; /* Inner spacing */
    display: grid; /* Use grid for form layout */
    gap: 2rem; /* Space between rows */
    background-color: #261d1c; /* Dark background for contrast */
    transform: translateY(10rem); /* Push form downward for overlap effect */
}

/* ============================
   Form Heading (Book a Table)
============================ */
.book__container h4 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--header-font); /* Use defined header font */
    color: var(--white);
}

/* ============================
   Input Row Layout
============================ */
.book__container .input__row {
    display: grid; /* Stack inputs (mobile-first) */
    gap: 1rem; /* Space between inputs */
}

/* ============================
   Input Group (Label + Input)
============================ */
.book__container .input__group {
    display: grid; /* Stack label above input */
    gap: 10px; /* Space between label & input */
}

/* ============================
   Label Styling
============================ */
.book__container label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white); /* White text for visibility */
}

/* ============================
   Input Field Styling
============================ */
.book__container input {
    padding: 0.75rem 1rem; /* Comfortable typing space */
    font-size: 1rem;
    color: var(--white); /* White text inside input */
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border: none; /* Remove default borders */
    outline: none; /* Remove focus outline (can replace with custom later) */
}

/* ============================
   Submit Button Styling
============================ */
.book__container .btn {
    width: fit-content; /* Button only as wide as text */
    margin-left: auto; /* Push button to the right */
}


/* ============================
   ABOUT SECTION STYLES
   Styles for layout, text, and
   image alignment in the About section
============================ */

/* Container: use grid layout with spacing */
.about__container {
    display: grid; /* Places image + text in grid */
    gap: 2rem; /* Space between columns (mobile: stacked) */
    overflow: hidden; /* Prevents any overflow content */
}

/* Image styling */
.about__image img {
    max-width: 450px; /* Limits image size */
    margin-inline: auto; /* Centers image horizontally */
}

/* Section header spacing inside content */
.about__content .section__header {
    margin-bottom: 2rem; /* Space below heading */
}

/* Content block with decorative left border */
.about__content>div {
    padding-left: 2rem; /* Push text inward */
    border-left: 2px solid var(--secondary-color); /* Vertical accent line */
}

/* Paragraph styling */
.about__content p {
    margin-bottom: 1rem; /* Space between paragraphs */
    color: var(--text-light); /* Softer text color */
    line-height: 1.75rem; /* Improves readability */
}

/* Button wrapper spacing */
.about__btn {
    margin-top: 2rem; /* Adds space above the button */
}



/* =========================
   FOOTER STYLES
   Styling for footer layout, links,
   logo, and copyright bar
========================= */

/* Footer background */
footer {
    background-color: var(--secondary-color); /* Dark background for footer */
}

/* Footer container grid */
.footer__container {
    display: grid; /* Place footer columns in a grid layout */
    gap: 4rem 2rem; /* Row gap: 4rem, Column gap: 2rem */
}

/* Footer logo */
.footer__logo img {
    max-width: 150px; /* Restrict logo size */
}

/* Column headings (e.g., Blogs, New Items, Social Media) */
.footer__col h4 {
    margin-bottom: 2rem; /* Space below headings */
    font-size: 1.2rem; /* Slightly larger font */
    font-weight: 600; /* Bold */
    color: var(--white); /* White text */
}

/* List container for footer links */
.footer__links {
    display: grid; /* Stack links vertically */
    gap: 1rem; /* Space between each link */
}

/* Footer links style */
.footer__links a {
    font-weight: 500; /* Medium font weight */
    color: var(--extra-light); /* Softer text color */
}

/* Hover effect for footer links */
.footer__links a:hover {
    color: var(--primary-color); /* Highlight color on hover */
}

/* Footer bar (bottom strip) */
.footer__bar {
    padding: 1rem; /* Spacing inside */
    font-size: 1rem; /* Standard font size */
    color: var(--white); /* White text */
    text-align: center; /* Centered text */
}



/* ------------------- 
   Responsive (Tablet & Desktop Views)
------------------- */

/* For small tablets and up (min-width: 540px) */
@media (width > 540px) {

    /* Show menu items in 2 columns instead of 1 */
    .menu__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book__container form {
        padding: 1.5rem;
    }

    .book__container .input__row:not(:last-child) {
        grid-template-columns: repeat(2, 1fr);
    }

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


/* =========================================
   Responsive Styles for Tablets & Desktops 
   (applies when screen width > 768px)
   ========================================= */
@media (width > 768px) {

    /* -----------------------------
       Navigation Bar (Desktop)
    ----------------------------- */

    /* Desktop nav bar becomes static (not fixed) */
    nav {
        position: static;
        padding: 2rem 1rem;
        max-width: var(--max-width);
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    /* Remove mobile background from header */
    .nav__header {
        flex: 1;
        padding: 0;
        background-color: transparent;
    }

    /* Logo slightly bigger on desktop */
    .nav__logo img {
        max-width: 125px;
    }

    /* Hide hamburger menu (since desktop uses full menu) */
    .nav__menu__btn {
        display: none;
    }

    /* Show nav links horizontally instead of vertically */
    .nav__links {
        position: static;
        width: fit-content;
        padding: 0;
        flex-direction: row; /* horizontal layout */
        gap: 3rem;
        background-color: transparent;
        transform: none !important; /* cancel mobile slide-down animation */
    }

    /* Desktop nav link hover (changes color to primary) */
    .nav__links a:hover {
        color: var(--primary-color);
    }

    /* -----------------------------
       Hero Section (Desktop)
    ----------------------------- */

    /* Align hero heading to the left */
    .header__container h1 {
        max-width: 600px;
        text-align: left;
    }

    /* Align hero paragraph to the left */
    .header__container p {
        max-width: 400px;
        text-align: left;
    }

    /* Align hero buttons to the left */
    .header__btns {
        justify-content: flex-start;
    }

    /* -----------------------------
       Menu Section (Desktop)
    ----------------------------- */

    /* Display menu items in 4 columns */
    .menu__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* -----------------------------
       Book a Table Form (Desktop)
    ----------------------------- */

    /* Add padding inside form */
    .book__container form {
        padding: 1.5rem; /* reduced for better layout */
    }

    /* Place input groups side by side (2 columns) */
    .book__container .input__row:not(:last-child) {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .about__content {
        grid-area: 1/1/2/2;
    }

    .footer__container {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* For large desktops (min-width: 1024px) */
@media (width > 1024px) {

    /* Reduce spacing between menu items */
    .menu__grid {
        gap: 1.5rem;
    }

    /* Add extra padding inside menu cards */
    .menu__card__content {
        padding: 1.5rem;
    }
}
