@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #3C2A1E; /* Dark brown for text */
    background-color: #F5F0E6; /* Warm beige background */
    line-height: 1.6;
}

header {
    background-color: #D2B48C; /* Tan for header */
    padding: 20px 20px; /* Reduced padding slightly for compactness */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative; /* Added to position hamburger inside header on mobile */
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em; /* Reduced from 2.5em to make header letters smaller */
    margin: 0;
    color: #3C2A1E; /* Dark brown */
}

header p {
    font-size: 1.2em;
    margin: 5px 0 0;
    color: #556B2F; /* Olive green */
}

nav {
    background-color: #D2B48C; /* Tan for nav */
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative; /* Kept for containment */
}

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

nav ul li {
    margin: 10px 15px;
}

nav ul li a {
    text-decoration: none;
    color: #556B2F; /* Olive green */
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3C2A1E; /* Dark brown on hover */
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    background: linear-gradient(to bottom, #A67B5B, #8B5A2B); /* Warm terracotta gradient */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 42, 30, 0.4); /* Overlay for readability */
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta {
    background-color: #556B2F; /* Olive green */
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px;
}

.cta:hover {
    background-color: #3C2A1E; /* Dark brown on hover */
}

.services-grid,
.steps-grid,
.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.services-grid > div,
.steps-grid > div,
.samples-grid > div {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.services-grid > div:hover, .steps-grid > div:hover, .samples-grid > div:hover {
    transform: translateY(-5px);
}

.services-grid h3, .steps-grid h3, .samples-grid h3 {
    font-family: 'Poppins', sans-serif;
    color: #556B2F; /* Olive green */
}

.icon {
    font-size: 2em;
    color: #556B2F; /* Olive green */
    margin-bottom: 10px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    font-style: italic;
}

.form-group {
    margin: 15px 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-info div {
    text-align: center;
    margin: 10px;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

footer {
    background-color: #D2B48C; /* Tan for footer */
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #556B2F; /* Olive green */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    nav ul {
        flex-direction: column;
    }
    section {
        padding: 40px 15px;
    }
    .profile-image {
        width: 150px;
        height: 150px;
    }
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none !important; /* Ensure checkbox is hidden, with !important for override */
}

.hamburger {
    display: none; /* Hidden on desktop */
    position: absolute;
    top: 5px; /* Moved up further from 15px to position even higher in the lighter area */
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    width: 35px;
    height: 30px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background: #3C2A1E; /* Dark brown for better contrast on tan */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(2) {
    margin: 6px 0;
}

/* Mobile-only styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        right: -100%; /* Off-screen to the right */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #D2B48C; /* Tan background to match header */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 999;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    }

    nav ul li {
        margin: 20px 0;
        font-size: 1.3em;
    }

    nav ul li a {
        color: #3C2A1E; /* Dark brown for contrast */
    }

    nav ul li a:hover,
    nav ul li a:focus {
        color: #556B2F;
    }

    /* Slide in from right when checkbox checked */
    .menu-toggle:checked ~ ul {
        display: flex; /* Added to show the list when checked */
        right: 0;
    }

    /* Transform hamburger to X */
    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Optional: Dark overlay behind menu (uncomment if you want) */
    /*
    nav::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        z-index: 998;
    }
    .menu-toggle:checked ~ ::after {
        opacity: 1;
        pointer-events: all;
    }
    */
}