:root {
    --earth-dark: #4a3f35;
    --earth-medium: #6b5d54;
    --earth-light: #8b7d6b;
    --stone-dark: #5d5d5d;
    --stone-medium: #808080;
    --stone-light: #bdbdbd;
    --sand: #d4b896;
    --cream: #f5ebe0;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--earth-dark);
    background-color: var(--cream);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--earth-dark) 0%, var(--earth-medium) 100%);
    color: var(--white);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Navigation */
nav {
    background-color: var(--sand);
    box-shadow: 0 2px 4px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--earth-dark);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    background-color: var(--earth-light);
    color: var(--white);
}

nav a.active {
    background-color: var(--earth-medium);
    color: var(--white);
    border-bottom-color: var(--earth-dark);
}

/* Container Layout */
.container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Contact Sidebar */
.contact-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.contact-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-light);
}

.contact-card h3 {
    color: var(--earth-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
    border-bottom: 2px solid var(--sand);
    padding-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.contact-info strong {
    color: var(--earth-medium);
}

.contact-info .phone,
.contact-info .email {
    margin-top: 1rem;
}

.contact-info a {
    color: var(--earth-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--earth-dark);
    text-decoration: underline;
}

/* Main Content */
main {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-light);
    min-height: 600px;
}

main h2 {
    color: var(--earth-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

main h3 {
    color: var(--earth-medium);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

main p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px var(--shadow);
}

/* Content with Image */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

.content-with-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-light);
}

/* Case Study Cards */
.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.case-card {
    background-color: var(--cream);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--earth-medium);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px var(--shadow);
}

.case-card h4 {
    color: var(--earth-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.case-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--earth-dark);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        position: static;
        order: 2;
    }

    main {
        order: 1;
    }

    .content-with-image {
        grid-template-columns: 1fr;
    }

    .content-with-image img {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        text-align: center;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    main {
        padding: 1.5rem;
    }

    .case-studies {
        grid-template-columns: 1fr;
    }
}
