/* ==========================================================================
   CHAYAKKADA.SHOP - CSS DESIGN SYSTEM
   Theme: Premium Coffee & Cream White
   ========================================================================== */

/* 1. Core Variables & Tokens */
:root {
    --bg-primary: #FDFBF7;
    --bg-secondary: #F7F2EC;
    --bg-dark: #1C120C;
    --bg-dark-secondary: #2C1A11;
    
    --text-primary: #1C120C;
    --text-secondary: #4A3E37;
    --text-muted: #8C7B70;
    --text-light: #FDFBF7;
    --text-light-muted: #D5C9BF;
    
    --accent: #C08A5E;
    --accent-hover: #D89C6F;
    --accent-dark: #8C522C;
    --accent-light: #F5EFEB;
    
    --success: #5F7D6B;
    --warning: #C08A5E;
    
    --border-light: rgba(28, 18, 12, 0.08);
    --border-dark: rgba(253, 251, 247, 0.1);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(28, 18, 12, 0.05), 0 2px 4px -1px rgba(28, 18, 12, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(28, 18, 12, 0.06), 0 4px 6px -2px rgba(28, 18, 12, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(28, 18, 12, 0.08), 0 10px 10px -5px rgba(28, 18, 12, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(28, 18, 12, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --nav-height: 80px;
}

/* 2. Global Resets & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.bg-cream {
    background-color: var(--bg-secondary);
}

.text-center {
    text-align: center;
}

.text-light {
    color: var(--text-light);
}

.text-light-muted {
    color: var(--text-light-muted);
}

.text-warning {
    color: var(--warning);
}

.hidden {
    display: none !important;
}

/* 3. Typography & Utility Classes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Grids */
.grid {
    display: grid;
    gap: 40px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(192, 138, 94, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-hover);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    color: var(--text-light);
    box-shadow: 0 6px 20px rgba(192, 138, 94, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    padding: 14px;
    width: 50px;
    height: 50px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--accent-hover));
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* 4. Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(253, 251, 247, 0.01);
    border-bottom: 1px solid rgba(28, 18, 12, 0.0);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.85);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
}

.navbar.scrolled .nav-logo {
    color: var(--text-primary);
}

.logo-dot {
    color: var(--accent);
}

.logo-icon {
    transition: transform 0.5s ease;
}

.nav-logo:hover .logo-icon {
    transform: rotate(-15deg) scale(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(253, 251, 247, 0.8);
    position: relative;
    padding: 8px 0;
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-btn-outline {
    border: 1.5px solid var(--accent);
    padding: 8px 20px !important;
    border-radius: var(--radius-full);
}

.nav-btn-outline::after {
    display: none;
}

.nav-btn-outline:hover {
    background-color: var(--accent);
    color: var(--text-light) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Store Badge */
.store-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background-color: rgba(253, 251, 247, 0.15);
    border: 1px solid rgba(253, 251, 247, 0.2);
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.navbar.scrolled .store-status-badge {
    background-color: var(--accent-light);
    border-color: rgba(192, 138, 94, 0.15);
    color: var(--accent-dark);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #A3A3A3;
}

.store-status-badge.open .status-dot {
    background-color: #5F7D6B;
    box-shadow: 0 0 8px #5F7D6B;
    animation: pulseGlow 2s infinite;
}

.store-status-badge.closed .status-dot {
    background-color: #C05E5E;
    box-shadow: 0 0 8px #C05E5E;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-smooth);
}

.navbar.scrolled .mobile-toggle .bar {
    background-color: var(--text-primary);
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-primary);
        box-shadow: var(--shadow-xl);
        padding: 100px 40px;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .nav-link {
        color: var(--text-secondary) !important;
        font-size: 1.1rem;
    }
    
    .mobile-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* 5. Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: scale(1.05);
    animation: zoomBackground 10s ease-out forwards;
}

@keyframes zoomBackground {
    to { transform: scale(1); }
}

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

.hero-content {
    max-width: 700px;
}

.hero-badge-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-subtext-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: rgba(253, 251, 247, 0.1);
    border: 1px solid rgba(253, 251, 247, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse-icon {
    width: 26px;
    height: 44px;
    border: 2px solid rgba(253, 251, 247, 0.5);
    border-radius: 20px;
    display: block;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 8px); opacity: 0.5; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* 6. Story Section */
.story-image-wrapper {
    position: relative;
}

.story-img-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-main-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.story-floating-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    width: 240px;
    background-color: var(--bg-dark-secondary);
    color: var(--text-light);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--accent);
}

@media (max-width: 992px) {
    .story-floating-card {
        right: 20px;
    }
}

.highlight-number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--text-light-muted);
}

.story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.story-features {
    margin-top: 20px;
    display: grid;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 7. Menu Showcase & Interaction */
.menu-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.menu-tabs {
    display: flex;
    background-color: rgba(28, 18, 12, 0.04);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

.tab-btn {
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--accent);
}

.tab-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Interactivity Setup */
.menu-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.menu-card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.menu-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.menu-item-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.menu-item-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
}

.menu-item-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.item-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.btn-order-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition-fast);
}

.btn-order-view:hover {
    color: var(--accent-hover);
    transform: translateX(3px);
}

/* Card Hover Interactions */
.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.menu-card:hover .menu-card-img {
    transform: scale(1.08);
}

/* 8. Brew Lab (Beverage Customizer) */
.brew-lab-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.brew-lab-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 138, 94, 0.08) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    right: -10%;
    pointer-events: none;
}

.brew-lab-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 992px) {
    .brew-lab-grid {
        grid-template-columns: 1fr;
    }
}

.brew-controls-card {
    background-color: var(--bg-dark-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
}

.control-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 16px;
}

.control-group {
    margin-bottom: 30px;
}

.control-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Radio Tiles for Base */
.radio-tile-group {
    display: flex;
    gap: 16px;
}

.radio-tile-wrapper {
    flex: 1;
    cursor: pointer;
}

.radio-tile-input {
    display: none;
}

.radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-md);
    background-color: rgba(253, 251, 247, 0.03);
    border: 2.5px solid var(--border-dark);
    transition: var(--transition-smooth);
}

.radio-tile-input:checked + .radio-tile {
    border-color: var(--accent);
    background-color: rgba(192, 138, 94, 0.08);
}

.tile-icon {
    width: 24px;
    height: 24px;
    color: var(--text-light-muted);
    transition: var(--transition-fast);
}

.radio-tile-input:checked + .radio-tile .tile-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.tile-label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Forms Input Styling */
.form-select, .form-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-dark);
    background-color: rgba(253, 251, 247, 0.02);
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-select option {
    background-color: var(--bg-dark-secondary);
    color: var(--text-light);
}

.form-select:focus, .form-input:focus {
    border-color: var(--accent);
    background-color: rgba(253, 251, 247, 0.04);
}

/* Custom range slider */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--border-dark);
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 0 10px rgba(192, 138, 94, 0.5);
}

.form-range::-webkit-slider-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Checkbox design */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--border-dark);
    display: inline-block;
    position: relative;
    transition: var(--transition-fast);
}

.checkbox-input:checked + .checkbox-custom {
    border-color: var(--accent);
    background-color: var(--accent);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--text-light);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Loader Spinners */
.brew-loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(253, 251, 247, 0.3);
    border-top: 3px solid var(--text-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Visual Canvas Layout */
.brew-visual-card {
    background-color: var(--bg-dark-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.brew-canvas {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(28, 18, 12, 0.4);
    position: relative;
    border-bottom: 1px solid var(--border-dark);
}

/* Steam waves styling */
.steam-container {
    position: absolute;
    display: flex;
    gap: 12px;
    bottom: 210px;
}

.steam-wave {
    width: 6px;
    height: 40px;
    background: linear-gradient(to top, rgba(253, 251, 247, 0.2), rgba(253, 251, 247, 0));
    border-radius: var(--radius-full);
    filter: blur(2px);
    opacity: 0;
}

.steam-1 {
    animation: floatSteam 4s ease-in-out infinite;
}

.steam-2 {
    animation: floatSteam 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

.steam-3 {
    animation: floatSteam 4s ease-in-out infinite;
    animation-delay: 2.8s;
}

@keyframes floatSteam {
    0% { transform: translateY(10px) scaleX(1); opacity: 0; }
    30% { opacity: 0.6; }
    50% { transform: translateY(-20px) scaleX(1.3) skewX(5deg); }
    80% { opacity: 0.1; }
    100% { transform: translateY(-40px) scaleX(1.5); opacity: 0; }
}

/* Cup Structure */
.cup-wrapper {
    position: relative;
    width: 160px;
    height: 120px;
    margin-top: 30px;
}

.cup-body {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    border-radius: 0 0 80px 80px;
    overflow: hidden;
    border: 5px solid var(--bg-primary);
    box-shadow: inset 0 8px 15px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.2);
    z-index: 2;
}

.cup-handle {
    position: absolute;
    width: 45px;
    height: 70px;
    border: 10px solid var(--bg-primary);
    border-radius: 35px;
    top: 20px;
    right: -30px;
    z-index: 1;
}

.cup-plate {
    position: absolute;
    width: 220px;
    height: 16px;
    background-color: var(--bg-primary);
    border-radius: var(--radius-full);
    bottom: -12px;
    left: -30px;
    box-shadow: 0 12px 18px rgba(0,0,0,0.25);
    z-index: 1;
}

.cup-inner {
    width: 100%;
    height: 100%;
    background-color: rgba(28, 18, 12, 0.1);
    border-radius: 0 0 75px 75px;
    position: relative;
    overflow: hidden;
}

/* Liquid inside cup */
.liquid-base {
    position: absolute;
    width: 100%;
    bottom: 0;
    height: 70%; /* Dynamic */
    background: linear-gradient(to top, #533526, #744E3B); /* Chai default */
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease;
}

.liquid-foam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: #F3ECE2; /* Milk foam */
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.05);
    border-radius: var(--radius-full) var(--radius-full) 0 0;
    transition: height 0.4s ease, background 0.4s ease;
}

/* Bubbles inside tea/coffee */
.liquid-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.bubble {
    position: absolute;
    background-color: rgba(253, 251, 247, 0.2);
    border-radius: 50%;
    bottom: 5px;
}

.b1 { width: 6px; height: 6px; left: 20%; animation: riseBubble 3s infinite; }
.b2 { width: 8px; height: 8px; left: 45%; animation: riseBubble 4s infinite; animation-delay: 1s; }
.b3 { width: 4px; height: 4px; left: 70%; animation: riseBubble 2.5s infinite; animation-delay: 0.5s; }
.b4 { width: 6px; height: 6px; left: 80%; animation: riseBubble 3.5s infinite; animation-delay: 1.8s; }

@keyframes riseBubble {
    0% { transform: translateY(0) scale(1); opacity: 0.2; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-80px) scale(0.6); opacity: 0; }
}

/* Recipe Summary */
.brew-summary {
    padding: 30px;
}

.summary-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.summary-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .summary-list {
        grid-template-columns: 1fr;
    }
}

.summary-list li {
    font-size: 0.95rem;
    color: var(--text-light-muted);
}

.summary-list li strong {
    color: var(--text-light);
}

.brew-order-container {
    display: flex;
    justify-content: flex-end;
}

/* 9. Reviews Slider */
.reviews-slider-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    overflow: hidden;
}

.reviews-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card {
    min-width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-stars {
    display: flex;
    gap: 4px;
    color: var(--accent);
}

.star-filled {
    fill: var(--accent);
}

.star-light {
    color: var(--text-muted);
}

.review-text {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-name {
    font-size: 1rem;
    color: var(--text-primary);
}

.reviewer-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(28, 18, 12, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--accent);
    width: 24px;
    border-radius: var(--radius-full);
}

/* 10. Booking, Location & Contact */
.location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 18px;
}

.contact-item i {
    color: var(--accent);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.contact-item h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Styled Map Container */
.styled-map-container {
    height: 240px;
    background-color: #2C1A11;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(rgba(253, 251, 247, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
    box-shadow: var(--shadow-md);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.map-marker-pin {
    width: 50px;
    height: 50px;
    border-radius: 50% 50% 50% 0;
    background-color: var(--accent);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.map-marker-pin i {
    transform: rotate(45deg);
    color: var(--text-light);
    width: 20px;
    height: 20px;
}

.map-marker-pin .pulse {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.map-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background-color: var(--bg-dark-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-dark);
}

/* Reservation Card */
.reservation-card {
    background-color: var(--bg-primary);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.reservation-form .form-input,
.reservation-form .form-select {
    border-color: rgba(28, 18, 12, 0.12);
    color: var(--text-primary);
    background-color: #FFFFFF;
}

.reservation-form .form-input:focus,
.reservation-form .form-select:focus {
    border-color: var(--accent);
    background-color: #FFFFFF;
}

.reservation-form select option {
    background-color: #FFFFFF;
    color: var(--text-primary);
}

/* Success Message Booking */
.booking-success-message {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    width: 32px;
    height: 32px;
}

/* 11. Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 60px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-desc {
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-muted);
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    color: var(--text-light);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    border-radius: var(--radius-full);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 12. Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 18, 12, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-primary);
    width: 100%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    z-index: 3;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--accent);
    color: var(--text-light);
    transform: rotate(90deg);
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 768px) {
    .modal-body-grid {
        grid-template-columns: 1fr;
    }
}

.modal-img-container {
    height: 100%;
    min-height: 380px;
    background-color: var(--bg-secondary);
}

@media (max-width: 768px) {
    .modal-img-container {
        min-height: 240px;
    }
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    align-self: flex-start;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-bottom: 30px;
}

.detail-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.detail-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
}

/* 13. Reveal-on-Scroll Animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Barista mode (easter egg) styling */
body.barista-mode {
    --accent: #E6A15C;
    --accent-hover: #F3C38C;
    --bg-primary: #1C120C;
    --bg-secondary: #2C1A11;
    --text-primary: #FDFBF7;
    --text-secondary: #D5C9BF;
    --text-muted: #8C7B70;
    --border-light: rgba(253, 251, 247, 0.1);
    --border-dark: rgba(28, 18, 12, 0.15);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body.barista-mode .navbar {
    background-color: rgba(28, 18, 12, 0.01);
}

body.barista-mode .navbar.scrolled {
    background-color: rgba(28, 18, 12, 0.9);
    border-bottom: 1px solid var(--border-light);
}

body.barista-mode .nav-logo {
    color: var(--text-light);
}

body.barista-mode .nav-link {
    color: var(--text-light-muted);
}

body.barista-mode .menu-card,
body.barista-mode .reservation-card,
body.barista-mode .modal-card,
body.barista-mode .review-card {
    background-color: var(--bg-secondary);
    border-color: var(--border-light);
}

body.barista-mode .menu-item-title,
body.barista-mode .card-title,
body.barista-mode .modal-title,
body.barista-mode .reviewer-name {
    color: var(--text-light);
}

body.barista-mode .reservation-form .form-input,
body.barista-mode .reservation-form .form-select,
body.barista-mode .modal-close {
    background-color: var(--bg-primary);
    color: var(--text-light);
    border-color: var(--border-light);
}
