/* --- Global Variables --- */
:root {
    /* New Professional Color Scheme (Blues & Grays) */
    --primary-color: #0d6efd; /* A standard, professional blue */
    --secondary-color: #0a58ca; /* Slightly darker blue for hover */
    --dark-blue: #003366; /* A deeper blue for accents if needed */
    --text-color: #212529; /* Darker gray for better contrast */
    --muted-text-color: #6c757d; /* Standard muted gray */
    --light-text-color: #fff;
    --bg-color: #fff;
    --light-gray-bg: #f8f9fa; /* Standard light gray */
    --border-color: #dee2e6; /* Standard border gray */
    --heading-font: 'Raleway', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --container-max-width: 1140px;
    --base-font-size: 16px;
    --line-height: 1.6;
    --spacing: 1.5rem;
    --border-radius: 0.375rem; /* Standard Bootstrap border radius */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: calc(var(--spacing) * 0.75);
    line-height: 1.3;
    color: var(--dark-blue); /* Use darker blue for headings */
}

h1 { font-size: 2.5rem; }
/* Default H2 styling (used by Contact section) */
h2 {
    font-size: 2rem;
    margin-top: var(--spacing);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.3em;
    display: inline-block; /* Default to inline-block for the underline effect */
}
h3 { font-size: 1.5rem; margin-top: calc(var(--spacing) * 0.75); color: var(--primary-color); } /* Make H3 primary color */
p { margin-bottom: var(--spacing); }
ul { list-style: none; }

/* --- Layout: Container --- */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing);
    padding-right: var(--spacing);
}

/* --- Header --- */
.site-header {
    background-color: var(--bg-color);
    padding: calc(var(--spacing) / 2) 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.site-branding .site-title {
    margin-bottom: 0;
    font-size: 1.75rem;
    font-weight: 700;
}
.site-branding .site-title a {
    color: var(--dark-blue); /* Darker blue title */
    text-decoration: none;
}
.site-branding .site-description {
    font-size: 0.85rem;
    color: var(--muted-text-color); /* Muted gray */
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Navigation --- */
.main-navigation ul.menu {
    display: flex;
    gap: var(--spacing);
}

.main-navigation ul.menu li a {
    color: var(--text-color); /* Standard text color for nav */
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}
.main-navigation ul.menu li a:hover,
.main-navigation ul.menu li a:focus {
    color: var(--primary-color); /* Highlight with primary color */
    text-decoration: none;
}

.main-navigation ul.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.main-navigation ul.menu li a:hover::after,
.main-navigation ul.menu li a:focus::after {
    width: 100%;
}


/* --- Mobile Navigation Toggle --- */
#nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
#nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--dark-blue); /* Use the deep blue */
    color: var(--light-text-color);
    text-align: center;
    padding: calc(var(--spacing) * 3) 0;
}
.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing) / 2);
    font-weight: 700;
    color: var(--light-text-color); /* White heading on dark bg */
    border-bottom: none; /* Remove border in hero */
    display: block; /* Override inline-block from default h2 */
}
.hero-section p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing);
    opacity: 0.9;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 0.8em 1.5em;
    border: 2px solid transparent; /* Setup border */
    border-radius: var(--border-radius);
    font-family: var(--heading-font);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
}
.button-primary {
    /* White button on dark hero background */
    background-color: var(--light-text-color);
    color: var(--dark-blue); /* Use dark blue text */
    border-color: var(--light-text-color);
}
.button-primary:hover, .button-primary:focus {
    background-color: transparent; /* Transparent background on hover */
    color: var(--light-text-color); /* White text */
    border-color: var(--light-text-color); /* Keep white border */
    text-decoration: none;
}

/* --- Main Content Area --- */
.content-container {
    padding-top: calc(var(--spacing) * 2);
    padding-bottom: calc(var(--spacing) * 2);
}

section {
    margin-bottom: calc(var(--spacing) * 3); /* Increased bottom margin */
    padding-bottom: calc(var(--spacing) * 2);
    /* Removed border-bottom for cleaner look between sections */
}
section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* --- Services Section --- */
/* Center the H2 specifically for the services section */
.services-section h2 {
    text-align: center; /* Center the text */
    display: block; /* Override inline-block to allow centering */
    width: 100%; /* Ensure it takes full width for centering */
    margin-left: auto;
    margin-right: auto;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing);
    margin-top: var(--spacing); /* Add space below section heading */
}
.services-list li {
    background-color: var(--bg-color); /* White background */
    padding: var(--spacing);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center; /* Center text and icon */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.services-list li:hover {
    transform: translateY(-5px); /* Subtle lift effect */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Style for Font Awesome Icons in Services */
.services-list li i.fas {
    font-size: 2.5rem; /* Make icons larger */
    color: var(--primary-color); /* Use primary blue */
    margin-bottom: var(--spacing); /* Space below icon */
    display: block; /* Crucial for text-align:center on parent to work */
    margin-left: auto;
    margin-right: auto;
}

.services-list li h3 {
    margin-bottom: calc(var(--spacing) / 2);
    font-size: 1.25rem; /* Slightly smaller H3 */
}
.services-list li p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--muted-text-color); /* Muted text for description */
}
.association-note {
    text-align: center;
    margin-top: calc(var(--spacing) * 1.5);
    font-style: italic;
    color: var(--muted-text-color);
}

/* --- Contact Section --- */
.contact-section {
    text-align: center; /* Center contact info */
    margin-top: var(--spacing);
}
/* Center H2 for Contact Section too */
.contact-section h2 {
    text-align: center;
    display: block;
    width: 100%;
}
.contact-section p {
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing) / 2);
}
.contact-section p i.fas { /* Style contact icons */
    color: var(--primary-color);
    margin-right: 8px; /* Space between icon and text */
}

/* --- Gallery Section --- */
.gallery-section {
    margin-top: var(--spacing);
}
/* Center the H2 specifically for the gallery section */
.gallery-section h2 {
    text-align: center; /* Center the text */
    display: block; /* Override inline-block */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing);
    justify-content: center;
    align-items: flex-start;
    margin-top: var(--spacing); /* Space below heading */
}
.gallery-item {
    flex-basis: 150px;
    flex-grow: 1;
    max-width: 200px;
    text-align: center;
    border: 1px solid var(--border-color);
    padding: calc(var(--spacing) / 1.5);
    border-radius: var(--border-radius);
    background-color: var(--light-gray-bg);
}
.gallery-item img {
    margin-bottom: calc(var(--spacing) / 2);
    object-fit: contain;
    max-height: 150px;
    margin-left: auto;
    margin-right: auto;
}
.gallery-item figcaption {
    font-size: 0.9rem;
    color: var(--muted-text-color);
    font-weight: 600;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-blue); /* Dark blue footer */
    color: var(--light-text-color);
    padding: calc(var(--spacing) * 1.5) 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: calc(var(--spacing) * 2); /* Add space above footer */
}
.site-footer p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    :root {
        --base-font-size: 15px;
        --spacing: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.3rem; }
    .hero-section h2 { font-size: 2rem; }

    .header-container {
        position: relative;
    }

    /* Mobile Navigation Styles */
    #nav-toggle {
        display: block;
        position: absolute;
        right: var(--spacing);
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .main-navigation.nav-active {
        max-height: 500px;
        border-top: 1px solid var(--border-color);
    }

    .main-navigation ul.menu {
        flex-direction: column;
        padding: var(--spacing);
        gap: 0;
    }

    .main-navigation ul.menu li {
        width: 100%;
    }

    .main-navigation ul.menu li a {
        display: block;
        padding: calc(var(--spacing) * 0.75) var(--spacing);
        border-bottom: 1px solid var(--border-color);
    }
    .main-navigation ul.menu li:last-child a {
        border-bottom: none;
    }
    .main-navigation ul.menu li a::after {
        display: none;
    }
     .main-navigation ul.menu li a:hover,
     .main-navigation ul.menu li a:focus {
        background-color: var(--light-gray-bg);
        text-decoration: none;
    }

    /* Hamburger animation when active */
     #nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    #nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

     /* Adjust gallery for smaller screens */
     .gallery-item {
        flex-basis: 120px;
     }

     /* Adjust service icon size */
     .services-list li i.fas {
        font-size: 2rem;
     }

    /* Ensure section headings remain centered on mobile */
    .services-section h2,
    .gallery-section h2,
    .contact-section h2 {
        text-align: center;
        display: block;
        width: 100%;
    }
}