/* style.css */

/* Custom Properties for consistent theming */
:root {
    --primary-dark: #2C3E50;
    --accent-teal: #3C6E71;
    --light-text: #ECF0F1;
    --secondary-bg: #F8F9FA;
}

/* Base styles and font import */
body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-dark);
    background-color: var(--secondary-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* General container for consistent spacing */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Header specific styles */
header {
    background-color: var(--primary-dark);
    color: var(--light-text);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    background-color: var(--accent-teal);
    color: var(--light-text);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem; /* Rounded corners */
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header nav a {
    color: var(--light-text);
    border: 2px solid var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem; /* Rounded corners */
    transition: all 0.3s ease-in-out;
}

header nav a:hover {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
    background-color: rgba(60, 110, 113, 0.1); /* Slight background on hover */
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-dark); /* Fallback/base color */
    position: relative;
    padding: 4rem 0; /* py-16 */
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(44, 62, 80, 0.8) 100%);
    opacity: 0.95; /* bg-opacity-90 */
    z-index: 0;
}

.hero-section h1 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 800; /* font-extrabold */
    margin-bottom: 1.5rem; /* mb-6 */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    color: var(--light-text);
}

.hero-section p {
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 2rem; /* mb-8 */
    max-width: 48rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text);
}

.hero-section a {
    display: inline-block;
    background-color: var(--accent-teal);
    color: var(--light-text);
    font-weight: 700; /* font-bold */
    padding: 1rem 2rem; /* py-4 px-8 */
    border-radius: 9999px; /* rounded-full */
    font-size: 1.25rem; /* text-xl */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wide */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.hero-section a:hover {
    background-color: rgba(60, 110, 113, 0.9); /* hover:bg-opacity-90 */
    transform: scale(1.05); /* hover:scale-105 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Image Section */
section img {
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); /* shadow-lg */
    width: 100%;
    max-width: 64rem; /* max-w-4xl */
    height: auto;
    object-fit: cover;
}

/* Section Headings */
h2 {
    font-size: 2rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    text-align: center;
    margin-bottom: 3rem; /* mb-12 */
}

/* Service Cards */
.service-card {
    background-color: white;
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
    border-top: 4px solid var(--accent-teal); /* border-t-4 border-accent-teal */
    transition: all 0.3s ease-in-out;
}

.service-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15); /* hover:shadow-xl */
    transform: translateY(-5px); /* Subtle lift effect */
}

.service-card h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    margin-bottom: 1rem; /* mb-4 */
    color: var(--accent-teal); /* Highlight heading */
}

.service-card p {
    font-size: 1.125rem; /* text-lg */
}

/* Why Choose Us Section (Reason Cards) */
.reason-card {
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
    background-color: rgba(60, 110, 113, 0.2); /* bg-accent-teal bg-opacity-20 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
    transition: transform 0.3s ease-in-out;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-card h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.75rem; /* mb-3 */
    color: var(--light-text);
}

.reason-card p {
    font-size: 1.125rem; /* text-lg */
    color: var(--light-text);
}

/* Testimonials Section */
.testimonial-card {
    background-color: white;
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
    border-left: 4px solid var(--accent-teal); /* border-l-4 border-accent-teal */
}

.testimonial-card p.italic {
    font-style: italic;
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 1rem; /* mb-4 */
}

.testimonial-card p.font-semibold {
    font-weight: 600; /* font-semibold */
    text-align: right;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--accent-teal);
    color: var(--light-text);
    padding: 4rem 0; /* py-16 */
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1.5rem; /* mb-6 */
    color: var(--light-text);
}

.cta-section p {
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 2rem; /* mb-8 */
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text);
}

.cta-section a {
    display: inline-block;
    background-color: var(--primary-dark);
    color: var(--light-text);
    font-weight: 700; /* font-bold */
    padding: 1rem 2rem; /* py-4 px-8 */
    border-radius: 9999px; /* rounded-full */
    font-size: 1.25rem; /* text-xl */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wide */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.cta-section a:hover {
    background-color: rgba(44, 62, 80, 0.9); /* hover:bg-opacity-90 */
    transform: scale(1.05); /* hover:scale-105 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--light-text);
    padding: 2rem 0; /* py-8 */
    text-align: center;
    font-size: 0.875rem; /* text-sm */
}

footer a {
    color: var(--light-text);
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: var(--accent-teal);
}

/* Accessibility: sr-only for visually hidden text (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;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.5rem; /* Adjust for mobile */
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-section a {
        font-size: 1.125rem; /* Adjust button size for mobile */
        padding: 0.75rem 1.5rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .service-card, .reason-card, .testimonial-card {
        padding: 1rem;
    }

    .service-card h3, .reason-card h3 {
        font-size: 1.25rem;
    }

    .service-card p, .reason-card p, .testimonial-card p {
        font-size: 1rem;
    }

    header .container {
        flex-direction: column;
        align-items: center;
    }

    header nav {
        margin-top: 1rem;
    }
}

/* Responsive adjustments for medium screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section p {
        font-size: 1.5rem;
    }
    .hero-section a {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 2.5rem;
    }
}
