/*
Theme Name: Lumina Frame
Theme URI: https://youragency.com/lumina-frame
Author: Your Agency
Author URI: https://youragency.com
Description: A premium, minimalist canvas designed specifically for the Nyumbani Lumina Pro photography engine.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: lumina-frame
*/

/* ==========================================================================
   1. Base Variables & Typography
   ========================================================================== */
:root {
    --lumina-bg-color: #0a0a0a;
    --lumina-text-color: #ffffff;
    --lumina-accent-color: #888888;
    
    /* UPGRADED: High-End Editorial Font Pairing */
    --lumina-font-primary: 'Montserrat', sans-serif;
    --lumina-font-headings: 'Cormorant Garamond', serif;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--lumina-bg-color);
    color: var(--lumina-text-color);
    /* Set body text to the clean geometric sans-serif */
    font-family: var(--lumina-font-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Force all structural text to use the luxury serif font */
h1, h2, h3, h4, h5, h6, 
.lumina-text-logo, 
.lumina-nav a {
    font-family: var(--lumina-font-headings);
    font-weight: 300;
}

/* ==========================================================================
   2. Core Layout
   ========================================================================== */
.lumina-site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.lumina-site-content {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0.2rem;
}

/* ==========================================================================
   3. Transparent Full-Screen Header Overlay
   ========================================================================== */
.lumina-site-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 4rem; 
    box-sizing: border-box;
    background-color: transparent; 
    border: none;
    z-index: 9990; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; /* Let clicks pass through the empty header space */
}

/* ==========================================================================
   4. Auto-Scaling Logo
   ========================================================================== */
.lumina-logo-wrapper {
    display: flex;
    align-items: center;
    max-width: 40vw; 
    pointer-events: auto; /* Re-enable clicks specifically for the logo */
}

.lumina-logo {
    display: flex;
    align-items: center;
}

.lumina-logo a.custom-logo-link {
    display: block;
    line-height: 0; 
}

.lumina-logo img.custom-logo {
    width: 100%;
    height: auto;
    max-height: 50px; 
    object-fit: contain;
    object-position: left center;
    transition: transform 0.3s ease;
}

.lumina-logo img.custom-logo:hover {
    transform: scale(1.02);
}

.lumina-logo a.lumina-text-logo {
    color: var(--lumina-text-color);
    text-decoration: none;
    font-size: clamp(1.2rem, 2vw, 1.8rem); /* Fluid typography */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   5. Off-Canvas Sliding Navigation Menu
   ========================================================================== */

/* The Floating Push Button */
.lumina-menu-toggle {
    position: fixed;
    top: 2.5rem;
    right: 4rem;
    z-index: 9999; 
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #111; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto; /* Ensure button is clickable */
}

.lumina-hamburger-line {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Button ACTIVE State: Bright Color & 'X' Morph */
.lumina-menu-toggle.is-active {
    background: #fff; 
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.lumina-menu-toggle.is-active .lumina-hamburger-line {
    background: #000; 
}

.lumina-menu-toggle.is-active .lumina-hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.lumina-menu-toggle.is-active .lumina-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.lumina-menu-toggle.is-active .lumina-hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* The Sidebar Panel */
.lumina-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px; 
    max-width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98); 
    backdrop-filter: blur(15px); 
    z-index: 9998; 
    transform: translateX(100%); 
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1); 
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center; 
    padding: 4rem;
    pointer-events: auto; /* Re-enable clicks inside the menu */
}

.lumina-nav.is-active {
    transform: translateX(0);
}

.lumina-nav-inner {
    width: 100%;
}

.lumina-nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem; 
    padding: 0;
    margin: 0;
    list-style: none;
}

.lumina-nav a {
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.lumina-nav a:hover {
    color: var(--lumina-accent-color);
    padding-left: 10px; 
}

/* ==========================================================================
   6. Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .lumina-site-header {
        padding: 1.5rem; 
    }
    .lumina-logo img.custom-logo {
        max-height: 40px; 
    }
    .lumina-logo-wrapper {
        max-width: 65vw; 
    }
    .lumina-menu-toggle {
        top: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    .lumina-nav {
        width: 100vw; 
        padding: 2rem;
    }
    .lumina-nav a {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Premium Front Page Layouts
   ========================================================================== */

/* --- 1. Cinematic Immersive --- */
.lumina-cinematic-wrapper {
	position: relative; width: 100vw; height: 100vh; overflow: hidden; margin-top: -100px;
}
.lumina-cinematic-slide {
	position: absolute; top:0; left:0; width: 100%; height: 100%; 
	background-position: center; background-size: cover; background-repeat: no-repeat;
	opacity: 0; transition: opacity 2s ease; z-index: 1;
}
.lumina-cinematic-slide.is-active { opacity: 1; }
.lumina-cinematic-slide.fallback-bg { background-color: #111; }
.lumina-cinematic-overlay {
	position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 2; 
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.lumina-cinematic-title {
	font-family: var(--lumina-font-headings); font-size: clamp(3rem, 8vw, 5rem); color: #fff; 
	font-weight: 300; letter-spacing: 5px; margin-bottom: 1rem; animation: luminaFadeInUp 1.5s ease;
}
.lumina-cinematic-subtitle {
	color: var(--lumina-accent-color); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 3rem;
}
.blur-btn { backdrop-filter: blur(10px); }

/* --- 2. Editorial Vogue --- */
.lumina-editorial-wrapper {
	padding: 10rem 5% 5rem; max-width: 1600px; margin: 0 auto;
}
.lumina-editorial-header { text-align: center; margin-bottom: 5rem; }
.lumina-editorial-title {
	font-family: var(--lumina-font-headings); font-size: clamp(2.5rem, 5vw, 3.5rem); 
	font-weight: 300; color: #fff; font-style: italic;
}
.lumina-editorial-grid {
	display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center;
}
.lumina-editorial-item { position: relative; overflow: hidden; }
/* Grid Staggering */
.grid-pos-1 { grid-column: 1 / 8; }
.grid-pos-2 { grid-column: 9 / 13; transform: translateY(50px); }
.grid-pos-3 { grid-column: 2 / 6; }
.grid-pos-4 { grid-column: 7 / 13; transform: translateY(50px); }

.lumina-editorial-link { text-decoration: none; color: inherit; display: block; }
.lumina-editorial-figure { margin: 0; padding: 0; }
.lumina-editorial-img { 
	width: 100%; height: auto; display: block; filter: grayscale(20%); transition: filter 0.5s ease; 
}
.lumina-editorial-item:hover .lumina-editorial-img { filter: grayscale(0%); }
.lumina-editorial-meta { padding: 1.5rem 0; }
.lumina-editorial-post-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; }

/* Responsive adjustments for Editorial Grid */
@media (max-width: 900px) {
	.grid-pos-1, .grid-pos-2, .grid-pos-3, .grid-pos-4 { grid-column: 1 / -1; transform: translateY(0); }
}

/* --- 3. Minimalist Split --- */
.lumina-split-wrapper { display: flex; min-height: 100vh; margin-top: -100px; flex-wrap: wrap; }
.lumina-split-left {
	flex: 1 1 500px; display: flex; flex-direction: column; justify-content: center; 
	padding: 5rem; background-color: var(--lumina-bg-color); border-right: 1px solid rgba(255,255,255,0.05);
}
.lumina-split-title {
	font-family: var(--lumina-font-headings); font-size: clamp(3rem, 5vw, 6rem); 
	font-weight: 300; line-height: 1.1; margin-bottom: 2rem;
}
.lumina-italic-accent { color: var(--lumina-accent-color); font-style: italic; }
.lumina-split-desc { max-width: 400px; font-size: 1.1rem; color: #aaa; margin-bottom: 4rem; }
.lumina-split-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.lumina-split-link {
	color: #fff; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; 
	text-decoration: none; border-bottom: 1px solid #fff; padding-bottom: 5px; transition: color 0.3s;
}
.lumina-split-link:hover { color: var(--lumina-accent-color); border-color: var(--lumina-accent-color); }
.lumina-split-right {
	flex: 1 1 500px; 
	position: relative; 
	overflow: hidden; /* Crucial: keeps the slightly zoomed images inside the box */
	background-color: var(--lumina-bg-color); 
}
/* The Individual Carousel Slides */
.lumina-split-slide {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	z-index: 1;
	/* The Premium Effect: A 2-second fade paired with a 6-second slow zoom */
	transform: scale(1.05);
	transition: opacity 2s ease-in-out, transform 6s ease-out;
}

.lumina-split-slide.is-active {
	opacity: 1;
	transform: scale(1); /* Settles nicely into place */
	z-index: 2;
}

.lumina-split-gradient {
	position: absolute; 
	inset: 0; 
	background: linear-gradient(to right, var(--lumina-bg-color) 0%, transparent 15%);
	z-index: 3; /* Keeps the gradient overlay smoothly on top of the changing slides */
	pointer-events: none; /* Allows right-clicking to save images if desired */
}

/* --- Mobile: Premium Full-Screen Overlay (No Scroll) --- */
@media (max-width: 1024px) {
	.lumina-split-wrapper { 
		display: block; 
		height: 100vh; /* Locks the layout to exactly one screen height */
        height: 100dvh; /* Uses dynamic viewport height for modern mobile browsers */
		position: relative; 
		overflow: hidden; 
        margin-top: -80px; /* Adjusts for your header */
	}

	.lumina-split-right { 
		position: absolute; 
		inset: 0; 
		width: 100%; 
		height: 100%; 
	}

	.lumina-split-left {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		background-color: transparent; /* Removes the solid background */
		border: none;
		padding: 2rem;
		padding-bottom: 6rem; /* Keeps buttons above the mobile safari swipe bar */
		justify-content: flex-end; /* Pushes all text to the bottom elegantly */
		z-index: 10;
        pointer-events: none; /* Allows clicks to pass through the empty space */
	}

    .lumina-split-title, 
    .lumina-split-desc, 
    .lumina-split-actions {
        pointer-events: auto; /* Re-enables clicking on the actual text/buttons */
    }

	.lumina-split-title {
		font-size: clamp(2.5rem, 10vw, 4rem); /* Scales perfectly on any phone */
		margin-bottom: 1rem;
	}

	.lumina-split-desc {
		font-size: 1rem;
		margin-bottom: 2rem;
		color: #fff;
	}

	/* Creates a smooth shadow rising from the bottom so text is always readable */
	.lumina-split-gradient { 
		background: linear-gradient(to top, var(--lumina-bg-color) 0%, rgba(10,10,10,0.6) 40%, transparent 100%); 
	}
    
    .lumina-split-actions {
        flex-direction: column; /* Stacks buttons on mobile */
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ==========================================================================
   5. Home Page True Full-Screen Lock (100dvh - No Scrolling)
   ========================================================================== */

/* 1. Lock the body height to exact device viewport */
body.home {
    height: 100dvh; 
    overflow: hidden !important; 
}

/* 2. Main site wrapper becomes a relative boundary, not a flex column */
body.home .lumina-site-wrapper {
    display: block; 
    height: 100%;
    width: 100%;
    position: relative;
}

/* 3. Float the Header perfectly over the layout */
body.home .lumina-site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: transparent; /* Removes background to show images */
    border: none;
}

/* 4. Float the Footer perfectly over the bottom */
body.home .lumina-site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: transparent;
    border-top: none !important; 
    padding: 1rem 2rem; /* Slimmer padding for a cleaner look */
}

/* 5. The Content now spans the absolute full height of the screen */
body.home .lumina-split-wrapper {
    height: 100dvh; 
    margin-top: 0 !important; 
    display: flex;
}

/* Adjust the left side to account for the floating header/footer */
body.home .lumina-split-left {
    padding-top: 10rem; /* Pushes text down so it doesn't collide with the logo */
    padding-bottom: 5rem; /* Keeps text above the footer */
}

/* 6. Mobile Adjustments for Split Layout & Flex Lock */
@media (max-width: 1024px) {
    body.home .lumina-split-wrapper {
        display: block; 
        position: relative;
        height: 100%; 
    }
    
    .lumina-split-right { 
        position: absolute; 
        inset: 0; 
        width: 100%; 
        height: 100%; 
        padding: 0 !important; /* Forces 0px padding */
        margin: 0 !important;
    }

    .lumina-split-left {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-color: transparent; 
        border: none;
        padding: 2rem;
        padding-bottom: 5rem; /* Leaves room for footer */
        justify-content: flex-end; 
        z-index: 10;
        pointer-events: none; 
    }

    .lumina-split-title, 
    .lumina-split-desc, 
    .lumina-split-actions {
        pointer-events: auto; 
    }

    .lumina-split-title {
        font-size: clamp(2.5rem, 10vw, 4rem); 
        margin-bottom: 1rem;
    }

    .lumina-split-desc {
        color: #fff;
    }

    .lumina-split-gradient { 
        background: linear-gradient(to top, var(--lumina-bg-color) 0%, rgba(10,10,10,0.6) 40%, transparent 100%); 
    }
    
    .lumina-split-actions {
        flex-direction: column; 
        align-items: flex-start;
        gap: 1rem;
    }
}