:root {
    --primary-color: #2c5f8d;
    --secondary-color: #4a90e2;
    --accent-color: #f39c12;
    --dark-gray: #2c3e50;
    --light-gray: #f4f4f4;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}




/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    background: url(/imageserver/Reusable/flatroofing/comm-hero002.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 5%;
    background-color: #333;
    background-blend-mode: multiply;
}


.hero-content {
    max-width: 900px;
    color: #fff;
}

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

.hero-content p {
    font-size: 1.15em;
    margin-bottom: 30px;
    font-weight: 300;
    color: #fff;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-decoration: none;
}


/* Main Content Sections */
.content-section {
    padding: 80px 5%;
}

.section-gray {
    background-color: var(--light-gray);
}

.section-white {
    background-color: #fff;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5em;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

#top-section {
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 50%, #ffffffe0 100%), url(/imageserver/Reusable/flatroofing/flat-roof-bg002.jpg);
	background-size: cover;
	background-position: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-gray .service-card {
    background-color: #fff;
}

.section-white .service-card {
    background-color: var(--light-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Flip Card Styles for Flat Roofing Systems */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.flip-card-front {
    background-color: var(--light-gray);
}

.flip-card-back {
    background-color: #fff;
    transform: rotateY(180deg);
    overflow: hidden;
}

.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon svg {
    width: 45px;
    height: 45px;
    fill: #fff;
}

.service-card h3 {
    font-size: 1.4em;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}



/* Manufacturer Logos Section */
.logos-section {
    padding: 60px 5%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: #fff;
}

.logos-header {
    text-align: center;
    margin-bottom: 40px;
}

.logos-header h2 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.logos-header p {
    font-size: 1em;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 120px;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.logo-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-placeholder {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    font-size: 0.9em;
}

/* Two Column Section */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}


.column-content h3 {
    font-size: 2em;
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-weight: 700;
}

.column-content p {
    font-size: 1.05em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.column-content ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.column-content ul li {
    font-size: 1em;
    color: #555;
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
}

.column-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a90e2'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.column-image {
    width: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1em;
    text-align: center;
}

.column-image img {
    max-width: 680px;
    width: 100%;
}

#roofing-options-section {
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 50%, #ffffffe8 100%), url(/imageserver/Reusable/flatroofing/subtle-design002.jpg);
	background-size: cover;
	background-position: center;
}


/* CTA Section */
.cta-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 45px;
    background-color: #fff;
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .logos-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 1000px;
    }

    .logo-item {
        width: calc(28.333% - 20px);
        margin: 10px;
    }

}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .section-header h2 {
        font-size: 2em;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .two-column-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    .cta-section h2 {
        font-size: 2em;
    }

    .logo-item {
        width: calc(95.333% - 20px);
        margin: 10px;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8em;
    }

    .section-header h2 {
        font-size: 1.7em;
    }

    .column-content h3 {
        font-size: 1.6em;
    }


}