:root {
    --primary-color: #0A2463; /* Deeper Blue */
    --secondary-color: #3E92CC; /* Brighter Blue */
    --accent-color: #D8315B; /* Distinct Accent - consider alternatives if too bold */
    --text-color: #1D1E2C; /* Darker Gray for text */
    --light-text-color: #FFFFFF;
    --bg-color: #FFFFFF;
    --alt-bg-color: #F7F9FC; /* Lighter, cooler gray */
    --border-color: #DDE2E7;
    --font-family: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: var(--bg-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-color);
}
.logo span {
    font-weight: 400;
    color: var(--secondary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    padding: 100px 0 120px;
    text-align: center;
    min-height: auto; /* Adjusted for content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.25;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p.sub-headline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 14px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background-color: #c22a4f; /* Darker accent */
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.hero-cta {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

.hero-cta:hover {
    background-color: #f0f0f0;
    color: var(--secondary-color);
}


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

.content-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}
.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}


.content-section p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-color);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
#about p {
    text-align: left; /* Specific for about section longer text */
}


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

#about a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}
#about a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

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

.service-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.service-icon {
    margin-bottom: 20px;
    background-color: var(--secondary-color-light);
    padding: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(62, 146, 204, 0.1); /* Light background for icon */

}
.service-icon .icon {
    width: 36px;
    height: 36px;
    color: var(--secondary-color);
}


.service-item h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.service-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}
.service-item p em {
    color: var(--accent-color);
    font-weight: 500;
}


#contact .contact-email {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

#contact .contact-email a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 12px;
    border-bottom: 2px solid var(--secondary-color);
    transition: color 0.3s, border-color 0.3s;
}

#contact .contact-email a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

#contactForm {
    max-width: 650px;
    margin: 30px auto 0 auto;
    padding: 35px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

#contactForm h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(62, 146, 204, 0.2);
}


.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#contactForm button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}
.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-top: 20px;
}

footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}

footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 300;
}
footer p:last-child {
    margin-bottom: 0;
    opacity: 0.7;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    header .container {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 15px;
        font-size: 1.7rem;
    }

    nav ul {
        padding-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 8px 12px;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .content-section {
        padding: 60px 0;
    }
    .content-section h2 {
        margin-bottom: 30px;
    }
    #about p {
        text-align: center; /* Revert to center for smaller screens if preferred for consistency */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-item {
        padding: 25px;
    }
    .service-icon .icon {
        width: 32px;
        height: 32px;
    }
    .service-item h3 {
        font-size: 1.25rem;
    }

    #contactForm {
        padding: 25px;
    }
}