/* --- CORE VARIABLES --- */
:root {
    --granite-black: #0F0F0F;
    --granite-gold: #D4A017;
    --granite-gold-dim: #b88a12;
    --off-white: #F6F5F3;
    --slate: #2A2E32;
    --stone: #8E9196;
    --forest-green: #1F3D2B;
    --text-on-dark: #F0F0F0;
    --shadow-card: 0 10px 40px rgba(0,0,0,0.08);
    --container-max: 1200px;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--slate);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--granite-black);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 { font-weight: 700; font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-weight: 700; font-size: 2.5rem; letter-spacing: -0.5px; }
h3 { font-weight: 600; font-size: 1.5rem; }
h4 { font-weight: 600; font-size: 1.1rem; }

p { margin-bottom: 1.5rem; color: #444; }
a { text-decoration: none; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 25px;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-gold { color: var(--granite-gold); }
.text-white { color: white; }
.text-light { color: #ccc; }
.bg-black { background-color: var(--granite-black); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- NAVIGATION HEADER --- */
.main-nav-bar {
    background: rgba(15,15,15,0.95);
    border-bottom: 1px solid #333;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 45px;
    width: auto;
    display: block;
}

/* Desktop Links */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #ccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links a:hover { color: var(--granite-gold); }

.nav-links a.cta {
    background: var(--granite-gold);
    color: black;
    padding: 8px 18px;
    border-radius: 2px;
}
.nav-links a.cta:hover { background: white; }

/* Hamburger (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--granite-gold);
    border-radius: 3px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 18px 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--granite-gold);
    color: var(--granite-black);
    border: 1px solid var(--granite-gold);
}

.btn-primary:hover {
    background: white;
    border-color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--granite-black);
    border: 1px solid var(--granite-black);
}
.btn-secondary-white {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background: var(--granite-black);
    color: white;
}
.btn-secondary-white:hover {
    background: white;
    color: var(--granite-black);
}

/* --- LOGO STYLING --- */
.footer-logo {
    width: 280px; 
    height: auto;
    margin-bottom: 25px;
    display: block;
    opacity: 0.9;
    max-width: 100%;
}

/* --- PIXEL CLUSTERS --- */
.pixel-cluster {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    position: absolute;
    z-index: 0;
}

.px { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.15); }
.px.gold { background: rgba(212, 160, 23, 0.8); }
.px.empty { background: transparent; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background-color: var(--granite-black);
    color: white;
    padding: 120px 0 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: 0; opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(15,15,15,1) 0%, rgba(15,15,15,0.9) 35%, rgba(15,15,15,0.6) 60%, rgba(15,15,15,0.2) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 3; width: 100%; }
.hero-text { max-width: 650px; padding-top: 20px; }

.hero-text .geo {
    color: var(--granite-gold); font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 20px;
    display: inline-block; border-bottom: 1px solid var(--granite-gold); padding-bottom: 5px;
}

.hero h1 { color: white; margin-bottom: 25px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p.sub { font-size: 1.15rem; color: #ddd; margin-bottom: 40px; border-left: 3px solid var(--granite-gold); padding-left: 20px; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }

.trust-badges { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 15px; font-size: 0.85rem; color: #aaa; }
.trust-badges span { display: flex; align-items: center; gap: 5px; }
.trust-badges svg { fill: var(--granite-gold); width: 14px; height: 14px; min-width: 14px; }

/* --- SECTIONS --- */
.overlap-section { margin-top: -100px; position: relative; z-index: 10; padding-bottom: 80px; }
.overlap-section h2 { color: white !important; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }

.checklist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.check-card { background: white; padding: 40px 30px; box-shadow: var(--shadow-card); border-top: 4px solid var(--granite-gold); transition: transform 0.3s ease; }
.check-card:hover { transform: translateY(-10px); }
.check-card h3 { font-size: 1.2rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--granite-black); }
.check-list-items li { position: relative; padding-left: 25px; margin-bottom: 12px; font-size: 0.95rem; }
.check-list-items li::before { content: '✓'; position: absolute; left: 0; color: var(--granite-gold); font-weight: bold; }

.emotional-proof { background-color: var(--granite-black); color: white; padding: 120px 20px; position: relative; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 50px 50px; }
.story-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 3; }
.emotional-proof h2, .emotional-proof h3, .emotional-proof h4 { color: white; }
.emotional-proof p { color: var(--text-on-dark); }
.emotional-proof .check-list-items li { color: var(--text-on-dark); }
.quote-box { background: white; padding: 50px; border-left: 8px solid var(--granite-gold); font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-style: italic; line-height: 1.8; box-shadow: 0 20px 60px rgba(0,0,0,0.6); color: var(--granite-black); position: relative; z-index: 2; }
.quote-box .author { font-family: 'Inter', sans-serif; font-size: 1rem; margin-top: 25px; font-weight: 800; color: var(--granite-black); font-style: normal; }

.comparison-section { padding: 100px 20px; }
.comp-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 0; border: 1px solid #ddd; margin-top: 50px; }
.comp-col { padding: 40px 30px; background: white; }
.comp-col.middle { background: var(--granite-black); color: white; transform: scaleY(1.05); box-shadow: 0 0 30px rgba(0,0,0,0.2); position: relative; z-index: 5; border-top: 5px solid var(--granite-gold); }
.comp-col.middle h3 { color: white; }
.comp-col.middle li { color: #ddd; }
.comp-list li { margin-bottom: 15px; padding-left: 25px; position: relative; }
.comp-list.x li::before { content: '×'; color: #d00; position: absolute; left: 0; font-weight: bold; }
.comp-list.check li::before { content: '✓'; color: var(--granite-gold); position: absolute; left: 0; font-weight: bold; }

.features-section { background-color: var(--granite-black); padding: 100px 20px; color: white; }
.features-section h2 { color: white !important; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.feature-box { background: rgba(255,255,255,0.05); padding: 25px; border: 1px solid #333; transition: 0.3s; }
.feature-box:hover { border-color: var(--granite-gold); background: rgba(255,255,255,0.08); transform: translateY(-5px); }
.feature-box h3 { color: white; font-size: 1.1rem; margin-top: 15px; }
.feature-box p { color: var(--text-on-dark); font-size: 0.9rem; margin: 0; }
.f-icon { font-size: 1.8rem; }

.results-section { padding: 100px 20px; background-color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 60px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--granite-gold); margin-bottom: 5px; font-weight: 800; }
.stat-item p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--stone); font-weight: 600; margin: 0; }
.results-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; padding-top: 40px; border-top: 1px solid #eee; }

.services-section { padding: 100px 20px; background: white; }
.tab-nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tab-btn { background: none; border: none; padding: 15px 30px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--stone); cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s; }
.tab-btn.active { color: var(--granite-black); border-bottom-color: var(--granite-gold); }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 40px; }
.steps-grid h3 { font-size: 1rem; color: #333; margin-bottom: 5px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.testimonial-card { background: #fff; border: 1px solid #eee; padding: 25px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }

.about-section { padding: 120px 20px; background: var(--granite-black); color: white; position: relative; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 50px 50px; }
.bio-image-wrapper { position: relative; display: inline-block; width: 100%; }
.about-section h3, .about-section h4 { color: white; }
.about-section ul { color: var(--text-on-dark); }

.faq-section { padding: 100px 20px; background: var(--off-white); }
.accordion { max-width: 800px; margin: 0 auto; text-align: left; }
.acc-item { background: white; margin-bottom: 15px; border: 1px solid #e0e0e0; border-left: 4px solid var(--granite-gold); border-radius: 4px; overflow: hidden; transition: all 0.3s ease; }
.acc-item.active { border-left-color: var(--granite-gold); }
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px; cursor: pointer; font-weight: 700; color: var(--granite-black); font-family: 'Montserrat', sans-serif; }
.acc-head:hover { background-color: #fafafa; }
.acc-head span { font-size: 1.5rem; color: var(--granite-gold); margin-left: 20px; font-weight: 300; flex-shrink: 0; }
.acc-body { max-height: 0; overflow: hidden; padding: 0 20px; transition: max-height 0.4s ease, padding 0.4s ease; color: #555; font-size: 0.95rem; line-height: 1.6; background-color: white; }
.acc-item.active .acc-body { padding: 0 20px 25px 20px; border-top: 1px solid #f5f5f5; }

.final-cta-section { padding: 120px 20px; background: url('../assets/street.webp') no-repeat center center/cover; position: relative; }
.final-cta-text { color: white !important; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.final-cta-sub { color: #f0f0f0 !important; font-size: 0.9rem; margin-top: 30px; text-shadow: 0 1px 5px rgba(0,0,0,0.8); }
.final-cta-sub p { color: #ffffff !important; font-size: 0.95rem; margin-top: 5px; text-shadow: 0 2px 5px rgba(0,0,0,0.9); }

footer { background: #111; color: #f0f0f0; padding: 80px 0 30px; font-size: 0.9rem; border-top: 5px solid var(--granite-gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
footer h3, footer h4, footer h5 { color: #ffffff !important; margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; opacity: 1 !important; }
footer p { color: #e0e0e0 !important; opacity: 0.9; }
.footer-grid a { color: #e0e0e0 !important; display: block; margin-bottom: 10px; text-decoration: none; }
.footer-grid a:hover { color: var(--granite-gold) !important; }

.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15,15,15,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.popup-content {
    background: white;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border-radius: 4px;
    position: relative;
    border-top: 5px solid var(--granite-gold);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .checklist-grid, .comp-grid, .feature-grid, .footer-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 80px 0; }
}

@media (max-width: 768px) {
    /* STACK GRIDS */
    .story-container, .comp-grid, .feature-grid, .tab-content.active, .footer-grid, .checklist-grid, .results-content-grid, .testimonial-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* MOBILE NAVIGATION */
    .hamburger { display: flex; }
    
    .nav-links {
        display: none; /* Hide default */
        position: absolute;
        top: 100%; /* Below header */
        left: 0;
        width: 100%;
        background-color: var(--granite-black);
        flex-direction: column;
        padding: 20px 0;
        border-top: 1px solid #333;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        display: flex; /* Show when active */
    }
    
    .nav-links a {
        padding: 15px 0;
        text-align: center;
        border-bottom: 1px solid #222;
        width: 100%;
    }
    
    /* Fix Hero */
    .hero { display: block; padding-top: 80px; }
    .hero-text { max-width: 100% !important; text-align: left; padding-right: 0; }
    .hero-bg-image { object-position: center top; }
    
    /* Hide Pixels on Mobile */
    .hero .pixel-cluster, .emotional-proof .pixel-cluster { display: none; }
    
    .comp-col.middle { transform: none; box-shadow: none; border: 1px solid var(--granite-gold); }
    .quote-box { padding: 30px; }
    .about-section, .emotional-proof { padding: 80px 20px; }
    .overlap-section { margin-top: 0; padding-top: 40px; padding-bottom: 40px; }
    .overlap-section h2 { color: var(--granite-black) !important; text-shadow: none; }
}
/* --- DROPDOWN MENU STYLES (Add to style.css) --- */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--granite-black);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 10000;
    border: 1px solid #333;
    border-top: 3px solid var(--granite-gold);
    flex-direction: column;
    padding: 10px 0;
}

.dropdown-content a {
    color: #ccc;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: nowrap;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #222;
    color: var(--granite-gold);
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* Mobile Dropdown Adjustments */
@media (max-width: 768px) {
    .dropdown {
        display: block;
        width: 100%;
        text-align: center;
    }
    .dropdown > a {
        pointer-events: none; /* Disables the top link click on mobile */
        color: var(--granite-gold) !important;
        font-weight: 700 !important;
        border-bottom: none !important;
    }
    .dropdown-content {
        display: block; /* Always show sub-links on mobile menu */
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: none;
        background: rgba(255,255,255,0.03);
        width: 100%;
        padding: 0;
    }
    .dropdown-content a {
        text-align: center;
        padding: 15px 0;
        color: #999;
        font-size: 0.8rem;
        border-bottom: 1px solid #222;
    }
}
/* --- LEAD MAGNET & BOOK COVER CSS --- */
.lead-magnet-section {
    background: #111;
    color: #fff;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.lm-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* CSS-Only 3D Book Generator */
.book-wrapper {
    perspective: 1000px;
    width: 300px;
    height: 400px;
    flex-shrink: 0;
}

.book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
}

.book:hover {
    transform: rotateY(-15deg) rotateX(0deg);
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid var(--granite-gold, #C5A059);
    border-radius: 2px 5px 5px 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.book-spine {
    position: absolute;
    width: 40px;
    height: 100%;
    background: #C5A059; /* Gold spine */
    transform: rotateY(-90deg) translateZ(20px);
    left: -20px;
}

.book-title {
    font-family: serif;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.2;
    margin-top: 40px;
}

.book-sub {
    color: #C5A059;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lm-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lm-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.lm-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ccc;
}

.lm-list li svg {
    width: 20px;
    flex-shrink: 0;
    fill: #C5A059;
    margin-top: 3px;
}

.ghl-form-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ghl-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #444;
    background: #222;
    color: white;
    min-width: 200px;
}

/* --- EXIT POPUP CSS --- */
.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-modal.visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 10;
    font-weight: bold;
}

.modal-left {
    background: #f4f4f4;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-right {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .lm-container {
        flex-direction: column-reverse; /* Put image on top */
        text-align: center;
    }
    .ghl-form-group {
        flex-direction: column;
    }
    .modal-content {
        flex-direction: column;
    }
    .modal-left {
        display: none; /* Hide book image on mobile popup to save space */
        width: 100%;
    }
    .modal-right {
        width: 100%;
        padding: 30px 20px;
    }
}