/* === GLOBAL STYLES & RESETS === */
:root {
    --primary-color: #005A9C; /* Professional Blue */
    --secondary-color: #007BFF; /* Lighter Blue */
    --accent-color: #FFA500;   /* Orange for CTAs */
    --accent-hover-color: #E69500;
    --text-color: #333333;
    --light-text-color: #f8f9fa;
    --background-color: #FFFFFF;
    --light-gray-bg: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;

    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; } /* For section titles */
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.required {
    color: var(--error-color);
    margin-left: 2px;
}

/* === HEADER STYLES === */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .contact-info span {
    margin-right: 1.5rem;
}
.top-bar .contact-info i {
    margin-right: 0.3rem;
}

.top-bar .quick-links a {
    color: var(--light-text-color);
    margin-left: 1rem;
    transition: color 0.3s ease;
}
.top-bar .quick-links a:hover {
    color: var(--accent-color);
}

/* Main Navigation Wrapper */
.main-nav-wrapper {
    padding: 1rem 0;
}

.main-nav-wrapper .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo img {
    max-height: 50px; /* Adjust if using an image logo */
}

/* Main Navigation */
.main-navigation > ul {
    display: flex;
    align-items: center;
}

.main-navigation ul li {
    margin-left: 1.5rem; /* Spacing between nav items */
}

.main-navigation ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 0.2rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    letter-spacing: 0.5px;
}

.main-navigation ul li a:hover,
.main-navigation ul li a.active {
    color: var(--accent-color);
}

.main-navigation ul li a::after { /* Underline effect on hover/active */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.main-navigation ul li a:hover::after,
.main-navigation ul li a.active::after {
    width: 100%;
}


/* Dropdown Menu */
.dropdown-li {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    padding: 0.5rem 0;
    min-width: 220px;
    z-index: 1001;
}
.dropdown-li:hover .dropdown-menu,
.dropdown-li:focus-within .dropdown-menu { /* Added focus-within for accessibility */
    display: block;
}
.dropdown-menu li {
    margin-left: 0;
}
.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-color);
    font-size: 0.85rem;
    text-transform: none;
    font-weight: 400;
    white-space: nowrap;
}
.dropdown-menu li a:hover {
    background-color: var(--light-gray-bg);
    color: var(--accent-color);
}
.dropdown-menu li a::after { display: none; } /* No underline for dropdown items */

/* Header CTA Button */
.cta-button-header {
    background-color: var(--accent-color);
    color: var(--light-text-color) !important; /* important to override general <a> color */
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 1.5rem; /* Space from nav */
}
.cta-button-header:hover {
    background-color: var(--accent-hover-color);
    color: var(--light-text-color) !important;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}


/* === HERO & QUOTE FORM SECTION === */
#hero-quote {
    position: relative;
    color: var(--light-text-color);
    padding: 60px 0; /* Adjust padding as needed */
    min-height: 80vh; /* Ensure it takes up significant viewport height */
    display: flex; /* For vertical centering of container */
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.jpg') no-repeat center center/cover; /* REPLACE with your image */
    /* Fallback color if image fails to load */
    background-color: var(--primary-color);
    z-index: -2;
}
.hero-background::after { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 46, 84, 0.7); /* Dark blueish overlay, adjust opacity */
    z-index: -1;
}

#hero-quote .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px; /* Space between hero text and form */
    position: relative; /* For z-index stacking if needed */
    z-index: 1;
}

.hero-content {
    flex-basis: 55%; /* Takes up more space */
}

.hero-content h1 {
    color: var(--light-text-color);
    font-size: 3rem; /* Larger hero title */
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-ctas .cta-button {
    margin-right: 1rem;
    padding: 12px 28px;
    font-size: 1rem;
}
.hero-ctas .primary-cta {
    background-color: var(--accent-color);
    color: var(--light-text-color);
}
.hero-ctas .primary-cta:hover {
    background-color: var(--accent-hover-color);
}
.hero-ctas .secondary-cta {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}
.hero-ctas .secondary-cta:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}


/* Quote Form in Hero */
.quote-form-hero {
    flex-basis: 40%;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.quote-form-hero h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.quote-form-hero p:first-of-type { /* The small text under h3 */
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #444;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.cta-button.form-submit-btn {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cta-button.form-submit-btn:hover {
    background-color: var(--accent-hover-color);
}

.form-assurance {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0; /* Remove default p margin */
}

/* === FOOTER (Placeholder) === */
footer {
    background-color: #333;
    color: var(--light-text-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 40px; /* Give some space from content */
}

/* === GENERAL SECTION STYLING === */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after { /* Decorative underline */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem auto; /* Increased bottom margin */
}


/* === COMPANY STATS SECTION === */
#company-stats {
    background-color: var(--light-gray-bg);
    padding: 50px 0;
    text-align: center;
}

#company-stats .container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* Align items to the top */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
}

.stat-item {
    flex-basis: 200px; /* Give items a base width */
    padding: 15px;
}

.stat-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    display: block; /* Make icon block to center it properly */
    margin-left: auto;
    margin-right: auto;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 0;
}


/* === SERVICES OVERVIEW SECTION === */
#services-overview {
    padding: 60px 0;
    background-color: var(--background-color); /* White background */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.service-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Align items vertically */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    transition: background-color 0.3s ease;
}
.service-card:hover .service-icon-wrapper {
    background-color: var(--primary-color);
}

.service-icon {
    font-size: 2rem;
}

.service-card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Space before learn more button */
    flex-grow: 1; /* Allows p to take up space, pushing button down */
}

.service-learn-more {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0; /* Add some padding for easier clicking */
    margin-top: auto; /* Pushes button to the bottom of the card */
}

.service-learn-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-learn-more:hover {
    color: var(--primary-color);
}
.service-learn-more:hover i {
    transform: translateX(5px);
}

/* Make sure this is before other media queries */

/* === WHY CHOOSE US SECTION === */
#why-choose-us {
    padding: 60px 0;
    background-color: var(--light-gray-bg); /* Alternating background color */
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.why-us-item {
    display: flex;
    align-items: flex-start; /* Align icon and text to the top */
    gap: 20px; /* Space between icon and text content */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.why-us-icon-wrapper {
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 55px;
    height: 55px;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.why-us-item:hover .why-us-icon-wrapper {
     background-color: var(--primary-color);
}

.why-us-content h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.why-us-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}


/* === TESTIMONIALS SECTION === */
#testimonials {
    padding: 60px 0;
    background-color: var(--background-color); /* White background */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
    margin-bottom: 3rem; /* Space before "Read More" button */
}

.testimonial-card {
    background-color: var(--light-gray-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.4;
    position: absolute;
    top: 15px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #444;
    margin-bottom: 1.5rem;
    padding-top: 1rem; /* Space below quote icon */
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1; /* Pushes author to bottom */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Pushes to bottom if flex-grow is on text */
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover; /* Ensures image covers space without distortion */
    border: 2px solid var(--border-color);
}

.author-name {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.1rem;
    font-weight: 600;
}

.author-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0;
}

.testimonial-cta {
    text-align: center;
    margin-top: 2rem;
}
.testimonial-cta .cta-button { /* Reusing existing cta-button styles */
    padding: 12px 30px;
}

/* Make sure this is before other media queries */

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.5rem; }
    #hero-quote .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        flex-basis: 100%;
        margin-bottom: 2rem;
    }
    .hero-content p { margin-left: auto; margin-right: auto; } /* Center p text */
    .quote-form-hero {
        flex-basis: 100%;
        max-width: 500px; /* Constrain form width on smaller screens */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .menu-toggle {
        display: block; /* Show hamburger icon */
        order: 3; /* Pushes it to the right of logo and nav */
        margin-left: auto; /* Pushes it to the far right if logo/nav take less space */
    }
    .cta-button-header {
        display: none; /* Hide header CTA on small screens, form is prominent */
    }

    .main-nav-wrapper .container {
        position: relative; /* For absolute positioning of nav menu */
    }

    .main-navigation {
        order: 2; /* To place it after logo if needed, or adjust if logo is small */
    }

    .main-navigation ul {
        display: none; /* Hide nav links by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the .main-nav-wrapper */
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
    }
    .main-navigation ul.nav-open {
        display: flex; /* Show when toggled */
    }
    .main-navigation ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-navigation ul li a {
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--light-gray-bg);
    }
    .main-navigation ul li a::after { display: none; } /* No underline on mobile nav */

    .dropdown-menu { /* Adjust dropdown for mobile */
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem; /* Indent dropdown items */
        min-width: auto;
        display: none; /* Controlled by JS or :hover/:focus-within still works with parent display:block */
    }
    .dropdown-li:hover .dropdown-menu,
    .dropdown-li.open .dropdown-menu { /* Use a class 'open' if toggling with JS */
        display: block;
    }
    .dropdown-menu li a { font-size: 0.8rem; padding: 0.6rem 1rem; }


    .top-bar .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .top-bar .contact-info, .top-bar .quick-links {
        margin-bottom: 0.3rem;
    }
    .top-bar .contact-info span { margin: 0 0.5rem; }
    .top-bar .quick-links a { margin: 0 0.5rem; }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
    .hero-ctas .cta-button { width: 80%; max-width: 300px; }

    .quote-form-hero { padding: 1.5rem; }
}