/* Base Styles & Reset */
:root {
    --primary-color: #4CAF50; /* Vibrant, professional green (Material Design inspired) */
    --secondary-color: #FFC107; /* Cheerful amber/gold accent */
    --text-color: #212121; /* Very dark grey for strong readability */
    --light-bg: #FDFDFD; /* Almost pure white, very light background */
    --dark-bg: #303030; /* Dark, neutral grey for header/footer */
    --border-radius: 10px; /* Slightly more rounded */
    --transition-speed: 0.3s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem units */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-bg); /* Darker for headings */
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem); /* Responsive H1 */
    margin-top: 0;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3rem); /* Responsive H2 */
    text-align: center;
    margin-bottom: 2.8rem;
}

h3 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem); /* Responsive H3 */
}

p {
    margin-bottom: 1rem;
}

.section-description {
    max-width: 850px;
    margin: 0 auto 3.5rem auto;
    text-align: center;
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

/* Utility Classes */
.container {
    max-width: 1280px; /* Slightly wider container */
    margin: 0 auto;
    padding: 1.8rem 1.2rem; /* Responsive padding */
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: background-color var(--transition-speed), transform 0.2s ease-out, box-shadow var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    letter-spacing: 0.5px;
}

.primary-button {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.primary-button:hover {
    background-color: var(--dark-bg);
    border-color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    border: 2px solid var(--secondary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Header */
.site-header {
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 1.2rem 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.header-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem; /* Space between elements */
}

.logo span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.main-nav {
    display: flex;
    gap: 1.8rem;
}

.main-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.6rem 0;
    position: relative;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%; /* Start from center */
    bottom: 0;
    width: 0;
    height: 3px; /* Thicker underline */
    background-color: var(--secondary-color);
    transition: width var(--transition-speed), left var(--transition-speed);
    transform: translateX(-50%); /* Keep centered */
}

.main-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.contact-header .phone-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0.7rem 1.4rem;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.contact-header .phone-number:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(145deg, var(--dark-bg) 0%, #4a4a4a 100%); /* New gradient */
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden; /* To contain potential image overflow */
}

.hero-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: 3rem;
}

.hero-text {
    max-width: 750px;
}

.hero-text h1 {
    color: #ffffff;
    margin-bottom: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block; /* Remove extra space below image */
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-item {
    background-color: var(--light-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text to left */
    text-align: left;
    border-top: 5px solid var(--primary-color); /* Accent border */
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.service-item p {
    font-size: 1.05rem;
    color: #555;
}

/* Why Choose Us Section */
.why-choose-us-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.why-item {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 5px solid var(--secondary-color); /* Accent border */
}

.why-item .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: block;
    line-height: 1; /* Remove extra space */
}

.why-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark-bg);
}

.why-item p {
    font-size: 1rem;
    color: #666;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--primary-color); /* Use primary color for a distinct section */
    color: #ffffff;
}

.testimonials-section h2 {
    color: #ffffff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-item {
    background-color: rgba(0, 0, 0, 0.2); /* Darker transparent white */
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    font-style: italic;
    position: relative;
    border-left: 5px solid var(--secondary-color); /* Accent border */
}

.testimonial-item p {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    color: #f0f0f0;
    line-height: 1.7;
}

.testimonial-item cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    font-size: 1rem;
}

/* Call to Action Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--dark-bg);
    color: #ffffff;
    text-align: center;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 1.8rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: #b0b0b0;
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-content p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--secondary-color);
    font-weight: 500;
}

.site-footer a:hover {
    color: #ffffff;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row; /* Side-by-side on larger screens */
        text-align: left;
    }

    .hero-text {
        flex: 1;
        padding-right: 2.5rem;
    }

    .hero-image {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .header-content {
        flex-wrap: nowrap;
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        margin-top: 1.2rem;
    }

    .contact-header {
        margin-top: 1.2rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .button {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Accessibility (WCAG AA) */
/* Ensure sufficient contrast is handled by the chosen colors */
/* Focus states for keyboard navigation */
a:focus,
button:focus,
.nav-link:focus,
.phone-number:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 4px; /* More prominent offset */
    border-radius: var(--border-radius);
}

/* Hidden text for screen readers (Google-compliant) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
