/*
|--------------------------------------------------------------------------
| Qorezo Composable Rendering Layer
|--------------------------------------------------------------------------
| Component: About Us Section Variants
| Scope: Marketing Homepage Composer Only (.home-composer)
|
| Contract Rules:
| - MUST declare explicit position: relative on the variant namespace root
|   prior to applying position: absolute on children.
| - MUST NOT declare raw aesthetic tokens (#hex, color names, literal fonts).
| - MUST NOT use bare HTML tag selectors.
| - MUST NOT use arbitrary !important declarations.
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   1. VARIANT: Elegant (formerly royal)
   ========================================================================== */

.page-home .home-composer .section-about.section-about--elegant {
    position: relative; /* Explicit Position Context Contract */
    min-height: 95vh;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem) var(--margin-page, 1rem);
}

.page-home .home-composer .section-about--elegant .about-us__image {
    position: relative;
    isolation: isolate;
}

.page-home .home-composer .section-about--elegant .about-us__image img {
    display: block;
    width: min(52rem, 100%);
    height: auto;
    border-radius: var(--border-radius-secondary);
    box-shadow: var(--box-shadow-primary);
    object-fit: cover;
}

.page-home .home-composer .section-about--elegant .about-deco--bar {
    position: absolute;
    left: -1.25rem;
    top: 2%;
    bottom: 2%;
    width: 0.75rem;
    background: var(--brand-primary-accent-dark-color);
    border-radius: var(--border-radius-primary);
    z-index: var(--z-below, -1);
}

.page-home .home-composer .section-about--elegant .about-deco--chip {
    position: absolute;
    right: 8%;
    top: 22%;
    width: clamp(5rem, 12vw, 8rem);
    height: clamp(3rem, 8vw, 4.5rem);
    opacity: .85;
    border-radius: var(--border-radius-primary);
    z-index: var(--z-above, 1);
}

.page-home .home-composer .section-about--elegant .about-us__frame {
    position: absolute;
    left: clamp(1rem, 6vw, 3rem);
    top: clamp(8rem, 24%, 12rem);
    width: clamp(15rem, 45%, 24rem);
    padding: 1.75rem 1.5rem;
    background: var(--color-secondary);
    color: var(--text-tertiary);
    border-radius: var(--border-radius-primary);
    box-shadow: var(--box-shadow-primary);
    z-index: var(--z-frame, 5);
}

.page-home .home-composer .section-about--elegant .frame__icon {
    display: flex;
    justify-content: center;
    color: var(--brand-primary-color);
    margin-bottom: 1rem;
}

.page-home .home-composer .section-about--elegant .frame__title {
    font-family: var(--font-family-secondary);
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--brand-primary-color);
    margin: 0 0 .5rem 0;
    text-align: center;
}

.page-home .home-composer .section-about--elegant .frame__text {
    line-height: var(--line-height-relaxed);
    color: var(--brand-primary-accent-color);
    margin: 0;
    text-align: center;
}

.page-home .home-composer .section-about--elegant .about-us__details {
    display: grid;
    background: var(--background-tertiary);
    gap: 1rem;
}

.page-home .home-composer .section-about--elegant .about-lead {
    font-family: var(--font-family-primary);
}

/* Elegant Variant Mobile Breakpoint */
@media screen and (max-width: 768px) {
    .page-home .home-composer .section-about.section-about--elegant {
        margin: var(--layout-breakout-inline);
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 1.5rem;
    }

    .page-home .home-composer .section-about--elegant .about-us__frame {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 1rem;
        bottom: auto;
        width: auto;
        text-align: center;
        padding: 1.25rem;
        opacity: .9;
    }

    .page-home .home-composer .section-about--elegant .frame__title {
        font-size: 1.5rem;
    }

    .page-home .home-composer .section-about--elegant .frame__text {
        font-size: 0.95rem;
    }

    .page-home .home-composer .section-about--elegant .about-us__details .button {
        width: 100%;
    }
}

/* ==========================================================================
   2. VARIANT: Modern (formerly blue/boutique)
   ========================================================================== */

.page-home .home-composer .section-about.section-about--modern {
    position: relative;
    min-height: 95vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: clamp(1.5rem, 4vw, 3rem) var(--margin-page, 1rem);
}

.page-home .home-composer .section-about--modern .about-us__image {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.page-home .home-composer .section-about--modern .about-us__image img {
    display: block;
    width: min(50rem, 100%);
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-secondary);
    box-shadow: var(--box-shadow-primary);
}

.page-home .home-composer .section-about--modern .about-us__details {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    position: relative;
    z-index: var(--z-above, 2);
    margin-left: -3.5rem;
    background: var(--background-tertiary);
}

.page-home .home-composer .section-about--modern .about-lead {
    font-family: var(--font-family-primary);
    color: var(--brand-primary-color);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-lg);
    padding-top: 1rem;
}

.page-home .home-composer .section-about--modern .about-us__details .button {
    margin-top: 2rem;
    width: 12rem;
    box-shadow: var(--box-shadow-primary);
}

/* Modern Variant Mobile Breakpoint */
@media screen and (max-width: 768px) {
    .page-home .home-composer .section-about.section-about--modern {
        margin: var(--layout-breakout-inline);
        display: flex;
        flex-direction: column;
        width: fit-content;
    }

    .page-home .home-composer .section-about--modern .about-us__details {
        display: flex;
        flex-direction: column;
        width: fit-content;
        margin: 0;
    }

    .page-home .home-composer .section-about--modern .about-us__details .button {
        width: 100%;
    }
}

/* ==========================================================================
   3. VARIANT: Immersive (formerly nature)
   ========================================================================== */

.page-home .home-composer .section-about.section-about--immersive {
    position: relative;
    min-height: 85vh;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 5vw, 7.5rem);
    max-width: 1440px;
    margin-inline: auto;
}

.page-home .home-composer .section-about--immersive .about-us__image {
    grid-column: 1;
    grid-row: 1;
}

.page-home .home-composer .section-about--immersive .about-us__image img {
    display: block;
    width: min(42rem, 100%);
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-secondary);
    box-shadow: var(--box-shadow-primary);
}

.page-home .home-composer .section-about--immersive .about-us__details {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: flex-start;
}

.page-home .home-composer .section-about--immersive .about__text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1rem, 3vw, 3rem);
    row-gap: 1rem;
    color: var(--text-secondary);
}

.page-home .home-composer .section-about--immersive .about__line {
    margin: 0;
    font-family: var(--font-family-primary);
    font-weight: 400;
    font-size: clamp(.98rem, 1.8vw, 1.12rem);
    line-height: 1.8;
}

.page-home .home-composer .section-about--immersive .about__line--1 {
    color: var(--text-primary);
}

.page-home .home-composer .section-about--immersive .about-us__details .button {
    margin-top: .75rem;
    box-shadow: var(--box-shadow-primary);
    width: 12rem;
    align-self: flex-start;
}

/* Immersive Variant Mobile Breakpoint */
@media screen and (max-width: 768px) {
    .page-home .home-composer .section-about.section-about--immersive {
        margin: var(--layout-breakout-inline);
        display: block;
        padding: clamp(1rem, 3vw, 1.25rem);
    }

    .page-home .home-composer .section-about--immersive .about-us__image {
        margin: 0;
    }

    .page-home .home-composer .section-about--immersive .about-us__image img {
        display: block;
        width: 100%;
        height: clamp(16rem, 55vh, 28rem);
        object-fit: cover;
        border-radius: 0;
        filter: brightness(.95);
    }

    .page-home .home-composer .section-about--immersive .about-us__details {
        position: static;
        z-index: auto;
        width: 100%;
        margin-top: clamp(.75rem, 2vw, 1rem);
        padding: clamp(1rem, 3vw, 1.25rem) clamp(1rem, 4vw, 1.5rem);
        border-radius: var(--border-radius-secondary);
        box-shadow: var(--box-shadow-primary);
        background: rgba(255, 255, 255, .92); /* Pure aesthetic utility for legibility */
        align-items: stretch;
    }

    .page-home .home-composer .section-about--immersive .about__title,
    .page-home .home-composer .section-about--immersive .about__text {
        text-align: left;
    }

    .page-home .home-composer .section-about--immersive .about__text {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: .85rem;
        max-width: none;
    }
}
