/* 
Fragnex V2 - Robust Advanced Layouts 
*/

:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #c9a55c;
    /* Muted Gold */
    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

/* ================= Reset & Base ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: auto;
    /* Fallback cursor */
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= Typography ================= */
h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1;
}

.t-mega {
    font-size: clamp(3rem, 12vw, 15rem);
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.t-h1 {
    font-size: clamp(2rem, 8vw, 6rem);
}

.t-h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent-color);
}

.t-body-lg {
    font-size: 1.25rem;
    font-weight: 200;
    line-height: 1.5;
}

/* ================= Layout Utilities ================= */
.container {
    padding: 0 5vw;
    max-width: 1600px;
    margin: 0 auto;
}

.full-height {
    min-height: 100vh;
    width: 100%;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.absolute-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.relative {
    position: relative;
}

.text-center {
    text-align: center;
}

/* ================= Header (Minimal Overlay) ================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    mix-blend-mode: difference;
    pointer-events: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-header * {
    pointer-events: auto;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* ================= HERO ================= */
.hero-section {
    overflow: hidden;
    position: relative;
}

/* ================= HORIZONTAL PIN SECTION (Native CSS Scroll Snap) ================= */
/* Replaces GSAP Pinning for reliability */
.pin-wrap-container {
    width: 100%;
    overflow-x: auto;
    /* Enable native horizontal scroll */
    overflow-y: hidden;
    white-space: nowrap;
    /* Force panels inline */
    height: 90vh;
    display: flex;
    align-items: center;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: #0a0a0a;
    padding: 0 5vw 2rem 5vw;
    /* Scrollbar space */
}

/* Hide Scrollbar */
.pin-wrap-container::-webkit-scrollbar {
    height: 4px;
    background: #222;
}

.pin-wrap-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
}

.pin-panel {
    display: inline-flex;
    vertical-align: top;
    width: 80vw;
    height: 70vh;
    margin-right: 5vw;
    background: #111;
    border: 1px solid #333;
    position: relative;
    scroll-snap-align: center;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    white-space: normal;
    /* Reset text wrap inside panel */
}

.intro-panel {
    width: 40vw;
    background: transparent;
    border: none;
}

.product-panel .panel-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-panel .panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
}

.product-panel:hover .panel-img {
    opacity: 1;
}

.product-panel .t-h2 {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    pointer-events: none;
}

.btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-weight: 700;
    z-index: 10;
}

/* ================= FEATURED SECTION ================= */
.featured-section {
    padding: 10vh 0;
}

.featured-wrapper {
    align-items: center;
}

.float-text {
    font-size: 8rem;
    opacity: 0.1;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
}

/* ================= SALES TICKER ================= */
.marquee-fast {
    animation: marquee 15s linear infinite;
    white-space: nowrap;
    opacity: 0.5;
    color: transparent;
    -webkit-text-stroke: 1px #000;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.btn-black-pill {
    padding: 1rem 3rem;
    background: #000;
    color: var(--accent-color);
    border-radius: 50px;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-black-pill:hover {
    background: transparent;
    border-color: #000;
    color: #000;
}

/* ================= JOURNAL ================= */
.journal-item {
    display: block;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.journal-item:hover {
    padding-left: 2rem;
}

.journal-title {
    transition: 0.3s;
}

.journal-item:hover .journal-title {
    color: var(--accent-color);
}

.journal-bg-layer {
    position: fixed;
    /* Fixed background change logic handled by JS, CSS fallback: do nothing */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    background-size: cover;
    background-position: center;
}

/* ================= FOOTER ================= */
.site-footer {
    background-color: #050505;
    border-top: 1px solid #222;
    padding-top: 5rem;
    margin-top: 5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-column p,
.footer-column li {
    font-size: 1rem;
    line-height: 1.8;
    color: #888;
    margin-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
}

.site-info {
    border-top: 1px solid #111;
    padding: 2rem 0;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}