:root {
    --primary-blue: #007bff;
    --primary-blue-dark: #0056b3;
    --light-blue: #e7f3ff;
    --white: #ffffff;
    --black: #333333;
    --gray-text: #555555; /* Slightly darker for better readability */
    --border-color: #dddddd;
    --focus-outline: 3px solid var(--primary-blue-dark);

    --font-family-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    --border-radius: 0.6rem; /* Slightly larger for softer look */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6; /* Improved readability */
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* Accessibility: Skip link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    padding: var(--spacing-sm);
    background-color: var(--primary-blue);
    color: var(--white);
    z-index: 1000;
    font-weight: bold;
    border-radius: var(--border-radius);
}

.skip-link:focus {
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    outline: var(--focus-outline);
    top: 0.5rem; /* Visible on focus */
    left: 0.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--primary-blue-dark);
}

h1 {
    font-size: 2.8rem;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-blue-dark);
}

h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
}

p {
    margin-bottom: var(--spacing-md); /* Slightly more space for readability */
    color: var(--gray-text);
}

.subtitle {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    opacity: 0.9;
}

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

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--primary-blue-dark);
    text-decoration: underline;
    outline: none;
}

a:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 3px;
    border-radius: var(--border-radius);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; /* Added box-shadow to transition */
    border: 2px solid transparent;
    font-size: 1.05rem;
    text-decoration: none;
}

.button.primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.button.primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-3px); /* Slightly more pronounced lift */
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3); /* Stronger shadow */
}

.button.secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.button.secondary:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-3px); /* Slightly more pronounced lift */
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.15); /* Stronger shadow */
}

.button.large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.2rem;
}

.button:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 4px;
}

.icon-button {
    width: 1.2em;
    height: 1.2em;
    margin-right: var(--spacing-xs);
    fill: currentColor;
}

/* Header */
header {
    background-color: var(--white);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--light-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08); /* Slightly stronger shadow for depth */
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-blue-dark);
    text-decoration: none;
}

.logo img {
    margin-right: var(--spacing-xs);
}

/* Navigation */
#main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

#main-nav a {
    color: var(--black);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
    text-decoration: none;
}

#main-nav a:hover,
#main-nav a:focus-visible {
    color: var(--primary-blue);
    text-decoration: none;
}

#main-nav a[aria-current="page"] {
    color: var(--primary-blue);
    font-weight: bold;
}

#main-nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px; /* Adjusted position */
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: var(--border-radius);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: transform 0.2s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    fill: var(--black); /* Ensure icon color matches text */
}

@media (max-width: 768px) {
    #main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-top: 1px solid var(--light-blue);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
        padding: var(--spacing-sm) 0;
        gap: var(--spacing-sm);
    }

    #main-nav ul.active {
        display: flex;
    }

    #main-nav ul li {
        width: 100%;
        text-align: center;
    }

    #main-nav ul li a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-lg);
        width: 100%;
        color: var(--black);
    }

    #main-nav ul li a:hover, #main-nav ul li a:focus-visible {
        background-color: var(--light-blue);
        color: var(--primary-blue-dark);
    }

    #main-nav a[aria-current="page"]::after {
        bottom: 0; /* Adjusted for mobile menu item */
        height: 2px;
    }

    .menu-toggle {
        display: block; /* Show on mobile */
    }

    .logo span {
        font-size: 1.3rem;
    }
}

/* Main Content Sections */
.section-block {
    padding: var(--spacing-xxl) 0;
}

.section-block.bg-light-blue {
    background-color: var(--light-blue);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent); /* Subtle pattern */
    background-size: 20px 20px;
}

/* Hero Section */
.hero {
    background: url('hero-bg.svg') no-repeat center center/cover; 
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px; /* Slightly taller for impact */
    position: relative;
    overflow: hidden;
}

.hero.small-hero {
    min-height: 320px;
    padding: var(--spacing-xl) 0;
}

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

/* Feature Cards */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Stronger, softer shadow */
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease; /* Smoother transition */
    border: 1px solid var(--border-color); /* Subtle border */
}

.feature-card:hover {
    transform: translateY(-10px); /* More noticeable lift */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); /* Even stronger shadow on hover */
}

.feature-card .icon-large {
    width: 65px;
    height: 65px;
    margin-bottom: var(--spacing-md);
    fill: var(--primary-blue);
}

.feature-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: var(--spacing-sm);
}

/* Service List */
.service-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) auto var(--spacing-xl) auto;
    max-width: 700px; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md); 
}

.service-list li {
    background-color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06); /* Slightly stronger shadow */
    border-left: 6px solid var(--primary-blue); 
    text-align: left;
    font-weight: 500;
    color: var(--black);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-list li:hover {
    transform: translateX(8px); /* More noticeable slide */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Value List */
.value-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.value-list li {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Stronger, softer shadow */
    border-top: 6px solid var(--primary-blue);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-list li:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.value-list h3 {
    color: var(--primary-blue-dark);
    margin-bottom: var(--spacing-xs);
}

/* Contact Info Cards */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.contact-info-card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Stronger, softer shadow */
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.contact-info-card .icon-large {
    width: 55px;
    height: 55px;
    margin-bottom: var(--spacing-md);
    fill: var(--primary-blue);
}

.contact-info-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: var(--spacing-xs);
}

.contact-info-card p {
    margin-bottom: var(--spacing-xs);
}

/* Map Placeholder */
.map-placeholder {
    background-color: #f8f8f8;
    border: 2px dashed var(--border-color);
    height: 350px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    margin-top: var(--spacing-lg);
    border-radius: var(--border-radius);
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--primary-blue-dark);
    color: var(--white);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05); 
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

footer a:hover,
footer a:focus {
    color: var(--light-blue);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    p {
        font-size: 0.95rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .button.large {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1.05rem;
    }
    .section-block {
        padding: var(--spacing-lg) 0;
    }
    .hero {
        min-height: 350px;
    }
    .hero.small-hero {
        min-height: 250px;
    }
    .grid-3-cols, .grid-2-cols, .value-list {
        grid-template-columns: 1fr;
    }
    .service-list {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .feature-card, .value-list li, .contact-info-card {
        padding: var(--spacing-lg);
    }
    .logo span {
        font-size: 1.1rem;
    }
}