/* ==========================================================================
   1. GLOBAL VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --primary-orange: #e2631a;
    --vibrant-carrot: #e2631a;
    --primary: #d95d1a;
    --deep-forest: #06402B;
    --soft-cream: #F9F9F7;
    --charcoal: #1A1A1A;
    --on-surface-variant: #584238;
    --surface-container-low: #f3f3f0;
    --surface-container-high: #e8e8e3;
    --outline-variant: #e0c0b2;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--soft-cream);
    color: var(--charcoal);
    padding-top: 80px;
}

/* Typography Fonts */
h1, h2, h3, 
.font-eb-garamond, 
.font-ebGaramond { 
    font-family: 'EB Garamond', serif; 
}

.font-be-vietnam,
.font-beVietnamPro { 
    font-family: 'Be Vietnam Pro', sans-serif; 
}

/* Typography Utility Hierarchy */
.display-lg { font-size: 64px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.headline-lg { font-size: 48px; line-height: 1.2; font-weight: 600; }
.headline-md { font-size: 32px; line-height: 1.3; font-weight: 500; }
.title-lg { font-size: 22px; line-height: 1.4; font-weight: 600; }
.body-lg { font-size: 18px; line-height: 1.6; }
.label-lg { font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

/* Material Symbols Standardizing */
.material-symbols-outlined {
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}


/* ==========================================================================
   2. NAVBAR & NAVIGATION
   ========================================================================== */
.navbar {
    background-color: white;
    height: 80px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.navbar-brand {
    font-family: 'EB Garamond', serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-orange);
}

.nav-link {
    font-weight: 500;
    color: var(--on-surface-variant) !important;
    margin: 0 1rem;
    transition: color 0.2s;
}

.nav-link:hover { 
    color: var(--primary-orange) !important; 
}

.nav-link.active {
    color: var(--primary-orange) !important;
    border-bottom: 2px solid var(--primary-orange);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        border-top: 1px solid rgba(0,0,0,0.05);
        margin-top: 0.75rem;
        padding-bottom: 1rem;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }
    
    .nav-link {
        margin: 0.25rem 0 !important;
        font-size: 1.1rem;
    }
}



/* ==========================================================================
   3. HOME & HERO SECTION
   ========================================================================== */
.hero-section {
    height: 90vh;
    min-height: 600px;
    position: relative;
    background-image: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2), transparent), 
                      url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-container {
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 0.75rem;
}


/* ==========================================================================
   4. MENU & BENTO GRID
   ========================================================================== */
/* Bento Grid Layout */
.bento-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.bento-item:hover .bento-img {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

/* Masterclass Cards */
.masterclass-card {
    background-color: var(--deep-forest);
    border-radius: 2rem;
    overflow: hidden;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.masterclass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.Details{
    color: #e2631a;
    text-decoration: none;
    font-weight: 700;
}

.Details:hover{
    text-decoration: underline;
}

.fa-cart-plus:hover{
    font-size: larger;
}



/* ==========================================================================
   5. CONTENT & RECIPES
   ========================================================================== */
.recipe-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-card:hover {
    box-shadow: 0 12px 24px rgba(11, 70, 25, 0.08);
    transform: translateY(-5px);
}

.recipe-card .card-img-top-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.recipe-card .card-img-top,
.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .card-img-top {
    transform: scale(1.1);
}

.rating-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.recipe-stat {
    background-color: var(--surface-container-low);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 700;
}

/* Instructions & Steps */
.step-number {
    font-family: 'EB Garamond', serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 0.8;
    opacity: 0.15;
    transition: all 0.3s ease;
}

.instruction-group:hover .step-number {
    opacity: 0.3;
    transform: translateX(8px);
}

/* Ingredients */
.ingredient-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50% !important;
    border-color: var(--outline-variant);
    cursor: pointer;
}

.ingredient-checkbox:checked {
    background-color: var(--deep-forest);
    border-color: var(--deep-forest);
}

.ingredient-checkbox:checked + span {
    text-decoration: line-through;
    opacity: 0.5;
}

/* Related Content Cards */
.related-card {
    border: none;
    background: transparent;
    cursor: pointer;
}

.related-card .img-wrapper {
    background: white;
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease;
}

.related-card:hover .img-wrapper {
    transform: translateY(-8px);
}


/* ==========================================================================
   6. CART & CHECKOUT
   ========================================================================== */
.cart-icon-wrapper {
    position: relative;
    border-bottom: 2px solid var(--vibrant-carrot);
    padding-bottom: 4px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--vibrant-carrot);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50px;
}

.table thead th {
    background-color: var(--surface-container-low);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-variant);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(224, 192, 178, 0.3);
}

.table td {
    padding: 2rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(224, 192, 178, 0.2);
}

.item-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--outline-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s;
}

.qty-btn:hover {
    background-color: var(--vibrant-carrot);
    border-color: var(--vibrant-carrot);
    color: white;
}

.summary-card {
    box-shadow: 0 12px 24px -4px rgba(11, 70, 25, 0.06);
    border: 1px solid rgba(224, 192, 178, 0.1);
}

.promo-input {
    border: 1px solid rgba(140, 113, 102, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.promo-input:focus {
    box-shadow: 0 0 0 2px rgba(242, 109, 33, 0.2);
    border-color: var(--vibrant-carrot);
    outline: none;
}


/* ==========================================================================
   7. FOOTER, CONTACT & UTILITIES
   ========================================================================== */
/* Contact & Info Cards */
.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(6, 64, 43, 0.05);
    border: 1px solid rgba(224, 192, 178, 0.3);
    height: 100%;
}

.info-card {
    background-color: var(--deep-forest);
    color: white;
    border-radius: 1rem;
    padding: 3rem;
    height: 100%;
}

.map-container {
    border-radius: 1rem;
    overflow: hidden;
    height: 300px;
    position: relative;
    margin-top: 1.5rem;
}

.map-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
}

.map-btn {
    background: white;
    color: var(--deep-forest);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.support-hours-box {
    border-top: 2px solid rgba(224, 192, 178, 0.2);
    border-bottom: 2px solid rgba(224, 192, 178, 0.2);
    padding: 2rem 0;
}

/* Form Styles */
.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.875rem 1rem;
    border: 1px solid rgba(224, 192, 178, 0.5);
    border-radius: 0.5rem;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(242, 109, 33, 0.15);
}

.form-select-custom {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border-color: rgba(0,0,0,0.1);
}

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary-orange);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary-custom:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    color: white;
}

.btn-vibrant {
    background-color: var(--vibrant-carrot);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(242, 109, 33, 0.2);
}

.btn-vibrant:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(242, 109, 33, 0.3);
}

.btn-outline-custom {
    border: 2px solid var(--deep-forest);
    color: var(--deep-forest);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background-color: var(--deep-forest);
    color: white;
}

/* Footer Section */
footer {
    background-color: var(--deep-forest);
    color: white;
    padding: 4rem 0;
    margin-top: 5rem;
}

.footer-logo {
    font-family: 'EB Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover { 
    color: var(--primary-orange); 
}

/* General Utilities & Badges */
.img-rounded {
    border-radius: 1rem;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.badge-organic {
    background-color: var(--surface-container-high);
    color: var(--deep-forest);
    font-weight: 600;
    font-size: 11px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.recipe-shadow {
    box-shadow: 0 4px 12px -2px rgba(11, 70, 25, 0.02), 0 2px 4px -1px rgba(11, 70, 25, 0.01);
    border: none;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--vibrant-carrot);
    z-index: 9999;
    width: 0;
}

/* Helper Class Utilities */
.text-primary-custom { color: var(--primary-orange) !important; }
.bg-primary-custom { background-color: var(--primary-orange) !important; }
.text-vibrant-carrot { color: var(--vibrant-carrot) !important; }
.bg-vibrant-carrot { background-color: var(--vibrant-carrot) !important; }
.bg-deep-forest { background-color: var(--deep-forest) !important; }
.text-deep-forest { color: var(--deep-forest) !important; }
.text-on-surface-variant { color: var(--on-surface-variant); }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .display-lg { font-size: 32px; }
    .hero-image { height: 250px; }
    .navbar-brand { font-size: 24px; }
}

@media (min-width: 768px) {
    .support-hours-box {
        border-top: 0;
        border-bottom: 0;
        border-left: 2px solid rgba(224, 192, 178, 0.2);
        border-right: 2px solid rgba(224, 192, 178, 0.2);
    }
}