/* ==========================================================================
   PISTON TRIBE: HOMEPAGE STYLES V9 (UPDATED)
   ========================================================================== */

/* --- 1. RESET & LAYOUT --- */
body.home .site.grid-container,
body.home #content,
body.home .site-content {
    max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; float: none !important;
}

.pt-homepage-wrapper {
    width: 100%; overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #fff;
}

.pt-container {
    max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 20px; box-sizing: border-box;
}

.pt-section { padding: 60px 0; }

/* --- HEADER STYLES (FLEX & STANDARD) --- */
.pt-section-header { text-align: center; margin-bottom: 50px; }

/* NEW: Flex Header for "View All" Layouts */
.pt-section-header-flex {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 30px; 
    border-bottom: 2px solid #000; 
    padding-bottom: 10px;
}

.header-text-group {
    text-align: left;
}

.pt-heading-lg {
    font-size: 36px; font-weight: 800; text-transform: uppercase; color: #111; margin: 0 0 10px 0; letter-spacing: -0.5px;
}
.pt-subheading { font-size: 18px; color: #666; margin: 0; }

/* Link Arrow Style */
.pt-link-arrow {
    font-weight: 700; text-transform: uppercase; font-size: 14px; text-decoration: none; color: #000; white-space: nowrap;
}
.pt-link-arrow:hover { color: #555; }

.pt-separator {
    width: 60px; height: 4px; background-color: #000; margin: 20px auto 0;
}


/* --- 2. HERO SECTION --- */
.pt-home-hero {
    position: relative; height: 85vh; min-height: 600px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
}

.pt-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Dark Gradient: 70% black top -> 95% black bottom */
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.95) 100%);
    z-index: 1;
}

.pt-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; }
.pt-home-title {
    font-size: 72px; font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1; margin-bottom: 20px;
}
.pt-home-subtitle { font-size: 22px; color: #ccc; margin-bottom: 40px; font-weight: 400; }

/* --- HERO BUTTONS (New Layout) --- */
.pt-hero-btn-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Button Base Styles */
.pt-btn-hero-primary,
.pt-btn-hero-outline {
    display: inline-block;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

/* Primary: White Background, Black Text */
.pt-btn-hero-primary {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}
.pt-btn-hero-primary:hover {
    background-color: #cccccc; 
    border-color: #cccccc;
}

/* Outline: Transparent, White Border */
.pt-btn-hero-outline {
    background-color: transparent;
    color: #ffffff;             /* Pure White Text */
    border: 2px solid #ffffff;  /* Pure White Border */
}

.pt-btn-hero-outline:hover,
.pt-btn-hero-outline:focus,
.pt-btn-hero-outline:visited {
    background-color: #cccccc; 
    border-color: #cccccc;
}

/* --- 3. NAV CARDS --- */
.pt-home-nav-cards { margin-top: 50px; position: relative; z-index: 10; margin-bottom: 30px; }
.pt-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pt-nav-card {
    position: relative; height: 350px; display: flex; flex-direction: column; justify-content: flex-end;
    text-decoration: none; overflow: hidden; background: #000; border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: transform 0.3s ease;
}
.pt-nav-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.7; transition: opacity 0.3s, transform 0.5s;
}
.pt-nav-card:hover .pt-nav-bg { opacity: 0.5; transform: scale(1.05); }
.pt-nav-content {
    position: relative; z-index: 2; padding: 30px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}
.pt-nav-subtitle { display: block; color: #fff; opacity: 0.7; font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.pt-nav-title { color: #fff; font-size: 28px; font-weight: 800; text-transform: uppercase; margin: 0 0 15px 0; line-height: 1; }
.pt-nav-btn { display: inline-block; color: #fff; font-size: 14px; font-weight: 600; border-bottom: 2px solid #fff; padding-bottom: 2px; }


/* --- 4. TRUST SIGNALS BAR --- */
.pt-trust-bar { padding: 60px 0; border-bottom: 1px solid #eee; }
.pt-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pt-trust-item { display: flex; align-items: center; justify-content: center; gap: 15px; }
.trust-svg { color: #111; stroke-width: 1.5px; }
.trust-text { display: flex; flex-direction: column; text-align: left; }
.trust-text strong { font-size: 15px; color: #111; text-transform: uppercase; letter-spacing: 0.5px; }
.trust-text span { font-size: 13px; color: #777; }


/* --- 5. MISSION STATEMENT --- */
.pt-mission-section { background-color: #f8f8f8; }
.pt-mission-grid { display: flex; width: 100%; min-height: 550px; }

.pt-mission-image { 
    position: relative; 
    flex: 1; 
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center; 
    min-width: 50%; 
    z-index: 1;
}

.pt-mission-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 2;
}

.pt-mission-text { flex: 1; padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.pt-label-red { display: inline-block; color: #dd0000; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }
.pt-mission-heading { font-size: 48px; line-height: 1.1; font-weight: 900; color: #111; text-transform: uppercase; margin-bottom: 30px; }
.pt-mission-body p { font-size: 18px; line-height: 1.6; color: #444; margin-bottom: 20px; }

/* RECTANGLE BUTTON (Used in Mission & Blog) */
.pt-btn-outline-black {
    display: inline-block; border: 2px solid #111; color: #111; padding: 15px 35px;
    font-weight: 800; text-transform: uppercase; text-decoration: none; width: max-content; margin-top: 20px; transition: all 0.3s;
}
.pt-btn-outline-black:hover { background: #111; color: #fff; }


/* --- 6. CATEGORIES GRID (NAV STYLE) --- */
.pt-cat-grid-wrapper {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%;
}
.pt-cat-card-nav-style {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    width: 100%; aspect-ratio: 1/1; /* Square */
    border-radius: 4px; overflow: hidden; background: #000; text-decoration: none;
    transition: transform 0.3s ease;
}

.pt-cat-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.8;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.pt-cat-card-nav-style:hover .pt-cat-bg { transform: scale(1.05); opacity: 0.6; }

.pt-cat-content {
    position: relative; z-index: 2; padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    width: 100%;
}
.pt-cat-subtitle {
    display: block; color: #fff; opacity: 0.7; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px;
}
.pt-cat-title {
    color: #fff; font-size: 22px; font-weight: 800; text-transform: uppercase; margin: 0 0 10px 0; line-height: 1; letter-spacing: -0.5px;
}
.pt-cat-btn {
    display: inline-block; color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid #fff; padding-bottom: 2px;
}


/* --- 7. MERCH PROMO (UPDATED) --- */
.pt-merch-promo {
    position: relative; 
    padding: 120px 0; 
    text-align: center; 
    color: #fff;
    background-color: #FFFFFF; 
    overflow: hidden; 
}

.pt-merch-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-template-rows: repeat(2, 1fr);    
    gap: 10px;      
}

.pt-merch-grid-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(1.2); 
    opacity: 0.6; 
    transition: all 0.5s ease;
}

.pt-merch-grid-item:hover {
    filter: grayscale(0%);
    opacity: 0.8;
}

.pt-promo-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 1; 
}

.pt-promo-content { 
    position: relative; 
    z-index: 2; 
    max-width: 700px; 
    margin: 0 auto; 
}

.pt-promo-title { font-size: 56px; font-weight: 900; text-transform: uppercase; margin-bottom: 20px; color: #fff; }
.pt-promo-text { font-size: 20px; margin-bottom: 40px; color: #ddd; }

.pt-btn-pro-black {
    display: inline-block; 
    background: #ffffff; 
    color: #000000; 
    padding: 18px 50px;
    font-weight: 800; 
    text-transform: uppercase; 
    text-decoration: none; 
    border: 2px solid #ffffff; 
    transition: all 0.3s;
}

.pt-btn-pro-black:hover,
.pt-btn-pro-black:focus { 
    background: #cccccc;   
    border-color: #cccccc; 
    color: #000000;        
    outline: none;         
}

@media (max-width: 768px) {
    .pt-merch-grid-bg {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}


/* --- 8. DARK SPLIT NEWSLETTER --- */
.pt-home-newsletter-dark-split { 
    background-color: #111111; 
    padding: 80px 0; 
}
.newsletter-split-box { display: flex; align-items: center; justify-content: space-between; gap: 50px; max-width: 1100px; margin: 0 auto; }

.nl-text-col { flex: 1; }
.nl-title-white { font-size: 36px; font-weight: 900; text-transform: uppercase; margin-bottom: 15px; color: #fff; letter-spacing: -0.5px; }
.nl-desc-white { font-size: 17px; color: #ccc; margin: 0; line-height: 1.5; }

.nl-form-col { flex: 1; display: flex; flex-direction: column; }
.nl-form-row { display: flex; gap: 10px; width: 100%; }
.nl-form-row input {
    flex: 1; padding: 15px 20px; 
    border: 1px solid #333; background: #222; 
    color: #fff; font-size: 15px; outline: none; transition: border 0.3s;
}
.nl-form-row input:focus { border-color: #fff; }
.nl-form-row button {
    padding: 15px 25px; 
    background: #fff; color: #000; 
    font-weight: 800; text-transform: uppercase; border: none; cursor: pointer; transition: opacity 0.3s; white-space: nowrap;
}
.nl-form-row button:hover { opacity: 0.8; }
.nl-note-grey { display: block; margin-top: 10px; font-size: 12px; color: #666; text-transform: uppercase; }


/* --- 9. GUIDES GRID (OVERLAY STYLE) --- */
.pt-guides-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}
.pt-blog-card-overlay {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    width: 100%; aspect-ratio: 16/10; /* Landscape rectangle */
    border-radius: 4px; overflow: hidden; background: #000; text-decoration: none;
    transition: transform 0.3s ease;
}
.pt-blog-card-overlay:hover { transform: translateY(-5px); }

.pt-blog-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.9;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.pt-blog-card-overlay:hover .pt-blog-bg { transform: scale(1.05); opacity: 0.7; }

.pt-blog-content {
    position: relative; z-index: 2; padding: 25px;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%);
    width: 100%;
}
.pt-blog-date {
    display: block; color: #ddd; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 5px;
}
.pt-blog-title {
    color: #fff; font-size: 20px; font-weight: 800; line-height: 1.2; margin: 0 0 10px 0;
}
.pt-blog-btn {
    display: inline-block; color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid #fff; padding-bottom: 2px;
}

/* --- PILL BUTTON --- */
.pt-budget-btn {
    display: inline-block;
    background-color: #000; 
    color: #fff;            
    padding: 12px 40px;     
    border-radius: 100px;   /* Full Pill Shape */
    font-size: 13px;        
    font-weight: 700;       
    text-decoration: none;
    text-transform: uppercase; 
    letter-spacing: 1px;          
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #000;
}

.pt-budget-btn:hover {
    background-color: #333; 
    border-color: #333;
    color: #fff;            
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}


/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .pt-cat-grid-wrapper { grid-template-columns: repeat(4, 1fr); }
    .pt-guides-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Hero */
    .pt-home-hero { height: 70vh; }
    .pt-home-title { font-size: 42px; }
    .pt-hero-tags { display: none; }
    
    /* NEW: Stack buttons on mobile */
    .pt-hero-btn-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    .pt-btn-hero-primary,
    .pt-btn-hero-outline {
        width: 100%;
        max-width: 300px; /* Prevent being too wide */
    }
    
    /* Stacking */
    .pt-nav-grid { grid-template-columns: 1fr; }
    .pt-mission-grid { flex-direction: column; }
    
    /* Cats: 2 columns on mobile */
    .pt-cat-grid-wrapper { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pt-cat-card-nav-style .pt-cat-title { font-size: 16px; }
    
    /* Newsletter Stack */
    .newsletter-split-box { flex-direction: column; text-align: center; gap: 30px; }
    .nl-form-row { flex-direction: column; }
    .nl-form-row button { width: 100%; }

    /* Trust Grid */
    .pt-trust-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px; 
        text-align: center; 
    }
    .pt-trust-item { 
        flex-direction: column;
        align-items: center; 
        text-align: center;
    }
    
    /* Blog */
    .pt-guides-grid-3 { grid-template-columns: 1fr; }
    
    /* Carousel Mobile Fixes */
    .pt-dark-cards .carousel-track {
        padding-left: 20px; 
        padding-right: 40px; /* Peek */
        gap: 15px;
    }
}