/* ============================================================
   FSPL — Premium shared hero system for public pages
   Drop-in file: /wwwroot/css/pages/fspl-premium-page-heroes.css
   ============================================================ */

.premium-page-hero {
    --hero-accent: var(--clr-accent, #35c4dc);
    --hero-primary: var(--clr-primary, #144455);
    --hero-dark: var(--clr-primary-dark, #071c2c);
    position: relative;
    isolation: isolate;
    min-height: clamp(620px, 82vh, 860px);
    padding: clamp(112px, 12vw, 150px) 0 clamp(98px, 11vw, 150px);
    overflow: hidden;
    color: #fff;
    background: var(--hero-dark);
}

.premium-page-hero__bg,
.premium-page-hero__bg::before,
.premium-page-hero__bg::after,
.premium-page-hero__mesh {
    position: absolute;
    inset: 0;
    z-index: -4;
    pointer-events: none;
}

.premium-page-hero__bg::before {
    content: "";
    z-index: -5;
    background-image: var(--premium-page-hero-image);
    background-size: cover;
    background-position: center;
    opacity: .32;
    transform: scale(1.04);
    filter: saturate(1.02) contrast(1.06);
}

.premium-page-hero__bg::after {
    content: "";
    z-index: -3;
    background:
        linear-gradient(108deg, rgba(4, 28, 42, .97) 0%, rgba(9, 63, 80, .88) 48%, rgba(6, 30, 48, .76) 100%),
        radial-gradient(circle at 72% 22%, color-mix(in srgb, var(--hero-accent) 18%, transparent), transparent 34%),
        radial-gradient(circle at 18% 72%, rgba(255,255,255,.07), transparent 36%);
}

.premium-page-hero__mesh {
    z-index: -2;
    opacity: .44;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px, 112px 112px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.78) 52%, rgba(0,0,0,.34) 100%);
}

.premium-page-hero__orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
    z-index: -1;
}

.premium-page-hero__orb--one {
    width: 420px;
    height: 420px;
    top: -130px;
    right: 8%;
    background: radial-gradient(circle, color-mix(in srgb, var(--hero-accent) 20%, transparent), transparent 70%);
}

.premium-page-hero__orb--two {
    width: 320px;
    height: 320px;
    bottom: 12%;
    left: -120px;
    background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
}

.premium-page-hero__container {
    position: relative;
    z-index: 2;
}

.premium-page-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: clamp(1.3rem, 2vw, 2rem);
    padding: .55rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(14px);
    color: rgba(255,255,255,.78);
    font-size: .88rem;
    font-weight: 700;
}

.premium-page-hero__breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.premium-page-hero__breadcrumb i {
    color: var(--hero-accent);
    font-size: .66rem;
}

.premium-page-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    gap: clamp(34px, 6vw, 82px);
    align-items: center;
}

.premium-page-hero__copy {
    max-width: 760px;
}

.premium-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.3rem;
    padding: .62rem 1rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
    font-size: clamp(.68rem, .9vw, .78rem);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.premium-page-hero__eyebrow i {
    color: var(--hero-accent);
}

.premium-page-hero__title {
    margin: 0;
    max-width: 11ch;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.8rem, 6vw, 5.45rem);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -.055em;
    color: #fff;
    text-wrap: balance;
}

.premium-page-hero__title span,
.premium-page-hero__title em {
    display: block;
}

.premium-page-hero__title em {
    font-style: normal;
    color: var(--hero-accent);
    text-shadow: 0 12px 36px color-mix(in srgb, var(--hero-accent) 24%, transparent);
}

.premium-page-hero__rule {
    display: block;
    width: 86px;
    height: 3px;
    margin: 1.5rem 0 1.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hero-accent), transparent);
}

.premium-page-hero__subtitle {
    max-width: 690px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1.03rem, 1.45vw, 1.28rem);
    line-height: 1.75;
}

.premium-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .95rem;
    align-items: center;
    margin-top: 2rem;
}

.premium-page-hero__btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .72rem;
    padding: 0 1.45rem;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.premium-page-hero__btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.premium-page-hero__btn--primary {
    background: linear-gradient(135deg, var(--hero-accent), color-mix(in srgb, var(--hero-accent) 62%, #ffffff));
    box-shadow: 0 18px 46px color-mix(in srgb, var(--hero-accent) 30%, transparent);
}

.premium-page-hero__btn--ghost {
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
}

.premium-page-hero__btn--ghost:hover {
    border-color: var(--hero-accent);
    background: rgba(255,255,255,.11);
}

.premium-page-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.35rem;
}

.premium-page-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .64rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.075);
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.premium-page-hero__pill i {
    color: var(--hero-accent);
}

.premium-page-hero__visual {
    min-width: 0;
}

.premium-page-hero__photo-card {
    position: relative;
    min-height: clamp(440px, 48vw, 590px);
    border-radius: 34px;
    transform: translateZ(0);
}

.premium-page-hero__photo-card::before {
    content: "";
    position: absolute;
    inset: 5% 8% -8% 10%;
    border-radius: 38px;
    background: color-mix(in srgb, var(--hero-accent) 22%, transparent);
    filter: blur(42px);
    opacity: .52;
}

.premium-page-hero__photo-card > img,
.premium-page-hero__photo-card .premium-page-hero__photo-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 34px;
}

.premium-page-hero__photo-card > img {
    object-fit: cover;
    display: block;
    box-shadow: 0 34px 90px rgba(0,0,0,.34);
    border: 1px solid rgba(255,255,255,.22);
}

.premium-page-hero__photo-shade {
    background:
        linear-gradient(180deg, transparent 0%, rgba(4,17,27,.18) 40%, rgba(4,17,27,.68) 100%),
        linear-gradient(90deg, rgba(8,35,49,.08), rgba(8,35,49,.36));
}

.premium-page-hero__float {
    position: absolute;
    z-index: 3;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: .86rem;
    align-items: center;
    width: min(270px, 70%);
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(140deg, rgba(255,255,255,.18), rgba(255,255,255,.075));
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 48px rgba(0,0,0,.24);
}

.premium-page-hero__float--1 { top: 10%; right: -5%; }
.premium-page-hero__float--2 { top: 39%; right: -9%; }
.premium-page-hero__float--3 { bottom: 23%; right: -4%; }

.premium-page-hero__float-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--hero-accent) 70%, transparent);
    color: #fff;
    background: color-mix(in srgb, var(--hero-accent) 16%, transparent);
}

.premium-page-hero__float strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
}

.premium-page-hero__float small {
    display: block;
    margin-top: .28rem;
    color: rgba(255,255,255,.75);
    line-height: 1.45;
}

.premium-page-hero__stats {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%);
    width: min(94%, 680px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0;
    border-radius: 24px;
    background: linear-gradient(140deg, rgba(255,255,255,.17), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(22px);
    box-shadow: 0 22px 64px rgba(0,0,0,.30);
    overflow: hidden;
}

.premium-page-hero__stat {
    min-width: 0;
    padding: 1rem .85rem;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: .22rem;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.14);
}

.premium-page-hero__stat:last-child { border-right: 0; }
.premium-page-hero__stat i { color: var(--hero-accent); font-size: 1.1rem; }
.premium-page-hero__stat strong { font-size: clamp(.92rem, 1.15vw, 1.08rem); line-height: 1.1; }
.premium-page-hero__stat small { color: rgba(255,255,255,.68); font-size: .74rem; line-height: 1.25; }

.premium-page-hero__curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 76px;
    background: var(--clr-white, #fff);
    clip-path: ellipse(58% 100% at 50% 100%);
    z-index: 3;
}

.premium-page-hero--hajj,
.premium-page-hero--umrah {
    --hero-accent: #d7b45f;
}

.premium-page-hero--blog,
.premium-page-hero--gallery,
.premium-page-hero--testimonials {
    --hero-accent: #36c7de;
}

@media (max-width: 1199.98px) {
    .premium-page-hero__layout {
        grid-template-columns: 1fr;
    }
    .premium-page-hero__visual {
        max-width: 760px;
    }
    .premium-page-hero__float--1,
    .premium-page-hero__float--2,
    .premium-page-hero__float--3 {
        right: 18px;
    }
}

@media (max-width: 767.98px) {
    .premium-page-hero {
        min-height: auto;
        padding: 104px 0 100px;
    }
    .premium-page-hero__title {
        font-size: clamp(2.35rem, 13vw, 3.6rem);
    }
    .premium-page-hero__actions,
    .premium-page-hero__pills {
        align-items: stretch;
        flex-direction: column;
    }
    .premium-page-hero__btn {
        width: 100%;
    }
    .premium-page-hero__photo-card {
        min-height: 420px;
    }
    .premium-page-hero__float {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: .75rem;
    }
    .premium-page-hero__photo-card > img,
    .premium-page-hero__photo-card .premium-page-hero__photo-shade {
        height: 330px;
        bottom: auto;
    }
    .premium-page-hero__stats {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin-top: .85rem;
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 480px) {
    .premium-page-hero__stats {
        grid-template-columns: 1fr;
    }
    .premium-page-hero__stat {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.13);
    }
    .premium-page-hero__stat:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .premium-page-hero *,
    .premium-page-hero *::before,
    .premium-page-hero *::after {
        animation: none !important;
        transition: none !important;
    }
}
