/*
Theme Name: Taste360 v3 (B2B Dashboard)
Theme URI: https://taste360.com
Author: Antigravity Assistant
Description: White, Gold, and Red corporate B2B food dashboard layout based on TradeGrid reference.
Version: 3.0
*/

:root {
  --color-red: #D32F2F; /* Primary Action */
  --color-red-hover: #b71c1c;
  --color-gold: #D4AF37; /* Highlights */
  --color-charcoal: #1A1C20; /* Deep text */
  --color-white: #FFFFFF;
  --color-bg: #F4F6F9; /* Faint dashboard gray */
  --color-border: #E5E7EB;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --spacing-xxl: 120px;
  
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-soft: 0 12px 40px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 50px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
img, video, svg { max-width: 100%; height: auto; }
html, body {
    margin: 0; padding: 0;
    width: 100%;
    position: relative;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-charcoal);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-charcoal); word-wrap: break-word; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }
.section { padding: var(--spacing-xxl) 0; }

/* Typography */
.hero-title { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.25rem; color: #555; margin-bottom: 40px; font-weight: 500; }
.text-red { color: var(--color-red); }
.text-gold { color: var(--color-gold); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: 40px; font-weight: 700; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--color-red); color: var(--color-white); box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3); }
.btn-primary:hover { background: var(--color-red-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--color-charcoal); color: var(--color-charcoal); }
.btn-outline:hover { background: var(--color-charcoal); color: var(--color-white); }

/* Header & Top Stats */
.stats-bar { 
    background: var(--color-white); border-bottom: 1px solid var(--color-border); 
    padding: 20px 0; display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center;
}
.stat-item h4 { font-size: 2rem; font-weight: 800; margin-bottom: 4px; color: var(--color-charcoal); }
.stat-item p { font-size: 0.9rem; color: #888; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.site-header { background: var(--color-bg); padding: 8px 0; position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* Hero Section */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } .hero-title { font-size: 3rem; } }

/* Faux Dashboard Mockup */
.mockup-container {
    background: var(--color-charcoal); border-radius: var(--radius-lg); 
    padding: 30px; color: var(--color-white); position: relative;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}
.mockup-header { display: flex; justify-content: space-between; margin-bottom: 20px; font-weight: 700; color: #aaa;}
.mockup-card { background: #2A2D34; border-radius: var(--radius-md); padding: 20px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.tag-active { background: rgba(212, 175, 55, 0.1); color: var(--color-gold); padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }

/* Problem vs Solution Cards */
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.prob-sol-card { 
    background: var(--color-white); border-radius: var(--radius-lg); padding: 50px; 
    box-shadow: var(--shadow-soft); transition: transform 0.3s ease; border: 1px solid var(--color-border);
}
.prob-sol-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-icon { font-size: 3rem; margin-bottom: 20px; }
.card-list { list-style: none; margin-top: 30px; }
.card-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-weight: 500; font-size: 1.1rem; }
.icon-bad { color: var(--color-red); font-weight: bold; }
.icon-good { color: var(--color-gold); font-weight: bold; }

/* How It Works Vertical */
.vertical-step { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.step-number { font-size: 8rem; font-weight: 800; color: rgba(0,0,0,0.03); line-height: 1; }
.step-content h3 { font-size: 2.5rem; margin-bottom: 20px; }

/* Modal Configuration */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); 
    z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; 
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { 
    background: var(--color-white); width: 90%; max-width: 1000px; height: 90vh; border-radius: var(--radius-lg);
    overflow-y: auto; position: relative; padding: 40px; box-shadow: 0 30px 100px rgba(0,0,0,0.3);
}
.modal-close { position: absolute; top: 20px; right: 20px; background: #eee; border: none; padding: 10px 15px; border-radius: 50%; cursor: pointer; font-weight: bold; }

.bento-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; margin-bottom: 30px; }
.bento-item { border: 2px solid var(--color-border); border-radius: 12px; padding: 10px; text-align: center; cursor: pointer; font-weight: 600; background: var(--color-bg); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.2s;}
.bento-img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.bento-item:hover { border-color: rgba(211,47,47,0.3); }
.bento-item.active { border-color: var(--color-red); background: rgba(211,47,47,0.05); color: var(--color-red); }
.bento-price { display: block; font-size: 0.8rem; color: #666; margin-top: 4px; }
.active .bento-price { color: var(--color-red); }

/* ====== MOBILE RESPONSIVENESS (Max 768px) ====== */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 2.3rem; margin-top: 15px; line-height: 1.2; word-wrap: break-word; hyphens: auto; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 25px; word-wrap: break-word; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }
    
    .ticker img { width: 300px; height: 100px; }
    .ticker-wrap { height: 100px; width: 100%; overflow: hidden; }
    
    .stats-bar { flex-direction: column; gap: 20px; }
    .split-cards { grid-template-columns: 1fr; width: 100%; }
    .vertical-step { grid-template-columns: 1fr; gap: 20px; text-align: center; margin-bottom: 60px; width: 100%; }
    .step-number { font-size: 5rem; margin-bottom: -15px; }
    .step-content h3 { font-size: 1.8rem; }
    
    .prob-sol-card { padding: 30px 20px; width: 100%; }
    .card-icon { font-size: 2.2rem; margin-bottom: 15px; }
    .card-list li { font-size: 0.95rem; }

    .mockup-container { padding: 20px 15px; width: 100%; }
    .mockup-card { flex-direction: column; text-align: left; align-items: flex-start; gap: 10px; width: 100%; }
    
    .bento-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.7rem; }
    .header-inner { flex-direction: column; gap: 10px; padding: 15px 0; align-items: center; text-align: center; }
    .header-inner .logo { margin: 0 auto; }
    .header-inner .logo img { transform: scale(1.1); margin-left: 0; }
    #nav-actions .btn { padding: 8px 16px; font-size: 0.85rem; }
    .qo-card { padding: 20px 15px; }
}
