/* Global Styles */
:root {
    --primary-color: #007bff; /* Vibrant Blue */
    --secondary-color: #f8c146; /* Sunny Yellow */
    --dark-blue: #2c3e50;
    --light-gray: #f8f9fa;
    --text-color: #343a40;
    --white-color: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    color: var(--dark-blue);
    font-weight: 700;
}

h1 { font-size: 2.8em; margin-bottom: 0.5em; }
h2 { font-size: 2.4em; margin-bottom: 1em; text-align: center; }
h3 { font-size: 1.5em; margin-bottom: 0.8em; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: darken(var(--primary-color), 10%);
}

ul {
    list-style: none;
    padding: 0;
}

.section {
    padding: 80px 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
}

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

header.scrolled { /* Add class via JS if needed for shrink effect */
    padding: 10px 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Needed for absolute positioning of mobile menu */
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
    display: none; /* Hidden by default */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    z-index: 1002; /* Above nav wrapper */
}
.mobile-nav-toggle .hamburger-icon { display: block; }
.mobile-nav-toggle .close-icon { display: none; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon { display: none; }
.mobile-nav-toggle[aria-expanded="true"] .close-icon { display: block; }

.mobile-nav-toggle i { /* Style icons */
    font-size: 1.8em;
    color: var(--dark-blue);
}

/* Screen reader only text */
.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;
}


.logo {
    font-size: 1.9em;
    font-weight: bold;
    color: var(--dark-blue);
}
.logo span { /* Optional: Highlight part of the logo */
    color: var(--primary-color);
    z-index: 1001; /* Ensure logo is above mobile menu background */
}

/* Wrapper for nav list */
.nav-wrapper {
    display: contents; /* Acts as if the wrapper isn't there on desktop */
}

.primary-navigation { /* Target the ul directly */
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-navigation li {
    margin-left: 30px;
}

.primary-navigation li a {
    color: var(--dark-blue);
    font-weight: 500; /* Slightly bolder */
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

header nav ul li a::after { /* Underline effect on hover */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}
header nav ul li a:hover::after {
    width: 100%;
}


/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 123, 255, 0.6), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1509391366360-2e959784a796?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover; /* Better background */
    color: var(--white-color);
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensure it takes significant height */
}

.hero .container {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5em; /* Larger */
    margin-bottom: 25px;
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
    font-weight: 300;
}

/* About Section */
.about-bg { /* Use class selector */
    background-color: var(--light-gray);
}
#about p {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.15em;
    line-height: 1.8;
    margin: 0 auto 30px auto; /* Add bottom margin */
}
#about strong {
    color: var(--primary-color);
    font-weight: 500;
}
/* Highlight Box for Speed Promise */
.highlight-box {
    background-color: var(--white-color);
    border-left: 5px solid var(--secondary-color);
    padding: 25px 30px;
    margin: 40px auto 0 auto;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.highlight-box i {
    color: var(--secondary-color);
    flex-shrink: 0; /* Prevent icon shrinking */
}
.highlight-box p {
    margin: 0;
    font-size: 1.1em;
    text-align: left;
}
.highlight-box strong {
    color: var(--dark-blue);
}


/* Services Section */
.services-bg {
    background-color: var(--white-color); /* Keep white for contrast */
}

.service-cards {
    display: grid; /* Use grid for better alignment */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 35px;
}

.card {
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color); /* Accent border */
}

.service-icon { /* Style for service icons */
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block; /* Ensure it takes block space */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4em;
}
.card p {
    font-size: 1em;
    color: #555;
}

/* Benefits Section */
.benefits-bg { /* Use class selector */
     background-color: var(--light-gray);
}
#benefits ul {
    list-style: none; /* Remove default list style */
    padding-left: 0;
    max-width: 900px; /* Slightly wider */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust minmax */
    gap: 30px; /* Increased gap */
}

#benefits ul li {
    margin-bottom: 0; /* Remove margin as gap handles spacing */
    font-size: 1.05em; /* Slightly smaller */
    padding-left: 40px; /* More space for icon */
    position: relative;
    line-height: 1.6;
    background-color: var(--white-color); /* Add background to list items */
    padding: 15px 15px 15px 45px; /* Add padding */
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.benefit-icon { /* Style for benefit icons using <i> tag */
    position: absolute;
    left: 15px;
    top: 15px; /* Adjust vertical alignment */
    color: var(--secondary-color);
    font-size: 1.4em;
}

/* Testimonials Section */
.testimonials-bg {
    background-color: var(--white-color);
}
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 900px;
    margin: 0 auto;
}
.testimonial-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--box-shadow);
    position: relative;
}
.testimonial-card::before { /* Optional quote icon */
    content: '\f10d'; /* Font Awesome quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.8em;
    color: rgba(0, 123, 255, 0.1); /* Light primary color */
    z-index: 0;
}

.testimonial-card blockquote {
    margin: 0 0 15px 0;
    font-style: italic;
    color: #555;
    position: relative; /* Ensure text is above pseudo-element */
    z-index: 1;
}
.testimonial-card cite {
    font-weight: bold;
    color: var(--dark-blue);
    display: block; /* Put cite on new line */
    margin-top: 10px;
    font-style: normal;
    position: relative;
    z-index: 1;
}


/* Contact Section */
.contact-bg {
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* Changed gradient direction */
    color: var(--white-color);
    padding: 80px 0;
}

#contact h2 {
    color: var(--white-color);
    margin-bottom: 15px;
}

#contact p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#contact form {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Slight transparency */
    padding: 40px;
    border-radius: var(--border-radius);
}

#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact textarea {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly opaque white */
    color: var(--text-color);
    transition: border-color 0.3s ease;
}
#contact input[type="text"]::placeholder,
#contact input[type="email"]::placeholder,
#contact input[type="tel"]::placeholder,
#contact textarea::placeholder {
    color: #888;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact input[type="tel"]:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(248, 193, 70, 0.3); /* Focus ring */
}


#contact textarea {
    resize: vertical;
    min-height: 120px;
}

#contact button[type="submit"] {
    align-self: center; /* Center button */
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    padding: 15px 35px;
}
#contact button[type="submit"]:hover {
     background-color: darken(var(--secondary-color), 10%);
}

/* Privacy Section */
.privacy-content h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: var(--dark-blue);
}

.privacy-content h2 {
    text-align: center;
}

.privacy-content p, .privacy-content ul {
    max-width: 900px;
    margin: 0 auto 15px auto;
    font-size: 1em;
    line-height: 1.6;
}

.privacy-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.privacy-content ul li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: #bdc3c7; /* Light Gray */
    text-align: center;
    padding: 30px 0;
    margin-top: 0; /* Remove margin if contact section is directly above */
}
footer p {
    margin: 0;
    font-size: 0.95em;
}

/* Responsive Design */

/* Larger Tablets / Small Laptops */
@media (max-width: 992px) {
    h1 { font-size: 2.6em; } /* Slightly adjust heading sizes */
    h2 { font-size: 2.1em; }
    h3 { font-size: 1.4em; }
    .hero { padding: 120px 0; min-height: 60vh; }
    .container { width: 95%; }
    .service-cards, #benefits ul, .testimonial-cards {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Adjust grid min size */
        gap: 25px;
    }
}

/* Tablets & Mobile */
@media (max-width: 768px) {
    header {
        position: static; /* Remove sticky positioning on mobile */
        padding: 10px 0; /* Adjust padding */
    }
    /* Show Mobile Toggle Button */
    .mobile-nav-toggle {
        display: block;
    }

    /* Style the navigation list for mobile */
    .nav-wrapper {
        display: block; /* Override display: contents */
        position: fixed;
        top: 0;
        right: 0;
        width: 70%; /* Set width explicitly */
        height: 100vh; /* Full viewport height */
        margin: 0;
        padding: 0;
        z-index: 1001; /* Below toggle, above content */
        overflow-y: auto; /* Allow scrolling if content overflows */

        /* Hide menu off-screen by default */
        transform: translateX(100%);
        transition: transform 350ms ease-out;

        /* Add solid background */
        background: var(--light-gray); /* Use light gray for solid background */
        /* backdrop-filter: blur(5px); Removed backdrop-filter for solid background */
    }

    /* When menu is open (JS will add data-visible="true") */
    .nav-wrapper[data-visible="true"] {
        transform: translateX(0%);
    }

    .primary-navigation {
        /* Remove position: relative and z-index: 1 */
        flex-direction: column; /* Stack items vertically */
        padding: 2rem 2em 2em 2em; /* Further reduced top padding */
        gap: 1.5em; /* Spacing between links */
        /* Remove height: 100% and box-sizing */
    }

    .primary-navigation li {
        margin-left: 0; /* Remove left margin */
    }

    .primary-navigation li a {
        font-size: 1.2em; /* Larger text for mobile menu */
        font-weight: 500;
    }
    .primary-navigation li a:hover,
    .primary-navigation li a:focus {
        color: var(--secondary-color); /* Highlight color */
    }
    /* Remove desktop hover effect */
     .primary-navigation li a::after {
       display: none;
    }


    /* --- Existing Tablet Styles --- */
    body { line-height: 1.6; }
    h1 { font-size: 2.4em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.3em; }
    .section { padding: 60px 0; }

    /* Adjust header layout slightly if needed */
    header nav .container {
        /* Ensure container doesn't interfere with absolute positioning */
    }
    /* Keep logo visible */
    .logo { margin-bottom: 0; } /* Remove bottom margin added previously */


    .hero { padding: 100px 0; min-height: auto; }
    .hero h1 { font-size: 2.5em; } /* Adjust hero text */
    .hero p { font-size: 1.1em; margin-bottom: 30px; }

    .highlight-box { flex-direction: column; text-align: center; gap: 15px; padding: 20px; }
    .highlight-box p { text-align: center; }

    .service-cards, #benefits ul, .testimonial-cards {
        grid-template-columns: 1fr; /* Stack cards/items */
        gap: 25px;
    }
    .card, #benefits ul li, .testimonial-card {
        padding: 25px 20px; /* Adjust padding in cards */
    }
     #benefits ul li {
        padding: 20px 20px 20px 45px; /* Adjust padding */
    }
    .benefit-icon { top: 20px; } /* Adjust icon position */

    #contact form {
        padding: 30px 20px; /* Adjust form padding */
        gap: 15px;
    }
    #contact input[type="text"],
    #contact input[type="email"],
    #contact input[type="tel"],
    #contact textarea {
        padding: 14px; /* Slightly adjust input padding */
    }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
    body { font-size: 16px; } /* Increase base font size slightly for readability */
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.2em; }
    .section { padding: 50px 0; } /* Reduce section padding */

    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.2em; }
    .hero p { font-size: 1em; }

    .cta-button {
        padding: 12px 25px;
        font-size: 1em; /* Ensure button text is readable */
        width: 80%; /* Make button wider */
        max-width: 300px;
        box-sizing: border-box; /* Include padding in width */
    }
    #contact button[type="submit"] {
         width: 100%; /* Full width submit button */
         max-width: none;
         padding: 15px;
    }

    #contact form {
        padding: 25px 15px; /* Further adjust form padding */
    }
    #contact input[type="text"],
    #contact input[type="email"],
    #contact input[type="tel"],
    #contact textarea {
        padding: 12px;
        font-size: 1em; /* Ensure form font size is adequate */
    }
    footer p { font-size: 0.9em; } /* Adjust footer text size */
}
