/* Bean & Brew Café - Global Stylesheet
   Covers: Home, Menu, Bookings, Deals, and About Us
*/

/* --- Variables & Style Guide --- */
:root {
    --primary-brown: #6F4E37;    /* Coffee Brown */
    --secondary-cream: #F5F5DC;  /* Cream */
    --accent-orange: #D2691E;   /* Warm Orange */
    --text-dark: #333333;       /* Dark Grey */
    --font-primary: 'Arial', sans-serif;
    --font-secondary: 'Georgia', serif;
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--secondary-cream);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-secondary);
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; text-align: center; }
h2 { font-size: 2rem; }

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--primary-brown);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-orange);
}

/* --- Main Layout --- */
main {
    flex: 1;
    padding: 2rem 5%;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--primary-brown);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px; /* Rounded buttons */
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-orange);
    transform: scale(1.05);
}

/* --- Home Page: Featured Items --- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.featured-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-item figcaption {
    padding: 1rem;
}

/* --- Menu Page: Grid & Items --- */
.menu-section {
    margin-bottom: 4rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: #fff;
    display: flex;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-items: center;
    gap: 1rem;
}

.menu-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.price {
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- Booking Page: Form Styles --- */
.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label { font-weight: bold; }

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.booking-notes {
    background: #f9f9f9;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-orange);
    border-radius: 5px;
}

/* --- Deals Page: Cards --- */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.deal-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.deal-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.deal-content {
    padding: 1.5rem;
}

/* --- About Us Page --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    text-align: justify;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-brown);
    color: var(--secondary-cream);
    padding: 3rem 5%;
    text-align: center;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    margin: 0 1rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-orange);
}

.contact-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Accessibility & Responsiveness --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .booking-container {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .menu-item {
        flex-direction: column;
        text-align: center;
    }
}

.download-btn {
    background-color: var(--accent-orange); /* Using your Warm Orange accent */
    font-size: 0.9rem;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#formFeedback {
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Ensure form groups have spacing */
.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 5px;
    color: var(--primary-brown);
}

.video-section {
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    padding: 0 5%;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background-color: #000;
}

.video-container video {
    width: 100%;
    display: block;
}
