/* --- Universal Reset & Box-Sizing --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevents accidental horizontal scrolling */
}

/* --- Root Variables (Color Palette from your logo) --- */
:root {
    --primary-color: #00BCD4; /* Teal/Cyan from logo */
    --secondary-color: #ffffff;
    --dark-color: #212529; /* A darker charcoal grey */
    --light-gray: #f4f4f4;
}

/* --- General Body Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: var(--dark-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .logo img {
    max-height: 40px;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar nav ul li {
    margin-left: 20px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-background.jpg') no-repeat center center/cover;
    height: 90vh;
    width: 100%; /* Ensures it spans the full width of the body */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 60px; /* Offset for fixed navbar */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0097a7; /* A darker shade of teal */
}

/* --- Service Split Section --- */
.service-split {
    display: flex;
    width: 100%;
    min-height: 400px;
}

.service-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: scale(1.03);
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.service-box:hover::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.service-box-content {
    position: relative;
    z-index: 1;
}

.service-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.domestic {
    background-image: url('images/domestic-service.jpg');
}

.commercial {
    background-image: url('images/commercial-service.jpg');
}

/* --- Page Content Styles --- */
.page-content {
    padding-top: 120px;
    padding-bottom: 40px;
}
.page-content h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}
.page-content p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
/* --- About Page Specific Styles --- */
body.about-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/about.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.about-page .about-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content .content-box {
    background-color: transparent;
    color: #fff;
    padding: 0;
    max-width: 900px;
    margin: 4rem 1rem;
    text-align: center;
}

.about-content .content-box h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-content .content-box > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.about-content .features {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-content .feature {
    max-width: 250px;
}

.about-content .feature h3 {
    color: #fff;
}
/* --- Services Page Specific Styles --- */
.services-page .page-content {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    padding-top: 20px;
    padding-bottom: 20px;
}

.services-page .page-content h1 {
    color: var(--primary-color);
}

/* --- Contact Page & Form Styles --- */
.contact-page-main {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/bottle.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 100px 0 60px 0;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
}

.contact-page-main .container {
    max-width: 650px;
}

.contact-page-main h1 {
    color: var(--primary-color);
    text-align: center;
}

.contact-page-main p {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
}

.form-toggle {
    text-align: center;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.toggle-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.form-wrapper {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.25);
}

.form-wrapper .btn {
    width: 100%;
    padding: 15px;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

/* --- Service Page List Styles --- */
.service-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    display: inline-block;
}

.service-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.service-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* --- Footer Styles --- */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 1.5rem 0;
}

.footer .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer p {
    margin-bottom: 1rem;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .social-icon {
    font-size: 2rem;
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Mobile Navigation Styles --- */
.mobile-nav-toggle {
    display: none; /* Hidden by default on desktop */
}

/* Use a media query to apply these styles only on smaller screens */
@media (max-width: 768px) {
    .primary-navigation {
        position: fixed;
        inset: 0 0 0 30%; /* Slide in from the right */
        flex-direction: column;
        padding: min(20vh, 10rem) 2rem;
        background: var(--dark-color);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
        z-index: 999; /* Below the header but above other content */
    }

    .primary-navigation[data-visible="true"] {
        transform: translateX(0%); /* Show the menu */
    }

    .navbar nav ul li {
        margin-left: 0; /* Remove side margin for vertical layout */
    }

    .primary-navigation li {
    margin-bottom: 2rem;
}
.primary-navigation li a {
    font-size: 2.25rem;
}
    
/* --- Mobile Navigation Styles --- */
.mobile-nav-toggle {
    display: block;
    position: absolute;
    z-index: 1001;
    background-color: transparent;
    /* UPDATED: Hamburger icon is now embedded directly in the CSS */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 100 80'%3e%3crect width='100' height='10'%3e%3c/rect%3e%3crect y='30' width='100' height='10'%3e%3c/rect%3e%3crect y='60' width='100' height='10'%3e%3c/rect%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
}

.mobile-nav-toggle[aria-expanded="true"] {
    /* UPDATED: Close icon is also embedded now */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 100 100'%3e%3cpath d='M73.8,88.4L11.6,26.2c-1.6-1.6-1.6-4.1,0-5.7l5.7-5.7c1.6-1.6,4.1-1.6,5.7,0L88.4,73.8c1.6,1.6,1.6,4.1,0,5.7l-5.7,5.7C77.9,89.9,75.4,89.9,73.8,88.4z'/%3e%3cpath d='M88.4,26.2L26.2,88.4c-1.6,1.6-4.1,1.6-5.7,0l-5.7-5.7c-1.6-1.6-1.6-4.1,0-5.7L73.8,11.6c1.6-1.6,4.1-1.6,5.7,0l5.7,5.7C89.9,22.1,89.9,24.6,88.4,26.2z'/%3e%3c/svg%3e");
}

    /* Helper class for screen readers */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* --- Research Page Form Styles --- */
.radio-group label {
    margin-bottom: 1rem;
}
.radio-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.radio-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

/* --- Research Page Specific Styles --- */
.research-page-main {
    /* Sets the background image for the survey page */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/survey.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff; /* Make the page title and paragraph white */
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.research-page-main h1 {
    color: var(--primary-color);
}

/* This will center-align all the text inside the form */
.research-page .form-wrapper {
    text-align: center;
}

/* This makes the radio button options sit neatly in the center */
.research-page .radio-options {
    justify-content: center;
}

/* --- Form Success Message --- */
.form-success-message {
    display: none; /* Hide the message by default */
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: #fff; /* Give it a solid white background */
}

/* This class will be added by JavaScript on successful submission */
.form-wrapper.form-submitted {
    background-color: transparent; /* Make the grey box disappear */
    padding: 0; /* Remove the extra padding */
    border-radius: 0;
    box-shadow: none;
}

.form-wrapper.form-submitted form {
    display: none; /* Hide the form itself */
}

.form-wrapper.form-submitted .form-success-message {
    display: block; /* Show the success message */
}