/* --- CSS Variables (Brand Colors) --- */
:root {
    --color-dark-blue: #0a2342; /* A deep, rich blue */
    --color-orange: #f26522; /* primary orange */
    --color-red: #d90000; /* logo red for accents */
    --color-white: #ffffff;
    --color-light-gray: #f4f7f6; /* A very subtle light gray */
    --color-text-dark: #333333;
    --color-text-light: #eeeeee;
    --spacing-unit: 1.5em; /* Define a base spacing unit */
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

    body.no-scroll {
        overflow: hidden; /* Prevents scrolling when menu is open */
    }

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-dark-blue);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 3.8em; /* Slightly larger for impact */
    margin-bottom: 0.4em; /* Tighter to sub-headline */
}

h2 {
    font-size: 2.8em; /* Modern, larger heading */
    text-align: center;
    margin-bottom: 1.2em; /* Tighter to content below */
    position: relative; /* For the underline animation */
}

h3 {
    font-size: 1.7em; /* Slightly larger for sub-headings */
}

p {
    margin-bottom: .5em; /* Consistent paragraph spacing */
}

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth color change on hover */
}

    a:hover {
        color: var(--color-red); /* Hover effect for links */
        text-decoration: none;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em var(--spacing-unit); /* Responsive padding */
}

.btn-navbar {
    background-color: var(--color-orange);
    color: var(--color-white);
    padding: 0.2em 0.5em; /* Larger padding for prominent buttons */
    border-radius: 50px; /* Pill shape */
    font-size: 1.15em; /* Slightly larger text */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Hover effects */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
.btn-navbar:hover {
    background-color: var(--color-dark-blue); /* Orange to Dark Blue on hover */
    transform: translateY(-2px); /* Slight lift */
    text-decoration: none;
}

.btn {
    display: inline-block;
    background-color: var(--color-orange);
    color: var(--color-white);
    padding: 1em 2.5em; /* Larger padding for prominent buttons */
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15em; /* Slightly larger text */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Hover effects */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

    .btn:hover {
        background-color: var(--color-dark-blue); /* Orange to Dark Blue on hover */
        transform: translateY(-2px); /* Slight lift */
        text-decoration: none;
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-orange);
    color: var(--color-orange);
}

    .btn-outline:hover {
        background-color: var(--color-orange);
        color: var(--color-white);
        transform: translateY(-2px);
    }

/* --- Header/Navigation (Desktop First) --- */
.main-header {
    background-color: var(--color-dark-blue);
    padding: 1em 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

    .main-header .container {
        display: flex;
        justify-content: space-between; /* Distribute items */
        align-items: center;
        padding: 0 var(--spacing-unit);
    }

.logo-area {
    /* No flex-grow or padding-left here for desktop. */
    /* This will simplify centering on desktop and responsiveness on mobile. */
    flex-shrink: 0; /* Prevent shrinking too much */
}

    .logo-area img {
        height: 50px; /* Adjust logo height */
        max-width: 100%;
    }

.main-nav {
    /* Default Desktop state */
    display: block; /* Show desktop navigation */
    flex-shrink: 0; /* Prevent shrinking when space is tight */
}

    .main-nav ul {
        list-style: none;
        display: flex;
    }

        .main-nav ul li {
            margin-left: 2.5em;
        }

            .main-nav ul li a {
                color: var(--color-white);
                font-weight: 600;
                position: relative;
                padding-bottom: 5px;
            }

                .main-nav ul li a::after {
                    content: '';
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    width: 0;
                    height: 2px;
                    background-color: var(--color-orange);
                    transition: width 0.3s ease-out;
                }

                .main-nav ul li a:hover::after {
                    width: 100%;
                }

/* Hamburger Toggle for desktop, default hidden */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
    z-index: 1002; /* Needs to be above the mobile menu */
    flex-direction: column; /* To stack the bars */
    justify-content: space-between; /* Space out the bars */
    width: 25px; /* Width of the hamburger icon */
    height: 20px; /* Height of the hamburger icon */
}

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--color-white);
        transition: all 0.3s ease-in-out;
    }

/* --- Hero Section --- */
.hero {
    background: url('../images/home-2500.jpg') no-repeat center center;
    background-size: cover;
    color: var(--color-white);
    text-align: center;
    padding: 14em 0 10em;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

    .hero .container {
        position: relative;
        z-index: 2;
        max-width: 900px;
    }

    .hero h1 {
        color: var(--color-white);
        font-size: 4.5em;
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        animation: fadeInDown 1s ease-out;
    }

    .hero p {
        font-size: 1.5em;
        margin-bottom: 2.5em;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        animation: fadeInUp 1s ease-out 0.3s;
    }

    .hero .btn {
        animation: fadeIn 1s ease-out 0.6s;
    }

/* Hero Services List */
.hero-services {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em 1.5em;
    padding: 0;
    margin: 0 auto 1.5em;
    max-width: 900px;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

    .hero-services li {
        color: var(--color-white);
        font-size: 1.2em;
        font-weight: 600;
        position: relative;
        padding: 0.3em 0;
    }

        .hero-services li:not(:last-child)::after {
            content: '•';
            margin-left: 1.5em;
            color: var(--color-orange);
        }

.hero-tagline {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-orange);
    margin-bottom: 2em;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: both;
}

/* Animations for hero section */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Core Services Section --- */
.core-services {
    background-color: var(--color-light-gray);
    padding: 7em 0;
}

.core-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3em;
    margin-top: 2em;
}

.core-service-card {
    background-color: var(--color-white);
    padding: 2.5em;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .core-service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        background-color: var(--color-light-gray);
    }

.core-service-card i {
    font-size: 4em;
    color: var(--color-orange);
    margin-bottom: 0.6em;
}

.core-service-card h3 {
    color: var(--color-dark-blue);
    font-size: 1.5em;
    margin-bottom: 0.6em;
}

.core-service-card p {
    color: var(--color-text-dark);
    font-size: 1em;
    line-height: 1.7;
}

/* --- Section Styling (General) --- */
section {
    padding: 7em 0;
}

    section:nth-of-type(even) {
        background-color: var(--color-light-gray);
    }

    section h2 {
        margin-bottom: 1.5em;
    }

        section h2::after {
            content: '';
            display: block;
            width: 80px;
            height: 5px;
            background-color: var(--color-orange);
            margin: 0.5em auto 0;
            border-radius: 3px;
            transition: width 0.3s ease;
        }

/* --- About Section --- */
.about-us .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
    align-items: center;
    justify-content: center;
}

.about-us .text-content {
    flex: 2;
    min-width: 350px;
    max-width: 700px;
}

.about-us .image-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

    .about-us .image-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.key-differentiators {
    margin-top: 4em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5em;
}

    .key-differentiators .item {
        background-color: var(--color-white);
        padding: 2em;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .key-differentiators .item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }

        .key-differentiators .item i {
            font-size: 3.2em;
            color: var(--color-orange);
            margin-bottom: 0.6em;
        }

        .key-differentiators .item h3 {
            font-size: 1.4em;
            margin-bottom: 0.6em;
            color: var(--color-dark-blue);
        }

        .key-differentiators .item p {
            font-size: 1em;
            color: var(--color-text-dark);
        }

/* --- Services Section --- */

.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3em;
    margin-top: 2em;
}

.services .service-item {
    background-color: var(--color-white);
    padding: 2.5em;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

    .services .service-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        background-color: var(--color-light-gray);
    }

    .services .service-item i {
        font-size: 4em;
        color: var(--color-orange);
        margin-bottom: 0.6em;
    }

    .services .service-item h3 {
        color: var(--color-dark-blue);
        margin-bottom: 0.6em;
    }

/* --- Why Choose Us Section --- */


.why-choose-us .advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3em;
    margin-top: 2em;
}

.why-choose-us .advantage-item {
    background-color: var(--color-white);
    padding: 2.5em;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

    .why-choose-us .advantage-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        background-color: var(--color-light-gray);
    }

    .why-choose-us .advantage-item i {
        font-size: 4em;
        color: var(--color-orange);
        margin-bottom: 0.6em;
    }

    .why-choose-us .advantage-item h3 {
        color: var(--color-dark-blue);
        margin-bottom: 0.6em;
    }

    .why-choose-us .advantage-item p {
        font-size: 1em;
    }


/* --- Detailed services List Section --- */

.no-bullet-list {
    list-style-type: none; /* remove the bullet points */
    padding-left: 0; /* Remove default padding browsers add to Uls */
    margin-left: 0; /* Remove default margin browsers add to Uls */
}

    .no-bullet-list li {
        margin-bottom: 1px; /* Add some space between your list items */
    }

        /* Optional: Adjust margins of paragraphs *inside* list items */
        .no-bullet-list li p {
            margin-bottom: 0; /* Remove default bottom margin from paragraphs within list items */
        }

/* --- WATTS Section --- */
.WATTS .WATTS-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em;
    justify-content: center;
    margin-top: 2em;
}

.WATTS .WATTS-item {
    background-color: var(--color-white);
    padding: 2.5em;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    max-width: 550px;
    flex: 1;
    min-width: 320px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .WATTS .WATTS-item::before {
        font-family: 'Font Awesome 6 Free'; /* Updated font-family for FA6 */
        font-weight: 900;
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 2em;
        color: var(--color-orange);
        opacity: 0.3;
    }

    .WATTS .WATTS-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    }

    .WATTS .WATTS-item p {
        font-style: italic;
        font-size: 1.1em;
        margin-bottom: 1.2em;
        color: var(--color-dark-blue);
        position: relative;
        z-index: 1;
    }

    .WATTS .WATTS-item .author {
        font-weight: 700;
        color: var(--color-orange);
        font-size: 1.05em;
    }

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient( rgba(10, 35, 66, 0.9), rgba(10, 35, 66, 0.9) );
    color: var(--color-white);
    text-align: center;
    padding: 6em 0;
}

    .cta-section h2 {
        color: var(--color-white);
        font-size: 3.2em;
    }

        .cta-section h2::after {
            background-color: var(--color-orange);
        }

    .cta-section p {
        font-size: 1.3em;
        margin-bottom: 2.5em;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-section .btn {
        background-color: var(--color-orange);
        color: var(--color-white);
        padding: 1.5em 3em;
        font-size: 1.4em;
        border-radius: 50px;
    }

        .cta-section .btn:hover {
            background-color: var(--color-red);
        }

/* --- Footer --- */
.main-footer {
    background-color: var(--color-dark-blue);
    color: var(--color-text-light);
    padding: 4em 0;
    text-align: center;
    font-size: 0.95em;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

    .footer-nav ul li {
        margin: 0.8em 2em;
    }

        .footer-nav ul li a {
            color: var(--color-text-light);
            font-weight: 600;
            transition: color 0.3s ease;
        }

            .footer-nav ul li a:hover {
                color: var(--color-orange);
                text-decoration: none;
            }

.social-links {
    margin-bottom: 2em;
}

    .social-links a {
        color: var(--color-white);
        font-size: 1.8em;
        margin: 0 1em;
        transition: color 0.3s ease, transform 0.2s ease;
    }

        .social-links a:hover {
            color: var(--color-orange);
            transform: translateY(-3px);
        }

.copyright {
    margin-top: 1.5em;
    font-size: 0.9em;
    opacity: 0.8;
}

/* --- Responsive Design (Mobile First adjustments within media queries) --- */
@media (max-width: 992px) {
    /* Header specific overrides for screens smaller than 992px */
    .main-header .container {
        padding: 0 var(--spacing-unit); /* Ensure consistent padding */
    }

    .logo-area {
        /* On mobile/tablet, logo moves to the left */
        flex-grow: 0; /* Important: removes flex-grow from desktop */
        text-align: left;
        padding-left: 0; /* Reset desktop padding */
    }

    .main-nav {
        /* Mobile Menu State - Hidden by default, shown when 'active' */
        display: flex; /* Change to flex to use flex-direction column */
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen to the right */
        width: 100%;
        height: 100vh; /* Make it full viewport height */
        background-color: var(--color-dark-blue);
        padding-top: 80px; /* Space from top to account for header */
        transition: right 0.4s ease-in-out;
        justify-content: center; /* Center content vertically */
        align-items: center; /* Center content horizontally */
        z-index: 998; /* Below menu-toggle, but above content */
        flex-direction: column; /* Stack menu items vertically */
        overflow-y: auto; /* Allow scrolling for long menus */
    }

        .main-nav.active {
            right: 0; /* Slide into view */
        }

        .main-nav ul {
            flex-direction: column;
            text-align: center;
            width: 100%;
            margin-left: 0;
            padding: 0;
        }

            .main-nav ul li {
                margin: 1.5em 0;
                font-size: 1.3em;
            }

                .main-nav ul li a {
                    color: var(--color-white); /* Ensure links are white in mobile menu */
                }

    .menu-toggle {
        display: block; /* CRITICAL: Make the hamburger icon visible on mobile/tablet */
    }
        /* Hamburger icon animation - These are already correct in your current CSS */
        .menu-toggle.active .bar:nth-child(2) {
            opacity: 100;
        }

        .menu-toggle.active .bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .menu-toggle.active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

    /* Adjust hero section and headings for smaller screens */
    .hero h1 {
        font-size: 3.5em;
    }

    .hero p {
        font-size: 1.3em;
    }

    .hero-services li {
        font-size: 1.1em;
    }

    .core-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5em;
    }

    h2 {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 10em 0 7em;
        min-height: 70vh;
    }

        .hero h1 {
            font-size: 2.8em;
        }

    .hero-services {
        flex-direction: column;
        gap: 0.3em;
    }

        .hero-services li {
            font-size: 1em;
        }

            .hero-services li:not(:last-child)::after {
                display: none;
            }

    .hero-tagline {
        font-size: 1.1em;
    }

    .core-services {
        padding: 4em 0;
    }

    .core-services-grid {
        grid-template-columns: 1fr;
    }

    .core-service-card {
        padding: 2em;
    }

    h2 {
        font-size: 2em;
    }

    .about-us .content-wrapper,
    .key-differentiators,
    .services .service-grid,
    .why-choose-us .advantage-grid,
    .WATTS .WATTS-slider {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .about-us .image-content {
        order: -1;
        margin-bottom: 2em;
    }

    section {
        padding: 5em 0;
    }

    .cta-section {
        padding: 4em 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
        padding: 0 1em;
    }

    h2 {
        font-size: 1.6em;
    }

    .btn {
        font-size: 1em;
        padding: 0.8em 1.5em;
    }

    .logo-area img {
        height: 40px;
    }

    .main-nav ul li {
        font-size: 0.9em;
    }

    .footer-nav ul li {
        margin: 0.5em 1em;
    }
}

/* Basic form styling to make it somewhat presentable with the new CSS variables */
form {
    max-width: 600px;
    margin: 0; /* Changed from auto to 0, as it will be in a flex column */
    padding: 2em;
    background-color: var(--color-light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    form div {
        margin-bottom: 1em;
    }

    form label {
        display: block;
        margin-bottom: 0.5em;
        font-weight: 600;
        color: var(--color-dark-blue); /* Default color for label text */
    }

/* Styles for required text (the "(required)" part) */
.required-text {
    font-style: italic;
    color: var(--color-orange);
}

form input[type="text"],
form input[type="number"],
form select,
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
}

    form input[type="text"]:focus,
    form input[type="email"]:focus,
    form input[type="number"]:focus,
    form select:focus,
    form input[type="tel"]:focus,
    form textarea:focus {
        border-color: var(--color-orange);
        outline: none;
        box-shadow: 0 0 5px rgba(242, 101, 34, 0.5);
    }

form button[type="submit"] {
    /* Inherit .btn styles if desired, or define specific form button styles */
    display: block; /* Make the button take full width if desired */
    width: auto; /* Adjust width */
    margin-top: 1.5em; /* Space above the button */
    margin-left: auto; /* Center button */
    margin-right: auto; /* Center button */
}

/* --- New styles for two-column contact section --- */
.flex-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    justify-content: center; /* Center items when they wrap or there's extra space */
    align-items: flex-start; /* Align items to the top */
    gap: 3em; /* Space between the two columns */
    padding-top: 2em; /* Add some padding if needed */
}

.cta-text-and-info {
    flex: 1; /* Allows it to grow and shrink */
    min-width: 300px; /* Minimum width before wrapping */
    max-width: 500px; /* Maximum width for the left column */
    text-align: left; /* Adjust text alignment for this block */
}

    .cta-text-and-info h2,
    .cta-text-and-info p {
        text-align: left; /* Override previous center alignment for these elements */
    }

        .cta-text-and-info h2::after {
            margin: 0.5em 0 0; /* Adjust underline position for left alignment */
        }

.contact-details {
    margin-top: 2em; /* Space between paragraphs and contact info */
    line-height: 2; /* Better readability for contact info */
}

.contact-form-area {
    flex: 1; /* Allows it to grow and shrink */
    min-width: 300px; /* Minimum width before wrapping */
    max-width: 600px; /* Max width for the form column */
}

    /* Ensure the contact form h2 is centered within its column */
    .contact-form-area h2 {
        text-align: center;
    }

/* Responsive adjustments for flex-content-wrapper */
@media (max-width: 768px) {
    .flex-content-wrapper {
        flex-direction: column; /* Stack columns on smaller screens */
        align-items: center; /* Center stacked items */
    }

    .cta-text-and-info,
    .contact-form-area {
        max-width: 100%; /* Allow them to take full width when stacked */
        text-align: center; /* Center content when stacked */
    }

        .cta-text-and-info h2,
        .cta-text-and-info p {
            text-align: center; /* Center text when stacked */
        }

            .cta-text-and-info h2::after {
                margin: 0.5em auto 0; /* Center underline when stacked */
            }
}