/*
 * style.css
 *
 * This file contains the custom, mobile-first CSS for the shutter repair website.
 * The design is clean, modern, and professional, optimized for performance and accessibility.
 */

/* General Styling */
:root {
    --primary-color: #003366; /* Dark Blue */
    --secondary-color: #FF9900; /* Vibrant Orange */
    --text-color: #333333;
    --background-color: #f4f7f9;
    --white: #ffffff;
    --light-grey: #e9e9e9;
    --dark-grey: #666666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.contact-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero .cta-button:hover {
    background-color: #002244;
    transform: translateY(-2px);
}

/* Section Styling */
.section {
    padding: 3rem 0;
}

.section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-dark h2 {
    color: var(--secondary-color);
}

.flex-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flex-item {
    background-color: var(--light-grey);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.section-dark .flex-item {
    background-color: #004488;
    color: var(--white);
}

/* Service Highlights */
.service-highlights .flex-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.service-highlights img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    display: block;
}

.service-highlights h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-dark .service-highlights h3 {
    color: var(--secondary-color);
}

.service-highlights p {
    font-size: 1rem;
    color: var(--dark-grey);
}

.section-dark .service-highlights p {
    color: var(--light-grey);
}

/* Testimonials */
.testimonials .flex-item {
    padding: 2rem;
    background-color: var(--light-grey);
    text-align: left;
}

.testimonials .review-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.testimonials .reviewer-name {
    font-weight: 600;
    color: var(--primary-color);
}

/* Parts Explained */
.parts-explained ul {
    list-style-type: disc;
    padding-left: 20px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
}

.parts-explained li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile-first Media Queries */

/* Tablet & Larger Screens */
@media (min-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        margin-bottom: 0;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .flex-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .flex-item {
        flex-basis: 45%;
    }

    .service-highlights .flex-item {
        text-align: left;
        display: block;
    }

    .service-highlights img {
        float: right;
        margin-left: 1.5rem;
        max-width: 250px;
    }

    .testimonials .flex-item {
        flex-basis: 30%;
    }

}

/* Desktop & Larger Screens */
@media (min-width: 1024px) {
    .flex-item {
        flex-basis: 30%;
    }

    .service-highlights img {
        max-width: 300px;
    }
}
