/* FACTORAHUB — MASTER PRODUCTION BUILD // IVORY BUREAU EDITION */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --gold: #d4af37;
    --gold-vibrant: #f0c84a;
    --black: #000000;
    --charcoal: #1a1a1a;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --light-gray: #f8f9fa;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --border-light: #eeeeee;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: var(--white);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .animate-infinite-scroll { animation: none !important; }
    * { scroll-behavior: auto !important; }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--gold);
}

/* --- NAVIGATION REPAIR --- */
header a {
    transition: color 0.3s ease;
}

header input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* --- LUXURY BUTTON --- */
.gold-btn {
    background: var(--gold);
    color: var(--charcoal);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 2rem;
    border: 1px solid var(--gold);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    cursor: pointer;
}

.gold-btn:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* --- GRADIENT UTILITY --- */
.gold-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f7e6ad 50%, #b8962e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 4rem 0;
    opacity: 0.3;
}

/* --- POST CARDS (IVORY LUXURY) --- */
.post-card-luxury {
    border: 1px solid var(--border-light);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    color: var(--charcoal);
}

.post-card-luxury .post-title {
    color: var(--gold);
    transition: color 0.4s ease;
}

.post-card-luxury .post-meta {
    color: var(--text-muted);
}

.post-card-luxury:hover {
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.12), 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-6px);
    border-color: var(--gold);
    background: #ffffff;
}

.post-card-luxury:hover .post-title {
    color: var(--gold);
}

.post-card-luxury:hover .post-meta {
    color: var(--text-muted);
}

.post-card-img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--off-white);
}

.post-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.post-card-luxury:hover .post-card-img-wrap img {
    transform: scale(1.05);
}


/* --- IMAGE SCALING FIX --- */
img {
    max-width: 100%;
    height: auto;
}

.article-body img {
    max-height: 550px;
    object-fit: cover;
    width: 100%;
}

/* --- UTILITIES --- */
.prose-editorial {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.8;
}

/* --- ANIMATIONS --- */
@keyframes fadeZoom {
    0% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-fade-zoom { animation: fadeZoom 3s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-infinite-scroll { animation: infiniteScroll 60s linear infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- CINEMATIC LUXURY LOADER --- */
#fh-cinematic-loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #030712;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(0);
}
#fh-cinematic-loader.slide-up {
    transform: translateY(-100vh);
}
.fh-loader-stage {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

/* Skip Button */
.fh-skip-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    padding: 8px 24px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
    z-index: 10;
}
.fh-skip-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

/* --- FOOTER OVERRIDES --- */
footer a:hover {
    color: var(--gold) !important;
}

/* --- MOBILE COMPACT PREMIUM MAGAZINE SCALING --- */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .gold-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 11px !important;
        width: 100%;
        text-align: center;
    }
    
    .py-24 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .mb-32 {
        margin-bottom: 4rem !important;
    }
    
    .gap-16 {
        gap: 2.5rem !important;
    }

    .post-card-luxury {
        padding: 0.5rem;
        border-radius: 12px;
    }

    .post-card-img-wrap {
        border-radius: 8px;
    }
}

/* --- RESPONSIVE STABILITY PROTOCOL --- */
@media (max-width: 1023px) {
    section[style*="600px"] { 
        height: auto !important; 
        max-height: none !important; 
        min-height: 500px;
    }
    .kinetic-orbit-node { 
        transform: translate(-50%, -50%) scale(0.7) !important; 
    }
}
