/* --- CSS Reset & Global Variables --- */
:root {
    --primary-color: #007bff; /* Blue */
    --primary-hover: #0056b3;
    --secondary-color: #6c757d; /* Gray */
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-color: #333;
    --white-color: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

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

/* Container for Centering Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Added padding for edges on desktop */
}

/* --- Typography --- */
h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}
h1 {
    font-size: 2.5em;
    color: var(--dark-bg);
}
h2 {
    font-size: 2em;
    color: var(--dark-bg);
    margin-bottom: 1em;
}
h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 0;
}
p {
    margin-bottom: 1em;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}
a:hover {
    color: var(--primary-hover);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

.logo {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
}

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

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

nav ul li a {
    color: var(--dark-bg);
    padding: 5px 0;
    position: relative;
}

nav ul li a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:not(.cta-button):hover::after {
    width: 100%;
}

/* --- Buttons (CTAs) --- */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Special button style for dark backgrounds */
#contact .cta-button {
    background-color: var(--white-color);
    color: var(--primary-color) !important;
    border: 2px solid var(--white-color);
}
#contact .cta-button:hover {
    background-color: var(--light-bg);
    color: var(--primary-color) !important;
}


/* --- Section Styling --- */
section {
    padding: 100px 0; /* Vertical spacing */
    text-align: center;
}

/* Hero Section */
#hero {
    background-color: var(--light-bg);
    padding: 120px 0;
}
#hero h1 {
    font-size: 3.5em;
    max-width: 800px;
    margin: 0 auto 20px;
}
#hero p {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 40px;
}


/* Feature & Service Grids */
.features-grid, .support-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.feature-item, .service-item {
    flex: 1; /* Equal width distribution */
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
    transition: transform 0.3s;
}
.feature-item:hover, .service-item:hover {
    transform: translateY(-10px);
}

.feature-item p, .service-item p {
    color: var(--secondary-color);
}

/* Support Services Section */
#support-services {
    background-color: var(--light-bg);
}

/* Testimonials Section */
#testimonials {
    background-color: var(--primary-color);
    color: var(--white-color);
}
#testimonials h2 {
    color: var(--white-color);
}
blockquote {
    font-style: italic;
    font-size: 1.3em;
    padding: 20px;
    border-left: 4px solid var(--white-color);
    margin: 40px auto;
    max-width: 700px;
}
blockquote footer {
    margin-top: 10px;
    font-size: 0.8em;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
#contact {
    background-color: var(--dark-bg);
    color: var(--white-color);
}
#contact h2 {
    color: var(--primary-color);
}
#contact p {
    font-size: 1.1em;
}
#contact a {
    color: var(--white-color);
}
#contact a:hover {
    color: var(--primary-color);
}


/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: var(--light-bg);
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #3a3a3a;
}

.footer-section {
    width: 20%; /* Control column width */
    min-width: 200px; /* Ensure space on smaller screens */
    margin-bottom: 20px;
}
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li a {
    color: var(--light-bg);
    line-height: 2;
    font-size: 0.95em;
}
.footer-section ul li a:hover {
    color: var(--primary-color);
}

/* Copyright line */
footer .container:last-child {
    text-align: center;
    font-size: 0.8em;
    color: #888;
}

/* --- Responsiveness (Media Queries) --- */
@media (max-width: 992px) {
    .features-grid, .support-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    .feature-item, .service-item {
        width: 48%; /* Two columns on tablets */
    }
    #hero h1 {
        font-size: 3em;
    }
    .footer-section {
        width: 45%;
    }
}

@media (max-width: 768px) {
    /* Stack navigation */
    nav {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 15px;
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
    nav ul li a {
        display: block; /* Make links full width */
    }

    /* Stack grid items */
    .feature-item, .service-item {
        width: 100%;
    }

    /* Adjust padding and font size for smaller screens */
    section {
        padding: 60px 0;
    }
    #hero h1 {
        font-size: 2.5em;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-section {
        width: 100%;
        min-width: auto;
        margin-bottom: 30px;
    }
}