/* Company Trust Section Styles */
.company-trust-section {
    padding: 60px 0;
    background-color: #f8fafc;
    overflow: hidden;
}

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

.company-trust__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* BBB Rating Block */
.company-trust__bbb-block {
    background-color: #22c55e;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.company-trust__bbb-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.company-trust__bbb-logo {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.company-trust__logo-image {
    border-radius: 50% !important;
    padding: 8px;
    width: 80px;
}

/* Content Blocks */
.company-trust__content-block {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.company-trust__content-block p {
    margin: 0;
}

.company-trust__content-block p:last-child {
    margin-bottom: 0;
}

.company-trust__reviews-link {
    color: #374151;
    text-decoration: underline;
    text-decoration-color: #22c55e;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.company-trust__reviews-link:hover {
    color: #22c55e;
    text-decoration-color: #374151;
}

/* Company Info Block */
.company-trust__company-info {
    grid-column: 2;
    grid-row: 1;
}

/* Service Details Block */
.company-trust__service-details {
    grid-column: 1 / 3;
    grid-row: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.company-trust__service-details .service-content {
    grid-column: 1;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.company-trust__service-details .service-content p {
    margin: 0;
}

.company-trust__service-details .service-content p:last-child {
    margin-bottom: 0;
}

/* Move satisfaction guarantee to be a child of service-details grid */
.company-trust__satisfaction-guarantee {
    grid-column: 2;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
}


.company-trust__satisfaction-image-wrapper {
    position: relative;
    width: 100%; 
    overflow: hidden;
    height: 100%;
}

.company-trust__satisfaction-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 24px !important;
}

.company-trust__satisfaction-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.company-trust__satisfaction-percentage {
    color: #22c55e;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-trust__satisfaction-text {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 1024px) {
    .company-trust__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    
    .company-trust__bbb-block {
        grid-column: 1;
        grid-row: 1;
    }
    
    .company-trust__company-info {
        grid-column: 1;
        grid-row: 2;
    }
    
    .company-trust__service-details {
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-trust__service-details .service-content {
        grid-column: 1;
        grid-row: 1;
    }
    
    .company-trust__satisfaction-guarantee {
        grid-column: 1;
        grid-row: 2;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-trust-section {
        padding: 40px 0;
    }
    
    .company-trust__container {
        padding: 0 15px;
    }
    
    .company-trust__grid {
        gap: 15px;
    }
    
    .company-trust__bbb-block {
        padding: 20px;
    }
    
    .company-trust__bbb-text {
        font-size: 20px;
    }
    
    .company-trust__content-block {
        padding: 20px;
    }
    
    .company-trust__satisfaction-guarantee {
        border-radius: 40px;
    }
    
    .company-trust__satisfaction-percentage {
        font-size: 28px;
    }
    
    .company-trust__satisfaction-text {
        font-size: 16px;
    }
    
    .company-trust__logo-image {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .company-trust-section {
        padding: 30px 0;
    }
    
    .company-trust__bbb-block {
        padding: 15px;
    }
    
    .company-trust__bbb-text {
        font-size: 18px;
    }
    
    .company-trust__content-block {
        padding: 15px;
    }
    
    .company-trust__satisfaction-percentage {
        font-size: 24px;
    }
    
    .company-trust__satisfaction-text {
        font-size: 14px;
    }
    
    .company-trust__satisfaction-overlay {
        bottom: 15px;
        left: 15px;
    }
    
    .company-trust__logo-image {
        width: 50px;
    }
    
    .company-trust__bbb-logo {
        bottom: 15px;
        right: 15px;
    }
}

/* Animation for better UX */
.company-trust__content-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-trust__content-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.company-trust__bbb-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-trust__bbb-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* Focus states for accessibility */
.company-trust__reviews-link:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .company-trust-section {
        background-color: #ffffff !important;
        padding: 20px 0;
    }
    
    .company-trust__content-block {
        border: 1px solid #000000;
        box-shadow: none;
    }
    
    .company-trust__bbb-block {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000;
    }
    
    .company-trust__bbb-text {
        color: #000000 !important;
    }
    
    .company-trust__satisfaction-percentage {
        color: #000000 !important;
    }
    
    .company-trust__satisfaction-text {
        color: #000000 !important;
    }
}
