/*
 Theme Name:   Terra Construction Child Theme
 Theme URI:    https://terraconstruction.com
 Description:  Custom Divi child theme for Terra Construction
 Author:       Terra Construction
 Author URI:   https://terraconstruction.com
 Template:     Divi
 Version:      1.0.1
 Text Domain:  terra-child
*/

/* Custom Styles for Terra Construction */

/* Header Customization */
#main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo_container img {
    max-height: 60px;
}

.single-oa-project .oa-project-slider,
.single-oa-project .oa-project-slider .swiper-wrapper,
.single-oa-project .oa-project-slider .swiper-slide {
    height: 100%;
}

.single-oa-project .oa-project-slider .swiper-slide img,
.single-oa-project .oa-project-slider .oa-hero-video-slide,
.single-oa-project .oa-project-slider .oa-hero-video-slide img,
.employee-hero .et_pb_video_box,
.employee-hero .et_pb_image_wrap,
.employee-hero .et_pb_video_box iframe,
.employee-hero .et_pb_video_box video,
.employee-hero .et_pb_image_wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.single-oa-project .oa-project-slider .oa-hero-video-slide {
    position: relative;
}

.employee-hero .et_pb_section,
.employee-hero .et_pb_row,
.employee-hero .et_pb_column,
.employee-hero .et_pb_module {
    height: 100%;
}

.employee-hero .et_pb_row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-hero .et_pb_column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-type-archive-oa-employee .employee-hero .hero-video-800,
.post-type-archive-oa-employee .employee-hero .et_pb_section_1 {
    height: 100% !important;
    min-height: 100% !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

.post-type-archive-oa-employee .employee-hero .hero-video-800 .et_pb_row_0,
.post-type-archive-oa-employee .employee-hero .et_pb_section_1 .et_pb_row_0 {
    height: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.post-type-archive-oa-employee .employee-hero .hero-video-800 .et_pb_column,
.post-type-archive-oa-employee .employee-hero .et_pb_section_1 .et_pb_column {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.post-type-archive-oa-employee .employee-hero .terra-hero-copy,
.post-type-archive-oa-employee .employee-hero .et_pb_text_0,
.post-type-archive-oa-employee .employee-hero .et_pb_text_0 .et_pb_text_inner {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.post-type-archive-oa-employee .employee-hero .et_pb_text_0 h1 {
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

/* OpenAsset content alignment */
body.tax-oa-keyword .oa-container,
body.single-oa-project .oa-container.project-template {
    width: min(100% - 30px, 1140px);
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

body.tax-oa-keyword .oa-container header,
body.single-oa-project .oa-container.project-template {
    width: 100%;
}


/* Button Styles */
.terra-btn,
.et_pb_button.terra-btn {
    background-color: #00A651 !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}

.terra-btn:hover,
.et_pb_button.terra-btn:hover {
    background-color: #008a44 !important;
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    background-color: #000000;
    padding: 60px 0;
}

.stats-section .et_pb_number_counter {
    color: #ffffff;
}

.stats-section h3 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
}

.stats-section .et_pb_counter_title {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #333333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #00A651;
    width: 60%;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

/* Project Cards */
.project-card {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.project-category {
    color: #00A651;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Sustainability Section */
.sustainability-section {
    background-color: #f8f8f8;
}

.certification-logos img {
    max-width: 100px;
    height: auto;
    margin: 10px;
}

/* Testimonial Section */
.testimonial-section {
    background-color: #00A651;
    color: #ffffff;
    padding: 80px 0;
}

.testimonial-section p {
    font-size: 20px;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-section:before {
    content: '"';
    font-size: 120px;
    color: rgba(255,255,255,0.2);
    position: absolute;
    top: 20px;
    left: 40px;
    font-family: Georgia, serif;
}

/* CTA Sections */
.cta-section {
    text-align: center;
    padding: 40px;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background-color: #00A651;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Association Logos */
.association-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.association-logos img {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.association-logos img:hover {
    filter: grayscale(0%);
}

/* Footer CTA */
.footer-cta {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.footer-cta h2 {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-cta p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* Footer */
#main-footer {
    background-color: #ffffff;
    padding: 40px 0;
}

.footer-nav a {
    color: #666666;
    margin: 0 15px;
    font-size: 14px;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #00A651;
}

/* Responsive Adjustments */
@media (max-width: 980px) {
    .hero-section h2 {
        font-size: 36px;
    }
    
    .stats-section h3 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .hero-section h2 {
        font-size: 28px;
    }
    
    .association-logos img {
        max-width: 80px;
    }
}
