/* Global Resets & Base Styles */
:root {
    --primary-color: #0D47A1; /* Deep Blue */
    --secondary-color: #1976D2; /* Medium Blue */
    --accent-color: #42A5F5; /* Light Blue */
    --text-color-dark: #212121; /* Dark Gray for text */
    --text-color-light: #FAFAFA; /* Almost White for text on dark backgrounds */
    --background-light: #F5F5F5; /* Light Gray for sections */
    --white: #FFFFFF;
    --border-color: #E0E0E0; /* Light border color */

    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
.site-header {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 45px; /* Adjust as needed */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-color-light);
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(13, 71, 161, 0.7)), url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    color: var(--text-color-light);
    padding: 12rem 0 6rem; /* Increased top padding to account for fixed header */
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
}

.hero-content .subtitle {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero-content .tagline {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

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

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.content-section h2 + .section-content {
    margin-top: 2rem; /* Space between h2 and content if content is centered */
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
    text-align: center; /* Center text in main content paragraphs */
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    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-icon-container {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.service-icon {
    font-size: 2rem;
    color: var(--white);
}

.service-item h3 {
    margin-bottom: 0.8rem;
}

/* Experience Section */
.engagement-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.engagement-list li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 1.3rem;
    width: 25px; /* Ensure icons align nicely */
    text-align: center;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: var(--text-color-dark);
    color: var(--text-color-light);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Styles for Legal Pages (Privacy Policy, Terms) */
.legal-page-content {
    padding-top: 6rem; /* Extra padding to account for fixed header */
    padding-bottom: 4rem;
}

.legal-page-content h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.legal-page-content .effective-date {
    text-align: center;
    font-style: italic;
    color: var(--text-color-dark);
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.legal-page-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.legal-page-content h2::after {
    display: none; /* Remove the underline from main h2 style */
}

.legal-page-content p,
.legal-page-content ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color-dark);
    text-align: left; /* Left-align text in legal page paragraphs and list items */
}

.legal-page-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page-content ul li {
    margin-bottom: 0.5rem;
}

.legal-page-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-page-content a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content .subtitle {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

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

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .nav-links a::after {
        display: none; /* Remove underline effect on mobile */
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero-section {
        padding: 10rem 0 4rem;
    }
}
