/* Professional Home Styles - Structured & Reliable */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --bg-body: #ffffff;
    --bg-alt: #f4f6f9;
    /* Light grey for section contrast */
    --text-main: #333333;
    --text-muted: #666666;
    --accent-blue: #007bff;
    /* Original Blue */
    --card-bg: #ffffff;
    --border-color: #e1e4e8;
    --radius: 4px;
    /* More square/professional radius */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3 {
    color: #111;
    font-weight: 700;
    margin-top: 0;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section - Clean & Direct */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: #fff;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 2rem;
}

.hero-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-heading {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-blue);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Services Grid - Professional Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive */
    gap: 30px;
    text-align: left;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-blue);
    /* Professional accent top */
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #222;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Reviews Section - Distinct Background */
.reviews-section {
    background-color: var(--bg-alt);
    /* Light grey background */
    padding: 80px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    /* Helper to center content */
}

.reviews-section .section-heading {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    position: relative;
    /* Flex column to push footer down */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure it fills grid cell */
}

.review-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #f1f1f1;
}

.review-text {
    font-style: italic;
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
    /* Pushes footer to bottom */
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.review-author {
    font-weight: 700;
    color: #222;
    font-size: 0.9rem;
}

.review-stars {
    color: #f39c12;
    /* Distinct gold */
    font-size: 0.9rem;
}

/* Leave Review */
.leave-review-section {
    padding: 60px 0;
    text-align: center;
    background: #fff;
}

.leave-review-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.review-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.review-link-img {
    height: 50px;
    width: auto;
    transition: transform 0.2s;
    /* No grayscale, keeping original logos pop */
}

.review-link-img:hover {
    transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-header-layout {
        flex-direction: column;
        text-align: center;
    }

    .section-heading::after {
        margin: 10px auto 0;
        /* Center underline on mobile */
    }

    .section-heading {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .services-grid,
    .reviews-grid {
        gap: 20px;
        grid-template-columns: 1fr;
        /* Force single column on mobile to prevent overlay */
    }

    .review-card {
        height: auto;
        /* Allow natural height on mobile */
    }

    .service-card {
        padding: 20px;
    }
}

/* Hero Header Layout - Desktop Side-by-Side */
.hero-header-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.hero-text-content {
    max-width: 700px;
}

/* Adjust heading underline for left alignment in this context */
.hero-header-layout .section-heading::after {
    margin: 10px 0 0;
    /* Left align underline */
}

/* Reset logo margin in this layout */
.hero-header-layout .hero-logo {
    margin-bottom: 0;
}

/* Tighter spacing for side-by-side layout to improve vertical center optical alignment */
.hero-header-layout .section-heading {
    margin-bottom: 0.5rem;
}

.hero-header-layout .hero-intro {
    margin-bottom: 0;
}

/* Review Action Bar (Integration) */
.review-cta-container {
    margin-top: 80px;
    /* More space */
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    /* Removed box styling for seamless look */
}

.review-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #222;
}

.btn-review-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-review {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff;
    min-width: 200px;
    /* Consistent width */
    justify-content: center;
}

.btn-review i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-google {
    background-color: #4285F4;
}

.btn-yelp {
    background-color: #d32323;
}

/* Mobile fix for CTA */
@media (max-width: 600px) {
    .btn-review {
        width: 100%;
    }
}