/* ==========================================================================
   ARCHIVE Q - UNIFIED STYLESHEET
   ========================================================================== */

/* --- Brand Color Palette --- */
:root {
    --void: #0C0A14;
    --umbra: #030307; 
    --lucidity: #F2F0EB;
    --alba: #EFEFEF;
    --stasis: #565A5E;
    --ontos: #4C2570;
    --telos: #100033;
}

/* --- Base & Typography --- */
body {
    font-family: 'EB Garamond', serif;
    margin: 0;
    padding: 0;
    padding-bottom: 80px; 
    background-color: var(--lucidity);
    color: var(--umbra);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display SC', serif;
    color: var(--telos);
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    height: 60px;
    background: linear-gradient(to right, var(--void), var(--telos));
    padding: 5px 20px;
    color: var(--lucidity);
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--ontos);
}

.header-logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-logo-container img {
    max-height: 50px;
    width: auto;
}

.header-title-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.header-title {
    margin: 0;
    font-weight: bold;
    font-size: 32px;
    color: var(--lucidity);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    font-family: monospace;
}

.main-nav a {
    color: var(--lucidity);
    margin-left: 25px;
}

.main-nav a:hover {
    color: var(--ontos);
}

/* --- Sub-Navigation (Apparel) --- */
.sub-nav {
    background-color: var(--void);
    border-bottom: 1px solid var(--stasis);
    padding: 10px 20px;
}

.sub-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    font-size: 13px;
    font-family: monospace;
}

.sub-nav-label {
    color: var(--stasis);
    font-weight: bold;
    text-transform: uppercase;
}

.sub-nav-link {
    color: var(--lucidity);
    border-bottom: 1px dashed var(--ontos);
    padding-bottom: 2px;
}

/* --- Footer --- */
.site-footer {
    font-family: monospace;
    background-color: var(--umbra);
    color: var(--lucidity);
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1000;
    font-size: 14px;
    border-top: 1px solid var(--ontos);
}

/* --- Layouts & Grids --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 55px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.grid-sidebar-right {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .grid-sidebar-right {
        grid-template-columns: 1fr;
    }
}

/* --- Cards & Elements --- */
.card {
    background: var(--alba);
    border: 1px solid var(--stasis);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--ontos);
    box-shadow: 0 10px 20px rgba(76, 37, 112, 0.15);
}

.card img, .card video {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.card-title {
    font-size: 18px;
    text-align: center;
    margin: 15px 0 10px 0;
}

.card-text {
    font-size: 15px;
    text-align: center;
    color: #444;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* --- Buttons --- */
.btn-action {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--telos);
    color: var(--lucidity);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.btn-action:hover, .card:hover .btn-action {
    background-color: var(--ontos);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh;
    background: linear-gradient(145deg, var(--void), var(--telos));
    color: var(--lucidity);
    text-align: center;
    padding: 20px;
    border-bottom: 3px solid var(--ontos);
}

.hero-section h1 {
    color: var(--lucidity);
    font-size: 4em;
    margin: 0;
}

/* --- Featured Activities (Projects) --- */
.featured-activity {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, var(--alba), var(--lucidity));
    border: 2px solid var(--telos);
    position: relative;
    overflow: hidden;
}

.featured-activity:hover {
    border-color: var(--ontos);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--ontos);
    color: var(--lucidity);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 2px;
    font-family: monospace;
}

/* --- Genesis Dossier & Motif Sliders --- */
.slide-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--void);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.dossier-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--lucidity);
    padding: 20px;
    text-align: center;
}

#m-slide1:checked ~ .slide-container #ms1,
#m-slide2:checked ~ .slide-container #ms2,
#m-slide3:checked ~ .slide-container #ms3,
#m-slide4:checked ~ .slide-container #ms4,
#m-slide5:checked ~ .slide-container #ms5 {
    opacity: 1;
    z-index: 2;
}

.slide-nav {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.slide-label {
    flex: 1;
    min-width: 80px;
    background: var(--alba);
    color: var(--umbra);
    padding: 12px;
    text-align: center;
    border: 1px solid var(--stasis);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    font-family: monospace;
    transition: all 0.3s ease;
}

.slide-label:hover {
    background: var(--ontos);
    color: var(--lucidity);
}

input[type="radio"] {
    display: none;
}

#m-slide1:checked ~ .slide-nav [for="m-slide1"],
#m-slide2:checked ~ .slide-nav [for="m-slide2"],
#m-slide3:checked ~ .slide-nav [for="m-slide3"],
#m-slide4:checked ~ .slide-nav [for="m-slide4"],
#m-slide5:checked ~ .slide-nav [for="m-slide5"] {
    background: var(--telos);
    color: var(--lucidity);
    border-color: var(--telos);
}

/* --- Infinite Moving Pattern Marquee --- */
.marquee-banner {
    height: 120px; 
    background-image: url('../images/ALTISSIMUS_Pattern1_5332v21.jpg'); 
    background-repeat: repeat-x; 
    background-size: contain; 
    background-position: 0 center; 
    border-bottom: 3px solid var(--telos); 
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    animation: marqueeMove 25s linear infinite;
}

@keyframes marqueeMove {
    0% { background-position-x: 0; }
    100% { background-position-x: -1000px; }
}

/* ==========================================================================
   APPAREL THEME OVERRIDES (Dark Mode)
   ========================================================================== */
body.apparel-theme {
    background-color: var(--void); 
    color: var(--lucidity);
}

body.apparel-theme h1,
body.apparel-theme h2 {
    color: var(--lucidity);
}

 
body.apparel-theme h3 {
    color: var(--ontos);
}

body.apparel-theme .card {
    background-color: var(--lucidity);
    border-color: var(--ontos);
    border-width: 7px;
    color: var(--void);
}

body.apparel-theme .card-text {
    color: var(--void);
}

body.apparel-theme .slide-label {
    background: var(--void);
    color: var(--lucidity);
}

body.apparel-theme .slide-label:hover {
    background: var(--ontos);
}