/* --- Global Styles & Foundational Architecture --- */
:root {
    --primary-color: #f8f6flogo.pngf3; /* Soft Beige */
    --accent-color: #a78b66;  /* Muted Gold */
    --text-color: #333333;
    --white-color: #ffffff;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
}

/*
body.nav-open {
    overflow: hidden;
}
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Header & Navigation Architecture --- */
.main-header {
    background-color: rgba(248, 246, 243, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(167, 139, 102, 0.2);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { z-index: 1001; }
.logo img { max-height: 50px; }
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 40px;
}
.main-nav a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.5px;
}
.nav-toggle { display: none; }

/* --- Hero Section Architecture --- */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.35)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
}
.hero-content {
    max-width: 850px;
    color: var(--white-color);
}
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}
.hero-content .subheadline {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}
.hero-content .cta-button {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    color: var(--white-color);
    background-color: transparent;
    border: 1px solid var(--white-color);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}
.hero-content .cta-button:hover {
    background-color: var(--white-color);
    color: var(--text-color);
}

/* --- About Section Architecture --- */
.about-section {
    background-color: var(--primary-color);
    padding: 120px 0;
}
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-section .section-title {
    text-align: left;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}
.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 50ch;
}
.image-column img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-radius: 5px;
}

/* --- Services Section Architecture --- */
.services-section {
    background-color: var(--white-color);
    padding: 120px 0;
}
.services-section .section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
}
.accordion-container {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.accordion-header {
    display: flex;
    align-items: center;
    padding: 2rem 0;
    cursor: pointer;
}
.service-number {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-right: 2rem;
}
.accordion-header h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}
.icon {
    position: relative;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease-in-out;
}
.icon::before, .icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-color);
    transition: transform 0.3s ease-in-out;
}
.icon::before { top: 50%; left: 0; width: 100%; height: 1px; margin-top: -0.5px; }
.icon::after { top: 0; left: 50%; width: 1px; height: 100%; margin-left: -0.5px; }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.accordion-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 65ch;
    padding: 0 0 2rem 0;
    margin-left: 5rem;
}
.accordion-item.active .accordion-content { max-height: 200px; }
.accordion-item.active .icon { transform: rotate(135deg); }

/* --- Keyframe Animation --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Architecture --- */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-section .section-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 25px; }
    
    /* Header & Nav */
    .main-nav { display: none; }
    .nav-open .main-nav {
        position: fixed; top: 0; left: 0; right: 0; height: 60vh; 
        background: var(--primary-color); display: flex; flex-direction: column;
        justify-content: center; align-items: flex-end; transform: translateY(0);
        transition: transform 350ms ease-in-out; z-index: 999;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    .nav-open .main-nav ul {
        width: 100%; flex-direction: column; text-align: right; 
        gap: 15px; padding-right: 25px; 
    }
    .nav-open .main-nav a {
        display: inline-block; font-family: var(--font-serif);
        font-size: 1.9rem; font-weight: 600; padding: 5px 0; color: var(--text-color);
    }
    .nav-toggle {
        display: block; position: fixed; z-index: 1001; right: 25px;
        top: 25px; background: transparent; border: 0; cursor: pointer;
    }
    .hamburger {
        display: block; position: relative; width: 25px; height: 3px;
        background: var(--text-color); transition: transform 350ms ease-in-out;
    }
    .hamburger::before, .hamburger::after {
        content: ''; position: absolute; left: 0; right: 0; height: 3px;
        background: currentColor; transition: transform 350ms ease-in-out, opacity 350ms ease-in-out;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }
    .nav-open .hamburger { background-color: transparent; }
    .nav-open .hamburger::before { transform: translateY(8px) rotate(45deg); }
    .nav-open .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

    /* Hero */
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content .subheadline { font-size: 1.1rem; }

    /* About */
    .image-column { order: -1; }
    .about-section .section-title { font-size: 2.5rem; }

    /* Services */
    .services-section { padding: 80px 0; }
    .services-section .section-title { font-size: 2.5rem; }
    .accordion-header h3 { font-size: 1.5rem; }
    .accordion-content p { margin-left: 3.5rem; }
}

/* --- Philosophy Section Architecture --- */
.philosophy-section {
    background-color: var(--accent-color);
    padding: 120px 0;
    color: var(--white-color);
}

.philosophy-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-section h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--white-color); /* Explicitly set color to override any general h2 styles */
}

.philosophy-section p {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 2; /* Generous line height for readability and elegance */
}

/* --- Responsive Refinements for Philosophy Section --- */
@media (max-width: 768px) {
    .philosophy-section {
        padding: 80px 0;
    }

    .philosophy-section h2 {
        font-size: 2.2rem;
    }

    .philosophy-section p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

/* --- Visionary Projects Section Architecture --- */
.visionary-projects-section {
    padding: 120px 0;
    background-color: var(--white-color);
}

.visionary-projects-section .section-header {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.visionary-projects-section .section-header h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.visionary-projects-section .section-header p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-button-dark {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    color: var(--white-color);
    background-color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button-dark:hover {
    background-color: transparent;
    color: var(--text-color);
}

.projects-scroller {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 40px; /* Add padding to see shadows and allow space */
    /* This makes the scrollbar minimalist */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.projects-scroller::-webkit-scrollbar {
    height: 5px;
}
.projects-scroller::-webkit-scrollbar-track {
    background: transparent;
}
.projects-scroller::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
}

.project-card {
    flex: 0 0 45vw; /* Each card takes 45% of the viewport width */
    max-width: 600px;
    height: 60vh;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: box-shadow 0.4s ease;
}

.project-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 0;
}

.card-overlay p {
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
}

/* --- Responsive Refinements for Visionary Projects --- */
@media (max-width: 768px) {
    .visionary-projects-section .section-header h2 {
        font-size: 2.5rem;
    }

    .projects-scroller {
        display: grid;
        grid-template-columns: 1fr;
        overflow-x: hidden; /* Disable horizontal scroll */
        padding: 0 25px; /* Use container padding */
    }

    .project-card {
        flex-basis: 100%; /* Full width */
        height: 350px; /* Fixed height for mobile */
    }

    .card-overlay { /* Make overlay visible by default on mobile */
        opacity: 1;
    }
}

/* --- Contact Section Architecture --- */
.contact-section {
    padding: 120px 0;
    background-color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-text h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 45ch;
    margin-bottom: 2.5rem;
}

.contact-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 5px;
}

/* --- Footer Architecture --- */
.main-footer {
    padding: 50px 0;
    background-color: var(--primary-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.main-footer p {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* --- Responsive Refinements for Contact & Footer --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 0;
    }

    .contact-text {
        text-align: center;
    }

    .contact-text h2 {
        font-size: 2.5rem;
    }

    .contact-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-image {
        order: -1; /* Move image to top on mobile */
    }
    
    .contact-image img {
        height: 300px;
    }
}

/* DEFINITIVE & FINAL CONTACT SECTION ARCHITECTURE */

.contact-section {
    padding: 120px 0;
    background-color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-form-container h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-form-container .form-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 45ch;
    margin-bottom: 2.5rem;
}

#inquiry-form .form-row { display: flex; gap: 20px; margin-bottom: 20px; }
#inquiry-form .form-row-full { width: 100%; margin-bottom: 20px; }

/* REFINED DROPDOWN WITH BRANDED BORDER */
#inquiry-form input,
#inquiry-form textarea,
#inquiry-form select {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    background-color: var(--white-color);
    border: 1px solid var(--accent-color); /* CHANGED to our muted gold */
    border-radius: 5px;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#inquiry-form input::placeholder,
#inquiry-form textarea::placeholder { color: rgba(0,0,0,0.4); }

#inquiry-form input:focus,
#inquiry-form textarea:focus,
#inquiry-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(167, 139, 102, 0.2);
}

#inquiry-form select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333333' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1em;
}
#inquiry-form select option { color: var(--text-color); }

#inquiry-form .submit-button {
    width: 100%;
    background-color: var(--text-color);
    color: var(--white-color);
    padding: 16px 40px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
#inquiry-form .submit-button:hover { background-color: transparent; color: var(--text-color); }

#form-message { text-align: left; margin-top: 20px; font-size: 1rem; font-weight: 500; color: var(--accent-color); }

.contact-image img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; border-radius: 5px; }

/* Responsive for Final Contact Form */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .contact-form-container { text-align: center; }
    .contact-form-container .form-intro { margin-left: auto; margin-right: auto; }
    #inquiry-form .form-row { flex-direction: column; }
    .contact-image { order: -1; }
}

/* --- Responsive for final Contact Form --- */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .contact-form-container { text-align: center; }
    .contact-form-container .form-intro { margin-left: auto; margin-right: auto; }
    #inquiry-form .form-row { flex-direction: column; }
}

/* Add this to the end of your style.css file */

/* Refinement for linked project cards */
.project-card-link {
    text-decoration: none; /* Removes the underline from the link */
}

/* --- ADD THIS TO THE END of style.css --- */

/* Final Mobile Menu Refinements */


/* --- REPLACE YOUR ENTIRE 768px MEDIA QUERY WITH THIS FINAL VERSION --- */

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }
    
    /* When JS adds the .nav-open class, this new architecture takes over */

    /* The Navigation Panel Itself */
    /* RE-ARCHITECTED MOBILE NAVIGATION PANEL */
    .nav-open .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 43.5vh; /* 1. Cropped the panel from 60% to 50% of the screen height */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* 2. Shifted the links to the bottom of the panel */
        padding-bottom: 5vh; /* 3. Added padding to lift the links off the bottom edge */
        align-items: flex-end; 
        transform: translateY(-100%);
        transition: transform 350ms ease-in-out;
        z-index: 999;
        transform: translateY(0);
    }

    /* THE NEW SOLID COLOR OVERLAY */
    .nav-open .main-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--accent-color); /* Our beautiful, on-brand muted gold */
        z-index: -1; /* Sits behind the links */
    }

    /* Links inside the panel */
    .nav-open .main-nav ul {
        width: 100%;
        flex-direction: column;
        text-align: right; 
        gap: 4.5px;
        padding-right: 25px; 
    }

    .nav-open .main-nav a {
        display: inline-block;
        font-family: var(--font-serif);
        font-size: 1.5rem;
        font-weight: 600;
        padding: 5px 0;
        color: var(--white-color); /* Change link color to white for contrast */
    }

    /* --- Hamburger Toggle Button Styling --- */
    .nav-toggle {
        display: block;
        position: fixed;
        z-index: 1001;
        right: 25px;
        top: 25px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .hamburger { display: block; position: relative; width: 25px; height: 3px; background: var(--text-color); transition: transform 350ms ease-in-out; }
    .hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: currentColor; transition: transform 350ms ease-in-out, opacity 350ms ease-in-out; }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    /* Hamburger to "X" Animation */
    .nav-open .hamburger { background-color: transparent; }
    /* Change the color of the "X" to white to be visible on the solid background */
    .nav-open .hamburger::before, .nav-open .hamburger::after {
        background: var(--white-color);
    }
    .nav-open .hamburger::before { transform: translateY(8px) rotate(45deg); }
    .nav-open .hamburger::after { transform: translateY(-8px) rotate(-45deg); }
    
    /* --- (All other responsive styles for sections remain the same) --- */
    h1 { font-size: 2.5rem; }
    h2.section-title { font-size: 2.2rem; }
    section { padding: 80px 0; }
    .about-content, .work-gallery, .services-grid { grid-template-columns: 1fr; }
    .image-column { order: -1; margin-bottom: 40px; }
    .contact-form .form-row { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .social-links a { margin: 0 10px; }
}
/* --- ADD THIS TO THE END of your style.css file --- */

/* Final Dropdown Option Refinement */
#inquiry-form select option {
    background-color: var(--primary-color); /* Sets the dropdown list background to our soft beige */
    color: var(--text-color); /* Ensures the text is dark and readable */
}