/* General Body & Typography */
:root {
    --primary-color: #0056b3; /* A professional blue */
    --secondary-color: #003f8a; /* Darker blue */
    --accent-color: #28a745; /* Green for call to actions */
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #ffffff;
    --background-alt: #f8f9fa; /* Light grey for alternating sections */
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-light);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #218838; /* Darker green */
    transform: translateY(-2px);
}

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

.section-alt-background {
    background-color: var(--background-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 2.5em;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
.main-header {
    background-color: var(--background-light);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.nav-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.section-hero {
    background: url('hero-image.jpg') no-repeat center center/cover;
    color: var(--background-light);
    text-align: center;
    padding: 180px 0 120px; /* Adjust padding for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Full viewport height */
    position: relative;
    margin-top: -90px; /* Counteract header height */
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-headline {
    font-size: 3.8em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--background-light);
}

.hero-subheadline {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btn {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    padding-bottom: 60%; /* Aspect ratio for image container */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-light);
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-text p {
    font-size: 1.1em;
    color: var(--text-light);
}

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

.service-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-title {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.service-description {
    color: var(--text-light);
    font-size: 1em;
}

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

.testimonial-card {
    background-color: var(--background-alt);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-family: serif;
    font-size: 4em;
    color: rgba(0, 86, 179, 0.1); /* Light primary color */
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 0;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    display: block;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: var(--background-light);
    padding: 20px 25px;
    text-align: left;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--background-light);
    color: var(--text-light);
}

.faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding: 20px 25px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    align-items: center;
}

.contact-info h3,
.social-media h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.1em;
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links img {
    width: 35px;
    height: 35px;
    filter: invert(20%) sepia(80%) saturate(2000%) hue-rotate(200deg) brightness(90%) contrast(90%); /* To match primary color */
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: translateY(-3px) scale(1.1);
}

.contact-image {
    grid-column: span 2; /* Spans two columns on wider screens */
    position: relative;
    padding-bottom: 50%; /* Aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-light);
}

.contact-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
.section-footer {
    background-color: var(--secondary-color);
    color: var(--background-light);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

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

.footer-brand h3 {
    color: var(--background-light);
    font-size: 1.8em;
    margin-bottom: 10px;
}

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

.footer-links h4,
.footer-address h4 {
    color: var(--background-light);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.footer-address p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list {
        margin-top: 20px;
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default for mobile */
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .hero-headline {
        font-size: 2.8em;
    }

    .hero-subheadline {
        font-size: 1.2em;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-image {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

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

    .section-title {
        font-size: 2em;
    }

    .hero-headline {
        font-size: 2.2em;
    }
    .hero-subheadline {
        font-size: 1em;
    }
    .hero-btn {
        padding: 10px 25px;
        font-size: 1em;
    }

    .services-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 10px 20px;
    }
    .nav-brand {
        font-size: 1.5em;
    }

    .hero-headline {
        font-size: 1.8em;
    }
    .hero-subheadline {
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.6em;
    }
    .section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .contact-info p, .footer-address p {
        font-size: 0.95em;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links ul {
        padding: 0;
    }
    .footer-links ul li {
        display: inline-block;
        margin: 0 10px;
    }
}