/* General Reset & Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333; /* Dark gray for main text */
    background-color: #F8F9FA; /* Light background */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px; /* Overall padding */
    position: relative; /* Needed for background-overlay */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Background Image and Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/cpa_background.jpg'); /* Your CPA background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5; /* Adjust opacity for subtle effect */
    z-index: -1; /* Place behind content */
}

.container {
    max-width: 1000px;
    width: 100%;
    /* background-color: #FFFFFF; */ /* Removed so background image can show through content areas */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden; /* Ensures shadow/border are contained */
    position: relative; /* Ensures container content is above overlay */
    z-index: 1; /* Ensures container content is above overlay */
}

/* Header Styles */
.header {
    background-color: #0056B3; /* Professional Blue */
    color: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* For subtle background pattern or gradient */
}

/* Subtle pattern for header (optional, remove if too complex) */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05)),
                linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.site-title {
    font-family: 'Lato', sans-serif;
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 20px;
}

.contact-header {
    font-size: 1em;
    line-height: 1.8;
}

.contact-header a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-header a:hover {
    color: #E0E0E0;
}

/* Main Content Sections */
.main-content {
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.50); 
}

.intro-section {
    text-align: center;
    margin-bottom: 60px;
}

.intro-section h2, .services-section h2, .call-to-action h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2em;
    color: #0056B3;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-section p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Grid */
.services-section {
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background-color: #F0F8FF; /* Light blue background for service items */
    border: 1px solid #B0C4DE; /* Light steel blue border */
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.4em;
    color: #0056B3;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.service-item h3 i {
    margin-right: 10px;
    color: #007BFF; /* Brighter blue for icons */
    font-size: 1.2em;
}

.service-item p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item ul li {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-item ul li::before {
    content: '\2022'; /* Bullet point */
    color: #007BFF;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

/* Call to Action Section */
.call-to-action {
    text-align: center;
    background-color: #E6F2FF; /* Very light blue background */
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #B0C4DE;
}

.call-to-action p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #007BFF; /* Primary blue for button */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #0056B3;
    transform: translateY(-2px);
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 20px auto 0;
}

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

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

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

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.form-message.sending {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Footer Styles */
.footer {
    background-color: #343A40; /* Dark gray footer */
    color: #E0E0E0;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px; /* Space above footer */
}

.contact-footer {
    font-size: 0.95em;
    line-height: 1.8;
    margin-top: 15px;
}

.contact-footer a {
    color: #ADD8E6; /* Light blue for footer links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-footer a:hover {
    color: #FFFFFF;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.2em;
    }
    .tagline {
        font-size: 1em;
    }
    .intro-section h2, .services-section h2, .call-to-action h2 {
        font-size: 1.8em;
    }
    .intro-section p, .call-to-action p {
        font-size: 1em;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Stack services on small screens */
    }
    .service-item {
        padding: 20px;
    }
    .service-item h3 {
        font-size: 1.2em;
    }
    .service-item p, .service-item ul li {
        font-size: 0.9em;
    }
    .btn {
        width: 100%;
        padding: 10px 20px;
    }
    .header, .main-content, .footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}
