
/*
==================================================
Project : Doha Cafe Website Pilot 01
File    : src/css/style.css
Purpose : Main responsive website stylesheet
Version : 0.1.0
==================================================
*/

/* -----------------------------------------------
   01. DESIGN VARIABLES
   Temporary branding values.
   Replace after brand approval.
------------------------------------------------ */
:root {
    --primary: #67432e;
    --background: #fffaf4;
    --text: #29221d;
    --accent: #f1e0cb;
}

/* -----------------------------------------------
   02. GLOBAL STYLES
------------------------------------------------ */
* {
    box-sizing: border-box;
}

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

/* Shared centered content container */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* -----------------------------------------------
   03. HEADER AND NAVIGATION
------------------------------------------------ */
.site-header {
    background: white;
    border-bottom: 1px solid #e8dfd5;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0;
}

.brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

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

/* -----------------------------------------------
   04. HERO SECTION
------------------------------------------------ */
.hero {
    background: var(--accent);
    padding: 100px 0;
}

.hero h1 {
    /*
      clamp(minimum, preferred, maximum)
      Allows the heading to scale responsively.
    */
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    max-width: 650px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Primary call-to-action button */
.primary-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
}

/* -----------------------------------------------
   05. SHARED CONTENT SECTIONS
------------------------------------------------ */
.section {
    padding: 64px 0;
}

/* -----------------------------------------------
   06. FOOTER
------------------------------------------------ */
.site-footer {
    padding: 24px;
    text-align: center;
    background: var(--primary);
    color: white;
}

/* -----------------------------------------------
   07. RESPONSIVE DESIGN
   Applies to screens 600px wide or narrower.
------------------------------------------------ */
@media (max-width: 600px) {

    .hero {
        padding: 64px 0;
    }

    /* Stack header content on narrow screens */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* -----------------------------------------------
   08. DIGITAL MENU
   Category filters and responsive product cards.
------------------------------------------------ */

/* Development-only menu notice */
.menu-notice {
    color: #76543e;
    margin-bottom: 24px;
}

/* Category filter container */
.menu-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

/* Individual category button */
.menu-filter {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    padding: 10px 16px;
    border-radius: 24px;
    cursor: pointer;
    font: inherit;
}

/* Selected category */
.menu-filter.active {
    background: var(--primary);
    color: white;
}

/* Keyboard navigation visibility */
.menu-filter:focus-visible {
    outline: 3px solid #b97730;
    outline-offset: 3px;
}

/* Responsive product card grid */
.menu-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 20px;
}

/* Individual menu item card */
.menu-card {
    background: white;
    border: 1px solid #e8dfd5;
    border-radius: 12px;
    padding: 24px;
}

.menu-card h3 {
    margin-top: 0;
    color: var(--primary);
}

.menu-price {
    font-weight: bold;
    margin-bottom: 0;
}


/* -----------------------------------------------
   09. MENU PRICE VARIANTS
   Display Small/Large prices in separate rows.
------------------------------------------------ */

.menu-prices {
    margin-top: 24px;
}

.menu-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.menu-price-row + .menu-price-row {
    border-top: 1px solid #eee5dc;
}

.menu-price-row span {
    color: #76543e;
}

.menu-price-row strong {
    white-space: nowrap;
}

/* ------------------------------------------------
   10. W04.1 LOCAL SHOPPING CART (pilot-only)
------------------------------------------------ */
.menu-cart-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.menu-add-button, .cart-action, .cart-clear, .cart-remove {
    font: inherit; cursor: pointer; border-radius: 7px; padding: 7px 12px;
    border: 1px solid var(--primary); background: white; color: var(--primary);
}
.menu-add-button { background: var(--primary); color: white; }
.menu-add-button:hover, .menu-add-button:focus-visible { background: #4c2e1e; }
.cart-heading-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cart-items { border-top: 1px solid #e8dfd5; }
.cart-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    padding: 18px 0; border-bottom: 1px solid #e8dfd5; }
.cart-line-details { flex: 1 1 190px; display: flex; flex-direction: column; }
.cart-variant { color: #76543e; font-size: 0.92rem; }
.cart-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cart-quantity { min-width: 20px; text-align: center; }
.cart-line-total { min-width: 110px; text-align: right; }
.cart-summary { display: flex; justify-content: space-between; padding: 20px 0; font-size: 1.25rem; }
.cart-checkout { border: 0; border-radius: 8px; padding: 12px 18px;
    background: #e6dfd7; color: #665f58; cursor: not-allowed; }
.cart-empty { padding: 16px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button:focus-visible { outline: 3px solid #b97730; outline-offset: 3px; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 600px) { .cart-line-total { text-align: left; } }
