/* public/style.css */
:root {
    --nav-bg: #2a2e33;
    --primary-black: #111111;
    --pure-white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --font-headers: 'Lato', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--pure-white);
    color: var(--primary-black);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
.site-header {
    background-color: #2a2e33 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-headers);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.2s ease;
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--gray-200) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Main Content Layout */
.main-content {
    flex: 1;
}

.page-section {
    padding: 30px 24px 80px 24px; /* Reduced top padding from 80px to 30px */
}

/* Hero Section (For Index) */
.hero {
    max-width: 800px;
    margin: 20px auto 60px auto; /* Reduced top margin from 60px to 20px */
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-family: var(--font-headers);
    font-size: 2.75rem;
    line-height: 2.75rem;
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-headers);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.hero p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--gray-800);
    margin-bottom: 36px;
}

.cta-button {
    font-family: var(--font-headers);
    display: inline-block;
    background-color: #2a2e33;
    color: var(--pure-white);
    padding: 14px 32px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: var(--primary-black);
}

/* Content Containers & Pages */
.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-container > h2 {
    font-family: var(--font-headers);
    font-size: 2.25rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--primary-black);
}

.content-container > p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--gray-800);
    margin-bottom: 24px;
    font-weight: 300;
    line-height: 1.8;
}

.muted-text {
    color: var(--gray-600);
}

/* Projects Categories and Grid */
.project-category {
    margin-bottom: 64px;
}

.project-category h2 {
    font-family: var(--font-headers);
    font-size: 1.92rem;
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: 24px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Restyled Project Cards */
.project-card {
    background: var(--pure-white);
    border: 1px solid var(--gray-200);
    border-radius: 2px; 
    overflow: hidden; 
}

.project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    background-color: var(--gray-200);
}

.project-info {
    padding: 20px;
}

.project-card h3 {
    font-family: var(--font-headers);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--primary-black);
}

.project-card p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0;
    font-weight: 300;
}

/* Contact Page Specific Styles */
.contact-page-wrapper {
    background-color: #f0f2f5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 50px 20px 40px 20px;
}

.contact-layout-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
}

.contact-image-wrapper {
    flex: 0 0 280px;
}

.contact-scenic-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: block;
}

.contact-form-card {
    background: var(--pure-white);
    padding: 48px 56px;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    flex: 0 0 620px;
    height: 480px;     
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-form-card h2 {
    font-family: var(--font-headers);
    font-size: 2.25rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: var(--primary-black);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    background-color: var(--pure-white);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--primary-black);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-form textarea {
    height: 125px;
    resize: none;
}

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

.contact-form .submit-button {
    background-color: #2a2e33;
    color: var(--pure-white);
    border: none;
    padding: 14px 48px;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-headers);
    transition: background-color 0.2s ease;
}

.contact-form .submit-button:hover {
    background-color: #111111;
}

/* Branded Success State Styling */
.success-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: left;
}

.success-message h3 {
    font-family: var(--font-headers);
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: 16px;
}

.success-message p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--gray-800);
    line-height: 1.5;
}

/* Footer (Updated padding and explicit centering) */
.site-footer {
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 34px 24px;
    width: 100%;
}

.footer-container {
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.footer-container p {
    color: var(--gray-600);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design (Mobile / Narrow Viewports) */
@media (max-width: 1000px) {
    .contact-image-wrapper {
        display: none;
    }
    .contact-page-wrapper {
        padding: 30px 0;
    }
    .contact-form-card {
        flex: none;
        width: 90vw;      
        max-width: 90vw;  
        margin: 0 auto;
        height: auto;
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2a2e33;
        padding: 20px 24px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-form-card {
        padding: 24px 16px;
    }
}