/* --- Wild Duck Color Palette --- */
:root {
    --color-primary: #14532D; /* Iridescent Green */
    --color-secondary: #6B4226; /* Chestnut Brown */
    --color-background: #F3F0E6; /* Creamy White/Tan */
    --color-text: #1A1A1A; /* Near Black */
    --color-light-accent: #FFFFFF; /* Pure White */
}

/* --- Base Styling --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #8C8A79;
    text-decoration: underline;
}

/* --- Header & Navigation (Desktop) --- */
header {
    background: var(--color-text);
    color: var(--color-light-accent);
    padding: 1rem 0;
    border-bottom: 5px solid var(--color-primary);
}

header h1 {
    font-size: 1.8rem;
    color: var(--color-light-accent);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex; /* Horizontal on desktop */
}

nav ul li a {
    color: var(--color-light-accent);
    padding: 0.5rem 1rem;
    display: block;
    font-weight: bold;
}

nav ul li a:hover {
    color: var(--color-primary);
    background: var(--color-secondary);
}

/* --- Main Content Cards --- */
main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.card {
    background: var(--color-light-accent);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--color-secondary);
}

/* --- Hero Section (Desktop) --- */
#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 300px;
}

.hero-content {
    max-width: 60%; /* Desktop width */
}

#hero h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

#hero p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    background: var(--color-secondary);
    border-radius: 50%;
    border: 5px solid var(--color-primary);
    flex-shrink: 0;
    margin-left: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-light-accent);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--color-secondary);
    color: var(--color-light-accent);
}

/* --- Services & About Section (Desktop) --- */
#services h3, #about h3 {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-details {
    display: flex; /* Horizontal on desktop */
    gap: 2rem;
}

.service-block {
    flex: 1;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: 6px;
    border: 1px solid #ddd;
}

.service-block h4 {
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
    background: var(--color-text);
    color: var(--color-light-accent);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: auto;
}

/* ========================================================== */
/* MEDIA QUERIES FOR MOBILE                   */
/* ========================================================== */

/* --- Tablet and Smaller Screens (Max width 768px) --- */
@media (max-width: 768px) {
    /* Adjust Hero Layout */
    #hero {
        flex-direction: column-reverse; /* Put text above image on mobile */
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%; /* Use full width */
        margin-top: 1.5rem;
    }

    #hero h2 {
        font-size: 2rem;
    }

    .profile-image {
        margin: 0 auto; /* Center image */
    }

    /* Stack Service Blocks */
    .service-details {
        flex-direction: column; /* Stacks the two columns */
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem; /* Slightly reduced padding */
    }
}

/* --- Small Mobile Phones (Max width 600px) --- */
@media (max-width: 600px) {
    /* Header & Navigation Adjustments */
    header .container {
        flex-direction: column; /* Stack logo/title and nav */
        text-align: center;
    }

    nav ul {
        flex-direction: column; /* Stack navigation links */
        margin-top: 0.5rem;
    }

    nav ul li a {
        padding: 0.25rem 0; /* Less vertical padding for nav items */
    }

    nav ul li a:hover {
        background: transparent; /* Remove background change on hover for stacked links */
        color: var(--color-primary);
    }

    /* General Styling */
    .container {
        padding: 0 10px; /* Less horizontal padding */
    }

    #hero h2 {
        font-size: 1.75rem; /* Smaller hero heading */
    }

    #hero p {
        font-size: 1rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }
}
