/* --- 1. CORE VARIABLES & TOKENS --- */
:root {
    --brand-primary: #64252f;
    --brand-dark: #8a2020;
    --brand-glow: rgba(196, 54, 54, 0.4);
    
    --surface-1: #ffffff;
    --surface-2: #f8f9fa;
    --surface-3: #eef1f5;
    
    --text-display: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;

    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--surface-2);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3, h4 {
    color: var(--text-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.display-text {
    font-size: clamp(3rem, 8vw, 5rem);
    background: linear-gradient(to right, #0f172a 20%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--brand-primary);
    margin-bottom: 12px;
    display: block;
}

/* --- 4. ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-entry {
    animation: fadeInUp 0.8s var(--ease-smooth) forwards;
    opacity: 0; 
    animation-delay: 0.2s;
}

/* --- 5. UI COMPONENTS --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%; /* For Nav alignment */
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--text-display);
    color: white;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    margin: 5px;
}

.btn-primary {
    background: var(--brand-primary);
    box-shadow: 0 10px 30px -10px var(--brand-glow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
}

.btn-icon-circle {
    width: 24px; height: 24px;
    background: white;
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* --- 6. TRADITIONAL NAVIGATION (New) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    color: var(--text-display); 
    letter-spacing: -1px; 
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo span { color: var(--brand-primary); }

.nav-links { 
    display: flex; 
    gap: 40px; 
    align-items: center;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover { 
    color: var(--brand-primary); 
}

/* --- 7. HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 100% 0%, rgba(196,54,54,0.08) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(0,0,0,0.03) 0%, transparent 40%);
    padding-top: 120px; /* Account for fixed header */
    padding-bottom: 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
}

.hero-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.5s var(--ease-smooth);
}
.hero-image-wrapper:hover img { transform: scale(1.05); }

/* Floating Cards on Hero Image */
.float-card {
    position: absolute;
    background: white;
    padding: 20px 24px;
    border-radius: 20px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 1s var(--ease-elastic) forwards;
    opacity: 0;
}

.float-icon {
    width: 48px; height: 48px;
    background: var(--surface-2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-primary);
    font-weight: 800;
}

/* --- 8. BENTO BOX LAYOUT --- */
.bento-section { padding: 80px 0; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 24px;
    margin-top: 60px;
}

.bento-grid-store {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 350px);
    gap: 24px;
    margin-top: 60px;
}

.bento-card {
    background: var(--surface-1);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.0);
}

/* Span Logic */
.span-2 { grid-column: span 2; }
.span-row-2 { grid-row: span 2; }
.dark-card { background: var(--text-display); color: white; }
.dark-card h3, .dark-card p { color: white; }

/* Background Images in Bento */
.bento-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3; 
    transition: 0.5s;
}
.bento-card:hover .bento-bg { opacity: 0.5; transform: scale(1.05); }
.bento-content { position: relative; z-index: 1; pointer-events: none; }
.bento-content a { pointer-events: auto; }

/* --- 9. NEWSLETTER --- */
.newsletter-section {
    padding: 100px 0;
    display: flex;
    justify-content: center;
}

.news-pass {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 40px;
    padding: 60px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3);
}

.news-pass::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: var(--brand-primary);
    filter: blur(100px);
    opacity: 0.2;
    top: -50%; right: -10%;
    border-radius: 50%;
}

/* --- 10. FOOTER --- */
footer {
    background: white;
    padding-top: 120px;
    padding-bottom: 40px;
    border-radius: 60px 60px 0 0;
}

.footer-logo-big {
    font-size: 15vw;
    font-weight: 800;
    color: var(--surface-3);
    text-align: center;
    line-height: 0.8;
    letter-spacing: -0.05em;
    user-select: none;
    margin-top: 60px;
}

.footer-link {
    color: var(--text-body);
    text-decoration: none;
    transition: 0.2s;
}
.footer-link:hover { color: var(--brand-primary); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .site-header { height: auto; padding: 20px 0; }
    .nav-container { flex-wrap: wrap; gap: 20px; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image-wrapper { order: -1; max-width: 600px; margin: 0 auto 40px; }
    
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-grid-store { grid-template-columns: 1fr; grid-template-rows: auto; }
    .span-2, .span-row-2 { grid-column: span 1; grid-row: span 1; min-height: 350px; }
    
    .news-pass { flex-direction: column; text-align: center; gap: 30px; }
}

/* --- 11. MOBILE NAVIGATION --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Keeps it above the mobile menu overlay */
}

/* The three lines of the hamburger */
.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-display);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-only-btn { display: none; }
.desktop-only-btn { display: inline-flex; }

/* Mobile Breakpoint */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .desktop-only-btn {
        display: none; /* Hide standard button to make room for hamburger */
    }

    /* Transform the nav into a full-screen overlay */
    .nav-links {
        position: fixed;
        top: 0;
        left: 100%; /* Start completely off-screen to the right */
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth slide in */
        z-index: 1000;
    }

    /* The class JavaScript will add to slide the menu in */
    .nav-links.nav-active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem; /* Bigger text for mobile tapping */
        font-weight: 700;
    }

    .mobile-only-btn {
        display: inline-flex;
        margin-top: 20px;
        font-size: 1.1rem;
        padding: 16px 36px;
        color: white !important;
    }

    /* Animate hamburger to an 'X' when active */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .hero {
        min-height: 40vh !important
    }
}