/* --- Root Variables & Global Setup --- */
:root {
    --bg-main: #F4F1EE;        /* Light Bone */
    --bg-accent: #EAE3DA;      /* Earthy Beige (from your image) */
    --green: #1A3021;          /* Signature Dark Green */
    --shadow-soft: 0 10px 30px rgba(26, 48, 33, 0.05);
    --shadow-deep: 0 20px 40px rgba(26, 48, 33, 0.12);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: var(--bg-main);
    color: var(--green);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    line-height: 1.4;
    overflow-x: hidden;
}

/* --- Shared Components --- */
section, footer { 
    padding: 100px 60px; 
}

.label { 
    font-size: 10px; 
    letter-spacing: 4px; 
    display: block; 
    margin-bottom: 20px; 
}

/* Engineered Depth Hook */
.shadow-box {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
    box-shadow: var(--shadow-soft);
}

.shadow-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
}

/* Collection Modal */
.collection-trigger { cursor: pointer; }

.collection-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 48, 33, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 2000;
}

.collection-modal.active {
    display: flex;
}

.collection-panel {
    width: min(1200px, 100%);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(244, 241, 238, 0.98);
    border-radius: 30px;
    padding: 40px;
    position: relative;
}

.close-collection-btn {
    position: absolute;
    right: 28px;
    top: 28px;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--green);
    color: var(--bg-main);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.collection-header {
    max-width: 540px;
    margin-bottom: 30px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.collection-card {
    overflow: hidden;
    border-radius: 20px;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.collection-card:hover img {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .collection-panel {
        padding: 30px 24px;
    }

    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Navigation System --- */
.main-nav {
    position: fixed;
    top: 40px;
    left: 60px;
    right: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    padding: 18px 30px;
    background: rgba(244, 241, 238, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(26, 48, 33, 0.08);
}

.logo { 
    font-weight: 900; 
    font-size: 14px; 
    text-align: left; 
    line-height: 1.1; 
}

.logo span { 
    font-weight: 300; 
    font-size: 10px; 
    opacity: 0.6; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
    font-size: 11px; 
}

.nav-links a {
    text-decoration: none;
    color: var(--green);
    font-weight: 700;
    transition: opacity 0.3s;
}

.nav-links a:hover { 
    opacity: 0.5; 
}

/* Mobile Nav Logic (Checkbox Hack) */
.nav-toggle { display: none; }

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--green);
    margin: 5px 0;
    transition: 0.4s ease;
}

/* --- Hero Section with Faded Owner Image --- */
.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    text-align: center; 
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('images/owner.jpeg') center/cover no-repeat;
    filter: grayscale(100%) contrast(1.05);
    opacity: 0.95;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(244, 241, 238, 0.35) 0%,
        rgba(244, 241, 238, 0.15) 45%,
        rgba(244, 241, 238, 0.6) 100%
    );
    z-index: -1;
}

.hero-content {
    z-index: 2;
    text-shadow: 0 2px 10px rgba(244, 241, 238, 0.5); 
}

@media (max-width: 900px) {
    .hero {
        min-height: 80vh;
    }

    .hero::after {
        background: linear-gradient(
            to bottom,
            rgba(244, 241, 238, 0.25) 0%,
            rgba(244, 241, 238, 0.08) 45%,
            rgba(244, 241, 238, 0.5) 100%
        );
    }
}

/* Adjusting Nav for the Background Image */
.main-nav {
    /* Glassmorphism effect to stay legible over the photo */
    background: rgba(244, 241, 238, 0.1); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease;
}

.hero h1 { 
    font-size: 11vw; 
    font-weight: 900; 
    line-height: 0.85; 
    letter-spacing: -4px; 
}

.btn-outline { 
    margin-top: 40px; 
    background: none; 
    border: 1px solid var(--green); 
    padding: 18px 45px; 
    cursor: pointer; 
    font-weight: 700; 
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--green);
    color: var(--bg-main);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 10px;
    letter-spacing: 4px;
    opacity: 0.5;
}

/* --- Philosophy (TARGETED COLOR SECTION) --- */
.philosophy {
    background-color: var(--bg-accent); /* The Earthy Beige Color */
    color: var(--green);
}

.phil-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px; 
    align-items: start; 
}

.phil-text h2 { 
    font-size: 4.5vw; 
    font-weight: 900; 
    line-height: 1.05; 
    margin-bottom: 40px; 
}

.phil-body p { 
    text-transform: none; 
    font-size: 18px; 
    opacity: 0.85; 
    margin-bottom: 30px; 
    line-height: 1.6; 
}

.quote { 
    border-left: 2px solid var(--green); 
    padding-left: 25px; 
    font-style: italic; 
    text-transform: none; 
    opacity: 0.7; 
}

.phil-img img { 
    width: 100%; 
    border-radius: 2px; 
    display: block; 
}

/* --- Selected Works Mosaic --- */
.works {
    background-color: var(--bg-main);
}

.works-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 50px; 
}

.works-header h2 { font-size: 5vw; font-weight: 900; }

.works-mosaic { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 24px; 
}

.work-thumb { 
    background: #ddd; 
    overflow: hidden; 
    position: relative; 
}

.work-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
}

.mosaic-left, .mosaic-right { display: flex; flex-direction: column; gap: 24px; }

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- Featured Project (Dark) --- */
.featured { 
    background: var(--green); 
    color: var(--bg-main); 
    display: flex; 
    align-items: center; 
}

.featured-wrap { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 80px; 
    align-items: center; 
    width: 100%; 
}

.featured img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-info h2 { font-size: 5vw; font-weight: 900; line-height: 0.9; }

.btn-light { 
    border: 1px solid var(--bg-main); 
    color: var(--bg-main); 
    background: none; 
    padding: 15px 40px; 
    cursor: pointer;
    font-weight: 700; 
    transition: 0.3s;
}

.btn-light:hover { background: var(--bg-main); color: var(--green); }

/* --- Services Grid --- */
.services h2 { font-size: 5vw; font-weight: 900; margin-bottom: 40px; }

.service-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    border-top: 1px solid rgba(26,48,33,0.1); 
}

.s-card { 
    padding: 60px 30px; 
    border-right: 1px solid rgba(26,48,33,0.1); 
    background: var(--bg-main); 
}

.s-card:last-child { border-right: none; }

.s-icon { font-size: 24px; margin-bottom: 25px; color: var(--green); }

.s-card h3 { font-size: 20px; font-weight: 900; margin-bottom: 15px; }

.s-card p { text-transform: none; font-size: 14px; opacity: 0.6; line-height: 1.5; }

/* --- Final Footer & Contact --- */
.final-footer { padding-top: 150px; background-color: var(--bg-main); }

.cta-area h2 { 
    font-size: 10vw; 
    font-weight: 900; 
    line-height: 0.85; 
    letter-spacing: -4px; 
    margin-bottom: 30px; 
}

.email { 
    font-size: clamp(24px, 4vw, 40px); 
    color: var(--green); 
    text-decoration: underline; 
    text-transform: none; 
    display: block; 
    margin-bottom: 40px; 
}

.social-tags { display: flex; gap: 30px; margin-bottom: 100px; }

.social-tag {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
    text-decoration: none;
    color: var(--green);
}

.footer-nav { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 40px; 
    padding-bottom: 60px; 
    border-bottom: 1px solid rgba(26,48,33,0.1); 
}

.footer-nav a {
    text-decoration: none;
    color: var(--green);
    font-weight: 700;
    line-height: 2.5;
    font-size: 13px;
}

.btn-journal { 
    background: var(--green); 
    color: var(--bg-main); 
    border: none; 
    padding: 15px 35px; 
    font-weight: 700; 
    cursor: pointer;
}

.footer-meta { 
    display: flex; 
    justify-content: space-between; 
    padding-top: 30px; 
    font-size: 10px; 
    opacity: 0.4; 
}

/* --- RESPONSIVE LOGIC --- */
@media (max-width: 900px) {
    .main-nav { top: 20px; left: 30px; right: 30px; }
    
    .burger { display: block; }

    .nav-links {
        position: fixed;
        top: 20px;
        right: -100%;
        height: calc(100vh - 40px);
        width: 78%;
        max-width: 340px;
        background: rgba(244, 241, 238, 0.88);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 24px;
        border-radius: 30px;
        box-shadow: 0 20px 60px rgba(26, 48, 33, 0.12);
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
    }

    .nav-toggle:checked ~ .nav-links { right: 12px; }

    .nav-toggle:checked ~ .burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle:checked ~ .burger span:nth-child(2) { transform: rotate(-45deg) translate(5px, -5px); }

    .nav-links a { font-size: 1.7rem; margin: 16px 0; }

    .phil-grid, .featured-wrap { grid-template-columns: 1fr; }
    .featured-wrap { gap: 40px; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    section, footer { padding: 60px 24px; }
    .hero h1 { font-size: 18vw; }
    .service-grid { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: 1fr; }
    .social-tags { flex-direction: column; gap: 15px; }
}