/* --- 1. CORE VARIABLES & SETUP --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-color: #F6F6F6;
    --accent: #A59B90;
    --text-dark: #000000;
    --font-brand: 'Optima', 'Segoe UI', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- SCROLL ANIMATION CLASSES --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- GLOBAL HEADERS --- */
.page-header { 
    padding: 130px 5% 40px; 
    text-align: center; 
}
.page-header h1 { 
    font-family: var(--font-brand); 
    font-size: 2.5rem; 
    color: var(--text-dark); 
    margin-bottom: 15px; 
    font-weight: normal; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}
.page-header p { 
    font-family: var(--font-body); 
    font-size: 1.1rem; 
    max-width: 700px; 
    margin: 0 auto; 
    color: var(--text-dark); 
    line-height: 1.8; 
}

.section-title {
    font-family: var(--font-brand);
    font-size: 2.3rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
    font-weight: normal;
}

/* --- 2. NAVIGATION (HEADER) --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.5s ease;
}

.logo-container {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    width: max-content;
}

.logo-main {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    letter-spacing: 3px;
    font-weight: normal;
    color: #ffffff;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    transition: color 0.4s ease;
    display: block;
    text-align: left;
    letter-spacing: 4.2px; 
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 400;
    transition: opacity 0.3s ease, color 0.4s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 10px;
}

.nav-social-icons a {
    font-size: 1.2rem !important;
    text-transform: none; 
}

nav.scrolled {
    background-color: rgba(246, 246, 246, 0.98);
    padding: 10px 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

nav.scrolled .logo-main,
nav.scrolled .logo-sub,
nav.scrolled .nav-links a,
nav.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* --- 3. HERO BUTTONS & VIDEO --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

.hero-content-left {
    position: absolute;
    bottom: 20%;
    left: 5%;
    z-index: 10;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-solid {
    background: #ffffff;
    color: #000000;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px 35px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.btn-solid:hover { background: #e0e0e0; }

.btn-outline {
    background: transparent;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px 45px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000;
}

/* --- 4. WHO WE ARE --- */
.who-we-are {
    display: flex;
    align-items: center;
    padding: 60px 5%; 
    gap: 5%;
    background: var(--bg-color);
}

.who-image {
    width: 45%;
}

.who-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.who-text {
    width: 50%;
}

.who-text h2 {
    font-family: var(--font-brand);
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: normal;
}

.who-text p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* --- 5. PROJECTS & PORTFOLIO GALLERY (Horizontal Flow) --- */
.projects-section {
    padding: 40px 5%; 
}

/* Merged both classes so they load horizontally in perfect uniform grids */
.projects-grid,
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.project-card,
.masonry-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #eaeaea;
    aspect-ratio: 4/5; 
}

.project-card img,
.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.project-card:hover img,
.masonry-item:hover img {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: #fff;
}

.project-card:hover .project-overlay,
.masonry-item:hover .project-overlay { opacity: 1; }

.project-overlay h3 {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    margin-bottom: 8px;
    transform: translateY(15px);
    transition: transform 0.5s ease;
    font-weight: normal;
}

.project-overlay .proj-loc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    transform: translateY(15px);
    transition: transform 0.5s ease;
}

.project-overlay .proj-tag {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    color: #e0e0e0;
    transform: translateY(15px);
    transition: transform 0.5s ease;
}

.project-card:hover .project-overlay h3,
.project-card:hover .project-overlay .proj-loc,
.project-card:hover .project-overlay .proj-tag,
.masonry-item:hover .project-overlay h3,
.masonry-item:hover .project-overlay .proj-loc,
.masonry-item:hover .project-overlay .proj-tag {
    transform: translateY(0);
}

.view-all-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-view-all {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: transparent;
    border: 1px solid var(--text-dark);
    padding: 12px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--text-dark);
    color: #ffffff;
}

/* --- 6. SERVICES (EDITORIAL CARDS) --- */
.services-section {
    padding: 40px 5%; 
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    position: relative;
    aspect-ratio: 3/4; 
    overflow: hidden;
    cursor: pointer;
    background: #e3d8d1;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.service-card:hover img { transform: scale(1.05); }

.service-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    transition: background 0.4s ease;
}

.service-card:hover .service-overlay { background: rgba(0, 0, 0, 0.45); }

.service-overlay h3 {
    font-family: var(--font-brand);
    font-size: 2.2rem;
    font-weight: normal;
    text-align: center;
    letter-spacing: 1px;
    padding: 0 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}

.service-link {
    position: absolute;
    bottom: 40px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 6px;
    transition: border-color 0.3s ease;
}

.service-card:hover .service-link { border-bottom-color: #ffffff; }

/* --- 7. TESTIMONIALS SLIDER --- */
.testimonials-section {
    padding: 60px 5%; 
    background-color: #eaeaea;
    overflow: hidden;
}

.testimonials-section h2 { margin-bottom: 40px; }

.testimonial-slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.testimonial-slide .quote {
    font-family: var(--font-brand);
    font-size: 2rem;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 25px;
    font-weight: normal;
}

.testimonial-slide .author {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
}

/* --- 8. CONTACT US SECTION (COMPRESSED TO FIT SCREEN) --- */
.contact-section {
    padding: 40px 5% 20px; 
    background: var(--bg-color);
    scroll-margin-top: 90px; /* CRITICAL: Prevents the fixed navbar from overlapping the title on scroll */
}

.contact-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-left {
    width: 45%;
}

.contact-left h2 {
    font-family: var(--font-brand);
    font-size: 2.4rem; /* Reduced from 3.5rem so it fits cleanly */
    text-transform: uppercase;
    font-weight: 300; 
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.contact-left p {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.contact-map {
    margin-top: 15px;
    width: 100%;
    height: 150px; /* Compressed map height to fit screen */
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) contrast(1.1);
}

.contact-right {
    width: 55%;
    padding-top: 0;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 12px; 
}

.form-group {
    width: 100%;
    margin-bottom: 12px; 
}

.contact-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #333;
    background: transparent;
    padding: 6px 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
}

.contact-input::placeholder { color: #666; }

.btn-submit-contact {
    background: #39281E;
    color: #fff;
    padding: 10px 0; 
    width: 100%;
    border: none;
    font-family: var(--font-body);
    letter-spacing: 1px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.3s ease;
}

.btn-submit-contact:hover { background: #1a1a1a; }


/* --- INSTAGRAM FEED SECTION --- */
.instagram-section {
    padding: 60px 5%;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.instagram-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.instagram-header h2 {
    font-family: var(--font-brand);
    font-size: 2.2rem;
    font-weight: normal;
}

.instagram-header a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.instagram-header a:hover {
    opacity: 0.6;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.instagram-grid a {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #eaeaea;
}

.instagram-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.instagram-grid a:hover img {
    transform: scale(1.05);
}

/* Mobile Adjustments for Instagram */
@media (max-width: 900px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on phones */
    }
    .instagram-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* --- 9. MINIMAL FOOTER --- */
.minimal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; 
    background: var(--bg-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    font-size: 1.4rem;
    color: var(--text-dark);
    transition: color 0.3s;
}

.footer-socials a:hover { color: var(--accent); }

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* --- 10. DYNAMIC PROJECT VIEWER --- */
#dynamic-viewer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color); z-index: 2000;
    overflow-y: auto; overflow-x: hidden; display: none; 
    opacity: 0; transition: opacity 0.4s ease;
}
#dynamic-viewer.active { display: block; opacity: 1; }

.btn-back {
    position: fixed; top: 30px; left: 5%; font-family: var(--font-body);
    font-size: 0.8rem; cursor: pointer; border: 1px solid rgba(0,0,0,0.3); background: rgba(246, 246, 246, 0.9);
    color: var(--text-dark); padding: 10px 20px; text-transform: uppercase; letter-spacing: 2px;
    z-index: 3000; transition: all 0.3s ease; backdrop-filter: blur(5px);
}
.btn-back:hover { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }

.viewer-header { padding: 120px 5% 40px; position: relative; text-align: center; }
.viewer-header h2 { font-family: var(--font-brand); font-size: 3rem; color: var(--text-dark); font-weight: normal; }
.viewer-header p { font-family: var(--font-body); font-size: 1.1rem; color: var(--accent); margin-top: 10px; text-transform: uppercase; letter-spacing: 2px; }

.room-section { margin-bottom: 80px; }
.room-heading {
    font-family: var(--font-brand); font-size: 1.8rem; color: var(--text-dark);
    margin: 0 5% 30px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); padding-bottom: 10px; font-weight: normal;
}

.viewer-grid { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 5%; 
    align-items: center; /* Beautifully centers images vertically if they vary slightly in height */
}

.span-full { 
    grid-column: 1 / -1; 
}

.img-wrapper { 
    position: relative; 
    overflow: hidden; 
    background-color: var(--bg-color); /* Seamless blending */
    border-radius: 2px;
}

.img-wrapper img, .img-wrapper video { 
    width: 100%; 
    max-height: 75vh; /* PERFECT FIX: Keeps tall images contained so they fit exactly on screen */
    object-fit: contain; /* PERFECT FIX: Shows 100% of the image without any cropping or cutting */
    display: block; 
}

.img-wrapper::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); pointer-events: none;
}

.room-label {
    position: absolute; bottom: 15px; left: 20px; font-family: var(--font-body);
    font-size: 0.85rem; color: #ffffff; z-index: 10; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}


/* --- MOBILE RESPONSIVENESS --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    transition: color 0.4s ease;
}

@media (max-width: 900px) {
    .mobile-menu-btn { display: block; }
    
    nav .nav-links a {
        color: var(--text-dark) !important;
        opacity: 1; 
    }
    nav .nav-links a:hover { opacity: 0.7; }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-social-icons {
        margin-left: 0;
        margin-top: 10px;
        gap: 25px;
    }
    
    .nav-social-icons a {
        font-size: 1.5rem !important; 
    }

    .nav-links.active { display: flex; }

    .logo-main{
        font-size: 1.43rem;
    }
    /* Fix: Left Align Logo on Mobile instead of Justify */
    .logo-sub {
        text-align: left;
        text-align-last: auto;
        letter-spacing: 2.5px;
        width: 100%;
        margin-left: 0; 
    }

    .hero-content-left {
        bottom: 18%; 
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-buttons {
        width: 75%; 
        flex-direction: column;
        gap: 12px;
    }

    .btn-solid, .btn-outline {
        width: 100%;
        padding: 12px 0; 
        font-size: 0.7rem;
    }

    .hero-video {
        top: 0; left: 0; width: 100%; height: 100%;
        transform: none; 
        object-position: 90% center; 
    }

    .who-we-are { flex-direction: column; }
    .who-image { display: none; }
    .who-text { width: 100%; text-align: center; }
    .section-title{
        font-size: 1.8rem;
    }

    /* Single Line "What We Believe" on Phone */
    .who-text h2 {
        font-size: 1.7rem;
        white-space: nowrap; 
        margin-bottom: 15px;
    }

    .page-header h1{
        font-size: 2rem;
    }
    .projects-grid,
    .services-grid,
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .viewer-grid {
        grid-template-columns: 1fr;
    }
    .btn-back { top: 15px; font-size: 0.7rem; padding: 8px 15px; }
    .viewer-header { padding-top: 100px; }
    .viewer-header h2 { font-size: 2.2rem; }

    .img-wrapper img, .img-wrapper video { 
        max-height: 60vh; /* slightly shorter on mobile for a perfect view */
    }

    .masonry-item { margin-bottom: 20px; }
    .service-card { aspect-ratio: 4/3; }

    .service-overlay h3 { font-size: 1.8rem; }
    .service-link { bottom: 25px; }

    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }
    .contact-left, .contact-right { width: 100%; }
    .contact-left h2 { font-size: 1.8rem; text-align: center; }
    .contact-left p { text-align: center; }
    .form-row { flex-direction: column; gap: 20px; }

    .project-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%) !important;
        justify-content: flex-end;
        padding: 20px;
    }

    .project-card, .masonry-item { aspect-ratio: 16 / 10; }

    .project-overlay h3,
    .project-overlay .proj-loc,
    .project-overlay .proj-tag {
        transform: translateY(0) !important;
    }

    .project-overlay h3 { font-size: 1.5rem; margin-bottom: 2px; }
    .project-overlay .proj-loc { font-size: 0.75rem; letter-spacing: 1px; margin-bottom: 2px; }
    .project-overlay .proj-tag { font-size: 0.9rem; }

    .view-all-wrapper {
        justify-content: flex-end !important;
        margin-top: 25px;
    }

    .btn-view-all {
        width: auto !important;
        font-size: 0.45rem;
        padding: 8px 11px;
        white-space: nowrap;
    }

    .minimal-footer {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 40px; 
    }
    .footer-socials { order: -1; }

    .instagram-header h2{
        font-size: 1.5rem;
    }
}

@media (max-width: 500px){
    .project-overlay h3 { font-size: 1.15rem; margin-bottom: 2px; }
    .project-overlay .proj-loc { font-size: 0.6rem; letter-spacing: 1px; margin-bottom: 2px; }
    .project-overlay .proj-tag { font-size: 0.65rem; }

}


