: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);
    border-bottom: 1px solid var(--border-color);
    min-height: 48px;
    padding: 6px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.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;
    min-height: 32px;
    align-items: center;
}

.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;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: var(--dark-navy);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .main-nav.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .header-actions {
        flex-direction: column;
        gap: 8px;
    }

    .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: 1100px) {
    .service-card { width: 80vw !important; max-width: 98vw !important; }
    .reviews-summary-bar { max-width: 100% !important; }
}
@media (max-width: 900px) {
    .service-card { width: 95vw !important; max-width: 99vw !important; }
    .reviews-summary-bar { max-width: 100% !important; }
}
@media (max-width: 800px) {
    .hero-section .container,
    .features-section .container,
    .about-section .container,
    .services-section .container,
    .locations-section .container,
    .reviews-section .container,
    .commitment-section .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .two-col-layout {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    .content-image, .about-section .content-image, .commitment-section .content-image {
        margin-bottom: 1.5rem;
        max-width: 100% !important;
    }
    .section-header h2,
    .text-content h2 {
        font-size: 2rem !important;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .locations-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .footer-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    .footer-section {
        width: 100% !important;
        text-align: center !important;
    }
    .reviews-slider-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .reviews-summary-bar {
        flex-direction: column !important;
        gap: 0.7rem !important;
        padding: 0.7rem 0.5rem !important;
        font-size: 0.98rem !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    .reviews-slider {
        gap: 1rem !important;
        padding-bottom: 4px !important;
        overflow-x: auto !important;
        width: 100% !important;
    }
    .review-card {
        min-width: 90vw !important;
        max-width: 95vw !important;
        padding: 1.2rem 0.7rem !important;
        font-size: 0.98rem !important;
    }
    .reviews-slider-arrow.left {
        left: -10px !important;
        top: 100%;
        transform: translateY(0) !important;
        margin-top: 8px;
        position: static !important;
        display: inline-flex !important;
    }
    .reviews-slider-arrow.right {
        right: -10px !important;
        top: 100%;
        transform: translateY(0) !important;
        margin-top: 8px;
        position: static !important;
        display: inline-flex !important;
    }
    .service-area-list {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .reviews-header {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        padding: 12px 8px !important;
        gap: 10px !important;
        max-width: 100% !important;
    }
    .reviews-header .rating {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .reviews-header .btn-write {
        margin-top: 8px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .review-card {
        min-width: 96vw !important;
        max-width: 99vw !important;
        margin: 0 auto 12px auto !important;
        padding: 0.5rem 0.2rem !important;
        font-size: 0.97rem !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }
    .review-card-inner {
        padding: 16px 10px !important;
        border-radius: 10px !important;
    }
    .review-text {
        font-size: 0.97rem !important;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        white-space: normal;
    }
    .slider-wrapper {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding: 0 !important;
    }
    .reviews-slider {
        overflow-x: hidden !important;
        width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .slider-track {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
    }
    .review-card {
        flex: 0 0 100% !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
@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 !important;
        gap: 8px !important;
    }

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

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

    .reviews-summary-bar {
        font-size: 0.92rem !important;
        padding: 0.5rem 0.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    .review-card {
        min-width: 99vw !important;
        max-width: 100vw !important;
        margin-bottom: 10px !important;
        font-size: 0.92rem !important;
    }
    .review-card-inner {
        padding: 10px 4px !important;
    }
    .review-text {
        font-size: 0.92rem !important;
        -webkit-line-clamp: 4;
    }
    .footer-content {
        flex-direction: column !important;
        gap: 1.2rem !important;
    }
}

img, .content-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.reviews-section .container {
    border-radius: 10px !important;
}
.reviews-summary-bar {
    border-radius: 10px !important;
    margin-bottom: 0.5rem !important;
    max-width: 1120px !important;
    width: 100%;
}
.review-card {
    border-radius: 10px !important;
}

@media (max-width: 800px) {
  .location-section-mobile .two-col-layout {
    flex-direction: column !important;
    gap: 1.2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .location-map,
  .location-content {
    order: unset;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Sticky header/menu styles */
.bsg-header {
    background: var(--bsg-header-bg, #2c3e50);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.bsg-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.bsg-logo {
    color: var(--bsg-header-logo, #4ecdc4);
    font-size: 1.5rem;
    font-weight: 700;
}
.bsg-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.bsg-nav-links a {
    color: var(--bsg-header-link, #fff);
    text-decoration: none;
    font-weight: 500;
}
.bsg-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.bsg-phone {
    color: var(--bsg-header-phone, #fff);
    font-weight: 600;
}
.bsg-btn-quote {
    background: var(--bsg-header-cta-bg, #4ecdc4);
    color: var(--bsg-header-cta, #fff);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
body { padding-top: 80px; }

/* About sections, reviews, service area, contact, footer */
.bsg-about-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), var(--bsg-about-hero-bg, url('https://csspicker.dev/api/image/?q=roofing+construction+house&image_type=photo'));
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bsg-about-hero-text, #fff);
    margin-top: 80px;
}
.bsg-about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
}
.bsg-about-section {
    background: var(--bsg-about-bg, #2c3e50);
    color: var(--bsg-about-text, #fff);
    padding: 4rem 0;
}
.bsg-about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.bsg-who-we-are {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.bsg-team-image {
    width: 100%;
    height: 300px;
    background: var(--bsg-about-image, url('https://csspicker.dev/api/image/?q=roofing+team+workers&image_type=photo'));
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}
.bsg-experience-badge {
    background: var(--bsg-about-experience-bg, #4ecdc4);
    color: var(--bsg-about-experience-text, #fff);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}
.bsg-btn-learn-more {
    background: var(--bsg-about-cta-bg, #4ecdc4);
    color: var(--bsg-about-cta-text, #fff);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.bsg-reviews-section {
    text-align: center;
    background: var(--bsg-reviews-bg, #232834);
    color: var(--bsg-reviews-tagline, #fff);
    padding: 4rem 0;
}
.bsg-reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.bsg-review-card {
    background: var(--bsg-reviews-card-bg, #fff);
    padding: 1.5rem;
    border-radius: 8px;
    color: #333;
}
.bsg-service-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bsg-locations-bg, #232834);
    color: #fff;
    padding: 4rem 0;
}
.bsg-map-placeholder {
    width: 100%;
    height: 300px;
    background: var(--bsg-locations-map, url('https://csspicker.dev/api/image/?q=colorado+map+boulder&image_type=photo'));
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}
.bsg-contact-section {
    background: #34495e;
    color: white;
    padding: 4rem 0;
}
.bsg-contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.bsg-footer {
    background: #1a252f;
    color: white;
    padding: 3rem 0 1rem;
}
.bsg-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.bsg-footer-section h3 {
    color: #4ecdc4;
    margin-bottom: 1rem;
}
.bsg-footer-section ul {
    list-style: none;
}
.bsg-footer-section a {
    color: white;
    text-decoration: none;
}
.bsg-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}
