/* Global Variables (Optional, but good for consistency) */
:root {
    --primary-color: #0779e4; /* Bright Blue */
    --secondary-color: #333; /* Dark Grey */
    --light-grey: #f4f4f4;
    --medium-grey: #ddd;
    --dark-grey-text: #333;
    --light-text: #fff;
    --link-hover-color: #0056b3; /* Darker Blue */
    --font-family-sans-serif: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-arial: Arial, sans-serif; /* Fallback */
}

/* General Body Styles */
body {
    font-family: var(--font-family-sans-serif, var(--font-family-arial));
    line-height: 1.7; /* Slightly increased for readability */
    margin: 0;
    padding: 0;
    background-color: var(--light-grey);
    color: var(--dark-grey-text);
    font-size: 16px; /* Base font size */
}

/* Header and Navigation */
header {
    background: var(--secondary-color);
    color: var(--light-text);
    padding: 1rem 0;
    border-bottom: var(--primary-color) 4px solid; /* Thicker border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
}

header nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header .logo {
    font-size: 1.8rem; /* Larger logo */
    font-weight: bold;
    color: var(--light-text); /* Ensure logo is white */
    text-decoration: none;
}

header .logo a { /* If logo is a link */
    color: var(--light-text);
    text-decoration: none;
}


header ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Remove default margin */
    display: flex;
}

header ul li {
    margin-left: 25px; /* Slightly increased spacing */
}

header a:not(.logo) { /* Target nav links specifically, not logo if it's an <a> */
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 0;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent; /* For hover effect */
}

header a:not(.logo):hover,
header a:not(.logo):focus {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color); /* Underline on hover */
}


/* Main Content Area */
main {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0; /* Adjusted for full-width sections within main */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15); /* Slightly enhanced shadow */
}

main section {
    padding: 50px 25px; /* Increased padding further */
    margin-bottom: 0;
    border-bottom: 1px solid var(--medium-grey);
}

main section:first-child { /* Special handling for hero if it's the first section */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
main section:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px; /* Ensure bottom radius if it's the last */
    border-bottom-right-radius: 8px;
}

/* Hero Section */
#hero {
    background: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 70px 25px; /* Increased padding */
    /* border-radius handled by main section:first-child if applicable */
}

#hero h1 {
    font-size: 3rem; /* Larger hero title */
    margin-bottom: 20px;
    color: var(--light-text);
    font-weight: 700; /* Bolder */
}

#hero p {
    font-size: 1.3rem; /* Larger hero subtitle */
    margin-bottom: 30px;
    font-weight: 300; /* Lighter weight for subtitle */
}

.cta-button {
    display: inline-block;
    background: var(--light-text);
    color: var(--primary-color);
    padding: 15px 30px; /* Larger button */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--light-grey); /* Lighter background on hover */
    color: var(--link-hover-color);
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* General Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-grey-text);
    margin-top: 0; /* Remove default top margin for better control */
    line-height: 1.3;
}

h1 { /* Default h1, overridden by #hero h1 and section titles if needed */
    font-size: 2.6rem;
    margin-bottom: 15px;
}

h2 { /* Section Titles */
    font-size: 2.3rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

h3 { /* Sub-Section Titles or Item Titles */
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark-grey-text); /* Keep these darker for contrast within sections */
    font-weight: 600;
}

/* Home Services Section */
#home-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left; /* Align text to left for better readability in cards */
}

#home-services .service-highlight {
    background: #ffffff; /* Whiter background for cards */
    padding: 30px; /* Increased padding */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Softer, more diffused shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#home-services .service-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

#home-services .service-highlight h3 {
    color: var(--primary-color); /* Title color matches primary */
    margin-bottom: 10px;
}

#home-services .service-icon {
    width: 50px; /* Slightly smaller */
    height: 50px;
    margin-bottom: 15px;
    background-color: var(--primary-color); /* Placeholder color */
    border-radius: 8px; /* Squarish icon */
    display: flex; /* To center content if we add an actual icon font/SVG */
    align-items: center;
    justify-content: center;
    color: var(--light-text); /* For icon font if used */
    font-size: 1.8rem; /* For icon font */
}

#home-services .learn-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#home-services .learn-more:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Why Choose Us Section */
#why-choose-us ul {
    list-style: none;
    padding: 0;
    max-width: 800px; /* Constrain width for readability */
    margin: 0 auto 20px auto; /* Center the list */
}

#why-choose-us li {
    font-size: 1.1rem;
    margin-bottom: 15px; /* Increased spacing */
    padding-left: 35px; /* More space for the custom bullet */
    position: relative;
    line-height: 1.5;
}

#why-choose-us li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0; /* Align with top of text */
    font-weight: bold;
    font-size: 1.3rem;
}

/* Services Page Specific Styles */
#services-intro {
    text-align: center;
    padding-bottom: 40px; /* Increased padding */
}

#services-intro h1 {
    color: var(--primary-color);
}

#services-intro p {
    font-size: 1.15rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#service-details .service-item {
    background: #ffffff; /* Whiter background */
    padding: 35px; /* Increased padding */
    margin-bottom: 35px; /* Increased spacing */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start (left) */
    text-align: left;
}

#service-details .service-item:last-child {
    margin-bottom: 0;
}

#service-details .service-item h2 { /* Service item titles */
    text-align: left;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color); /* Use primary color for these titles too */
    font-size: 1.8rem; /* Slightly smaller than main section H2 */
}

#service-details .service-page-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    background-color: var(--primary-color);
    border-radius: 8px; /* Match card radius */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 2.5rem; /* For icon font */
}

#service-details .service-item ul {
    list-style: disc;
    margin-left: 0; /* Align with text */
    padding-left: 20px; /* Indent list items */
    margin-top: 10px;
}

#service-details .service-item ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Page Specific Styles */
#contact-intro {
    text-align: center;
    padding-bottom: 40px;
}

#contact-intro h1 {
    color: var(--primary-color);
}
#contact-intro p {
    font-size: 1.15rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* Contact Details Section */
#contact-details-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly wider min for items */
    gap: 30px;
    text-align: center;
    margin-bottom: 50px; /* Increased bottom margin */
}

.contact-info-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.contact-info-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-item p {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--dark-grey-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info-item a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}


/* Contact Form Section */
#contact-form-section h2 {
    text-align: center;
    margin-bottom: 30px;
}
#contact-form-section {
    max-width: 700px; /* Constrain form width */
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    padding: 30px 40px; /* Add padding around the form */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


#contactForm .form-group {
    margin-bottom: 20px;
}

#contactForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600; /* Slightly bolder labels */
    color: #444; /* Darker grey for labels */
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="subject"], /* Added subject */
#contactForm textarea {
    width: 100%;
    padding: 12px 15px; /* More horizontal padding */
    border: 1px solid var(--medium-grey);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit; /* Ensure form elements inherit body font */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm input[type="subject"]:focus, /* Added subject */
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(7, 121, 228, 0.3);
}

#contactForm textarea {
    resize: vertical;
    min-height: 120px; /* Minimum height for textarea */
}

#contactForm .submit-button { /* Renamed to match HTML if it was cta-button before */
    display: block; /* Make button full width */
    width: 100%;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 15px 25px; /* Larger button padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.15rem; /* Larger font */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#contactForm .submit-button:hover, #contactForm .submit-button:focus {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* Footer */
footer {
    text-align: center;
    padding: 30px 20px; /* Increased padding */
    background: var(--secondary-color);
    color: var(--light-text); /* Ensure text is light */
    margin-top: 40px; /* Increased margin */
    font-size: 0.95rem;
}

/* Utility Classes (Optional, can be expanded) */
.container {
    max-width: 1100px;
    margin: auto;
    overflow: auto;
    padding: 0 20px;
}

/* Responsive adjustments */
@media(max-width: 992px) {
    h2 { /* Section Titles */
        font-size: 2rem;
    }
    h3 { /* Sub-Section Titles */
        font-size: 1.4rem;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    #hero p {
        font-size: 1.15rem;
    }
}


@media(max-width: 768px) {
    body {
        font-size: 15px; /* Slightly smaller base font on mobile */
    }
    header nav {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px; /* Adjust padding */
    }
    header .logo {
        margin-bottom: 10px; /* Space below logo */
    }

    header ul {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
        width: 100%; /* Full width for mobile nav links */
    }

    header ul li {
        margin: 8px 0; /* Vertical spacing for nav items */
        width: 100%;
        text-align: center;
    }
    header a:not(.logo) {
        display: block; /* Make links full width */
        padding: 10px; /* Larger touch target */
        border-bottom: none; /* Remove underline effect for mobile simplicity */
    }
    header a:not(.logo):hover,
    header a:not(.logo):focus {
        background-color: rgba(255,255,255,0.1); /* Subtle hover for mobile */
        color: var(--primary-color);
        border-bottom: none;
    }

    main section {
        padding: 40px 15px; /* Reduce padding on smaller screens */
    }

    #hero h1 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    h1 {
        font-size: 1.8rem; /* General h1 for mobile */
    }

    h2 { /* Section Titles */
        font-size: 1.7rem;
    }
    h3 {
        font-size: 1.3rem;
    }

    #home-services .services-grid,
    .contact-info-grid {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
        gap: 20px;
    }
    #service-details .service-item {
        padding: 25px; /* Adjust padding for service items */
    }
    #contact-form-section {
        padding: 25px; /* Adjust form padding */
    }
}
