@charset "UTF-8";

/* =====================================================================
   OLLATOEDU ECOSYS
   Homepage Styles
   =====================================================================

   File:
   assets/css/pages/home.css

   Purpose:
   - Style the homepage hero
   - Style homepage content sections
   - Maintain consistent 1280px container alignment
   - Keep hero close to navigation
   - Support responsive desktop, tablet and mobile layouts
   - Support accessibility and reduced motion
   - Work with assets/js/pages/home.js

   IMPORTANT:
   - Full-width backgrounds remain edge-to-edge
   - Content stays inside the global .container
   - Hero top spacing is intentionally compact
   ===================================================================== */


/* =====================================================================
   1. HOMEPAGE ROOT
   ===================================================================== */

.home-page {
    position: relative;

    width: 100%;

    overflow-x: clip;
}


.home-page-body {
    background-color: var(--color-white);
}


/* =====================================================================
   2. HERO ROOT
   =====================================================================

   IMPORTANT:
   Reduced top padding keeps the hero visually closer to navigation.
   ===================================================================== */

.home-hero {
    position: relative;

    width: 100%;

    overflow: hidden;

    padding-top: 2rem;
    padding-bottom: 4.75rem;

    background:
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #ffffff 45%,
            #f1fbfa 100%
        );
}


/* =====================================================================
   3. HERO BACKGROUND DECORATION
   ===================================================================== */

.home-hero__background {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}


.home-hero__shape {
    position: absolute;

    display: block;

    border-radius: 50%;

    filter: blur(2px);

    opacity: 0.55;
}


.home-hero__shape--one {
    width: 28rem;
    height: 28rem;

    top: -11rem;
    right: -8rem;

    background:
        radial-gradient(
            circle,
            rgb(33 111 219 / 0.16) 0%,
            rgb(33 111 219 / 0) 72%
        );
}


.home-hero__shape--two {
    width: 23rem;
    height: 23rem;

    left: -9rem;
    bottom: -9rem;

    background:
        radial-gradient(
            circle,
            rgb(46 170 168 / 0.14) 0%,
            rgb(46 170 168 / 0) 72%
        );
}


.home-hero__shape--three {
    width: 16rem;
    height: 16rem;

    top: 30%;
    right: 30%;

    background:
        radial-gradient(
            circle,
            rgb(89 153 244 / 0.08) 0%,
            rgb(89 153 244 / 0) 70%
        );
}


/* =====================================================================
   4. HERO INNER
   ===================================================================== */

.home-hero__inner {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(420px, 0.95fr);

    align-items: center;

    gap:
        clamp(
            3rem,
            6vw,
            6rem
        );

    min-height: 34rem;
}


/* =====================================================================
   5. HERO CONTENT
   ===================================================================== */

.home-hero__content {
    position: relative;

    max-width: 46rem;
}


/* =====================================================================
   6. HERO EYEBROW
   ===================================================================== */

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 0.55rem;

    width: fit-content;

    margin-bottom: 1rem;

    padding:
        0.45rem
        0.75rem;

    border:
        1px
        solid
        var(--color-primary-100);

    border-radius: var(--radius-pill);

    color: var(--color-primary-700);

    background-color:
        rgb(238 246 255 / 0.9);

    box-shadow:
        0
        2px
        8px
        rgb(15 23 42 / 0.04);
}


.home-hero__eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1rem;
    height: 1rem;

    flex: 0 0 auto;
}


.home-hero__eyebrow-icon svg {
    width: 100%;
    height: 100%;
}


.home-hero__eyebrow-text {
    font-size: 0.82rem;
    font-weight: var(--font-weight-bold);

    letter-spacing: 0.045em;

    line-height: 1.2;

    text-transform: uppercase;
}


/* =====================================================================
   7. HERO TITLE
   ===================================================================== */

.home-hero__title {
    max-width: 44rem;

    margin-bottom: 1.35rem;

    font-size:
        clamp(
            2.75rem,
            5vw,
            4.75rem
        );

    font-weight: var(--font-weight-extrabold);

    line-height: 1.06;

    letter-spacing: -0.045em;

    color: var(--color-heading);
}


.home-hero__title-highlight {
    position: relative;

    display: inline;

    color: var(--color-primary-700);
}


/* =====================================================================
   8. HERO DESCRIPTION
   ===================================================================== */

.home-hero__description {
    max-width: 42rem;

    margin-bottom: 1.75rem;

    font-size:
        clamp(
            1.05rem,
            1.35vw,
            1.2rem
        );

    line-height: 1.75;

    color: var(--color-text-soft);
}


/* =====================================================================
   9. HERO ACTIONS
   ===================================================================== */

.home-hero__actions {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 0.9rem;

    margin-bottom: 2rem;
}


.home-hero__primary-cta,
.home-hero__secondary-cta {
    min-width: 10.5rem;
}


.home-hero__button-icon,
.home-hero__button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 1.05rem;
    height: 1.05rem;
}


.home-hero__button-icon svg,
.home-hero__button-arrow svg {
    width: 100%;
    height: 100%;
}


.home-hero__button-arrow {
    margin-left: 0.1rem;

    transition:
        transform var(--transition-fast);
}


.home-hero__secondary-cta:hover
.home-hero__button-arrow {
    transform: translateX(3px);
}


/* =====================================================================
   10. HERO SUPPORT LIST
   ===================================================================== */

.home-hero__support-list {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap:
        0.75rem
        1.1rem;

    margin: 0;
    padding: 0;

    list-style: none;
}


.home-hero__support-item {
    display: inline-flex;
    align-items: center;

    gap: 0.45rem;

    margin: 0;

    color: var(--color-grey-600);
}


.home-hero__support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1rem;
    height: 1rem;

    flex: 0 0 auto;

    color: var(--color-secondary-600);
}


.home-hero__support-icon svg {
    width: 100%;
    height: 100%;
}


.home-hero__support-text {
    font-size: 0.86rem;
    font-weight: var(--font-weight-semibold);

    line-height: 1.3;
}


/* =====================================================================
   11. HERO VISUAL
   ===================================================================== */

.home-hero__visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;

    min-height: 31rem;
}


/* =====================================================================
   12. HERO IMAGE
   ===================================================================== */

.home-hero__figure {
    width: 100%;

    margin: 0;
}


.home-hero__image-frame {
    position: relative;

    width: 100%;
    max-width: 34rem;

    margin-inline: auto;

    overflow: hidden;

    border:
        1px
        solid
        rgb(226 232 240 / 0.9);

    border-radius: 2rem;

    background-color: var(--color-white);

    box-shadow:
        0
        26px
        70px
        rgb(15 23 42 / 0.14);
}


.home-hero__image {
    width: 100%;
    height: auto;

    object-fit: cover;
}


/* =====================================================================
   13. HERO VISUAL CARD
   ===================================================================== */

.home-hero__visual-card {
    position: relative;

    width: min(
        100%,
        31rem
    );

    padding: 1.6rem;

    border:
        1px
        solid
        rgb(226 232 240 / 0.9);

    border-radius: 1.75rem;

    background:
        linear-gradient(
            145deg,
            rgb(255 255 255 / 0.96) 0%,
            rgb(248 250 252 / 0.96) 100%
        );

    box-shadow:
        0
        26px
        70px
        rgb(15 23 42 / 0.12);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


/* =====================================================================
   14. VISUAL CARD HEADER
   ===================================================================== */

.home-hero__visual-card-header {
    display: flex;
    align-items: center;

    gap: 1rem;

    padding-bottom: 1.25rem;

    border-bottom:
        1px
        solid
        var(--color-border);
}


.home-hero__visual-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 3.25rem;
    height: 3.25rem;

    flex: 0 0 auto;

    border-radius: 1rem;

    color: var(--color-white);

    background:
        linear-gradient(
            135deg,
            var(--color-primary-600) 0%,
            var(--color-secondary-500) 100%
        );

    box-shadow:
        0
        8px
        18px
        rgb(33 111 219 / 0.22);
}


.home-hero__visual-brand-icon svg {
    width: 1.7rem;
    height: 1.7rem;
}


.home-hero__visual-heading {
    display: flex;
    flex-direction: column;

    gap: 0.2rem;
}


.home-hero__visual-kicker {
    font-size: 0.76rem;
    font-weight: var(--font-weight-bold);

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--color-primary-700);
}


.home-hero__visual-title {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);

    color: var(--color-heading);
}


/* =====================================================================
   15. VISUAL CARD CONTENT
   ===================================================================== */

.home-hero__visual-content {
    display: grid;

    gap: 0.8rem;

    padding-block: 1.25rem;
}


.home-hero__visual-item {
    display: flex;
    align-items: center;

    gap: 0.9rem;

    padding: 0.9rem;

    border:
        1px
        solid
        var(--color-border);

    border-radius: var(--radius-lg);

    background-color:
        rgb(255 255 255 / 0.8);

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}


.home-hero__visual-item:hover {
    transform: translateY(-2px);

    border-color:
        var(--color-primary-200);

    box-shadow:
        var(--shadow-sm);
}


.home-hero__visual-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.7rem;
    height: 2.7rem;

    flex: 0 0 auto;

    border-radius: 0.85rem;

    color: var(--color-primary-700);

    background-color:
        var(--color-primary-50);
}


.home-hero__visual-item-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}


.home-hero__visual-item-content {
    display: flex;
    flex-direction: column;

    gap: 0.15rem;

    min-width: 0;
}


.home-hero__visual-item-content strong {
    font-size: 0.96rem;
    font-weight: var(--font-weight-bold);

    color: var(--color-heading);
}


.home-hero__visual-item-content span {
    font-size: 0.8rem;

    line-height: 1.45;

    color: var(--color-text-muted);
}


/* =====================================================================
   16. VISUAL CARD FOOTER
   ===================================================================== */

.home-hero__visual-footer {
    display: flex;
    align-items: center;

    gap: 0.55rem;

    padding-top: 1rem;

    border-top:
        1px
        solid
        var(--color-border);

    font-size: 0.78rem;
    font-weight: var(--font-weight-semibold);

    color: var(--color-text-soft);
}


.home-hero__visual-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1rem;
    height: 1rem;

    color: var(--color-secondary-600);
}


.home-hero__visual-footer-icon svg {
    width: 100%;
    height: 100%;
}


/* =====================================================================
   17. FLOATING CARDS
   ===================================================================== */

.home-hero__floating-card {
    position: absolute;

    display: flex;
    align-items: center;

    gap: 0.65rem;

    padding:
        0.7rem
        0.85rem;

    border:
        1px
        solid
        rgb(226 232 240 / 0.9);

    border-radius: var(--radius-lg);

    background-color:
        rgb(255 255 255 / 0.94);

    box-shadow:
        0
        14px
        35px
        rgb(15 23 42 / 0.12);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


.home-hero__floating-card--assessment {
    top: 8%;
    left: -1.5rem;
}


.home-hero__floating-card--support {
    right: -1rem;
    bottom: 12%;
}


.home-hero__floating-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.2rem;
    height: 2.2rem;

    flex: 0 0 auto;

    border-radius: 0.7rem;

    color: var(--color-primary-700);

    background-color: var(--color-primary-50);
}


.home-hero__floating-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}


.home-hero__floating-content {
    display: flex;
    flex-direction: column;

    gap: 0.05rem;
}


.home-hero__floating-content strong {
    font-size: 0.78rem;

    color: var(--color-heading);
}


.home-hero__floating-content span {
    font-size: 0.7rem;

    color: var(--color-text-muted);
}


/* =====================================================================
   18. HERO BOTTOM
   ===================================================================== */

.home-hero__bottom {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            var(--color-border) 20%,
            var(--color-border) 80%,
            transparent 100%
        );
}


/* =====================================================================
   19. HOMEPAGE GENERIC SECTION
   ===================================================================== */

.home-section {
    position: relative;

    width: 100%;

    padding-block:
        clamp(
            4rem,
            7vw,
            6rem
        );
}


.home-section--soft {
    background-color: var(--color-background-soft);
}


.home-section--white {
    background-color: var(--color-white);
}


/* =====================================================================
   20. HOMEPAGE SECTION HEADER
   ===================================================================== */

.home-section__header {
    max-width: 48rem;

    margin-bottom: 2.5rem;
}


.home-section__header--center {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


.home-section__eyebrow {
    display: inline-block;

    margin-bottom: 0.75rem;

    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--color-primary-700);
}


.home-section__title {
    margin-bottom: 1rem;
}


.home-section__description {
    margin-bottom: 0;

    font-size: 1.05rem;

    line-height: 1.75;

    color: var(--color-text-soft);
}


/* =====================================================================
   21. ABOUT INTRO SECTION
   ===================================================================== */

.home-about__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap:
        clamp(
            2.5rem,
            6vw,
            5rem
        );
}


.home-about__content {
    max-width: 38rem;
}


.home-about__media {
    position: relative;
}


/* =====================================================================
   22. ASSESSMENT INTRO
   ===================================================================== */

.home-assessments__grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1.5rem;
}


/* =====================================================================
   23. HOW IT WORKS
   ===================================================================== */

.home-how-it-works__steps {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1.5rem;
}


/* =====================================================================
   24. EXPERT INTRO
   ===================================================================== */

.home-experts__grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1.5rem;
}


/* =====================================================================
   25. COUNSELLING INTRO
   ===================================================================== */

.home-counselling__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap:
        clamp(
            2.5rem,
            6vw,
            5rem
        );
}


/* =====================================================================
   26. WHY OLLATOEDU
   ===================================================================== */

.home-why__grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1.5rem;
}


/* =====================================================================
   27. RESOURCES INTRO
   ===================================================================== */

.home-resources__grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1.5rem;
}


/* =====================================================================
   28. CONTACT CTA
   ===================================================================== */

.home-contact-cta {
    position: relative;

    padding-block:
        clamp(
            4rem,
            7vw,
            6rem
        );

    background:
        linear-gradient(
            135deg,
            var(--color-primary-800) 0%,
            var(--color-primary-900) 100%
        );

    color: var(--color-white);
}


.home-contact-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}


.home-contact-cta__content {
    max-width: 44rem;
}


.home-contact-cta__title {
    margin-bottom: 0.8rem;

    color: var(--color-white);
}


.home-contact-cta__description {
    margin-bottom: 0;

    color:
        rgb(255 255 255 / 0.82);
}


/* =====================================================================
   29. HOME REVEAL SUPPORT
   ===================================================================== */

.js [data-home-reveal] {
    opacity: 0;

    transform:
        translateY(
            16px
        );

    transition:
        opacity 500ms ease,
        transform 500ms ease;
}


.js [data-home-reveal].is-revealed {
    opacity: 1;

    transform: translateY(0);
}


/* =====================================================================
   30. LARGE DESKTOP
   ===================================================================== */

@media (min-width: 90rem) {

    .home-hero {
        padding-top: 2.15rem;
        padding-bottom: 5rem;
    }


    .home-hero__inner {
        min-height: 36rem;
    }


    .home-hero__visual {
        min-height: 33rem;
    }

}


/* =====================================================================
   31. STANDARD DESKTOP
   ===================================================================== */

@media
    (min-width: 64rem)
    and
    (max-width: 89.9375rem) {

    .home-hero {
        padding-top: 1.75rem;
        padding-bottom: 4.25rem;
    }


    .home-hero__inner {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(380px, 0.9fr);

        gap: 3rem;

        min-height: 32rem;
    }


    .home-hero__title {
        font-size:
            clamp(
                2.6rem,
                4.2vw,
                4rem
            );
    }


    .home-hero__visual {
        min-height: 29rem;
    }

}


/* =====================================================================
   32. TABLET
   ===================================================================== */

@media
    (min-width: 48rem)
    and
    (max-width: 63.9375rem) {

    .home-hero {
        padding-top: 1.5rem;
        padding-bottom: 3.75rem;
    }


    .home-hero__inner {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 3rem;

        min-height: 0;
    }


    .home-hero__content {
        max-width: 44rem;
    }


    .home-hero__visual {
        min-height: 0;
    }


    .home-hero__visual-card {
        max-width: 36rem;
    }


    .home-hero__floating-card--assessment {
        left: 2rem;
    }


    .home-hero__floating-card--support {
        right: 2rem;
    }


    .home-assessments__grid,
    .home-how-it-works__steps,
    .home-experts__grid,
    .home-why__grid,
    .home-resources__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .home-about__grid,
    .home-counselling__grid {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .home-contact-cta__inner {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =====================================================================
   33. MOBILE
   ===================================================================== */

@media (max-width: 47.9375rem) {

    .home-hero {
        padding-top: 1.25rem;
        padding-bottom: 3rem;
    }


    .home-hero__inner {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 2.5rem;

        min-height: 0;
    }


    .home-hero__eyebrow {
        margin-bottom: 0.85rem;
    }


    .home-hero__eyebrow-text {
        font-size: 0.72rem;
    }


    .home-hero__title {
        margin-bottom: 1rem;

        font-size:
            clamp(
                2.15rem,
                11vw,
                3.15rem
            );

        line-height: 1.08;
    }


    .home-hero__description {
        margin-bottom: 1.4rem;

        font-size: 1rem;

        line-height: 1.65;
    }


    .home-hero__actions {
        align-items: stretch;

        flex-direction: column;

        margin-bottom: 1.6rem;
    }


    .home-hero__primary-cta,
    .home-hero__secondary-cta {
        width: 100%;

        min-width: 0;
    }


    .home-hero__support-list {
        align-items: flex-start;

        flex-direction: column;

        gap: 0.7rem;
    }


    .home-hero__visual {
        min-height: 0;
    }


    .home-hero__visual-card {
        width: 100%;

        padding: 1.25rem;

        border-radius: 1.35rem;
    }


    .home-hero__floating-card {
        display: none;
    }


    .home-section {
        padding-block: 3.5rem;
    }


    .home-assessments__grid,
    .home-how-it-works__steps,
    .home-experts__grid,
    .home-why__grid,
    .home-resources__grid {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .home-about__grid,
    .home-counselling__grid {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .home-contact-cta {
        padding-block: 3.5rem;
    }


    .home-contact-cta__inner {
        align-items: stretch;

        flex-direction: column;
    }

}


/* =====================================================================
   34. SMALL MOBILE
   ===================================================================== */

@media (max-width: 29.9375rem) {

    .home-hero {
        padding-top: 1rem;
        padding-bottom: 2.75rem;
    }


    .home-hero__eyebrow {
        padding:
            0.4rem
            0.65rem;
    }


    .home-hero__title {
        font-size:
            clamp(
                2rem,
                10.5vw,
                2.65rem
            );
    }


    .home-hero__visual-card-header {
        align-items: flex-start;
    }


    .home-hero__visual-brand-icon {
        width: 2.8rem;
        height: 2.8rem;
    }


    .home-hero__visual-item {
        align-items: flex-start;
    }


    .home-section {
        padding-block: 3rem;
    }

}


/* =====================================================================
   35. HOVER CAPABLE DEVICES
   ===================================================================== */

@media (hover: hover) and (pointer: fine) {

    .home-hero__visual-card {
        transition:
            transform var(--transition-base),
            box-shadow var(--transition-base);
    }


    .home-hero__visual-card:hover {
        transform:
            translateY(
                -3px
            );

        box-shadow:
            0
            30px
            80px
            rgb(15 23 42 / 0.15);
    }

}


/* =====================================================================
   36. REDUCED MOTION
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {

    .home-hero__button-arrow,
    .home-hero__visual-item,
    .home-hero__visual-card,
    [data-home-reveal] {
        transition: none;
    }


    .js [data-home-reveal] {
        opacity: 1;

        transform: none;
    }


    .home-hero__visual-item:hover,
    .home-hero__visual-card:hover {
        transform: none;
    }

}


/* =====================================================================
   37. FORCED COLOURS
   ===================================================================== */

@media (forced-colors: active) {

    .home-hero {
        background: Canvas;
    }


    .home-hero__eyebrow,
    .home-hero__visual-card,
    .home-hero__visual-item,
    .home-hero__floating-card {
        border:
            1px
            solid
            CanvasText;

        background: Canvas;

        color: CanvasText;
    }


    .home-hero__visual-brand-icon,
    .home-hero__visual-item-icon,
    .home-hero__floating-icon {
        border:
            1px
            solid
            CanvasText;

        background: Canvas;

        color: CanvasText;
    }

}


/* =====================================================================
   38. PRINT
   ===================================================================== */

@media print {

    .home-hero {
        padding:
            1.5rem
            0;

        background: #ffffff;
    }


    .home-hero__background,
    .home-hero__floating-card,
    .home-hero__actions,
    .home-hero__bottom {
        display: none !important;
    }


    .home-hero__inner {
        display: block;

        min-height: 0;
    }


    .home-hero__visual {
        margin-top: 1.5rem;

        min-height: 0;
    }


    .home-section,
    .home-contact-cta {
        padding-block: 2rem;
    }

}


/* =====================================================================
   END OF OLLATOEDU ECOSYS HOMEPAGE STYLES
   ===================================================================== */