/* Basic Resets & Global Styles */
:root {
    --primary-color: #2c3e50; /* Dark Blue/Charcoal - Professional */
    --secondary-color: #3498db; /* Bright Blue - Trustworthy Accent */
    --accent-color: #e67e22; /* Orange - Call to Action / Highlight */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-light: #f9f9f9;
    --background-dark: #233140; /* Slightly darker than primary for contrast */
    --border-radius: 8px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Headings */
h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive H1 */
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive H2 */
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem); /* Responsive H3 */
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: #d66c1b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    font-size: clamp(1.2rem, 3vw, 1.8rem); /* Larger for prominent call to action */
    padding: 1rem 2.5rem;
}

.btn-secondary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    flex-direction: column; /* Stack on small screens */
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.site-title {
    margin: 0;
    color: var(--light-text-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Adjust site title size */
}

.phone-number {
    font-size: clamp(1.8rem, 5vw, 3rem); /* Large and highly visible */
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
}

.phone-number:hover {
    color: #f39c12;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, var(--primary-color), var(--background-dark));
    color: var(--light-text-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: var(--spacing-md);
}

.hero-text {
    max-width: 700px;
}

.hero-text h2 {
    color: var(--light-text-color);
    margin-bottom: var(--spacing-sm);
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Remove extra space below image */
}

/* Sections General Styling */
section {
    padding: var(--spacing-lg) 0;
}

section:nth-of-type(even) {
    background-color: var(--background-light);
}

section:nth-of-type(odd) {
    background-color: #ffffff;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.1rem;
}

/* Services Section */
.services-section {
    background-color: var(--background-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-item {
    background-color: #fff;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-item {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-item {
    background-color: #fff;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-style: italic;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-item p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.client-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-style: normal;
    margin-top: auto; /* Pushes name to the bottom */
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to right, var(--secondary-color), #2980b9);
    color: var(--light-text-color);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.contact-section h2 {
    color: var(--light-text-color);
    margin-bottom: var(--spacing-sm);
}

.contact-section p {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: var(--spacing-md);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.main-footer p {
    margin: 0.5rem 0;
}

.main-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: #f39c12;
}

/* Hidden link for SEO, visually less prominent */
.hidden-link {
    font-size: 0.7rem; /* Smaller font size */
    opacity: 0.6; /* Less visible */
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .header-content {
        flex-direction: row; /* Row on larger screens */
        justify-content: space-between;
    }

    .hero-content {
        flex-direction: row; /* Side-by-side on larger screens */
        text-align: left;
        justify-content: center;
    }

    .hero-text {
        text-align: left;
        padding-right: var(--spacing-md);
    }

    .hero-image {
        flex-shrink: 0; /* Prevent image from shrinking too much */
        width: 50%; /* Adjust width for image */
    }

    .hero-image img {
        width: 100%; /* Ensure image fills its container */
    }

    .service-grid,
    .features-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
    }
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on large screens */
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr); /* Four columns on large screens */
    }

    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on large screens */
    }
}

/* Accessibility Focus */
/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Ensure sufficient contrast (already handled by chosen colors, but good to note) */
/* Text color on primary/secondary/accent backgrounds */
.main-header, .hero-section, .feature-item, .contact-section, .main-footer {
    color: var(--light-text-color);
}
/* Text color on light backgrounds */
.service-item, .testimonial-item {
    color: var(--text-color);
}

/* Visually hidden for screen readers, but not hidden from Google */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

