/* 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;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

/* 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: 1;
}

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

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

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: 8px; /* Optional: subtle rounded corners */
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
}

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

.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;
    margin: 0 auto 20px auto;
}

.service-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--color-primary);
}

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

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

.advantage-item {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    background-color: var(--color-white);
}

.advantage-item img {
    height: 50px;
    margin: 0 auto 20px auto;
}

.advantage-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

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


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

.step-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--color-white);
    position: relative;
    padding-top: 80px; /* Space for the number/icon */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step-icon-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -30px); /* Adjust vertical positioning */
    width: 60px;
    height: 60px;
    background-color: var(--color-secondary); /* Background for the icon */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-icon-container img {
    width: 35px; /* Size of the icon image */
    height: 35px;
    filter: brightness(0) invert(1); /* Make icon white */
    margin: 0; /* Override default image margin */
}

.step-number {
    position: absolute;
    bottom: -15px; /* Position below the circle */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent); /* Accent color for number background */
    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: 1em;
}

.step-item h3 {
    margin-top: 15px; /* Add space below where number is */
    margin-bottom: 10px;
}

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


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

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

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

.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

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

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

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

.testimonial-item p {
    font-style: italic;
    color: var(--color-text-dark);
    flex-grow: 1; /* Makes paragraph take up remaining space */
}


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

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

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

.blog-post h3 {
    padding: 20px 20px 0 20px;
    font-size: 1.3em;
    margin-bottom: 10px;
}

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

.blog-post .read-more {
    display: inline-block;
    padding: 0 20px 20px 20px;
    color: var(--color-secondary);
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-post .read-more:hover {
    color: #32a363;
}

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

.contact-form,
.contact-info {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
}

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

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

.form-group input,
.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; /* Allow vertical resizing */
}

.contact-info h3 {
    margin-top: 0;
}

.contact-info p {
     color: var(--color-text-light);
}

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

.contact-info li {
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.contact-info li strong {
    color: var(--color-primary);
}

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


/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 50px 0 30px 0;
    font-size: 0.95em;
}

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

.footer-brand img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-info ul,
.footer-links ul,
.footer-contact ul {
    padding: 0;
}

.footer-info li,
.footer-contact li {
     margin-bottom: 10px;
     color: rgba(255, 255, 255, 0.8);
}

.footer-info li strong {
    color: var(--color-white);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    display: inline-block; /* Allow padding/margin */
    margin-bottom: 10px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

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

    .hero-text,
    .hero-image,
    .about-image,
    .about-text,
    .contact-form,
    .contact-info {
        flex: none;
        width: 100%; /* Take full width */
    }

    .hero-image,
    .about-image {
        order: -1; /* Place image above text on small screens */
    }

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

     .logo img {
        height: 35px;
    }

    .main-nav {
        display: none; /* Hide nav on small screens */
    }

    .site-header .btn-primary {
         padding: 10px 20px; /* Adjust button size */
    }

    .header-content {
        justify-content: center; /* Center logo and button if nav is hidden */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero-text h1 {
         font-size: 2.2em;
    }

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

    .services-grid,
    .advantages-grid,
    .steps-grid,
    .testimonials-grid,
    .blog-grid,
     .footer-content {
        grid-template-columns: 1fr; /* Stack columns */
    }

    .step-item {
        padding-top: 60px; /* Adjust padding for smaller icons */
    }

    .step-icon-container {
        width: 50px;
        height: 50px;
        transform: translate(-50%, -25px); /* Adjust positioning */
    }

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

     .step-number {
        width: 25px;
        height: 25px;
        font-size: 1em;
        bottom: -12px;
     }

     .testimonial-header img {
        width: 50px;
        height: 50px;
     }

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

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.2em; }

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

    .btn-lg {
        padding: 12px 25px;
        font-size: 1em;
    }

    .header-content {
         flex-direction: column;
         gap: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 5px 0;
    }
}