/* VARIABLES & RESET */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-main: #e5e5e5;
    --text-muted: #a3a3a3;
    --accent-gold: #d4af37; /* Metallic Gold */
    --font-header: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* NAVIGATION */
.main-nav {
    background: rgba(10, 10, 10, 0.95);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    font-family: var(--font-header);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.nav-links a {
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover { color: var(--accent-gold); }

/* HERO SECTION */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1478760329108-5c3ed9d495a0?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--accent-gold);
}

.hero h1 {
    font-family: var(--font-header);
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.scripture-ref {
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-top: 0.5rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-gold);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}
.cta-button:hover { background: #fff; }

/* CONTAINER & SECTIONS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: var(--font-header);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-gold);
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

/* GRID LAYOUTS */
.section-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

/* CARDS (STORE) */
.card {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid #333;
    text-align: center;
    border-radius: 4px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    font-family: var(--font-header);
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* BLOG CARDS */
.blog-card {
    background: var(--bg-card);
    padding: 2rem;
    border-left: 3px solid var(--accent-gold);
    text-align: left;
}

.blog-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 700;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 3rem;
    background: #000;
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

/* --- STORE SPECIFIC STYLES --- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden; /* Keeps image inside corners */
    transition: 0.3s;
}

.product-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.product-image-placeholder {
    height: 250px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #444;
    border-bottom: 1px solid #333;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.price {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

.btn-shop {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 8px 20px;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
    width: 100%;
}

.btn-shop:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

/* --- BLOG PAGE SPECIFIC STYLES --- */

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 parts Content, 1 part Sidebar */
    gap: 4rem;
}

/* Articles Column */
.blog-post-summary {
    margin-bottom: 2rem;
}

.blog-post-summary h2 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    margin-top: 0.5rem;
}

.date {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.divider {
    border: 0;
    height: 1px;
    background: #333;
    margin: 3rem 0;
}

/* Sidebar Column */
.sidebar {
    border-left: 1px solid #333;
    padding-left: 2rem;
}

.widget {
    margin-bottom: 3rem;
}

.widget h3 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

/* Sidebar Links */
.cat-list {
    list-style: none;
}

.cat-list li {
    margin-bottom: 0.8rem;
}

.cat-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cat-list a:hover {
    color: var(--white);
    padding-left: 5px; /* Slight movement on hover */
}

/* Sidebar Ad Box */
.ad-box {
    background: #222;
    padding: 1.5rem;
    text-align: center;
    border: 1px dashed #444;
    border-radius: 4px;
}

.btn-small {
    display: inline-block;
    background: var(--text-main);
    color: #000;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
    border-radius: 2px;
}

/* Mobile: Stack columns instead of side-by-side */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr; /* Single column */
        gap: 2rem;
    }
    .sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #333;
        padding-top: 2rem;
    }
}

/* --- ABOUT PAGE SPECIFIC STYLES --- */

.about-content {
    max-width: 700px;
    margin: 0 auto 5rem auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--white);
    font-size: 1.2rem;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--text-main);
    line-height: 1.8;
    border-left: 4px solid var(--accent-gold);
    padding-left: 1.5rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.value-card {
    background: transparent;
    border: 1px solid #333;
    padding: 2.5rem;
    text-align: left;
}

.value-card h3 {
    font-family: var(--font-header);
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-muted);
}

/* About CTA */
.about-cta {
    text-align: center;
    background: #111;
    padding: 4rem 2rem;
    border: 1px solid #333;
    max-width: 800px;
    margin: 0 auto;
}

.about-cta h3 {
    font-family: var(--font-header);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.about-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- NAV LOGO STYLES --- */
.nav-logo {
    height: 50px;       /* Sets a fixed small height */
    width: auto;        /* Let width adjust automatically */
    display: block;
}

/* Update nav-brand to handle image alignment */
.nav-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

/* --- SINGLE ARTICLE STYLES --- */

.article-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Text at bottom */
    justify-content: center;
    text-align: center;
    padding-bottom: 4rem;
    border-bottom: 4px solid var(--accent-gold);
}

.article-header-content {
    max-width: 800px;
    padding: 0 1rem;
}

.article-category {
    background: var(--accent-gold);
    color: #000;
    padding: 5px 15px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.article-header-content h1 {
    font-family: var(--font-header);
    font-size: 3rem;
    color: var(--white);
    margin: 1.5rem 0 0.5rem 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.article-meta {
    color: var(--text-muted);
    font-style: italic;
}

/* Typography for Reading */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px; /* Content | Sidebar */
    gap: 4rem;
}

.article-body {
    font-size: 1.15rem; /* Larger text for easy reading */
    color: #d1d5db; /* Light grey */
}

.article-body p { margin-bottom: 1.5rem; }

.article-body h2 {
    font-family: var(--font-header);
    color: var(--accent-gold);
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.lead-paragraph {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.6;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 2rem;
    margin: 2rem 0;
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: var(--white);
    font-style: italic;
}

/* Affiliate Box - The Money Maker */
.affiliate-box {
    background: #1a1a1a; /* Dark Card */
    border: 1px solid var(--accent-gold);
    padding: 2rem;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.aff-content h3 {
    margin-top: 0;
    color: var(--white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aff-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-gold);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-gold);
}

/* Mobile Responsiveness for Article */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr; /* Stack Sidebar below content */
    }
    .article-hero h1 { font-size: 2rem; }
}

/* --- PRODUCT PAGE STYLES --- */

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal split: Image | Text */
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.product-gallery {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.main-image-placeholder {
    font-size: 8rem;
}

/* Product Text Side */
.product-category {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-details h1 {
    font-family: var(--font-header);
    font-size: 3rem;
    margin: 0.5rem 0;
    color: var(--white);
    line-height: 1.1;
}

.product-price {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    display: inline-block;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-buy-now {
    display: block;
    width: 100%;
    background-color: var(--accent-gold);
    color: #000;
    text-align: center;
    padding: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-buy-now:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.secure-text {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    margin-top: 10px;
}

.product-features {
    margin-top: 2rem;
    list-style: none;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.product-features li {
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

/* Mobile: Stack them */
@media (max-width: 800px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-gallery {
        min-height: 300px;
    }
}

/* --- PRO FOOTER STYLES --- */
footer {
    background-color: #050505; /* Pitch black */
    border-top: 1px solid #222;
    padding: 4rem 2rem;
    margin-top: auto; /* Pushes footer to bottom if page is short */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Brand gets more space */
    gap: 3rem;
}

.footer-col h4 {
    font-family: var(--font-header);
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #888;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: #222;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem; /* Emoji size */
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #111;
    color: #444;
    font-size: 0.8rem;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Stack vertically */
        text-align: center;
        gap: 2rem;
    }
    .footer-col p { margin: 0 auto; }
    .social-links { justify-content: center; }
}

/* --- MOBILE MENU STYLES --- */

/* The Hamburger Icon (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.4s;
}

/* Mobile View Settings */
@media (max-width: 768px) {
    
    /* Show the hamburger icon */
    .menu-toggle {
        display: flex;
    }

    /* Hide the links by default */
    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%; /* Puts it right below the black bar */
        left: 0;
        background-color: #000; /* Pitch black background */
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        border-bottom: 1px solid #333;
    }

    /* Style the links inside the mobile menu */
    .nav-links a {
        display: block;
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    /* The Class we add with JS to show the menu */
    .nav-links.active {
        display: flex;
    }
}


/* --- FORCE MENU VISIBILITY --- */

/* 1. Make sure the Nav Bar is Black */
.main-nav {
    background-color: #000000; /* Pitch Black */
    position: relative; /* Needed for z-index */
    z-index: 1000; /* Keeps it on top of everything */
}

/* 2. Make sure the Bars are White */
.bar {
    background-color: #ffffff !important; /* Force White */
    display: block; /* Ensure they take up space */
}

/* 3. Ensure the container has the right spacing */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* 4. Make sure the toggle is actually visible on mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important; /* Force it to show */
        z-index: 1001; /* Ensure it's clickable */
    }
}

/* SIZE BUTTONS */
.size-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.size-btn {
    padding: 10px 18px;
    border: 1px solid #333;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    transition: 0.2s;
}

.size-btn:hover {
    border-color: #666;
}

/* The style when a button is clicked */
.size-btn.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1); /* Subtle glow */
}