/* =========================================
   CSS Variables & Design System
   ========================================= */
:root {
    /* Kozi Coffee Brand Colors */
    --kozi-red: #D32F2F; /* Bold red from logo */
    --kozi-red-dark: #B71C1C;
    --kozi-cream: #F5F2E9; /* Off-white/cream background */
    --kozi-espresso: #211510; /* Dark brown almost black text */
    --kozi-mocha: #5D4037; /* Medium brown for accents */
    --kozi-light: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 80px 0;
    --container-width: 1140px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--kozi-cream);
    color: var(--kozi-espresso);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

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

.bg-light {
    background-color: var(--kozi-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--kozi-espresso);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--kozi-red);
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.subtitle {
    margin-bottom: 3rem;
    color: var(--kozi-mocha);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--kozi-red);
    color: var(--kozi-light);
}

.btn-primary:hover {
    background-color: var(--kozi-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(245, 242, 233, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--kozi-light); /* Light text on hero initially */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--kozi-red);
}

.navbar.scrolled .logo img {
    /* Logo stays the same on scrolled navbar */
}

.logo-icon {
    color: var(--kozi-red);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--kozi-light);
    font-weight: 500;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--kozi-espresso);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--kozi-red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--kozi-red);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--kozi-light);
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: var(--kozi-espresso);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/kozi_hero_bg_1776402279888.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(33, 21, 16, 0.8), rgba(33, 21, 16, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--kozi-light);
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    border-radius: 12px;
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--kozi-red);
    margin-bottom: 5px;
}

.stat-item p {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--kozi-espresso);
    text-transform: uppercase;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--kozi-red);
    mix-blend-mode: multiply;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.image-wrapper img {
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* =========================================
   Menu Section
   ========================================= */
.menu-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--kozi-mocha);
    color: var(--kozi-mocha);
    padding: 8px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--kozi-red);
    border-color: var(--kozi-red);
    color: var(--kozi-light);
}

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

.menu-card {
    background: var(--kozi-cream);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: flex-end;
}

.price {
    background: var(--kozi-red);
    color: var(--kozi-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-family: var(--font-heading);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--kozi-espresso);
}

.card-content p {
    color: var(--kozi-mocha);
    font-size: 0.95rem;
}

/* =========================================
   Locations Section
   ========================================= */
.locations {
    background-color: var(--kozi-espresso);
    color: var(--kozi-light);
}

.locations .section-title {
    color: var(--kozi-light);
}

.locations .subtitle {
    color: #bbb;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.location-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.location-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--kozi-red);
}

.location-card i {
    font-size: 2.5rem;
    color: var(--kozi-red);
    margin-bottom: 20px;
}

.location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.location-card p {
    color: #ccc;
    margin-bottom: 5px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: #150d0a;
    color: var(--kozi-light);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaa;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--kozi-red);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--kozi-red);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
}

.footer-links ul li a:hover {
    color: var(--kozi-red);
    padding-left: 5px;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--kozi-red);
}

.footer-bottom {
    background: #0a0605;
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* =========================================
   Animations
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal classes applied via JS */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .logo img {
        height: 35px; /* Slightly smaller logo on mobile */
    }
    
    .hero-logo {
        width: 140px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        justify-content: space-between;
    }
    
    .section-title {
        font-size: 2rem; /* Smaller titles on mobile */
    }
    
    .menu-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    .locations-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}
