/* Bright Wheeler Group - Shared Stylesheet */

/* Color Variables */
:root {
    --primary-green: #2c7a6e;
    --primary-dark: #1a4d44;
    --primary-darker: #0d2d26;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-text: #1a1a1a;
    --gray-text: #444444;
    --light-gray: #666666;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: var(--white);
    padding: 8em 2em 4em 2em;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5em;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

.page-header .subtitle {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Service Block Styles */
.service-block {
    padding: 4em 0;
    margin: 2em 0;
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-block:nth-child(odd) .service-wrapper {
    background: var(--white);
}

.service-block:nth-child(even) .service-wrapper {
    background: var(--light-bg);
}

.service-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

/* Image - Cut Out Effect */
.service-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.service-image img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    display: block;
}

.service-image:hover img {
    transform: none;
}

/* Content Side */
.service-content {
    flex: 1;
    min-width: 300px;
    padding: 3.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.service-content h2 {
    font-size: 2.2em;
    color: var(--primary-green);
    margin-bottom: 0.3em;
    letter-spacing: normal;
    text-transform: uppercase;
    font-weight: 700;
}

.service-content .tagline {
    font-size: 1em;
    color: var(--primary-green);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5em;
    text-transform: uppercase;
}

.service-content h3 {
    font-size: 1.4em;
    color: var(--light-gray);
    font-weight: 400;
    margin-bottom: 1.5em;
    text-transform: none;
    letter-spacing: normal;
}

.service-content p {
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: var(--gray-text);
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.service-features li {
    padding: 0.5em 0;
    display: flex;
    align-items: center;
    width: 48%;
}

.service-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-green);
    margin-right: 1em;
}

/* Alternating Layout */
.service-block:nth-child(odd) .service-container {
    flex-direction: row;
}

.service-block:nth-child(odd) .service-image {
    margin: -20px 0 -20px -20px;
}

.service-block:nth-child(even) .service-container {
    flex-direction: row-reverse;
}

.service-block:nth-child(even) .service-image {
    margin: -20px -20px -20px 0;
}

/* CTA Section */
.services-cta {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 5em 2em;
    margin-top: 4em;
}

.services-cta h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.services-cta .button {
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    margin-top: 1.5em;
    transition: all 0.3s ease;
    padding: 1em 2.5em;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
}

.services-cta .button:hover {
    background: var(--primary-darker);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer */
#footer {
    background: #E8EEF4;
    color: #7c8081;
    padding: 4em 2em;
    text-align: center;
}

#footer .copyright {
    font-size: 0.8em;
    line-height: 1em;
    margin-top: 2em;
}

#footer .copyright li {
    display: inline-block;
    margin-left: 1em;
    padding-left: 1em;
    border-left: dotted 1px;
}

#footer .copyright li:first-child {
    margin: 0;
    padding: 0;
    border: 0;
}

.icons {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2em;
}

.icons li {
    display: inline-block;
    margin: 0 0.5em;
}

.icon.circle {
    border-radius: 100%;
    display: inline-block;
    width: 2.5em;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    color: var(--gray-text);
}

.icon.circle:hover {
    transform: translateY(-3px);
    background: var(--primary-green);
    color: var(--white);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-green);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive */
@media screen and (max-width: 840px) {
    .page-header h1 {
        font-size: 2em;
    }
    
    .service-block {
        padding: 2em;
        margin: 1em;
    }
    
    .service-wrapper {
        border-radius: 16px;
    }
    
    .service-block:nth-child(odd) .service-container,
    .service-block:nth-child(even) .service-container {
        flex-direction: column;
    }
    
    .service-block:nth-child(odd) .service-image,
    .service-block:nth-child(even) .service-image {
        margin: -10px -10px 0 -10px;
        width: calc(100% + 20px);
    }
    
    .service-image img {
        min-height: 250px;
    }
    
    .service-content {
        padding: 2em;
    }
    
    .service-content h2 {
        font-size: 1.6em;
    }
    
    .service-features li {
        width: 100%;
    }
}