/* =========================================
   iFlow Systems - Main Stylesheet
   Version: 1.0
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark gray for text */
    background-color: #ffffff; /* White background */
}

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

/* Header & Navigation */
header {
    background: #2c3e50; /* Darker, slightly blue-ish gray for header */
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header #logo-link #logo {
    height: 50px;
    width: auto;
}

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

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active-link,
.dropdown:hover .dropbtn {
    background-color: #90ee90; /* Light green accent on hover/active */
    color: #2c3e50;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0 0 4px 4px;
    padding: 5px 0;
}

.dropdown .dropdown-content a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    text-transform: none;
    font-size: 14px;
}

.dropdown .dropdown-content a:hover {
    background-color: #90ee90;
    color: #2c3e50;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu Toggle */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/hero-background.jpg') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.3em;
    margin-bottom: 35px;
    max-width: 700px;
}

.cta-button {
    display: inline-block;
    background: #90ee90;
    color: #2c3e50;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #79d979;
    transform: translateY(-2px);
}

/* Main Content Sections */
main {
    padding-top: 20px;
}
main section {
    padding: 50px 0;
}
main section:nth-child(even) {
    background-color: #f9f9f9;
}

main h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

main h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #90ee90;
    margin: 10px auto 0;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #2c3e50;
}

.page-content h1::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #90ee90;
    margin: 10px auto 0;
}

.service-banner-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    max-height: 350px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Service Cards */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    flex-basis: calc(33.333% - 20px);
    min-width: 280px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.3em;
}
.service-card p {
    font-size: 0.95em;
    color: #555555;
}

/* Why Choose Us & Other Lists */
#why-choose-us ul, .services-at-branch ul {
    list-style: none;
    padding-left: 0;
    max-width: 700px;
    margin: 0 auto;
}

#why-choose-us ul li, .services-at-branch ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
    padding-left: 35px;
    position: relative;
    line-height: 1.4;
}
#why-choose-us ul li::before, .services-at-branch ul li::before {
    content: '✔';
    color: #90ee90;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Testimonials */
#testimonials {
    background-color: #f9f9f9;
}
.testimonial {
    background: #ffffff;
    padding: 20px;
    margin: 0 auto 20px auto;
    max-width: 650px;
    border-left: 5px solid #90ee90;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.07);
}
.testimonial p {
    font-style: italic;
    color: #444444;
    margin-bottom: 10px;
}
.testimonial p:last-child {
    font-style: normal;
    font-weight: bold;
    text-align: right;
    color: #2c3e50;
}

/* Contact Page Specifics */
.location-card {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}
.location-card h2 {
    text-align: left;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.8em;
}
.location-card h2::after {
    display: none;
}
.location-card p {
    margin-bottom: 10px;
    color: #555;
}
.location-card strong {
    color: #333;
}
.location-card a {
    color: #90ee90;
    text-decoration: none;
    font-weight: bold;
}
.location-card a:hover {
    text-decoration: underline;
    color: #79d979;
}

.map-embed iframe {
    width: 100%;
    height: 350px;
    border: none;
    margin-top: 15px;
    border-radius: 5px;
}

.contact-form-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 40px auto;
}
.contact-form-section h2 {
    color: #2c3e50;
}

#contact-form div {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}
#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form input[type="tel"]:focus,
#contact-form textarea:focus {
    border-color: #90ee90;
    outline: none;
    box-shadow: 0 0 0 2px rgba(144, 238, 144, 0.3);
}

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

#contact-form .cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}
footer p {
    margin-bottom: 10px;
    font-size: 0.9em;
}
footer a {
    color: #90ee90;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Responsive Design */
@media(max-width: 992px) { /* Tablet and below */
    .service-card {
        flex-basis: calc(50% - 15px);
    }
}

@media(max-width: 768px) { /* Mobile */
    header .container {
        flex-direction: column;
        align-items: flex-start;
        position: relative; /* For toggle positioning */
    }

    #menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    header nav {
        width: 100%;
        margin-top: 15px;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #34495e;
        border-radius: 4px;
    }

    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        text-align: left;
        padding: 0;
        margin-left: 0;
        width: 100%;
    }

    header nav ul li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #4a637c;
        border-radius: 0;
    }

    header nav ul li:last-child a {
        border-bottom: none;
    }
    
    .dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #4a637c;
        border-radius: 0;
        padding: 0;
        border-bottom: 1px solid #2c3e50;
    }
    .dropdown .dropdown-content a {
        padding-left: 30px;
    }

    #hero h1 {
        font-size: 2.2em;
    }
    #hero p {
        font-size: 1.1em;
    }

    main h2, .page-content h1 {
        font-size: 1.8em;
    }

    .service-card {
        flex-basis: 100%;
    }
}