/* ==========================================================================
   1. Japandi Theme Variables & Base
   ========================================================================== */
:root {
    --bg-sand: #F7F5F0;      /* Calming off-white/sand */
    --text-charcoal: #2C2C2A; /* Soft black for readability */
    --accent-taupe: #9D968A;  /* Natural wood/taupe tone */
    --white-soft: #FCFBFA;
    
    --font-modern: 'Outfit', sans-serif;
    --font-elegant: 'Cormorant', serif;
    
    --radius-pill: 50px;
    --radius-arch: 200px 200px 8px 8px; /* The classic Arch shape */
    --radius-soft: 16px;
    
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-sand);
    color: var(--text-charcoal);
    font-family: var(--font-modern);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   2. The Floating Nav Pill
   ========================================================================== */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding-top: 1.5rem;
    transition: var(--transition);
}

.floating-header.scrolled {
    padding-top: 1rem;
}

.nav-pill {
    background: rgba(252, 251, 250, 0.85);
    backdrop-filter: blur(12px);
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.studio-logo {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-charcoal);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

.nav-menu a:hover {
    color: var(--text-charcoal);
}

.btn-nav {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    background-color: var(--text-charcoal);
    color: var(--white-soft);
}

.btn-nav:hover {
    background-color: var(--accent-taupe);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-family: var(--font-modern);
    font-size: 0.9rem;
    cursor: pointer;
}

/* ==========================================================================
   3. Hero Section (Split Organic Flow)
   ========================================================================== */
.hero-japandi {
    padding-top: 12rem;
    padding-bottom: 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-taupe);
    display: block;
    margin-bottom: 1.5rem;
}

.hero-text-area h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text-area h1 em {
    font-family: var(--font-elegant);
    color: var(--accent-taupe);
}

.hero-text-area p {
    font-size: 1.1rem;
    color: #666;
    max-width: 400px;
    margin-bottom: 2.5rem;
}

.btn-primary-soft {
    display: inline-block;
    background-color: var(--text-charcoal);
    color: var(--white-soft);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary-soft:hover {
    background-color: var(--accent-taupe);
    transform: translateY(-3px);
}

/* The Beautiful Arch */
.hero-image-area {
    display: flex;
    justify-content: flex-end;
}

.arch-frame {
    width: 85%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-arch);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* ==========================================================================
   4. Statement Section (Deep Breath)
   ========================================================================== */
.statement-section {
    padding: 8rem 0;
    text-align: center;
}

.statement-container {
    max-width: 800px;
}

.serif-statement {
    font-family: var(--font-elegant);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-charcoal);
    line-height: 1.3;
}

/* ==========================================================================
   5. The Approach (Flowing Process)
   ========================================================================== */
.process-section {
    padding: 6rem 0;
}

.section-title-soft {
    margin-bottom: 4rem;
}

.section-title-soft h2 {
    font-size: 2.5rem;
    font-weight: 400;
}

.section-title-soft p {
    color: var(--accent-taupe);
    font-size: 1.1rem;
}

.process-flex {
    display: flex;
    gap: 3rem;
}

.process-step {
    flex: 1;
    background-color: var(--white-soft);
    padding: 3rem 2rem;
    border-radius: var(--radius-soft);
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--accent-taupe);
    margin-bottom: 1.5rem;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.process-step p {
    color: #666;
    font-size: 0.95rem;
}

/* ==========================================================================
   6. Architect Profile Section (Japandi Style)
   ========================================================================== */
.architect-section {
    padding: 10rem 0;
    background-color: var(--white-soft); /* Fixed variable */
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.profile-arch-frame {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-arch); 
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(157, 150, 138, 0.1);
}

.profile-info .tagline {
    margin-bottom: 0.5rem;
}

.profile-info h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.profile-quote {
    font-family: var(--font-elegant); /* Fixed variable */
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--accent-taupe); /* Fixed variable */
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-taupe); /* Fixed variable */
}

.profile-bio {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 500px;
}

.profile-awards {
    display: flex;
    gap: 1.5rem;
}

.award {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    border: 1px solid #E5E0D8;
    border-radius: var(--radius-pill);
    color: var(--accent-taupe); /* Fixed variable */
}

/* ==========================================================================
   7. Spaces Showcase
   ========================================================================== */
.spaces-showcase {
    padding: 6rem 0;
}

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.space-card {
    display: block;
}

.space-image {
    width: 100%;
    height: 65vh;
    border-radius: var(--radius-soft);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.space-image img {
    transition: transform 1.5s ease;
}

.space-card:hover .space-image img {
    transform: scale(1.03);
}

.space-info h3 {
    font-size: 1.8rem;
    font-weight: 400;
}

.space-info p {
    color: var(--accent-taupe);
    font-size: 1rem;
}

.view-more-action {
    margin-top: 5rem;
    text-align: center;
}

.btn-outline-soft {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent-taupe);
    border-radius: var(--radius-pill);
    color: var(--text-charcoal);
    font-size: 0.95rem;
}

.btn-outline-soft:hover {
    background-color: var(--accent-taupe);
    color: var(--white-soft);
}

/* ==========================================================================
   8. Contact & Footer
   ========================================================================== */
.contact-soft {
    padding: 8rem 0;
}

.contact-box {
    background-color: var(--white-soft);
    border-radius: var(--radius-soft);
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-text p {
    color: #666;
    margin-bottom: 2rem;
}

.email-direct {
    font-family: var(--font-elegant);
    font-size: 1.8rem;
    color: var(--accent-taupe);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
}

.soft-form input,
.soft-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #E5E0D8;
    background-color: var(--bg-sand);
    border-radius: 8px;
    font-family: var(--font-modern);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.soft-form input:focus,
.soft-form textarea:focus {
    border-color: var(--accent-taupe);
    background-color: var(--white-soft);
}

.soft-footer {
    text-align: center;
    padding: 3rem 0;
    color: #888;
    font-size: 0.9rem;
}

/* ==========================================================================
   9. Mobile Overlay (Full-Screen Japandi) - FIXED SOLID BACKGROUND
   ========================================================================== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-sand) !important; /* Forces solid background */
    z-index: 9999 !important; /* Forces it to the very front */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.close-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 3rem;
    font-weight: 200;
    color: var(--accent-taupe); /* Fixed variable */
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links a {
    font-family: var(--font-elegant); /* Fixed variable */
    font-size: 2.5rem;
    font-style: italic;
    color: var(--text-charcoal); /* Fixed variable */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.mobile-overlay.active .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

/* Simple delays for each link */
.mobile-overlay.active .mobile-nav-links a:nth-child(1) { transition-delay: 0.2s; }
.mobile-overlay.active .mobile-nav-links a:nth-child(2) { transition-delay: 0.3s; }
.mobile-overlay.active .mobile-nav-links a:nth-child(3) { transition-delay: 0.4s; }
.mobile-overlay.active .mobile-nav-links a:nth-child(4) { transition-delay: 0.5s; }
.mobile-overlay.active .mobile-nav-links a:nth-child(5) { transition-delay: 0.6s; }

.mobile-footer {
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--accent-taupe);
    letter-spacing: 1px;
}

body.no-scroll {
    overflow: hidden;
}

/* JS Reveal Classes */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   10. Responsive Design (Smooth Mobile Scaling)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text-area p {
        margin: 0 auto 2.5rem;
    }

    .hero-image-area {
        justify-content: center;
    }

    .arch-frame {
        width: 100%;
        max-width: 500px;
    }

    .process-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .profile-arch-frame {
        width: 70%;
        margin: 0 auto;
    }

    .profile-quote {
        border-left: none;
        padding-left: 0;
        font-size: 1.5rem;
    }

    .profile-awards {
        justify-content: center;
    }
    
    .profile-bio {
        margin: 0 auto 3rem auto;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 3rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu, .btn-nav { display: none; }
    .mobile-toggle { display: block; }
    
    .nav-pill {
        width: 90%;
    }

    .hero-japandi { padding-top: 8rem; }
    
    .space-image { height: 40vh; }
    
    .contact-box { padding: 2rem 1.5rem; }
    .email-direct { font-size: 1.4rem; }
}