/* --- THE JIMMY FLAME BRAND PALETTE --- */
:root {
    --bg-color: #0D0D0D;
    --card-bg: #141414;
    --primary-fire: #FF4500;
    --highlight: #FFD700;
    --text-main: #F2F2F2;
    --font-header: "cc-flame-on", sans-serif;
    --font-body: "beezlebrush-bb", sans-serif;
    --font-h2: "cc-frostbite-block", sans-serif;
    --font-h3: "cc-frostbite-melt", sans-serif;
}

* { box-sizing: border-box; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- TYPOGRAPHY --- */
h1, .logo-text, .brand-font {
    font-family: var(--font-header);
    color: var(--highlight);
    text-shadow: 0 0 10px var(--primary-fire), 2px 2px 0px #000;
    text-transform: uppercase;
    margin: 0;
}
h2 { font-family: var(--font-h2); color: var(--primary-fire); font-size: clamp(2.5rem, 8vw, 4rem); text-transform: uppercase; line-height: 1.1; margin-bottom: 20px; }
h3 { font-family: var(--font-h3); color: var(--highlight); font-size: clamp(1.8rem, 5vw, 2.5rem); }
p { font-family: var(--font-body); font-size: 1.2rem; color: #ccc; margin-bottom: 1.5rem; }

/* --- HEADER & NAV --- */
.main-header {
    background: #000;
    border-bottom: 4px solid var(--primary-fire);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.flex-header { display: flex; justify-content: space-between; align-items: center; }
.logo-link { text-decoration: none; }

/* HAMBURGER BUTTON */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}
.hamburger-bar {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-main);
    margin: 6px 0;
    transition: 0.4s;
}

/* --- DESKTOP NAV --- */
@media screen and (min-width: 851px) {
    .main-nav ul { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
    .main-nav a { font-family: var(--font-h2); color: var(--text-main); text-decoration: none; font-size: 1.4rem; transition: 0.3s; }
    .main-nav a:hover { color: var(--highlight); text-shadow: 0 0 8px var(--primary-fire); }
}

/* --- MOBILE NAV (Screens < 850px) --- */
@media screen and (max-width: 850px) {
    .menu-toggle { display: block; }

    /* The Flyout */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Off-screen */
        width: 85%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        border-left: 4px solid var(--primary-fire);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
    }

    .main-nav.is-open { right: 0; } /* Triggered by JS */

    .main-nav ul { list-style: none; text-align: center; gap: 3rem; display: flex; flex-direction: column; padding: 0; }
    .main-nav a { font-size: 2.8rem; font-family: var(--font-h2); color: var(--text-main); text-decoration: none; }

    /* SPIN TO X ANIMATION */
    .menu-toggle.is-active .hamburger-bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .hamburger-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--highlight); }
    .menu-toggle.is-active .hamburger-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--highlight); }
    .menu-toggle.is-active { filter: drop-shadow(0 0 8px var(--primary-fire)); }
}

/* --- HERO & CARDS (SAME AS BEFORE) --- */
.hero-section { padding: 100px 0 60px; text-align: center; background: linear-gradient(180deg, #1a0800 0%, var(--bg-color) 100%); }
.btn-fire { font-family: var(--font-h2); background: var(--primary-fire); color: #fff; padding: 18px 45px; text-decoration: none; font-size: 1.6rem; border-radius: 2px; transition: 0.3s; display: inline-block; border: 2px solid var(--highlight); margin-top: 20px; }
.btn-fire:hover { background: var(--highlight); color: #000; box-shadow: 0 0 30px var(--highlight); transform: rotate(-2deg); }

.grid-section { padding: 60px 0; }
.flex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.card { background: var(--card-bg); border: 2px solid #222; padding: 2.5rem; position: relative; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; }
.card-image-placeholder { width: 100%; height: 220px; background: #000; margin-bottom: 25px; border: 1px solid #333; overflow: hidden; }
.card-image-placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: 0.5s; }
.card:hover { border-color: var(--highlight); transform: translateY(-8px); box-shadow: 0 0 25px rgba(255, 69, 0, 0.7), inset 0 0 20px rgba(255, 215, 0, 0.1); }
.card-link { font-family: var(--font-h2); color: var(--primary-fire); margin-top: auto; padding-top: 20px; display: block; font-size: 1.2rem; text-transform: uppercase; }

.main-footer { padding: 60px 0; background: #000; border-top: 4px solid #1a1a1a; text-align: center; }
.footer-copy { font-family: var(--font-h2); font-size: 1.1rem; color: #555; letter-spacing: 1px; }
.mini-about { padding: 80px 0; background: #080808; border-top: 1px solid #1a1a1a; text-align: center; }
.text-center { text-align: center; }
.mini-about { padding: 80px 0; background: #080808; border-top: 1px solid #1a1a1a; }
