/* --- Global & Foundation --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; background: #FFF; color: #111; overflow-x: hidden; }

.description-text {
    padding: 20px;
    margin: 30px 8% 0 8%; /* Centers the text and adds space above the grid */
    line-height: 1.6;
    font-size: 1.5em;
    color: #333;
    text-align: center;
    background-color: rgba(235,235,235,0.75);
}

/* Global <a> object foundation */
a {
    color: #5da9ff;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.3s;
    text-decoration: none;
}

a:hover {
    opacity: 1.0;
}

/* #2 - pdf icon (SVG and PDF label combined) */
.pdf-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
}

.pdf-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
    margin-top: -2px;
}

/* #3 - pdf-link-text */
.pdf-link-text {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- Global Row & Column System --- */
.row-fullscreen, .row-62-38, .row-50-50, .row-title, .row-carousel {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    align-items: stretch;
}

/* Modifier for the 75vh limit */
.row-fullscreen-cinematic {
    height: 75vh;
    overflow: hidden;
}

/* Ensure images inside fullscreen rows scale up and fill the space */
.row-fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fullscreen-overbar {
    position: absolute; /* Changed from static/relative */
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; 
    background-color: rgba(52,52,52, 0.66);
    color: #FFF;
    padding: 1.5rem 2rem;
    font-weight: bold;
    z-index: 30;
    text-align: center;
    white-space: nowrap;
}

.fullscreen-overbar-40 {
    top: 40% !important;
}

/* Mobile Landscape Overbar Tweaks */
@media (max-width: 973px) and (max-height: 480px) {
    .fullscreen-overbar { font-size: 1.4em; padding: 1rem; }
    .fullscreen-overbar-40 {top: 50% !important;}
    
    .row-fullscreen-cinematic {
    height: 100vh;
    }
}

/* Portrait Mobile Nudge for Bosses Photo */
@media (max-width: 973px) and (min-height: 481px) {
    .mobile-nudge {
                /* Move it 50px to the right */
        object-position: 38% center;
        }
        
    /* Modifier for the 75vh limit */
.row-fullscreen-cinematic {
    height: 65vh;
    overflow: hidden;
}
}

/* Global & Row Level Adjustments */
 .pad20 { padding: 20px 4%; } 
 .sneak20 { margin: 20px 4%;} /* standardizes selected for mobile only */
 .mushie20 {margin-top: 20px;}
 .mobile-mushie20 {margin-top: 20px;}
 .mobile-mushie20 {margin-top: 0px;}
.row-pad { padding: 20px 4%; }

.row-bg-f2 { background-color: #f2f2f2; color: #111; }
.row-bg-ch34 { background-color: #343434; color: #FFF; }

/* Charcoal Color Flip */
.row-bg-ch34 h1, .row-bg-ch34 h2, .row-bg-ch34 p { color: #FFF !important; }
.row-bg-ch34 .col-title h1 { border-color: #FFF !important; }

/* --- Desktop Layout (>= 974px) --- */
@media (min-width: 974px) {
    /* 62-38 Split */
    .row-62-38 .col-left { flex: 0 0 62%; }
    .row-62-38 .col-right { flex: 0 0 38%; }
    
    /* 50-50 Split */
    .row-50-50 .col-left, .row-50-50 .col-right { flex: 0 0 50%; }
    
    /* desktop rules for pad20 and row-pad, for mobile, see above */
  .pad20 { padding: 0 4% 20px 4%; }
  .sneak20 { margin: 0;}
  .mobile-mushie20 {margin-top: 0px;}
  .nobile-mushie20 {margin-top: 20px;}
}


/* Column Container Basics */
.col-left, .col-right {
    flex: 1 1 100%; /* Default mobile stack */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Specific Formatting Blocks */
.col-text h2 { text-transform: uppercase; font-weight: 800; margin-bottom: 15px; }
.col-text p { font-size: 1.25em; line-height: 1.6; margin-bottom: 20px; }
.col-text ul {
    list-style-position: inside;
}

.col-text li {
    font-size: 1.2em; /* Match your p tag size */
    line-height: 1.5;
    margin-bottom: 8px; /* Breathing room between points */
    padding-left: 5px;
}
.col-title { justify-content: center;  width: 100%; display: flex; flex-direction: column; }
.col-title h1 { 
    font-size: 2.5rem; 
    text-transform: uppercase; 
    border-top: 2px solid #000; 
    border-bottom: 2px solid #000; 
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

.col-visual img, .col-visual video { width: 100%; height: auto; display: block; object-fit: cover; }

/* Force image to fill 100% of its parent column's height */
.img-match-height {
    height: 100% !important;
}

/* Optimized for 800x480 aspect ratio) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* Adjusted from 56.25% to match 800/480 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Front slider */

.front-slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: hidden;
}

.front-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.front-slider-slide.active {
    opacity: 1;
}

/* --- Main page Grid Container --- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 8% 60px 8%; 
    position: relative;
}

.product-card { 
    width: 100%; 
    max-width: 520px; 
    margin: 0 auto; 
    text-align: left; 
    border: 2px solid #222; 
    display: flex; 
    flex-direction: column; 
    /* Critical for pgRND: allow snake to sit outside border */
    position: relative;
    overflow: visible !important; 
}

.product-card img {
    width: 100%; 
    height: auto; 
    aspect-ratio: 1/1; 
    object-fit: cover;
    display: block; 
    /* Silkier 800ms color swap transition */
    transition: transform 0.5s ease, opacity 0.8s ease !important;
}

.product-card:hover img { 
    transform: scale(1.05); 
}

.product-card a {
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}

/* Ensure the image is ready for scaling and swapping inside the link */
.product-card .card-link {
    overflow: hidden; /* This keeps the 1.05x zoom inside the card */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .card-link img {
    transition: transform 0.4s ease-in-out, opacity 0.8s ease;
    display: block;
    width: 100%;
}

/* --- THE MAIN SPLIT: DESKTOP (>= 974px) --- */
@media (min-width: 974px) {
    .grid-container { 
        grid-template-columns: repeat(3, 1fr); 
        padding: 60px 8% 60px 8%; 
    }
    .product-card { 
        max-width: none; 
        margin: 0; 
    }
}

@media (min-width: 1301px) and (max-width: 1600px) {
    .grid-container { 
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (min-width: 1601px) {
    .grid-container { 
        grid-template-columns: repeat(5, 1fr); 
    }
}

/* --- Product Grid Randomizer (pgRND) UI --- */

.pgRND-snake-container {
    position: absolute;
    /* Offset by 6px to sit perfectly outside the 2px border */
    top: -6px; 
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    pointer-events: none;
    z-index: 100;
    overflow: visible;
}

.pgRND-snake-path {
    fill: none;
    stroke-width: 3px;
    opacity: 0;
    /* Retreat speed 650ms */
    transition: stroke-dashoffset 0.65s ease-in-out, opacity 0.3s ease;
}

/* Flee Shudder: Scale + 60% Opacity */
.pgRND-pulse {
    animation: pgRND-shudder 0.4s ease-out;
}

@keyframes pgRND-shudder {
    0% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.01); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Header & Footer --- */
/* --- Header Base --- */
header {
    height: 72px; 
    width: 100%; 
    position: fixed; top: 0; 
    left: 0;
    padding: 0 10px; 
    background-color: #FFF ; 
    border-bottom: 3px solid #111; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    z-index: 1001; 
    box-sizing: border-box; 
    transition: all 0.3s ease;
    color-scheme: light;
}

body {
    padding-top: 72px; 
}

/* --- Logo Styling --- */
.logo { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-shield { height: 52px; width: auto; } /* Your updated size */
.logo-text { height: 35px; width: auto; transition: opacity 0.3s ease; }

/* --- Mobile / Floating State (< 974px) --- */
@media (max-width: 973px) {
    header {
        background-color: #FFF;
        border-bottom: 3px solid #111;
    }
    
    /* text logo forced smaller for mobile screens */
    .logo-text { height: 22px; width: auto; transition: opacity 0.3s ease; }
    
    /* When user scrolls down: Strip background, border, and wordmark */
    header.scrolled {
        background-color: transparent;
        border-bottom: none;
    }

    header.scrolled .logo-text {
        opacity: 0;
        visibility: hidden;
    }

    /* SVG Logic: Turn white when header is transparent */
    header.scrolled .hamburger .hb-line {
        fill: #FFF; 
        filter: drop-shadow(0 0 2px rgba(0,0,0,0.5)) !important; 
    }
}

/* Force Dark Mode Fix: Targets the SVG graphic specifically */
@media (prefers-color-scheme: dark) {
    .hamburger { filer: invert(1) hue-rotate(180deg) !important; }
    .hb-line { 
        filter: invert(0) !important; 
    }
}

footer {
    width: 100%;
    padding: 50px 8% 40px 8%;
    background: #111;
    color: #888;
    font-size: 0.8rem;
    line-height: 1.6;
     border-top: 3px solid #111; 
}

.footer-container {
    display: flex;
    align-items: flex-start; /* Shield now aligns to top of text */
    gap: 20px;
}

.footer-text-col {
    flex: 0 0 75%;
}

.footer-text-col h3 {
    color: #bbb; /* Slightly brighter than the grey text */
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: none;
}

.footer-logo-col {
    flex: 0 0 25%;
    text-align: center;
}

.footer-text-col p {
    margin-bottom: 12px;
}

.footer-contact-link {
    display: inline-block;
    color: #5da9ff; 
    text-decoration: underline; /* Added underline */
    text-underline-offset: 4px;   /* Adds a bit of air between text and line */
    font-weight: bold;
    margin-bottom: 20px;
    transition: opacity 0.3s;
    opacity: 0.8;
}

.footer-contact-link:hover {
    opacity: 1.0;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
}

.footer-shield {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: inline-block;
    margin-top: -10px;
}

/* --- Menu Navigation --- */
.menu-toggle { display: none !important; }

.hamburger { 
    position: absolute; 
    right: 10px; 
    top: 12px; /* Perfect center for 72px header */
    width: 30px;
    height: 20px;
    cursor: pointer; 
    z-index: 1000;
    display: block; /*
    flex-direction: column; */
    justify-content: space-between;
}

.hamburger svg {
    width: 30px;
    height: 20px;
    display: block;
    overflow: visible !important;
}

/* Invisible hit-box expansion */
.hamburger::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

/* --- Hamburger SVG Logic --- */
.hb-line {
    fill: #111 ; /* Default Dark */
    filter: none !important;
    transition: transform 0.3s ease, opacity 0.3s ease, fill 0.3s ease;
    transform-origin: center;
}

.menu-overlay {
    position: fixed; top: 0; right: -100%; width: 320px; height: 100%;
    background: rgba(0,0,0,0.9); transition: 0.3s; z-index: 999; overflow-y:auto;
}

/* Slide the dark menu in */
.menu-toggle:checked ~ .menu-overlay { 
    right: 0; 
}

/* Flip hamburger color to white so it's visible over the dark overlay */
.menu-toggle:checked ~ .hamburger .hb-line { 
    fill: #FFF; 
}

/* Create the X using SVG Rect classes */
.menu-toggle:checked ~ .hamburger .line-top { 
    transform: translateY(6px) rotate(45deg); 
}

.menu-toggle:checked ~ .hamburger .line-mid { 
    opacity: 0; 
}

.menu-toggle:checked ~ .hamburger .line-bot { 
    transform: translateY(-6px) rotate(-45deg); 
}

.menu-links { list-style: none; padding: 0; margin: 0; }
.menu-links > li { position: relative; padding-left: 40px; border-bottom: 2px solid rgba(255, 255, 255, 0.5); }

.menu-links { list-style: none; padding: 0; margin: 0; }
.menu-links > li { position: relative; padding-left: 40px; border-bottom: 2px solid rgba(255, 255, 255, 0.5); }

/* Main items get the white bar and dark background */
.menu-links > li.current-page { background: rgba(255, 255, 255, 0.15); }
.menu-links > li.current-page::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: #F1F1F1; }

.menu-links a, .menu-label { display: block; color: #FFF; text-decoration: none; font-size: 1.2rem; line-height: 3; }

.sub-menu { list-style: none; padding: 0; margin-bottom: 10px; }
.sub-menu li { position: relative; padding-left: 25px; border-bottom: 2px solid rgba(255, 255, 255, 0.3); }

/* Standard Diamond icon */
.sub-menu li::after {
    content: ''; position: absolute; left: 2px; top: 50%; transform: translateY(-50%) rotate(45deg);
    width: 6px; height: 6px; border: 1.5px solid rgba(255, 255, 255, 0.4);
}

/* 1. Active Product: Shift the whole block for the staircase look */
.sub-menu li.current-page { 
    background: rgba(255, 255, 255, 0.1); 
    padding-left: 55px; 
}

/* 2. Active Diamond: Thicker (2px), White (1.0 opacity), and shifted right */
.sub-menu li.current-page::after {
    border: 2px solid rgba(255, 255, 255, 1.0);
    left: 22px; 
}

/* Ensure no white bar from the parent logic appears here */
.sub-menu li.current-page::before { display: none; }

.sub-menu li:last-child { border-bottom: none; }
.sub-menu a { font-size: 1rem; color: #CCC; line-height: 2.5; margin-left: -5px; }

/* 3. Active Link Text: Full White and Bold */
.sub-menu li.current-page a { color: #FFF; font-weight: bold; }

/* --- Product Block Styling --- */
.product-info-block { background-color: #333; padding: 20px 15px; transition: background-color 0.3s ease; flex-grow: 1; }
.product-info-block h3 { color: #FFF; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 5px; }
.product-info-block p { color: #FAFAFA; font-size: 0.85rem; text-transform: uppercase; }
.product-card:hover .product-info-block { background-color: #4d4d4d; }

.view-details {
    display: block; color: #FFF; font-size: 0.75rem; font-weight: bold; text-transform: uppercase;
    margin-top: 15px; opacity: 0; transform: translateY(10px); transition: all 0.3s ease;
}
.product-card:hover .view-details { opacity: 1; transform: translateY(0); }

/* --- Product Page Specific Layout --- */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "visual info"; /* Single info area prevents the gap */
    gap: 0 60px; 
    padding: 80px 8% 80px 8%;
    background-color: #FFFFFF;
    align-items: start;
}

.product-visual-block { grid-area: visual; }
.product-info-column { grid-area: info; display: flex; flex-direction: column; }

/* Desktop: Title sits above Details naturally in the flex column */
.product-title-block { margin-bottom: 20px; }
.product-details-content { padding-top: 0; }

.title-1 { font-size: 3rem; color: #000; margin: 0 0 5px 0; text-transform: uppercase; line-height: 1.1; }
.title-2 { font-size: 1.35rem; color: #666; text-transform: uppercase; margin-bottom: 25px; }

.icon-row { display: flex; justify-content: flex-end; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid #DDD; }
.icon-row img { width: 32px; height: 32px; flex-shrink: 0; }

.product-description { color: #333; font-size: 1.25rem; line-height: 1.6; margin-bottom: 25px; }

.product-feature-list { list-style: none; padding: 0; }
.product-feature-list li {
    position: relative; padding-left: 40px; margin-bottom: 15px;
    color: #333; font-size: 1.25rem;
}
.product-feature-list li::before {
    content: ''; position: absolute; top: 6px; left: 10px; width: 10px; height: 10px;
    border: 2px solid #333; background: transparent; box-sizing: border-box;
}

/* --- MOBILE STACK FIX --- */
@media (max-width: 973px) {
    .product-detail-container { display: flex; flex-direction: column; padding-top: 80px; }
    
    /* Allow the column to behave like its original pieces for ordering */
    .product-info-column { display: contents; } 
    
    .product-title-block { order: 1; margin-bottom: 20px;width: 100%;  }
    .product-visual-block { order: 2; margin-bottom: 30px; }
    .product-details-content { order: 3; }
    
}

/* --- Scoped Visual Engine (Zoom) --- */
.ppg-main-image {
    width: 100%; border: 2px solid #333; margin-bottom: 15px;
    overflow: hidden; cursor: zoom-in; background-color: #fff;
}
.ppg-main-image img {
    width: 100%; height: auto; display: block;
    transition: transform 0.3s ease; backface-visibility: hidden;
}

.ppg-thumbnail-carousel { display: flex; flex-wrap: wrap; gap: 12px; }
.ppg-thumb {
    width: 80px; height: 80px; border: 1px solid #333;
    cursor: pointer; overflow: hidden; opacity: 0.6; transition: 0.3s;
}
.ppg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppg-thumb:hover, .ppg-thumb.active { opacity: 1; border: 2px solid #111; }

/* --- Lightbox Overlay & Swipe Engine --- */
#ppg-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); display: none; z-index: 9999;
    align-items: center; justify-content: center;
    touch-action: none; 
}

#ppg-lightbox.visible { display: flex; }

#ppg-lightbox img { 
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* --- Added PPG Lightbox UI Elements --- */
#ppg-lightbox .lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
}

#ppg-lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 10001;
    transition: color 0.3s;
}

#ppg-lightbox .lb-nav:hover { color: #fff; }
#ppg-lightbox .lb-prev { left: 10px; }
#ppg-lightbox .lb-next { right: 10px; }

@media (max-width: 973px) {
    #ppg-lightbox .lb-nav { font-size: 40px; }
    #ppg-lightbox .lb-close { top: 10px; right: 20px; }
}

.lb-close { 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    color: #fff; 
    font-size: 40px; 
    cursor: pointer; 
    z-index: 10000;
}

/* Carousel Container */
.row-carousel {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    margin-top: -40px;
}

.carousel-window {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    flex: 0 0 25%; /* 4 images on desktop (> 973px) */
    padding: 0 10px;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

/* Carousel Mobile: 3 images */
@media (max-width: 973px) {
    .carousel-slide {
        flex: 0 0 33.333%;
    }
}

/* --- New Contact Section Layout --- */
.contact-split-container {
    display: flex;
    flex-direction: column;
    background: #444; 
    border-radius: 4px;
    overflow: hidden;
    min-height: 100%;
}

.contact-group {
    flex: 1; /* Forces both boxes to be exactly 50% height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically in the half */
    align-items: center;     /* Centers content horizontally */
    padding: 30px 20px;
    text-align: center;
    gap: 20px; /* Fixes spacing between button and text */
}

/* Border separation between the two halves */
.contact-group:first-child {
    border-bottom: 1px solid #555;
}

/* Unified Button Style */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 280px; 
    padding: 16px 30px;
    border-radius: 6px; 
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
}

.contact-btn:active { transform: scale(0.98); }

.btn-blue {
    background: #007BFF;
    color: #FFF;
}
.btn-blue:hover { background: #0056b3; }

.btn-orange {
    background: #FF8C00;
    color: #FFF;
}
.btn-orange:hover { background: #e67e00; }

/* Desaturated 'Coming Soon' state */
.btn-norange {
    background: #666;      /* Muted mid-grey */
    color: #444;           /* Off-white to reduce contrast */
    cursor: default;       /* Optional: changes pointer to let them know it's inactive */
    pointer-events: none;  /* Optional: prevents clicks if you want it totally disabled */
}

.btn-norange:hover { 
    background: #555;      /* Subtle darken on hover if pointer-events are still active */
}

/* Headings inside the dark container */
.contact-split-container .title-2 {
    color: #FFF !important;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 973px) {
    .contact-group {
        padding: 50px 20px;
    }
    .contact-btn {
        width: 100%;
        max-width: 300px;
    }
}