/* ==========================================================================
   Anmol Digital — Shared Components Compact Final V1
   Page Banner + Breadcrumb + Cookie Consent
   ========================================================================== */

/* ==========================================================================
   PAGE BANNER
   ========================================================================== */

.page-banner {
    position: relative;
    min-height: clamp(280px, 31vw, 370px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background:
        var(--page-banner-background, none)
        center / cover
        no-repeat,
        radial-gradient(
            circle at 83% 18%,
            rgba(255, 255, 255, .10),
            transparent 24%
        ),
        linear-gradient(
            150deg,
            #080808,
            #171717 58%,
            #080808
        );
}

.page-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .88) 0%,
            rgba(0, 0, 0, .66) 51%,
            rgba(0, 0, 0, .40) 100%
        );
    pointer-events: none;
}

.page-banner__inner {
    position: relative;
    z-index: 1;
    min-height: clamp(280px, 31vw, 370px);
    padding-block: clamp(44px, 5.5vw, 70px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(210px, .45fr);
    align-items: center;
    gap: clamp(28px, 4vw, 54px);
}

.page-banner__content {
    max-width: 850px;
    min-width: 0;
}

.page-banner__eyebrow {
    width: fit-content;
    margin: 0 0 15px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .84);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .08) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-banner__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .10);
}

.page-banner h1 {
    max-width: 920px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(43px, 6vw, 78px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.06em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.page-banner__content > p:last-child {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.66;
}

.page-banner__visual {
    position: relative;
    width: min(100%, 290px);
    min-height: 210px;
    justify-self: end;
    transform: scale(.86);
    transform-origin: center right;
}

.page-banner__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.page-banner__circle--large {
    width: 255px;
    height: 255px;
}

.page-banner__circle--medium {
    width: 175px;
    height: 175px;
}

.page-banner__circle--small {
    width: 92px;
    height: 92px;
    background: rgba(255, 255, 255, .035);
    box-shadow:
        0 0 0 18px rgba(255, 255, 255, .018);
}

.page-banner__bars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transform: rotate(-7deg);
}

.page-banner__bars span {
    width: 3px;
    height: calc(14px + (var(--bar) * 3px));
    max-height: 76px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    opacity: calc(.26 + (var(--bar) * .035));
    animation:
        shared-banner-wave
        2.7s
        ease-in-out
        infinite alternate;
    animation-delay: calc(var(--bar) * -75ms);
}

@keyframes shared-banner-wave {
    from {
        transform: scaleY(.55);
    }

    to {
        transform: scaleY(1);
    }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb-bar {
    position: relative;
    z-index: 7;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .92);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.breadcrumb-bar .container-fluid {
    overflow: hidden;
}

.breadcrumb-list {
    min-height: 48px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb-list::-webkit-scrollbar {
    display: none;
}

.breadcrumb-list__item {
    min-width: 0;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #777777;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.breadcrumb-list__item a,
.breadcrumb-list__item span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.breadcrumb-list__item a:hover,
.breadcrumb-list__item a:focus-visible {
    color: #111111;
}

.breadcrumb-list__item span[aria-current="page"] {
    max-width: min(420px, 46vw);
    overflow: hidden;
    color: #111111;
    font-weight: 820;
    text-overflow: ellipsis;
}

.breadcrumb-list__item i {
    margin-right: 10px;
    color: rgba(0, 0, 0, .25);
    font-size: 7px;
}

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */

.cookie-consent {
    position: fixed;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 18px;
    z-index: 10020;
    width: min(calc(100% - 36px), 1040px);
    margin-inline: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 19px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 255, 255, .09),
            transparent 24%
        ),
        linear-gradient(
            150deg,
            rgba(8, 8, 8, .97),
            rgba(25, 25, 25, .97) 58%,
            rgba(8, 8, 8, .97)
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .06) inset,
        0 24px 70px rgba(0, 0, 0, .30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__content {
    min-width: 0;
    padding: 17px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.cookie-consent__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    background: rgba(255, 255, 255, .065);
    color: #ffffff;
    font-size: 14px;
}

.cookie-consent__copy {
    min-width: 0;
}

.cookie-consent__copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.cookie-consent__copy p {
    max-width: 650px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: 11.5px;
    line-height: 1.55;
}

.cookie-consent__copy a {
    color: #ffffff;
    font-weight: 760;
    text-underline-offset: 3px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-consent__button {
    min-height: 41px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 820;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    outline: none;
    transform: translateY(-2px);
}

.cookie-consent__button--secondary {
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .78);
}

.cookie-consent__button--secondary:hover,
.cookie-consent__button--secondary:focus-visible {
    background: rgba(255, 255, 255, .11);
    color: #ffffff;
}

.cookie-consent__button--primary {
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #111111;
}

.cookie-consent__button--primary:hover,
.cookie-consent__button--primary:focus-visible {
    background: transparent;
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 820px) {
    .page-banner__inner {
        grid-template-columns: 1fr;
    }

    .page-banner__visual {
        display: none;
    }

    .cookie-consent__content {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .cookie-consent__icon {
        width: 40px;
        height: 40px;
    }

    .cookie-consent__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 2px;
    }
}

@media (max-width: 560px) {
    .page-banner,
    .page-banner__inner {
        min-height: 235px;
    }

    .page-banner__inner {
        padding-block: 36px;
    }

    .page-banner h1 {
        font-size: clamp(36px, 11vw, 50px);
    }

    .page-banner__eyebrow {
        margin-bottom: 13px;
        padding: 7px 10px;
        font-size: 8.5px;
    }

    .page-banner__content > p:last-child {
        margin-top: 13px;
        font-size: 14px;
        line-height: 1.62;
    }

    .breadcrumb-list {
        min-height: 44px;
    }

    .breadcrumb-list__item {
        gap: 8px;
        font-size: 10px;
    }

    .breadcrumb-list__item i {
        margin-right: 8px;
    }

    .breadcrumb-list__item span[aria-current="page"] {
        max-width: 58vw;
    }

    .cookie-consent {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        width: calc(100% - 20px);
        border-radius: 16px;
    }

    .cookie-consent__content {
        padding: 14px;
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: start;
        gap: 11px;
    }

    .cookie-consent__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 12px;
    }

    .cookie-consent__copy h2 {
        font-size: 14px;
    }

    .cookie-consent__copy p {
        margin-top: 5px;
        font-size: 10.5px;
        line-height: 1.5;
    }

    .cookie-consent__actions {
        align-items: stretch;
        flex-direction: column-reverse;
        width: 100%;
        gap: 7px;
    }

    .cookie-consent__button {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .page-banner h1 {
        font-size: 34px;
    }

    .cookie-consent__content {
        grid-template-columns: 1fr;
    }

    .cookie-consent__icon {
        display: none;
    }

    .cookie-consent__actions {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-banner__bars span,
    .cookie-consent__button {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .page-banner__visual,
    .breadcrumb-bar,
    .cookie-consent {
        display: none !important;
    }
}
