/* General Styles */
:root {
    --primary-blue: #003366;
    --accent-blue: #0056b3;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f8f8f8;
    --bg-white: #fff;
    --border-light: #eee;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

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

a:hover {
    text-decoration: underline;
}

.button {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--text-light);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background-color: #004085; /* Slightly darker accent blue */
    text-decoration: none;
    transform: translateY(-2px);
}

.primary-cta {
    font-size: 1.1em;
    padding: 15px 30px;
}

.text-center {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Header */
header {
    background-color: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

header h1 {
    margin: 0;
    font-size: 1.8em;
}

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

header h1 a:hover {
    color: var(--accent-blue);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: var(--primary-blue);
    font-weight: bold;
    padding: 10px 0;
    display: block;
    position: relative;
}

nav a:hover {
    color: var(--accent-blue);
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero h2 {
    color: var(--text-light);
    font-size: 3em;
    margin-bottom: 0.5em;
}

.hero .sub-headline {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Hero for inner pages */
.page-hero {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-hero h2 {
    color: var(--text-light);
    font-size: 2.5em;
}

.page-hero p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    background-color: var(--bg-white);
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.content-section h3 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
}

.content-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-blue);
    margin: 15px auto 0;
}

/* Card Grid */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1 1 calc(33% - 40px); /* Approx 3 cards per row */
    min-width: 280px;
    text-align: center;
}

.card h4 {
    color: var(--accent-blue);
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* Service List (for services page) */
.service-list .service-item {
    background-color: var(--bg-light);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-list .service-item h4 {
    color: var(--primary-blue);
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--accent-blue);
    color: var(--text-light);
    padding: 50px 20px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.cta-banner h3 {
    color: var(--text-light);
    font-size: 2em;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .button {
    background-color: var(--bg-white);
    color: var(--accent-blue);
}

.cta-banner .button:hover {
    background-color: var(--border-light);
    color: var(--primary-blue);
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

footer p {
    margin: 0.5em 0;
}

.footer-cta {
    color: var(--text-light);
    font-weight: bold;
}

.footer-cta:hover {
    color: var(--accent-blue);
}

.contact-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        margin-bottom: 15px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav li {
        margin: 0;
        border-bottom: 1px solid var(--border-light);
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        padding: 12px 15px;
    }

    .hero {
        padding: 60px 20px;
        min-height: 300px;
    }

    .hero h2 {
        font-size: 2.2em;
    }

    .hero .sub-headline {
        font-size: 1.1em;
    }

    .page-hero {
        padding: 40px 20px;
    }

    .page-hero h2 {
        font-size: 2em;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h3 {
        font-size: 1.8em;
    }

    .card-grid {
        flex-direction: column;
        gap: 20px;
    }

    .card {
        flex: 1 1 100%;
    }

    .cta-banner {
        padding: 40px 20px;
    }

    .cta-banner h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero .sub-headline {
        font-size: 1em;
    }

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

    .primary-cta {
        padding: 12px 25px;
        font-size: 1em;
    }

    .content-section h3 {
        font-size: 1.5em;
    }

    .cta-banner h3 {
        font-size: 1.5em;
    }
}