/**
 * About Section Block Styles
 * Based on Figma Design Specifications
 */

/* ============================================
   FORCE FULL-WIDTH DISPLAY
   ============================================ */

.wp-block-mawconsultant-about-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative;
}

/* ============================================
   ABOUT SECTION BASE STYLES
   ============================================ */

.about-section {
    position: relative;
    width: 100%;
    min-height: 936px;
    background-color: var(--color-background);
    padding: 146px 0;
    margin: 0 !important;
}

.about-section__container {
    max-width: 1440px;
    margin: 0 auto;
    padding-inline: var(--container-padding-x);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* ============================================
   LEFT COLUMN - CONTENT
   ============================================ */

.about-section__content {
    max-width: 544px;
}

/* Label */
.about-section__label {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--color-chart-3);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* Heading */
.about-section__heading {
    font-family: 'Gambetta', Georgia, serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 56px;
    letter-spacing: -0.96px;
    /* -2% of 48px */
    color: var(--color-accent-foreground);
    margin: 0 0 48px 0;
    max-width: 522px;
}

/* Description Paragraphs */
.about-section__description {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-secondary-foreground);
    margin: 0 0 24px 0;
}

.about-section__description:last-of-type {
    margin-bottom: 48px;
}

/* ============================================
   STATS
   ============================================ */

.about-section__stats {
    position: relative;
    width: 544px;
    height: 100px;
    margin-top: 48px;
    border-top: 1px solid var(--color-border);
    padding-top: 0;
}

.about-section__stat {
    position: absolute;
    top: 31px;
}

.about-section__stat:nth-child(1) {
    left: 0;
}

.about-section__stat:nth-child(2) {
    left: 288px;
}

.about-section__stat-number {
    font-family: 'Gambetta', Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 38px;
    letter-spacing: 0;
    color: var(--color-secondary-foreground);
    margin: 0 0 8px 0;
}

.about-section__stat-label {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
    color: var(--color-muted-foreground);
    margin: 0;
}

/* ============================================
   RIGHT COLUMN - IMAGE
   ============================================ */

.about-section__image-wrapper {
    width: 544px;
    height: 680px;
    position: relative;
}

.about-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   EDITOR PREVIEW STYLES
   ============================================ */

.about-section-editor {
    background: #f5f5f5;
    padding: 20px;
    border: 1px solid #ddd;
}

.about-section-preview {
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
}

.about-section-preview__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-section-preview__content {
    padding: 20px;
}

.about-section-preview__label {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 12px;
}

.about-section-preview__heading {
    font-family: 'Gambetta', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
}

.about-section-preview__description {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.about-section-preview__stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.about-section-preview__stat {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 12px;
}

.about-section-preview__image {
    background: #e0e0e0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border-radius: 4px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .about-section__container {
        gap: 40px;
    }

    .about-section__stats {
        gap: 200px;
    }
}

@media (max-width: 1024px) {
    .about-section {
        padding: 80px 0;
        min-height: auto;
    }

    .about-section__container {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    .about-section__heading {
        font-size: 48px;
        line-height: 56px;
        letter-spacing: -0.02em;
    }

    .about-section__description {
        font-size: 16px;
        line-height: 24px;
    }

    .about-section__stats {
        gap: 100px;
    }

    .about-section__image-wrapper {
        width: 100%;
        height: 520px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }

    .about-section__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-section__content {
        max-width: 100%;
    }

    .about-section__heading {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 32px;
    }

    .about-section__stats {
        gap: 60px;
    }

    .about-section__image-wrapper {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 48px 0;
        min-height: auto;
    }

    .about-section__container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-section__content {
        max-width: 100%;
    }

    .about-section__label {
        font-size: 12px;
        line-height: 16px;
        margin-bottom: 12px;
    }

    .about-section__heading {
        letter-spacing: -0.02em;
        margin-bottom: 24px;
    }

    .about-section__description {
        margin: 0 0 16px 0;
    }

    .about-section__description:last-of-type {
        margin-bottom: 32px;
    }

    .about-section__stats {
        width: 100%;
        height: auto;
        position: relative;
        border-top: 1px solid var(--color-border);
        padding-top: 32px;
        margin-top: 32px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .about-section__stat {
        position: relative;
        top: 0;
        left: 0 !important;
    }

    .about-section__stat:nth-child(2) {
        left: 0 !important;
    }

    .about-section__stat-number {
        margin-bottom: 6px;
    }

    .about-section__image-wrapper {
        width: 100%;
        height: 280px;
    }
}

/* ============================================
   SCROLL-TRIGGERED ENTRANCE ANIMATIONS
   JS adds .is-visible to [data-animate] elements
   when section reaches 10% viewport visibility.
   ============================================ */

/* --- Base: all animatable elements start invisible --- */
.about-section [data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* --- Variant: image slides in from the right --- */
.about-section [data-animate][data-animate-from="right"] {
    transform: translateX(48px);
}

/* --- Visible state: triggered by JS --- */
.about-section [data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Respect reduced-motion preference --- */
@media (prefers-reduced-motion: reduce) {
    .about-section [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}