@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@700&family=Poppins:wght@400;600&display=swap');

:root {
    --primary: #4B2E2A;
    --accent: #C7A27C;
    --bg-light: #FBF9F6;
    --bg-header: #F5F1EA;
    --text: #2B1E1C;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text);
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--accent);
    color: var(--primary);
    padding: 10px;
    z-index: 1001;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    display: inline-block;
    color: var(--primary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;           
    padding: 20px 40px;
    background-color: var(--bg-header);     
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.main-header .nav-links a {
    font-family: 'Inter', sans-serif; 
    text-decoration: none;
    color: var(--primary);
    margin-left: 20px;
    font-weight: 600;
    display: inline-block; 
    transition: color 0.3s, transform 0.3s;
}

.main-header .nav-links a:hover, .main-header .nav-links a.active-nav {
    color: var(--accent); 
}

.hero {
    position: relative;
    text-align: center;
    padding: 120px 20px;
    background-image: ./images/cafe.jpg;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 60px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(43, 30, 28, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--white);
}

.tagline {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--bg-light);
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

.grid-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.hours-list p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e2da;
}

.specials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.special-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(75, 46, 42, 0.03);
    border-top: 4px solid var(--accent);
}

.promo-badge {
    display: inline-block;
    background-color: var(--bg-header);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 30px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.special-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.special-card .price {
    font-weight: 600;
    font-size: 1.1rem;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--primary);
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent);
}

.menu-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.menu-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(75, 46, 42, 0.04);
    margin-bottom: 30px;
    transition: opacity 0.3s, transform 0.3s;
}

.menu-card ul { list-style: none; }

.menu-card li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #e3dbd3;
    padding: 14px 0;
    transition: background-color 0.2s;
}

.orderable-item:hover {
    background-color: #fcfbf9;
    cursor: pointer;
}

.menu-card li span:first-child { font-weight: 600; }

.basket-pane {
    position: sticky;
    top: 100px;
}

.sticky-basket {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.basket-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.basket-total {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    border-top: 2px solid var(--bg-header);
    padding-top: 15px;
}

.checkout-btn { width: 100%; text-align: center; }

.reviews-container {
    background-color: var(--primary);
    color: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 60px;
}

.review-card { display: none; }
.review-card.active { display: block; }

.review-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 20px;
}

.review-author { color: var(--accent); font-weight: 600; }

.control-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 35px; height: 35px; border-radius: 50%;
    cursor: pointer; margin: 20px 5px 0;
}

.control-btn:hover { background: var(--accent); color: var(--primary); }

.newsletter-section {
    background-color: var(--bg-header);
    padding: 60px 40px; border-radius: 12px; text-align: center; margin-bottom: 40px;
}

.newsletter-form { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.newsletter-form input { padding: 14px 20px; border: 1px solid #ccc; border-radius: 6px; width: 60%; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }

.map-placeholder { overflow: hidden; border-radius: 12px; margin-top: 20px; }
.map-img { width: 100%; display: block; }

.modal {
    display: none; position: fixed; z-index: 1002; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(43, 30, 28, 0.6); backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--white); margin: 15% auto; padding: 40px; border-radius: 12px;
    max-width: 500px; text-align: center; position: relative;
}

.modal-content p { margin: 15px 0 25px; color: #555; }

.close-modal { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; }

.status-badge { font-family: 'Inter', sans-serif; font-size: 0.9rem; padding: 4px 12px; border-radius: 50px; margin-left: 10px; }
.status-open { background-color: #E6F4EA; color: #137333; }
.status-closed { background-color: #FCE8E6; color: #C5221F; }

.form-message { margin-top: 15px; font-weight: 600; }
.form-success { color: #137333; }
.form-error { color: #C5221F; }

.footer-section { background-color: var(--bg-header); padding: 40px 20px; margin-top: 60px; }
.footer-grid { display: flex; justify-content: space-between; }

@media (max-width: 768px) {
    .main-header { flex-direction: column; gap: 15px; }
    .menu-layout-grid { grid-template-columns: 1fr; }
    .footer-grid { flex-direction: column; gap: 20px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { width: 100%; }
}
