/* ---------------------------------------------------
 * Nova Styles Interiors — Premium CSS Design System
 * --------------------------------------------------- */

/* Design Tokens & Variables */
:root {
    --bg-primary: #F8F3EC;
    --bg-secondary: #F4EEE6;
    --bg-dark: #0A0A0A;
    --text-primary: #1E1B18;
    --text-secondary: #5A544C;
    --text-light: #A49B8F;
    --text-dark-bg: #EAE3D8;
    --color-terracotta: #C78345;
    --color-sage: #8FA08E;
    --color-divider: #E2DCD3;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Rules */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-dark); /* Fallback */
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 1. Animated Atmospheric Backgrounds */

/* Floating Organic Grain Layer */
.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.025; /* 2.5% opacity for ultra-subtle texture */
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    animation: grain-drift 30s linear infinite;
}

@keyframes grain-drift {
    0% { transform: translate3d(0%, 0%, 0); }
    25% { transform: translate3d(-2.5%, -5%, 0); }
    50% { transform: translate3d(-5%, -2.5%, 0); }
    75% { transform: translate3d(-2.5%, 0%, 0); }
    100% { transform: translate3d(0%, 0%, 0); }
}

/* Soft warm blur back glow to make page feel live */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 160, 142, 0.08) 0%, rgba(248, 243, 236, 0) 70%);
    top: 10%;
    right: -10%;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

/* 2. Header / Brand Mark styles */
.brand-header {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 3.5rem 5% 1.5rem 5%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0; /* Handled by GSAP intro timeline */
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    letter-spacing: 0.35em;
    font-weight: 300;
    transition: var(--transition-fast);
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: var(--font-sans);
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    letter-spacing: 0.6em;
}

.logo-link:hover .logo-main {
    color: var(--color-terracotta);
}

.logo-link:hover .logo-sub {
    color: var(--text-primary);
}

/* 3. Layout Grid & Structure */
.page-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    padding: 2rem 5% 4rem 5%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    align-items: center;
}

/* Hero Content Details Column */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(199, 131, 69, 0.07);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(199, 131, 69, 0.15);
    margin-bottom: 2.2rem;
    opacity: 0;
    transform: translateY(15px);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-terracotta);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

.status-text {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-terracotta);
}

@keyframes dot-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.4;
        box-shadow: 0 0 0 0 rgba(199, 131, 69, 0.4);
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 8px 2px rgba(199, 131, 69, 0.2);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.4;
        box-shadow: 0 0 0 0 rgba(199, 131, 69, 0);
    }
}

/* Staggered Serif Heading */
.main-heading {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 4.8vw, 5.4rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.heading-line {
    display: block;
    overflow: hidden;
    position: relative;
    height: 1.25em;
    margin-bottom: -0.15em;
}

.line-inner {
    display: inline-block;
    will-change: transform, opacity, filter;
    transform: translateY(100%);
    opacity: 0;
}

/* Descriptive Editorial Subtext */
.hero-subtext {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(24px);
}





/* 6. Architectural Illustration Scene */
.illustration-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.svg-container {
    width: 100%;
    max-width: 650px;
    background: transparent;
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    opacity: 0; /* GSAP reveals */
    transform: scale(0.98);
}

/* SVG Line Art Styling rules */
#interior-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Style for structural outlines (Thin black line art) */
.line-draw {
    stroke: var(--text-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.background-detail {
    stroke: var(--text-light);
    opacity: 0.65;
}

/* Sage Accent Highlight styling */
.sage-accent-glow {
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), fill 1.8s ease;
    filter: url(#soft-glow);
}




/* 8. Responsive Breakpoints & Refinements */

@media (max-width: 1100px) {
    .page-container {
        grid-template-columns: 1fr;
        gap: 5rem;
        padding-top: 1rem;
        padding-bottom: 5rem;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .status-badge {
        justify-content: center;
    }
    
    .hero-subtext {
        max-width: 650px;
    }
    

    
    .svg-container {
        max-width: 520px;
    }
}

@media (max-width: 680px) {
    .brand-header {
        padding: 2.5rem 5% 1rem 5%;
        justify-content: center;
    }
    
    .logo-main {
        font-size: 1.25rem;
    }
    
    .logo-sub {
        font-size: 0.58rem;
    }
    
    .main-heading {
        font-size: clamp(2.2rem, 8vw, 3.4rem);
    }
    
    .heading-line {
        height: auto; /* Allow auto heights on small devices to prevent wrapping limits */
        overflow: visible;
        margin-bottom: 0.2rem;
    }
    
    .line-inner {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
    

    
}
