/**
 * Matheson About Section Styles
 */

/* Force the parent Divi row to allow full width */
.et_pb_row:has(#about-section) {
    max-width: 1208px !important;
    /* width: 80% !important; */
    margin: 48px auto;
}

#about-section,
#about-section * {
    box-sizing: border-box;
}

#about-section {
    /* padding: 100px 0 80px; */
}

#about-section .about-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: center;
}

/* ---- Text column ---- */

#about-section .about-eyebrow {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #B0C637;
    margin: 0 0 10px;
    padding: 0;
}

#about-section .about-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: #25285F;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
    padding: 0;
}

#about-section .about-accent-bar {
    width: 60px;
    height: 3px;
    background: #B0C637;
    margin: 0 0 36px;
    padding: 0;
}

#about-section .about-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #4a4a4a;
    margin: 0 0 16px;
    padding: 0;
}

#about-section .about-description strong {
    font-weight: 700;
    color: #25285F;
}

#about-section .about-description--last {
    margin: 0 0 48px;
}

#about-section .about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #25285F;
    text-decoration: none;
    border-bottom: 2px solid #B0C637;
    padding: 0 0 4px;
    margin: 0;
    transition: color 0.2s ease, gap 0.2s ease;
}

#about-section .about-link:hover,
#about-section .about-link:focus {
    color: #B0C637;
    gap: 14px;
}

#about-section .about-link:focus-visible {
    outline: 2px solid #B0C637;
    outline-offset: 4px;
}

#about-section .about-link:focus:not(:focus-visible) {
    outline: none;
}

/* ---- Image column ---- */

#about-section .about-image-wrapper {
    position: relative;
}

/* Decorative offset border behind the image */
#about-section .about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid #B0C637;
    z-index: 0;
}

#about-section .about-image-frame {
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 40, 95, 0.15);
    z-index: 1;
}

#about-section .about-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    object-position: calc(50% - 50px) center;
    margin: 0;
    padding: 0;
}

/* ---- Scroll reveal animations ---- */

.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up    { transform: translateY(40px); }

.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-up.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ---- Responsive ---- */

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

    #about-section .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    #about-section .about-heading {
        font-size: 40px;
    }

    /* Image first on tablet for visual impact */
    #about-section .about-image-wrapper {
        order: -1;
    }

    #about-section .about-image-frame img {
        aspect-ratio: 3 / 2;
    }
}

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

    #about-section .about-heading {
        font-size: 34px;
    }

    #about-section .about-description {
        font-size: 15px;
        line-height: 1.75;
    }

    #about-section .about-image-wrapper::before {
        top: -12px;
        right: -12px;
    }
}
