/**
 * About Brief Section - Full Styles
 * 
 * Complete styles for the About Brief Section Elementor widget
 * including company overview, description, and vision/mission.
 */

/* ==========================================================================
   CSS Variables & Container
   ========================================================================== */

.about-brief-section {
    --ab-primary-color: #D4AF37;
    --ab-bg-color: #CDD1D9;
    --ab-gradient-end: #ededed;

    width: 100%;
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .about-brief-section {
        padding-top: 3.75rem;
    }
}

/* ==========================================================================
   SECTION 1: Company Overview
   ========================================================================== */

.ab-overview-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

@media (min-width: 1280px) {
    .ab-overview-wrapper {
        flex-direction: row;
        padding: 0;
    }
}

/* Overview Text Content */
.ab-overview-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2rem 1rem 0;
}

@media (min-width: 768px) {
    .ab-overview-content {
        padding-top: 10vh;
    }
}

@media (min-width: 1280px) {
    .ab-overview-content {
        width: 50%;
        padding: 0 1.25rem;
    }
}

.ab-overview-title {
    width: fit-content;
    border-bottom: 4px solid var(--ab-primary-color);
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #000;
}

@media (min-width: 768px) {
    .ab-overview-title {
        font-size: 2.5rem;
        line-height: 2.5rem;
        margin-bottom: 2.5rem;
    }
}

.ab-overview-text {
    text-align: justify;
    color: #000;
    font-size: 0.875rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .ab-overview-text {
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    .ab-overview-text {
        width: 80%;
        font-size: 2.25rem;
        line-height: 1.5;
    }
}

/* Images Container */
.ab-images-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
    padding: 0 1rem;
    margin-top: 2.5rem;
    margin-bottom: 5rem;
}

@media (min-width: 1280px) {
    .ab-images-container {
        justify-content: flex-end;
        margin-inline-end: auto;
        margin-inline-start: 2.5rem;
        padding: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
}

.ab-main-image {
    padding: 0.75rem 0;
    width: 70%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 768px) {
    .ab-main-image {
        width: 45%;
    }
}

@media (min-width: 1280px) {
    .ab-main-image {
        width: 400px;
    }
}

.ab-overlay-image {
    width: 45%;
    height: auto;
    border: 4px solid #e5e7eb;
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    transform: translateY(1.25rem);
}

@media (min-width: 640px) {
    .ab-overlay-image {
        transform: translateY(3rem);
    }
}

@media (min-width: 768px) {
    .ab-overlay-image {
        width: 35%;
        transform: translateY(2.5rem);
        inset-inline-end: 1rem;
    }
}

@media (min-width: 1024px) {
    .ab-overlay-image {
        transform: translateY(3rem);
        inset-inline-end: 0;
    }
}

@media (min-width: 1280px) {
    .ab-overlay-image {
        width: 358px;
        transform: translateX(-15rem) translateY(4.75rem);
    }

    [dir="rtl"] .ab-overlay-image {
        transform: translateX(15rem) translateY(4.75rem);
    }
}

/* ==========================================================================
   SECTION 2: Gray Background Area
   ========================================================================== */

.ab-gray-section {
    background: linear-gradient(to left, var(--ab-bg-color) 98%, var(--ab-gradient-end) 98%);
    width: 100%;
    min-height: 250px;
    margin-top: 2.5rem;
}

[dir="ltr"] .ab-gray-section {
    background: linear-gradient(to right, var(--ab-bg-color) 98%, var(--ab-gradient-end) 98%);
}

@media (min-width: 768px) {
    .ab-gray-section {
        margin-top: 0;
    }
}

/* Description Wrapper */
.ab-description-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1rem;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ab-description-wrapper {
        flex-direction: row;
        padding: 7.5rem 2.5rem 2.5rem;
        gap: 0;
    }
}

/* Section Image Container */
.ab-section-image-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) {
    .ab-section-image-container {
        justify-content: flex-start;
        width: 40%;
    }
}

.ab-section-image {
    width: 100%;
    max-width: 28rem;
    height: auto;
    object-fit: cover;
}

@media (min-width: 768px) {
    .ab-section-image {
        max-width: 100%;
    }
}

/* Text Container */
.ab-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .ab-text-container {
        width: 60%;
        margin-inline-end: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .ab-text-container {
        margin-inline-end: 5rem;
    }
}

.ab-description {
    text-align: justify;
    color: #000;
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .ab-description {
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    .ab-description {
        font-size: 2.25rem;
        line-height: 1.5;
    }
}

/* CTA Button */
.ab-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--ab-primary-color);
    color: #000;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ab-cta-button:hover {
    background-color: transparent;
    border-color: var(--ab-primary-color);
    color: var(--ab-primary-color);
}

.ab-cta-button svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.ab-cta-button:hover svg {
    transform: translateX(-5px);
}

/* ==========================================================================
   Vision & Mission Section
   ========================================================================== */

/* Vision & Mission Section */

.ab-vm-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    position: relative;
    min-height: auto;
    padding-bottom: 2rem;
}

@media (min-width: 1024px) {
    .ab-vm-wrapper {
        justify-content: flex-end;
        margin-top: 7.5rem;
        min-height: 500px;
        padding-bottom: 0;
    }
}

/* Background Container */
.ab-vm-background {
    width: 100%;
    min-height: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-size: cover;
    background-position: center;
    gap: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
}

@media (min-width: 1024px) {
    .ab-vm-background {
        width: 92vw;
        aspect-ratio: 2/1;
        min-height: unset;
        flex-direction: row;
        gap: 2rem;
        border-radius: 0;
        padding: 2.5rem;
        overflow: hidden;
    }
}

/* Mobile Boxes */
.ab-mobile-boxes {
    display: none;
    flex-direction: row;
    gap: 1rem;
    z-index: 10;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.about-brief-section.show-mobile-boxes .ab-mobile-boxes {
    display: flex;
}

.ab-box-mobile {
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    text-align: center;
}

.ab-box-mobile .ab-box-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ab-primary-color);
    color: #000;
    font-weight: 700;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.ab-box-mobile .ab-box-number span {
    font-size: 1.125rem;
}

.ab-box-mobile .ab-box-title {
    color: var(--ab-primary-color);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

/* Desktop Content (Text) on Mobile */
.ab-vm-content {
    display: none;
    flex-direction: column;
    justify-content: center;
    height: auto;
    gap: 2rem;
    width: 100%;
    padding: 0 1rem 2rem;
    z-index: 5;
}

.about-brief-section.show-mobile-text .ab-vm-content {
    display: flex;
}

@media (min-width: 1024px) {
    .ab-mobile-boxes {
        display: none !important;
    }

    .ab-vm-content {
        display: flex !important;
        gap: 6rem;
        width: 55%;
        padding-inline-end: 2.5rem;
        padding-inline-start: 40px;
        padding-top: 0;
        padding-bottom: 0;
        max-width: calc(100% - 320px);
        height: 100%;
    }
}

.ab-vm-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    animation: abFadeInUp 0.6s ease forwards;
}

.ab-vm-item:nth-child(1) {
    animation-delay: 0.2s;
}

.ab-vm-item:nth-child(2) {
    animation-delay: 0.4s;
}

.ab-vm-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ab-primary-color);
    margin: 0 0 0.5rem 0;
}

.ab-vm-text {
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 0;
}

@media (min-width: 1024px) {
    .ab-vm-text {
        font-size: 1.5rem;
    }
}

.ab-vm-text .highlight,
.ab-vm-text span {
    color: var(--ab-primary-color);
}

/* Desktop Boxes */
.ab-desktop-boxes {
    display: none;
}

@media (min-width: 1024px) {
    .ab-desktop-boxes {
        display: flex;
        position: absolute;
        inset-inline-end: 0;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 1.25rem;
    }
}

.ab-box-desktop {
    width: 280px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 0.5rem;
}

.ab-box-desktop .ab-box-number {
    width: 67px;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ab-primary-color);
    color: #000;
    font-weight: 700;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.ab-box-desktop .ab-box-number span {
    font-size: 1.875rem;
}

.ab-box-desktop .ab-box-title {
    color: var(--ab-primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.ab-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ab-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes abFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

[dir="rtl"] .ab-cta-button svg {
    transform: scaleX(-1);
}

[dir="rtl"] .ab-cta-button:hover svg {
    transform: scaleX(-1) translateX(-5px);
}