:root {
    --dark-navy: #1C232B;
    --medium-navy: #2A3440;
    --light-gray: #E2E8F0;
    --teal: #38B2AC;
    --white: #FFFFFF;
    --text-gray: #A0AEC0;
    --border-color: #4A5568;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-navy);
    color: var(--white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background-color: var(--dark-navy);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    color: var(--white);
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover {
    color: var(--teal);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-teal {
    background-color: var(--teal);
    color: var(--white);
}

.btn-teal:hover {
    background-color: #2c9a95;
}

.btn-dark {
    background-color: var(--medium-navy);
    color: var(--white);
    border: 1px solid var(--border-color);
}

.btn-dark:hover {
    background-color: #384553;
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://csspicker.dev/api/image/?q=light+gray+roof+shingles&image_type=photo');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-content .subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--light-gray);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--light-gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.google-rating span {
    font-weight: 600;
    color: var(--light-gray);
}

.stars {
    display: flex;
    gap: 4px;
}

.stars svg {
    fill: #FFC107;
}

.hero-form {
    background-color: var(--medium-navy);
    padding: 30px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-navy);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    background-color: var(--light-gray);
    color: var(--dark-navy);
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #c8d0d9;
}

.features-section {
    background-color: var(--medium-navy);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--teal);
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--text-gray);
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .tagline {
    display: inline-block;
    background-color: var(--medium-navy);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
}

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-content .icon-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 10px;
}

.text-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.text-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.content-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.experience-box {
    background-color: var(--medium-navy);
    padding: 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.experience-box .years {
    font-size: 36px;
    font-weight: 700;
    color: var(--teal);
}

.services-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.services-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) var(--medium-navy);
}

.services-container::-webkit-scrollbar {
    height: 8px;
}

.services-container::-webkit-scrollbar-track {
    background: var(--medium-navy);
}

.services-container::-webkit-scrollbar-thumb {
    background-color: var(--teal);
    border-radius: 10px;
}

.service-card {
    background-color: var(--medium-navy);
    padding: 30px;
    border-radius: 12px;
    flex: 0 0 350px;
    border-top: 4px solid var(--teal);
}

.service-card .icon-wrapper {
    width: 40px;
    height: 40px;
    background-color: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.service-card a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}

.service-area-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.service-area-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.service-area-list svg {
    color: var(--teal);
}

.hidden-cities {
    display: none;
}

.map-placeholder {
    background-color: var(--light-gray);
    border-radius: 12px;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #4A5568;
}

.map-placeholder .icon {
    margin-bottom: 15px;
}

.map-placeholder h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.reviews-header {
    background-color: var(--white);
    color: #333;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.reviews-header .google-logo {
    font-weight: bold;
}

.reviews-header .rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-header .stars svg {
    fill: #FFC107;
}

.reviews-header .btn-write {
    background-color: #4285F4;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
}

.reviews-slider {
    position: relative;
}

.slider-wrapper {
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    flex: 0 0 33.333%;
    padding: 0 15px;
}

.review-card-inner {
    background-color: var(--white);
    color: var(--dark-navy);
    padding: 30px;
    border-radius: 12px;
    height: 100%;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
}

.review-date {
    font-size: 14px;
    color: #718096;
}

.review-card .stars {
    margin-bottom: 15px;
}

.review-card .stars svg {
    fill: #FFC107;
}

.review-text {
    color: #4A5568;
    margin-bottom: 15px;
}

.read-more {
    color: #4285F4;
    text-decoration: none;
    font-weight: 500;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background-color: var(--medium-navy);
    border: 1px solid var(--border-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slider-btn.prev {
    margin-left: -60px;
}

.slider-btn.next {
    margin-right: -60px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--medium-navy);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.main-footer {
    background-color: #11171D;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a,
.footer-col p {
    color: var(--text-gray);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-gray);
    font-size: 20px;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .google-rating {
        justify-content: center;
    }

    .hero-form {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 800px) {
    .section {
        padding: 60px 0;
    }

    .section-header h2,
    .text-content h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .two-col-layout {
        grid-template-columns: 1fr;
    }

    .content-image {
        order: -1;
    }

    .two-col-layout .text-content {
        text-align: center;
    }

    .text-content .icon-heading {
        justify-content: center;
    }

    .services-section .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .service-card {
        flex: 0 0 300px;
    }

    .service-area-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-card {
        flex: 0 0 100%;
        padding: 0 5px;
    }

    .slider-btn.prev {
        margin-left: -20px;
    }

    .slider-btn.next {
        margin-right: -20px;
    }

    .reviews-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .header-actions .btn-dark {
        display: none;
    }

    .logo span {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .service-area-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}
