/* --- Global Styles & Reset --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h2, h3, h4 {
    text-align: center;
    color: #007bff; /* Primary Blue */
}

a {
    text-decoration: none;
    color: #007bff;
}

/* --- Header & Navigation (Desktop View) --- */
header {
    background-color: #fff;
    color: #333;
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    margin: 0;
    font-size: 1.5em;
    color: #007bff;
}

/* Hide the toggle button by default (desktop) */
.menu-toggle {
    display: none; 
}

nav a {
    margin-left: 20px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

nav a:hover {
    color: #0056b3;
}

/* --- Hero Section --- */
.hero-section {
    background-color: #007bff; 
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-section h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fff;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button.primary {
    background-color: #fff;
    color: #007bff;
    border: 2px solid #fff;
}

.button.primary:hover {
    background-color: #e0e0e0;
}

/* --- Services Section --- */
.services-section {
    padding: 60px 20px;
    background-color: #fff;
}

.services-section h3 {
    margin-bottom: 40px;
}

.service-grid {
    display: flex;
    justify-content: center; 
    gap: 20px;
    flex-wrap: wrap;
}

.service-item {
    flex: 1 1 300px; 
    max-width: 350px; 
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-item i {
    color: #007bff;
    margin-bottom: 15px;
}

/* --- Contact Section (Styled for Mailto) --- */
.contact-section {
    padding: 60px 20px;
    background-color: #f4f4f4;
}

/* --- Footer --- */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}


/* ================================================= */
/* --- Mobile Layout Adjustments (Max-width 768px) --- */
/* ================================================= */
@media (max-width: 768px) {
    
    /* 1. Header & Mobile Menu Setup */
    header .container {
        justify-content: space-between; 
        padding: 10px 20px;
    }
    
    /* Show the hamburger button */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5em;
        color: #007bff;
        cursor: pointer;
        padding: 0;
    }

    /* Set up the hidden mobile menu */
    nav {
        display: none; /* Hidden by default */
        position: absolute;
        top: 60px; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 10px 0;
        text-align: center;
        border-top: 1px solid #eee;
    }
    
    /* Style the links inside the mobile menu */
    nav a {
        display: block; /* Make links full-width blocks */
        margin: 10px 0;
        padding: 10px 0;
        border-bottom: 1px solid #f4f4f4;
    }
    nav a:last-child {
        border-bottom: none;
    }
    
    /* Class applied by JavaScript to show the menu */
    nav.nav-open {
        display: block; 
    }
    
    /* 2. Section and Content Adjustments */
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-section h2 {
        font-size: 1.8em; 
    }
    
    .service-grid {
        flex-direction: column;
        align-items: center; 
        gap: 25px;
    }
    
    .service-item {
        width: 100%;
        max-width: 400px;
    }

    .services-section, .contact-section {
        padding: 40px 15px; 
    }
    
    /* Adjust button size in contact section for better mobile tap target */
    .contact-form-mailto .button.primary {
        max-width: 100% !important;
    }
}