/* ==========================================================================
   ANGLICTINA (English teaching subpage)
   Sections: intro, method, offer+pricing, references (reused component).
   Mobile-first layout.
   ========================================================================== */

/* ----- ENG-PAGE WRAPPER ----- */
/* Wraps sections 1-3 (intro, method, offer) in one continuous
   pink background, eliminating gaps between sections. */

.eng-page {
    background-color: var(--color-pink-medium);
    padding: 0 var(--space-md);
    position: relative;
    overflow-x: clip;
}

/* ----- SECTION 1: INTRO ----- */

.eng-intro {
    padding: var(--space-xl) 0 0 0
}

.eng-intro__title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.eng-intro__text {
    font-size: var(--text-body);
    font-weight: 500;
    margin-bottom: var(--space-xl);
}

.eng-intro__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-h3);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
}


.eng-intro__list {
    font-size: var(--text-body-small);
    line-height: var(--lh-body);
    padding-left: var(--space-md);
    list-style: disc;
}

.eng-intro__list li {
    margin-bottom: var(--space-xs);
}


/* ----- SECTION 2: METHOD ----- */

.eng-method {
    padding: var(--space-xl) 0 0 0;
}

.eng-method__title {
    font-family: var(--font-body);
    font-size: var(--text-h3);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
}

.eng-method__text {
    font-size: var(--text-body);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.eng-method__list {
    font-size: var(--text-body-small);
    line-height: var(--lh-body);
    padding-left: var(--space-md);
    list-style: disc;
}

.eng-method__list li {
    margin-bottom: var(--space-xs);
}

/* ----- SECTION 3: OFFER + PRICING ----- */

.eng-offer {
    padding: var(--space-xl) 0 0 0;
}

.eng-offer__title {
    font-family: var(--font-body);
    font-size: var(--text-h3);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* Cards container: stacked on mobile */
.eng-offer__cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}


/* Card: darker pink background */
.eng-offer__card {
    background-color: var(--color-pink-dark);
    padding: var(--space-lg) var(--space-sm);
    text-align: center;
    max-width: 320px;
    width: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.eng-offer__card-title {
    font-family: var(--font-body);
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.eng-offer__card-list {
    font-size: var(--text-body-small);
    line-height: var(--lh-body);
    text-align: left;
    padding-left: var(--space-md);
    margin-bottom: 0;
    list-style: disc;
    flex-grow: 1;
}

.eng-offer__card-list li {
    margin-bottom: var(--space-xs);
}

/* Price: bold, larger text */
.eng-offer__price {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* CTA button: dark background, light text */
.eng-offer__button {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-primary-dark);
    color: var(--color-pink-medium);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: center;
    padding: var(--space-sm) var(--space-2xl);
}

.eng-offer__button:hover {
    color: var(--color-pink-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ----- SECTION 4: REFERENCES (overrides for anglictina page) ----- */

.references--alt {
    padding: var(--space-2xl) var(--space-md) var(--space-lg) var(--space-md);
    margin: 0 calc(-1 * var(--space-md));
    background-color: var(--color-pink-medium);
    background-image: url('../images/anglictina-decoration.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.references--alt .references__card {
    background-color: var(--color-pink-light);
}

.references--alt .references__title {
    margin-bottom: var(--space-md);
}

/* Decorative image at bottom of content */
.eng-page__decoration {
    display: block;
    width: 100%;
}

/* Mobile: hide decorative petals */
.eng-page__petal {
    display: none;
}

/* ==========================================================================
   DESKTOP (768px+)
   Intro and Method use two-column layout: title left, content right.
   Offer cards displayed side by side instead of stacked.
   ========================================================================== */

@media (min-width: 768px) {

    /* ----- SECTION 1: INTRO (desktop overrides) ----- */

    /* Main title: extra vertical breathing room on desktop */
    .eng-intro__title {
        padding: var(--space-lg) 0 var(--space-lg) 0;
    }

    /* Intro description: centered with space below before columns */
    .eng-intro__text {
        text-align: center;
        padding: 0 0 var(--space-xl) 0;
    }

    /* Two-column layout: subtitle left (fixed 250px), bullet list right (fills rest).
       Centered with max-width so content doesn't stretch too wide on large screens. */
    .eng-intro__columns {
        display: flex;
        gap: var(--space-xl);
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 0 var(--space-md) 0;
    }

    .eng-intro__left {
        flex: 0 0 250px;
    }

    .eng-intro__right {
        flex: 1;
    }

    /* ----- SECTION 2: METHOD (desktop overrides) ----- */

    /* Two-column layout: same structure as intro columns */
    .eng-method__columns {
        display: flex;
        gap: var(--space-xl);
        max-width: 1200px;
        margin: 0 auto;
        padding: var(--space-xl) 0 var(--space-2xl) 0;
    }

    .eng-method__left {
        flex: 0 0 250px;
    }

    .eng-method__right {
        flex: 1;
    }

    /* ----- SECTION 3: OFFER (desktop overrides) ----- */

    /* More vertical space around offer section on desktop */
    .eng-offer {
        padding: 0;
    }

    /* Cards side by side, centered, narrower than columns above */
    .eng-offer__cards {
        flex-direction: row;
        flex-wrap: wrap; 
        max-width: 1000px;
        margin: 0 auto;
        align-items: stretch;
        gap: var(--space-xl);
        justify-content: center;
    }

    /* Remove mobile max-width limit so cards fill their flex space */
    .eng-offer__card {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 260px;
        max-width: 300px;
    }

    .references--alt {
        padding-top: calc(var(--space-2xl) * 2);
        padding-bottom: var(--space-xl);
        aspect-ratio: 1920 / 1080;
        background-size: 100% auto;
        background-position: bottom center;
    }

    .eng-intro {
        position: relative;
    }

    .eng-method {
        position: relative;
    }

}



/* ==========================================================================
   DESKTOP LARGE (1400px+)
   Decorative petals appear only when there's enough horizontal space
   beside the content. Below this width they would overlap the text.
   ========================================================================== */

@media (min-width: 1400px) {

    .eng-page__petal {
        display: block;
        position: absolute;
        pointer-events: auto;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .eng-page__petal--1 {
        left: 20px;
        bottom: -40px;
        width: 180px;
        height: auto;
    }

    .eng-page__petal--2 {
        right: 40px;
        top: 20px;
        width: 180px;
        height: auto;
        transform: rotate(-105deg);
    }

    .eng-page__petal--1:hover {
        content: url('/static/images/petal_1_blur.webp');
    }

    .eng-page__petal--2:hover {
        content: url('/static/images/petal_2_blur.webp');
    }
}