@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-color: #fdfbf7;
    --text-color: #333333;
    --accent-color: #bcaaa4; /* Muted brown for buttons/accents */
    --footer-bg: #455a64; /* Dark slate blue/grey */
    --footer-text: #ffffff;
    --section-bg-alt: #eceff1; /* Light grey for CTA section or contrast */
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #a1887f;
}

/* Helper Classes */
.text-center { text-align: center; }

/* Header */
.site-header {
    padding: 30px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.9rem;
    color: #555;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* Selected Work Section */
.selected-work-section {
    padding: 60px 0;
    border-top: 1px solid #eee; /* Subtle separator */
}

.selected-work-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: var(--font-sans);
    font-weight: 300;
}

.project-card {
    margin-bottom: 40px;
}

.project-image img {
    width: 100%;
    height: auto;
}

.project-info {
    margin-top: 15px;
    font-size: 1rem;
    color: #555;
}

/* Philosophy Section */
.philosophy-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.philosophy-text {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #444;
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: #e0e0e0; /* Slightly darker than bg, approximation from image */
    background: linear-gradient(to bottom, #eae8e3 0%, #dedbd4 100%); /* Improved match */
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: var(--font-serif);
    color: #444;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 400;
}

.footer-nav ul {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #ccc;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-info {
    color: #aaa;
    font-size: 0.8rem;
    text-align: right;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #ccc;
    font-size: 1.1rem;
}

/* Sub-page Specifics */
.page-header {
    padding: 60px 0 40px;
    background-color: #f7f5f1;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: #666;
}

.content-section {
    padding-bottom: 80px;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

.project-card-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 15px;
}

.grid-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-sans);
}

.grid-info p {
    color: #777;
    font-size: 0.9rem;
}

/* Contact Page */
.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info, .contact-form-wrapper {
    flex: 1;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-family: var(--font-sans);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.social-links-large a {
    display: inline-block;
    margin-right: 15px;
    font-weight: 700;
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 768px) {
    /* Header */
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero */
    .hero-section h1 {
        font-size: 2.5rem;
    }

    /* Philosophy */
    .philosophy-text {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-info {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Contact */
    .contact-container {
        flex-direction: column;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .main-nav.active {
        display: flex;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-icon {
        display: block;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}
