﻿/*==============================================================
    HERO COMPONENTS
    Sanskritigram Cultural Centre

    1. Home Hero
    2. Shared Inner-Page Hero
==============================================================*/


/*==============================================================
    HOME HERO
    Frozen: do not use these classes on inner pages
==============================================================*/

.home-hero {
    position: relative;
    width: 100%;
    height: calc(100svh - var(--header-height) - 104px);
    min-height: 440px;
    max-height: 640px;
    overflow: hidden;
    color: var(--color-white);
    background: var(--color-navy-deep);
}


.home-hero__tree {
    display: block;
    width: 110px;
    height: auto;
    margin: 6px 0 4px;
    opacity: .96;
    filter: drop-shadow( 0 2px 8px rgba(214, 163, 61, .18) );
}


.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}


.home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% 42%;
    transform: scale(1.05);
    transform-origin: center;
}


.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(2, 10, 22, .94) 0%, rgba(2, 10, 22, .82) 24%, rgba(2, 10, 22, .42) 52%, rgba(2, 10, 22, .10) 78%, rgba(2, 10, 22, .02) 100% );
    pointer-events: none;
}


.home-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    align-items: center;
    padding: 42px 0 44px;
    pointer-events: none;
}


.home-hero__copy {
    width: min(405px, 39%);
    margin-left: 12px;
    pointer-events: auto;
}


.home-hero__brand-block {
    margin-bottom: 15px;
}


.home-hero__title {
    margin: 0 0 3px;
    color: #E6C06A;
    font-family: var(--font-brand);
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: .018em;
    text-transform: uppercase;
}


.home-hero__subtitle {
    margin: 0;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: clamp(.93rem, 1.25vw, 1.18rem);
    font-weight: 600;
    letter-spacing: .075em;
    line-height: 1.25;
    text-transform: uppercase;
}


.home-hero__brand-ornament {
    display: flex;
    width: 166px;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}


    .home-hero__brand-ornament span {
        flex: 1;
        height: 1px;
        background: linear-gradient( 90deg, rgba(214, 163, 61, .08), var(--color-gold) );
    }


        .home-hero__brand-ornament span:last-child {
            background: linear-gradient( 90deg, var(--color-gold), rgba(214, 163, 61, .08) );
        }


    .home-hero__brand-ornament i {
        width: 6px;
        height: 6px;
        border: 1px solid var(--color-gold);
        transform: rotate(45deg);
    }


.home-hero__heading {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 255);
    font-family: var(--font-heading);
    font-size: clamp(1.18rem, 1.65vw, 1.52rem);
    font-weight: 600;
    line-height: 1.2;
}


.home-hero__description {
    max-width: 365px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .86);
    font-size: .82rem;
    line-height: 1.72;
}


.home-hero__actions {
    display: flex;
    margin-top: 22px;
}


.home-hero__story-icon {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    font-size: .5rem;
}



/*==============================================================
    SHARED INNER-PAGE HERO

    Used by:
    About, Classes, Services, Sunshine India,
    Gallery, Donation and Contact
==============================================================*/

.inner-hero {
    /* Page styles may override these custom properties */

    --inner-hero-eyebrow-color: var(--color-gold-dark);
    --inner-hero-title-color: var(--color-brown);
    --inner-hero-text-color: var(--color-text-light);
    --inner-hero-link-color: var(--color-brown);
    --inner-hero-overlay-start: rgba(255, 249, 238, .97);
    --inner-hero-overlay-middle: rgba(255, 249, 238, .78);
    --inner-hero-overlay-end: rgba(255, 249, 238, .05);
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--hero-inner-height);
    overflow: hidden;
    background-color: var(--color-ivory);
    background-repeat: no-repeat;
    /*
    Inner-page artwork is designed as a wide banner with
    open space on the left and visual content on the right.
    Preserve its complete vertical composition on desktop.
*/
    background-size: cover;
    background-position: center center;
    isolation: isolate;
}


/* Shared left-to-right readability overlay */

.inner-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    background: linear-gradient( 90deg, var(--inner-hero-overlay-start) 0%, var(--inner-hero-overlay-start) 27%, var(--inner-hero-overlay-middle) 45%, var(--inner-hero-overlay-end) 72%, transparent 88% );
    pointer-events: none;
}


/* Subtle lower edge definition */

.inner-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(214, 163, 61, .30), transparent );
    pointer-events: none;
}


.inner-hero__content {
    position: relative;
    z-index: 2;
    width: min( 100%, var(--container-width) );
    padding-block: 54px;
}


/* Institution name */

.inner-hero__eyebrow {
    margin: 0 0 10px;
    color: var(--inner-hero-eyebrow-color);
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: var(--fw-bold);
    line-height: 1.4;
    letter-spacing: .20em;
    text-transform: uppercase;
}


/* Page title */

.inner-hero__title {
    max-width: 620px;
    margin: 0 0 16px;
    color: var(--inner-hero-title-color);
    font-family: var(--font-heading);
    font-size: clamp(2.15rem, 3.5vw, 2.9rem);
    font-weight: var(--fw-medium);
    line-height: 1.08;
    letter-spacing: .005em;
}


/* Breadcrumb */

.inner-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--inner-hero-text-color);
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: var(--fw-normal);
    line-height: 1.5;
}


    .inner-hero__breadcrumb a {
        color: var(--inner-hero-link-color);
        text-decoration: none;
        transition: color var(--transition-fast);
    }


        .inner-hero__breadcrumb a:hover {
            color: var(--color-gold-dark);
        }


    .inner-hero__breadcrumb span[aria-current="page"] {
        color: var(--inner-hero-text-color);
    }



/*==============================================================
    DARK INNER-HERO VARIANT

    Add class:
    inner-hero inner-hero--dark inner-hero--services
==============================================================*/

.inner-hero--dark {
    --inner-hero-eyebrow-color: var(--color-gold-light);
    --inner-hero-title-color: var(--color-white);
    --inner-hero-text-color: rgba(255, 255, 255, .76);
    --inner-hero-link-color: var(--color-white);
    --inner-hero-overlay-start: rgba(2, 10, 22, .94);
    --inner-hero-overlay-middle: rgba(2, 10, 22, .72);
    --inner-hero-overlay-end: rgba(2, 10, 22, .08);
    background-color: var(--color-navy-deep);
}


    .inner-hero--dark .inner-hero__breadcrumb a:hover {
        color: var(--color-gold-light);
    }



/*==============================================================
    OPTIONAL CONTENT POSITION VARIANTS
==============================================================*/

/* Use only when the artwork requires slightly lower content */

.inner-hero--content-lower .inner-hero__content {
    padding-top: 72px;
    padding-bottom: 38px;
}


/* Use only when a page needs extra compactness */

.inner-hero--compact {
    min-height: 280px;
}


    .inner-hero--compact .inner-hero__content {
        padding-block: 42px;
    }



/*==============================================================
    HOME HERO RESPONSIVE
==============================================================*/

@media (max-width: 992px) {

    .home-hero__copy {
        width: min(430px, 48%);
    }
}


@media (max-width: 768px) {

    .home-hero {
        background-image: url('/images/home/home-hero-mobile.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        height: auto;
        min-height: 520px;
        max-height: none;
    }

    .home-hero__image {
        object-position: 68% center;
    }
    

        .home-hero__subtitle {
            color: #F1E6D2 ;
            text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
        }
    
    .home-hero__overlay {
        background: linear-gradient( 90deg, rgba(2, 10, 22, .96) 0%, rgba(2, 10, 22, .86) 40%, rgba(2, 10, 22, .36) 76%, rgba(2, 10, 22, .10) 100% );
    }

    .home-hero__content {
        min-height: 520px;
        align-items: flex-end;
        padding: 48px 0;
    }

    .home-hero__copy {
        width: min(440px, 86%);
        margin-left: 0;
    }

    .home-hero__tree {
        width: 92px;
    }
}


@media (max-width: 480px) {

    .home-hero {
        min-height: 500px;
    }

    .home-hero__content {
        min-height: 500px;
        padding: 38px 0;
    }

    .home-hero__copy {
        width: 94%;
    }

    .home-hero__tree {
        width: 82px;
        margin-bottom: 2px;
    }

    .home-hero__description {
        max-width: 330px;
    }
}



/*==============================================================
    INNER HERO RESPONSIVE
==============================================================*/

@media (max-width: 992px) {

    .inner-hero {
        min-height: 300px;
    }

    .inner-hero__content {
        padding-block: 48px;
    }
}


@media (max-width: 768px) {

    .inner-hero {
        min-height: 280px;
        /*
        On narrower screens, filling the available space becomes
        more important than preserving every outer edge.
    */
        background-size: cover;
        background-position: 68% center;
    }

    .inner-hero__overlay {
        background: linear-gradient( 90deg, var(--inner-hero-overlay-start) 0%, var(--inner-hero-overlay-start) 38%, var(--inner-hero-overlay-middle) 64%, transparent 94% );
    }

    .inner-hero__content {
        padding-block: 44px;
    }

    .inner-hero__title {
        max-width: 520px;
        font-size: clamp(2rem, 7vw, 2.55rem);
    }

    .inner-hero__eyebrow {
        font-size: .68rem;
        letter-spacing: .17em;
    }

    .inner-hero__breadcrumb {
        font-size: .75rem;
    }
}


@media (max-width: 480px) {

    .inner-hero {
        min-height: 250px;
        background-size: cover;
        background-position: 74% center;
    }

    .inner-hero__overlay {
        background: linear-gradient( 90deg, var(--inner-hero-overlay-start) 0%, var(--inner-hero-overlay-start) 48%, var(--inner-hero-overlay-middle) 75%, transparent 100% );
    }

    .inner-hero__content {
        padding-block: 38px;
    }

    .inner-hero__eyebrow {
        max-width: 250px;
        margin-bottom: 8px;
        font-size: .63rem;
        letter-spacing: .15em;
    }

    .inner-hero__title {
        max-width: 300px;
        margin-bottom: 13px;
        font-size: 2rem;
    }

    .inner-hero__breadcrumb {
        gap: 7px;
        font-size: .72rem;
    }
}



/*==============================================================
    REDUCED MOTION
==============================================================*/

@media (prefers-reduced-motion: reduce) {

    .home-hero__image {
        transform: none;
    }
}
