/**
 * About Page Styles
 * Inspired by Mcdodo about page with responsive adjustments
 */

:root {
    --about-hero-height: clamp(520px, 70vh, 760px);
}

.about-hero {
    position: relative;
    min-height: var(--about-hero-height);
    overflow: hidden;
    color: #fff;
}

.about-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    z-index: 1;
}

.about-hero__media--fallback {
    background-image: linear-gradient(135deg, #0f172a, #1e293b 50%, #0f172a);
}

.about-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 7, 29, 0.85), rgba(2, 6, 23, 0.4));
    z-index: 2;
    transition: opacity 0.3s ease;
}

.about-hero__content {
    position: relative;
    z-index: 3;
    min-height: var(--about-hero-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 840px;
    margin: 0 auto;
    padding-top: 120px;
    padding-bottom: 120px;
    text-align: center;
}

.about-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.about-hero__subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    text-align: center;
}

/* Reveal animations */
.about-reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.about-reveal[data-reveal="fade-up"] {
    transform: translate3d(0, 40px, 0);
}

.about-reveal[data-reveal="fade-down"] {
    transform: translate3d(0, -40px, 0);
}

.about-reveal[data-reveal="fade-left"] {
    transform: translate3d(40px, 0, 0);
}

.about-reveal[data-reveal="fade-right"] {
    transform: translate3d(-40px, 0, 0);
}

.about-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.about-language-switcher {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    overflow: hidden;
}

.about-language-switcher__link {
    padding: 0.45rem 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.about-language-switcher__link.is-active {
    background: #fff;
    color: #0f172a;
    font-weight: 600;
}

.about-mission {
    background: #fff;
    padding: clamp(60px, 10vw, 90px) 0;
}

.about-mission__text {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #0f172a;
}

.about-stats {
    background: #f8fafc;
    padding: clamp(40px, 8vw, 80px) 0;
}

.about-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.about-stat {
    text-align: center;
}

.about-stat__value {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #0f172a;
}

.about-stat__label {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #1f2937;
}

.about-stat__description {
    color: #6b7280;
}

.about-story {
    padding: clamp(60px, 10vw, 100px) 0;
}

.about-story__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
}

.about-story__content p {
    color: #4b5563;
    line-height: 1.7;
}

.about-story__content p + p {
    margin-top: 1rem;
}

.about-story__content h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.about-story__kicker {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.about-story__media img,
.about-story__media-fallback {
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.about-pillar {
    padding: clamp(50px, 8vw, 90px) 0;
}

.about-pillar__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
}

.about-pillar--image-right .about-pillar__grid {
    direction: rtl;
}

.about-pillar--image-right .about-pillar__grid > * {
    direction: ltr;
}

.about-pillar__media img,
.about-pillar__media-fallback {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.15);
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.about-pillar__kicker {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #cbd5f5;
    margin-bottom: 0.75rem;
}

.about-pillar__content h3 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: #0f172a;
}

.about-pillar__content p {
    color: #475569;
    line-height: 1.7;
}

.about-sustainability {
    position: relative;
    min-height: 520px;
    margin: clamp(40px, 8vw, 80px) 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-sustainability__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.about-sustainability__bg--fallback {
    background-image: linear-gradient(135deg, #064e3b, #0f172a);
}

.about-sustainability__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(4, 7, 29, 0.85), rgba(4, 120, 87, 0.5));
}

.about-sustainability__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #fff;
    padding: clamp(40px, 8vw, 80px);
    margin: 0 auto;
}

.about-sustainability__kicker {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.about-sustainability__content h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.about-sustainability__content p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
    .about-story__grid,
    .about-pillar__grid {
        grid-template-columns: 1fr;
    }

    .about-pillar--image-right .about-pillar__grid {
        direction: ltr;
    }

    .about-pillar__media {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --about-hero-height: clamp(480px, 80vh, 640px);
    }

    .about-hero__content {
        padding: 96px 1.25rem 64px;
        text-align: center;
    }

    .about-hero__subtitle {
        margin: 0 auto;
        font-size: 1.05rem;
    }

    .about-language-switcher {
        align-self: center;
        width: 100%;
        justify-content: center;
    }

    .about-mission__text {
        font-size: 1.1rem;
    }

    .about-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-story__media img,
    .about-story__media-fallback,
    .about-pillar__media img,
    .about-pillar__media-fallback {
        aspect-ratio: 3 / 2;
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .about-stats__grid {
        grid-template-columns: 1fr;
    }

    .about-language-switcher {
        flex-wrap: wrap;
    }

    .about-language-switcher__link {
        flex: 1 1 50%;
        text-align: center;
    }

    .about-hero__title {
        font-size: 2.25rem;
    }

    .about-hero__subtitle {
        font-size: 1rem;
    }

    .about-sustainability {
        border-radius: 16px;
    }
}

[data-theme="dark"] .about-mission__text,
[data-theme="dark"] .about-story__content h2,
[data-theme="dark"] .about-pillar__content h3 {
    color: #f8fafc;
}

[data-theme="dark"] .about-story__content p,
[data-theme="dark"] .about-pillar__content p {
    color: #cbd5f5;
}

[data-theme="dark"] .about-mission,
[data-theme="dark"] .about-story,
[data-theme="dark"] .about-pillar {
    background: var(--bg-primary);
}

[data-theme="dark"] .about-stat__value {
    color: #f8fafc;
}

[data-theme="dark"] .about-stat__label {
    color: #e2e8f0;
}

[data-theme="dark"] .about-stat__description {
    color: #94a3b8;
}

