/* /assets/css/series.css */

/* --- 1. DESIGN TOKENS (UNIVERSAL) --- */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === SHEPHERD THEME (Tactical/Dark) === */
[data-series="shepherd"] {
    --bg-main: #0F1113;
    --bg-nav: #000000;
    --bg-card: #141618;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B7280;
    
    --brand-color: #8C1D18; /* Tactical Red */
    --accent-color: #FFFFFF;
    
    --btn-bg: #8C1D18;
    --btn-text: #FFFFFF;
    --card-btn-text: #FFFFFF;
    --card-btn-border: #8C1D18;
    
    --border: #333333;
    --radius: 0px; 
    --font-heading: var(--font-sans);
    --hero-overlay: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(15,17,19,1) 95%);
    --nav-active: #8C1D18;
    
    --hero-image: url('/assets/images/shepherdheroimage.png');
}

/* === RAPHAEL THEME (Sacred/Family) === */
[data-series="raphael"] {
    --bg-main: #F5F2EA;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --bg-card: #FFFFFF;
    
    --text-primary: #2C3E50;
    --text-secondary: #4A5A6A;
    --text-muted: #6B7280;
    
    --brand-color: #3B5998; /* Raphael Blue */
    --accent-color: #C5A059; /* Gold */
    
    --btn-bg: #3B5998;
    --btn-text: #FFFFFF;
    --card-btn-text: #8A6D3B;
    --card-btn-border: #C5A059;
    
    --border: #E5E1DD;
    --radius: 6px;
    --font-heading: var(--font-serif);
    --hero-overlay: linear-gradient(to bottom, rgba(245, 242, 234, 0.4) 0%, rgba(245, 242, 234, 1) 95%);
    --nav-active: #3B5998;
    
    --hero-image: url('/assets/images/raphaelheroimage.png');
}

/* --- 2. BASE RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* Vignette texture for Raphael */
[data-series="raphael"] body {
    background-image: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.03) 100%);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* --- 3. LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* --- 4. HEADER --- */
header { 
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-nav); 
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border); 
    padding: 0.75rem 0;
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 45px; width: auto; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { 
    font-weight: 500; font-size: 0.95rem; 
    color: var(--text-primary); 
    letter-spacing: 0.02em; position: relative;
}
.nav-links a:hover { color: var(--nav-active); }
.nav-cta a { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }

/* --- 5. UPDATED HERO SECTION --- */
.hero-section {
    padding: 8rem 0 14rem; 
    text-align: center;
    position: relative;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--hero-overlay); z-index: 1;
}

.hero-content { 
    position: relative; z-index: 2; 
    display: flex; flex-direction: column; align-items: center; 
    max-width: 900px; 
}

h1 { 
    font-family: var(--font-heading);
    font-size: 3.5rem; margin-bottom: 1.5rem; 
    font-weight: 400; color: var(--text-primary); 
    line-height: 1.1;
}
[data-series="shepherd"] h1 { font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
[data-series="raphael"] h1 { text-shadow: 0 1px 0 rgba(255,255,255,0.8); }

.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-primary);
    max-width: 75ch;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
[data-series="raphael"] .hero-subtext { text-shadow: none; color: var(--text-secondary); font-weight: 500; }

/* --- 6. KIT CAROUSEL --- */
.kit-carousel-section {
    position: relative;
    z-index: 10;
    margin-top: -8rem; /* Pulls carousel up into Hero */
    padding-bottom: 6rem;
    overflow: hidden; 
}

.kit-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.kit-carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2rem 1.5rem 4rem; 
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.kit-carousel-track::-webkit-scrollbar { display: none; }

/* The Kit Card */
.kit-card {
    /* MOBILE: 85% width lets next card peek through */
    flex: 0 0 85%; 
    scroll-snap-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); 
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .kit-card { flex: 0 0 45%; } /* Tablet: 2 cards */
}
@media (min-width: 1024px) {
    .kit-card { flex: 0 0 32%; } /* Desktop: 3 cards */
}

.kit-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-color);
}

.card-image-wrap { 
    height: 280px; 
    background: #000; 
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    border-bottom: 1px solid var(--border);
}
[data-series="raphael"] .card-image-wrap { background: #F8F8F8; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.kit-card:hover .card-image-wrap img { transform: scale(1.05); }

.card-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }

.kit-card h3 { 
    font-family: var(--font-heading); font-size: 1.5rem; 
    margin-bottom: 0.25rem; color: var(--text-primary);
}
[data-series="shepherd"] .kit-card h3 { text-transform: uppercase; font-weight: 800; }

.card-hook { 
    font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em;
    color: var(--brand-color); 
    margin-bottom: 1rem; text-transform: uppercase;
}
.card-lead { font-size: 1rem; color: var(--text-primary); margin-bottom: 1rem; font-style: italic; }

.check-list { list-style: none; margin-bottom: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.check-list li { 
    margin-bottom: 0.5rem; padding-left: 1.25rem; 
    position: relative; font-size: 0.9rem; color: var(--text-secondary); 
}
.check-list li::before { 
    content: "▸"; color: var(--brand-color); 
    position: absolute; left: 0; top: 0;
}

.btn-card { 
    margin-top: auto; display: block; width: 100%;
    padding: 1rem; background: transparent;
    border: 1px solid var(--card-btn-border); 
    color: var(--card-btn-text);
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
    text-align: center; border-radius: var(--radius);
    transition: var(--transition);
}
.btn-card:hover { background: var(--card-btn-border); color: #FFF; }

/* Carousel Navigation Arrows */
.carousel-nav-btn {
    position: absolute; top: 40%; transform: translateY(-50%);
    width: 50px; height: 50px;
    background: var(--bg-nav); border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.carousel-nav-btn:hover { background: var(--brand-color); border-color: var(--brand-color); color: #FFF; }
.carousel-nav-btn.prev { left: -25px; }
.carousel-nav-btn.next { right: -25px; }
@media (max-width: 768px) { .carousel-nav-btn { display: none; } }

/* --- 8. KICKSTARTER BLOCK --- */
.kickstarter-block { text-align: center; padding-bottom: 4rem; }
.kickstarter-block h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-primary); margin-bottom: 0.5rem;}
.kickstarter-block p { font-style: italic; color: var(--text-muted); }

/* --- 9. SITE FOOTER (SHARED) --- */
.site-footer {
    background-color: #000;
    border-top: 1px solid #222;
    padding: 3rem 0;
    text-align: center;
    color: #555;
    margin-top: 2rem;
}

.footer-brand-name {
    color: #FFF;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-mission {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.footer-safety-notice {
    font-size: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- MOBILE NAV & UTILS --- */
.mobile-toggle { display: none; }
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 900px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    h1 { font-size: 2.2rem; }
    .hero-subtext { font-size: 1rem; padding: 0 1rem; }
    
    .mobile-toggle { 
        display: flex; flex-direction: column; gap: 6px; 
        border: none; background: transparent; cursor: pointer; z-index: 101; 
    }
    .mobile-toggle .bar { width: 26px; height: 2px; background-color: var(--text-primary); }
    
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg-nav); border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out;
    }
    .nav-menu.open { max-height: 500px; }
    
    .nav-links { display: flex; flex-direction: column; width: 100%; padding: 0; }
    .nav-links li { width: 100%; border-top: 1px solid var(--border); text-align: center; }
    .nav-links a { display: block; padding: 1.2rem; }
    
    .series-switch { padding: 1.5rem; }
    .series-switch a { border: 1px solid var(--accent-color); padding: 0.8rem; border-radius: var(--radius); }

    /* --- MOBILE COMPACT CARD OVERRIDES (FIXED) --- */
    .card-image-wrap { 
        height: 160px; /* Reduced to remove elongated look */
    }
    
    .card-body { 
        padding: 1rem; /* Tightened padding */
    }
    
    .kit-card h3 { 
        font-size: 1.25rem; 
        margin-bottom: 0.1rem; 
    }
    
    .card-hook { 
        margin-bottom: 0.4rem; 
        font-size: 0.8rem; 
    }
    
    .card-lead { 
        margin-bottom: 0.6rem; 
        font-size: 0.9rem; 
    }
    
    .check-list { 
        margin-bottom: 1rem; 
        padding-top: 0.5rem; 
    }
    
    .check-list li { 
        margin-bottom: 0.1rem; 
        font-size: 0.85rem;
    }
    
    .btn-card { 
        padding: 0.75rem; 
        margin-top: 0.5rem;
    }
}