/* General Styles */
:root {
    --primary-color: #6F4E37; /* Coffee Brown */
    --secondary-color: #A0522D; /* Sienna */
    --accent-color: #D2B48C; /* Tan */
    --light-bg: #F5F5DC; /* Beige */
    --dark-text: #333;
    --light-text: #fff;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
}

/* Header */
header {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: url('https://via.placeholder.com/1500x800/6F4E37/FFFFFF?text=Coffee+Shop+Hero+Image') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 100px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

section:nth-of-type(even) {
    background-color: #f9f9f9;
}

/* About Section */
.about-section p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

/* Menu Section */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-category {
    background: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.menu-category h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.menu-category ul {
    list-style: none;
}

.menu-category li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--accent-color);
    font-size: 1.1rem;
}

.menu-category li:last-child {
    border-bottom: none;
}

/* Hours Section */
.hours-section table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--light-text);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.hours-section th, .hours-section td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hours-section th {
    background: var(--primary-color);
    color: var(--light-text);
    font-weight: 700;
}

.hours-section tr:nth-child(even) {
    background-color: #f8f8f8;
}

.hours-section tr:hover {
    background-color: #f0f0f0;
}

/* Map Section */
.map-section .map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-section .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-info {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: auto;
    align-self: center;
    cursor: pointer;
    border: none;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 50px;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

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

    .hours-section th, .hours-section td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .menu-category h3 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 20px;
    }
}
