/* General Setup */
:root {
    --primary-color: #5C4033; /* Coffee Brown */
    --secondary-color: #EEDDCC; /* Creamy Beige */
    --accent-color: #A0522D; /* Sienna/Darker Brown */
    --text-color: #333;
    --light-text: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f7f7f7;
    scroll-behavior: smooth;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
    text-align: center;
}

/* Headings */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* Navigation & Header */
header {
    background: url('placeholder-cafe-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--light-text);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: rgba(0, 0, 0, 0.4);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 100px;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 0.5em;
    color: var(--light-text);
    line-height: 1.1;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* About Section */
#about {
    background-color: var(--secondary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.1em;
}

.about-content p {
    margin-bottom: 20px;
}

/* Menu Section */
#menu {
    background-color: var(--light-text);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background-color: #fff;
    border: 1px solid var(--secondary-color);
    padding: 25px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.menu-item h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.menu-item p {
    color: #555;
    margin-bottom: 15px;
}

.menu-item span {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    font-size: 1.1em;
}

/* Gallery Section */
#gallery {
    background-color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    background-color: var(--primary-color);
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    font-style: italic;
    border-radius: 5px;
    overflow: hidden;
    /* In a real site, you'd use object-fit: cover on <img> here */
}

.note {
    margin-top: 30px;
    font-size: 0.9em;
    color: #666;
}

/* Contact Section */
#contact {
    background-color: var(--light-text);
    padding-bottom: 80px;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-info p {
    margin-bottom: 10px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: var(--font-body);
}

#contact-form button {
    align-self: flex-start;
}

.hidden {
    display: none;
}

#form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 40px 0;
    }

    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        margin: 5px 10px;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}