:root {
    /* Base Layers */
    --bg-primary: #0b0a08;
    --bg-secondary: #1a1410;
    --surface: rgba(255, 255, 255, 0.05);
    
    /* Accent Colors */
    --accent-primary: #c67c4e;
    --accent-secondary: #d9a066;
    --accent-highlight: #f4e2d8;
    
    /* Text Colors */
    --text-primary: #fdf6ee;
    --text-secondary: #e6d3c2;
    --text-muted: #b89a86;
    
    /* Layout */
    --max-width: 1320px;
    --radius: 16px;
    --radius-sm: 8px;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

/* =========================================
   Base Reset
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Soft grain texture */
    background-image: url('images/noise-texture.webp');
    background-blend-mode: overlay;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Layout System - "Roastery Grid"
========================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* =========================================
   Typography
========================================= */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-primary); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
}

/* =========================================
   Components
========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header / Cafe Nav Bar */
.cafe-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(26, 20, 16, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.4s ease;
}

.cafe-nav.scrolled {
    background: rgba(11, 10, 8, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-actions button, .nav-actions a {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-image-wrapper img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* Product Grid */
.roastery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.coffee-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    cursor: pointer;
}

.card-image-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--bg-primary);
    position: relative;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roast-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(11, 10, 8, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    border: 1px solid rgba(217, 160, 102, 0.2);
}

.coffee-origin {
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.coffee-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.flavor-notes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.note-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.price {
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Subscription Banner */
.subscription-banner {
    background: linear-gradient(to right, var(--bg-secondary), var(--bg-primary));
    border-radius: var(--radius);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.05);
    margin: 4rem 0;
}

.sub-content { max-width: 500px; }
.sub-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }

/* Product Page Specific */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 120px;
}

.product-gallery img {
    width: 100%;
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.product-info h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.product-price { font-size: 1.5rem; color: var(--accent-secondary); margin-bottom: 2rem; display: block;}

.flavor-wheel {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); max-width: 300px; }

.footer-links h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-primary); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utilities */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }