/* Variables */
:root {
    --color-primary: #0a2e5e; /* Dark Blue */
    --color-secondary: #3cb371; /* Mint Green */
    --color-accent: #f0a500; /* Orange/Yellow for highlight */
    --color-text-dark: #333;
    --color-text-light: #666;
    --color-bg-light: #f8f8f8; /* Light Gray */
    --color-white: #fff;
    --color-gray-border: #ddd;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --padding-section: 80px 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    scroll-behavior: smooth; /* Smooth scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--padding-section);
}

.section-padding {
    padding: var(--padding-section);
}

.bg-light {
    background-color: var(--color-bg-light);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-top: -30px;
    margin-bottom: 60px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #32a363; /* Darker shade */
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary:hover {
     background-color: #072248; /* Darker shade */
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Header */
.site-header {
    background-color: var(--color-white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Adjust logo height */
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--color-text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-secondary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, var(--color-primary), #1b4a8a); /* Gradient example */
    color: var(--color-white);
    padding: var(--padding-section);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 2; /* Give text more space on larger screens */
}

.hero-image {
    flex: 1; /* Give image less space on larger screens */
    max-width: 500px; /* Limit the maximum width of the image container */
    display: flex; /* Center image */
    justify-content: center;
    align-items: center;
}
.hero-image img {
     width: 100%;
     height: auto;
     max-height: 350px; /* Adjust max height */
     object-fit: contain; /* Ensure image fits well */
}


.hero-text h1 {
    color: var(--color-white);
    margin-bottom: 15px;
    font-size: 2.8em;
}

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

/* About Section */
.about-section .container {
    text-align: center; /* Center align title and subtitle */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px; /* Add space below subtitle */
    text-align: left; /* Reset text alignment for content */
}

.about-image {
    flex: 1;
    display: flex; /* Use flex to center the image */
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically if needed */
}

.about-image img {
    max-width: 400px; /* Limit the size of the image */
    width: 100%; /* Ensure responsiveness */
    border-radius: 8px; /* Optional: add subtle rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow */
}

.about-text {
    flex: 1;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    height: 60px; /* Icon size */
    margin: 0 auto 20px auto;
}

.service-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 0.95em;
    color: var(--color-text-light);
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.advantage-item img {
    height: 60px; /* Icon size */
    margin: 0 auto 20px auto;
}

.advantage-item h3 {
     font-size: 1.3em;
    margin-bottom: 15px;
}

.advantage-item p {
     font-size: 0.95em;
    color: var(--color-text-light);
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    text-align: center;
}

.step-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.step-icon-container img {
    height: 70px; /* Icon size */
    margin: 0 auto;
}

.step-number {
    position: absolute;
    top: -10px; /* Adjust position as needed */
    right: -10px; /* Adjust position as needed */
    background-color: var(--color-accent);
    color: var(--color-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1.1em;
    border: 2px solid var(--color-white); /* Add a border for visibility */
}

.step-item h3 {
     font-size: 1.3em;
    margin-bottom: 15px;
}

.step-item p {
     font-size: 0.95em;
    color: var(--color-text-light);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-header img {
    width: 70px; /* Smaller photo size */
    height: 70px; /* Smaller photo size */
    border-radius: 50%; /* Make photos round */
    object-fit: cover; /* Ensure image covers the area */
    margin-right: 15px;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.client-info h3 {
    margin-bottom: 5px;
    font-size: 1.1em;
}

.client-info p {
    font-size: 0.9em;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.testimonial-stars {
    color: var(--color-accent); /* Star color */
    margin-bottom: 15px;
    font-size: 1.1em;
}

.testimonial-item p {
    font-style: italic;
    color: var(--color-text-light);
}

/* Blog Section */
.blog-grid {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-post {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Ensure image corners are rounded */
    display: flex; /* Use flex for layout */
    flex-direction: column; /* Stack content vertically */
}

.blog-post img {
    width: 100%;
    height: 200px; /* Fixed height for blog images */
    object-fit: cover; /* Crop image to fit */
}

.blog-post h3 {
    margin: 20px 20px 10px 20px;
    font-size: 1.2em;
}

.blog-post p {
    margin: 0 20px 15px 20px;
    font-size: 0.95em;
    color: var(--color-text-light);
    flex-grow: 1; /* Allow paragraph to take up available space */
}

.blog-post .read-more {
    display: inline-block;
    margin: 0 20px 20px 20px;
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post .read-more:hover {
    color: var(--color-primary);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-form {
    flex: 2; /* Form takes more space */
    min-width: 300px; /* Ensure form is not too small */
}

.contact-info {
    flex: 1; /* Info takes less space */
    min-width: 250px; /* Ensure info is not too small */
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-gray-border);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info ul li {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.contact-info ul li strong {
     color: var(--color-text-dark);
}


.google-map iframe {
    border-radius: 8px;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-brand img {
    height: 40px; /* Adjust logo height */
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--color-secondary); /* Or use white, adjust as needed */
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-info ul,
.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-info ul li,
.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text, .hero-image {
        flex: none; /* Remove flex basis */
        width: 100%;
    }

    .hero-image img {
        max-height: 300px; /* Adjust max height on smaller screens */
         margin: 0 auto; /* Center image */
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .about-text {
        text-align: center;
    }

     .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form, .contact-info {
        width: 100%;
        min-width: auto; /* Remove min-width constraint */
    }

    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; margin-bottom: 30px; }
    h3 { font-size: 1.4em; }
    .section-subtitle { margin-bottom: 40px; }
    .btn-lg { padding: 12px 25px; font-size: 1em; }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide nav on smaller screens, potentially add a toggle later */
    }

    .header-content {
        justify-content: center; /* Center logo if nav is hidden */
    }
     .btn.btn-primary { /* Style contact button when nav is hidden */
        display: none; /* Or keep it, adjust as needed */
     }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.3em; }

    .service-item,
    .advantage-item,
    .step-item,
    .testimonial-item,
    .blog-post {
        padding: 25px;
    }

    .services-grid,
    .advantages-grid,
    .steps-grid,
    .testimonials-grid,
    .blog-grid {
        gap: 20px;
    }

    .step-icon-container img {
        height: 60px;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 1em;
        top: -5px;
        right: -5px;
    }

     .testimonial-header img {
        width: 60px; /* Further decrease photo size */
        height: 60px; /* Further decrease photo size */
        margin-right: 10px;
    }

    .blog-post img {
        height: 180px; /* Adjust blog image height */
    }

    .footer-content {
        grid-template-columns: 1fr; /* Stack footer items */
        text-align: center;
    }

    .footer-brand img {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 50px 0;
    }

    h1 { font-size: 1.6em; }
    h2 { font-size: 1.4em; margin-bottom: 25px; }
    h3 { font-size: 1.2em; }
     .section-subtitle { font-size: 1em; margin-bottom: 30px; }


    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .hero-text h1 {
        font-size: 2em; /* Re-adjust hero title for small screens */
    }

    .hero-text p {
        font-size: 1em;
    }

    .hero-image img {
         max-height: 250px;
    }

     .about-content, .contact-content {
        gap: 20px;
    }

    .service-item,
    .advantage-item,
    .step-item,
    .testimonial-item,
    .blog-post {
        padding: 20px;
    }

    .testimonials-grid {
         grid-template-columns: 1fr; /* Stack testimonials on very small screens */
    }

     .blog-grid {
         grid-template-columns: 1fr; /* Stack blog posts on very small screens */
    }

     .blog-post img {
        height: 160px;
    }

    .contact-info ul li,
    .footer-info ul li,
    .footer-links ul li,
    .footer-contact ul li {
        font-size: 0.9em;
    }
}