/* font */
@import url('https://fonts.googleapis.com/css2?family=Poppins');

/* theme colors */
:root {
    --main-color: #cbb994;
    --background-color: #fffaf0;
    --text-color: #111111;
}

/* General page setup */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header and Footer styles */
header,
footer {
    background-color: var(--main-color);
    color: var(--text-color);
    padding: 1rem;
    text-align: center;
}

/* Navigation bar */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background-color: #9b4342;
}

nav a:hover {
    box-shadow: 0 0 8px #9b4342;
    background-color: #a94b4a;
    cursor: pointer;
}

/* Main content layout */
main {
    padding: 2rem;
}

/* Section headings */
h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

/* index page layout */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
    align-items: stretch;
    min-height: 555px;
}

/* Quick info and promotions boxes */
.quick-info,
.promotions {
    background-color: var(--main-color);
    padding: 1rem;
    color: var(--text-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Featured dishes section */
.featured-dishes {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color)
}

/* About blurb section */
.about-blurb {
    background-color: var(--main-color);
    padding: 1rem;
    border-radius: 6px;
    color: var(--text-color);
    text-align: center;
    max-width: 47%;
    margin: 0 auto;
    margin-top: 25px;
    margin-bottom: 0;
}

/* Quick info links */
.quick-info a {
    text-decoration: none;
    color: var(--text-color);
}

.quick-info a:hover {
    text-decoration: underline;
    color: var(--text-color);
}

/* about page layout */
.about-page {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-page .intro {
    margin-bottom: 2rem;
}

/* Info block on about page */
.about-page .info-block {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Sections inside info block */
.about-page .info-block > section {
    flex: 1 1 300px;
    background-color: var(--main-color);
    padding: 1rem;
    border-radius: 6px;
    color: var(--text-color);
}

/* FAQ section */
.about-page .faq {
    background-color: var(--main-color);
    padding: 1rem;
    border-radius: 6px;
    color: var(--text-color);
}

/* Embedded map */
.map-frame {
    width: 100%;
    height: 250px;
    border-radius: 6px;
}

/* reviews page layout */
.reviews-page {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Review container grid */
#reviews-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Individual review card */
.review-card {
    background-color: var(--main-color);
    padding: 1rem;
    border-radius: 6px;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Review text styling */
.review-text {
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Review rating styling */
.review-rate {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* contact page layout */
.contact-page {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact form styling */
.contact-page form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-page label {
    font-weight: bold;
}

/* Contact form input and textarea */
.contact-page input,
.contact-page textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Contact form button */
.contact-page button {
    background-color: #9b4342;
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.contact-page button:hover {
    background-color: #a94b4a; 
    box-shadow: 0 0 8px #9b4342;
    cursor: pointer;
}

/* JS slideshow styling (Dynamic Functionality #1) */
.slideshow {
    width: 100%;
    height: 100%;
    max-height: 600px; 
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

/* Slideshow image */
.slideshow img {
    width: 100%;
    height: 95%;
    object-fit: cover;
    border-radius: 6px;
}

/* Slideshow dots container */
.slideshow-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Dot indicators */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
}

/* Active slide dot */
.active {
    background-color: #9b4342;
}

/* FAQ accordion behavior (Dynamic Functionality #2) */
.faq-item p {
    display: none;
    margin-top: 5px;
}

/* Show FAQ answer when open */
.open-faq p {
    display: block;
}

/* FAQ question header */
h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

/* FAQ arrow transition */
.arrow {
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.open-faq .arrow {
    transform: rotate(180deg);
}

/* Order link styling */
.order-link {
    color: #111111;
}

/* menu page layout */
.menu-page {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* menu filter dropdown */
.menu-filter {
    margin-bottom: 1.5rem;
    text-align: center;
}

.menu-filter select {
    padding: 0.1rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* menu items grid (Dynamic Functionality #3) */
#menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* individual menu item */
.menu-item {
    background-color: #9b4342;
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
