/**
 * FIFE About / Who We Are — Elementor widget styles.
 *
 * Scoped entirely under .fife-elementor-about so this can never collide
 * with front-page.php's ".mission-section" or page-who-we-are.php's
 * inline-styled "Our Experts" block — both stay untouched. Literal
 * values below (image radius/shadow, paragraph color/opacity, button
 * tokens) are copied from those sources, not computed from style.css
 * custom properties, so this widget has no live dependency on them.
 */

.fife-elementor-about {
    --fife-about-gap: 3rem;
    --fife-about-content-width: 640px;
    --fife-about-image-max-height: 480px;
}

.fife-elementor-about__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--fife-about-gap);
}

@media (min-width: 768px) {
    .fife-elementor-about--image-left .fife-elementor-about__grid,
    .fife-elementor-about--image-right .fife-elementor-about__grid {
        grid-template-columns: 1fr 1fr;
    }

    .fife-elementor-about--image-right .fife-elementor-about__media {
        order: 2;
    }

    .fife-elementor-about--image-right .fife-elementor-about__content {
        order: 1;
    }
}

.fife-elementor-about--no-image .fife-elementor-about__grid {
    grid-template-columns: 1fr;
}

.fife-elementor-about__media {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-width: 0;
}

.fife-elementor-about__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: var(--fife-about-image-max-height);
    object-fit: cover;
    object-position: top center;
}

.fife-elementor-about__content {
    min-width: 0;
    max-width: var(--fife-about-content-width);
}

.fife-elementor-about--align-center .fife-elementor-about__content {
    margin-inline: auto;
    text-align: center;
}

.fife-elementor-about--align-center .fife-elementor-about__stats,
.fife-elementor-about--align-center .fife-elementor-about__buttons {
    justify-content: center;
}

.fife-elementor-about--no-image .fife-elementor-about__content {
    max-width: none;
}

.fife-elementor-about__eyebrow {
    display: inline-block;
    margin: 0 0 0.75rem;
    color: hsl(311, 50%, 37%);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fife-elementor-about__heading {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: hsl(0, 0%, 3.9%);
}

.fife-elementor-about__description {
    margin: 0 0 1.5rem;
    color: hsl(240, 10%, 10%);
    opacity: 0.75;
    font-size: 1.125rem;
    line-height: 1.8;
}

.fife-elementor-about__description:last-child {
    margin-bottom: 0;
}

.fife-elementor-about__description p {
    margin: 0 0 1em;
}

.fife-elementor-about__description p:last-child {
    margin-bottom: 0;
}

.fife-elementor-about__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 0 1.5rem;
}

.fife-elementor-about__stat {
    display: flex;
    flex-direction: column;
}

.fife-elementor-about__stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: hsl(311, 50%, 37%);
    line-height: 1.2;
}

.fife-elementor-about__stat-label {
    font-size: 0.9rem;
    color: hsl(0, 0%, 45.1%);
    line-height: 1.4;
}

.fife-elementor-about__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.fife-elementor-about__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.fife-elementor-about__button--primary {
    background: hsl(311, 50%, 37%);
    color: #fff;
}

.fife-elementor-about__button--primary:hover,
.fife-elementor-about__button--primary:focus-visible {
    background: hsl(310, 58%, 28%);
    color: #fff;
    transform: translateY(-2px);
}

.fife-elementor-about__button--secondary {
    background: transparent;
    color: hsl(311, 50%, 37%);
    border-color: hsl(311, 50%, 37%);
}

.fife-elementor-about__button--secondary:hover,
.fife-elementor-about__button--secondary:focus-visible {
    background: hsl(311, 50%, 37%);
    color: #fff;
}

.fife-elementor-about__button:focus-visible {
    outline: 2px solid hsl(311, 50%, 37%);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .fife-elementor-about__button {
        transition-duration: 0.01ms !important;
    }

    .fife-elementor-about__button--primary:hover,
    .fife-elementor-about__button--primary:focus-visible {
        transform: none !important;
    }
}
