/**
 * Homepage sections (module drogeria_homepage → IndexController → index.tpl).
 * Linked directly from index.tpl with a filemtime version (no CCC / cache clear).
 *
 * Everything is scoped under .hs-home; pre-redesign sections keep their own
 * styles in custom.css. Palette = drogeria navy + action blue, Albert Sans.
 */

.hs-home {
    --hs-navy: #0D4094;
    --hs-blue: #1F62FF;
    --hs-blue-soft: #DCE6FF;
    --hs-ink: #0E1B33;
    --hs-muted: #5B6B85;
    --hs-line: #E3E8F2;
    --hs-tile: #F3F5F9;
    --hs-tint: #EEF3FF;
    --hs-sale: #E0312B;
    --hs-star: #F5A623;
    --hs-star-off: #D5DBE6;
    --hs-radius: 22px;
    --hs-radius-sm: 16px;
    --hs-gap: 16px;
    --hs-ease: cubic-bezier(.2, .7, .2, 1);

    font-family: 'Albert Sans', sans-serif;
    color: var(--hs-ink);
    padding-top: 16px;
}

.hs-home *,
.hs-home *::before,
.hs-home *::after {
    box-sizing: border-box;
}

.hs-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 1200px) {
    .hs-container {
        padding: 0 24px;
    }
}

/* ── Slots ───────────────────────────────────────────────────────────── */

.hs-slot {
    margin-bottom: clamp(36px, 5vw, 64px);
}

.hs-slot:last-child {
    margin-bottom: clamp(40px, 6vw, 72px);
}

/* Gentle reveal for the sections right under the hero; the first slot (LCP) never animates. */
.hs-slot:nth-child(n+2):nth-child(-n+4) {
    animation: hs-rise .7s var(--hs-ease) both;
}

.hs-slot:nth-child(3) {
    animation-delay: .08s;
}

.hs-slot:nth-child(4) {
    animation-delay: .16s;
}

@keyframes hs-rise {
    from {
        transform: translateY(18px);
        opacity: 0;
    }
}

.hs-only-desktop {
    display: none;
}

@media (min-width: 768px) {
    .hs-only-desktop {
        display: block;
    }

    .hs-only-mobile {
        display: none;
    }
}

.hs-home .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Shared: section head, buttons, themes ───────────────────────────── */

.hs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.hs-head__title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: var(--hs-ink);
    text-transform: none;
}

.hs-head__subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--hs-muted);
}

.hs-head__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hs-blue);
    text-decoration: none;
    white-space: nowrap;
}

.hs-head__link svg {
    transition: transform .2s var(--hs-ease);
}

.hs-head__link:hover,
.hs-head__link:focus-visible {
    color: var(--hs-navy);
    text-decoration: none;
}

.hs-head__link:hover svg {
    transform: translateX(3px);
}

.hs-theme--light {
    color: #fff;
}

.hs-theme--dark {
    color: var(--hs-ink);
}

.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    font: 700 14px/1.2 'Albert Sans', sans-serif;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .2s var(--hs-ease), box-shadow .2s var(--hs-ease), background-color .2s;
}

.hs-theme--light .hs-btn {
    background: #fff;
    color: var(--hs-ink);
}

.hs-theme--dark .hs-btn {
    background: var(--hs-ink);
    color: #fff;
}

.hs-btn svg {
    transition: transform .2s var(--hs-ease);
}

a:hover .hs-btn,
a:focus-visible .hs-btn {
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
}

a:hover .hs-btn svg {
    transform: translateX(4px);
}

.hs-btn--small {
    padding: 9px 18px;
    font-size: 13px;
}

.hs-slide__eyebrow {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
    opacity: .9;
}

/* ── Scroller (category circles, product rows) ───────────────────────── */

.hs-scroller {
    position: relative;
}

.hs-scroller [data-hs-track] {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hs-scroller [data-hs-track]::-webkit-scrollbar {
    display: none;
}

.hs-scroller__btn {
    position: absolute;
    top: var(--hs-btn-top, 50%);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    border: 1px solid var(--hs-line);
    border-radius: 50%;
    background: #fff;
    color: var(--hs-ink);
    box-shadow: 0 8px 22px -10px rgba(14, 27, 51, .4);
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s var(--hs-ease);
}

.hs-scroller__btn[hidden] {
    display: none;
}

.hs-scroller__btn:hover,
.hs-scroller__btn:focus-visible {
    background: var(--hs-blue);
    border-color: var(--hs-blue);
    color: #fff;
}

.hs-scroller__btn--prev {
    left: -8px;
}

.hs-scroller__btn--next {
    right: -8px;
}

@media (max-width: 767px) {
    .hs-scroller__btn {
        display: none;
    }
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hs-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .hs-hero__grid {
        grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
        height: clamp(320px, 31vw, 430px);
    }

    .hs-hero--solo .hs-hero__grid,
    .hs-hero--side-only .hs-hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hs-hero__main {
    position: relative;
    min-width: 0;
    border-radius: var(--hs-radius);
    overflow: hidden;
    isolation: isolate;
}

.hs-hero__track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.hs-hero__track::-webkit-scrollbar {
    display: none;
}

.hs-slide {
    position: relative;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100%;
    scroll-snap-align: start;
    background-color: var(--hs-bg, var(--hs-navy));
    background-image:
        radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .22), transparent 52%),
        linear-gradient(115deg, rgba(255, 255, 255, .06) 0%, rgba(0, 0, 0, .16) 100%);
    overflow: hidden;
    text-decoration: none;
}

.hs-slide:hover,
.hs-slide:focus {
    text-decoration: none;
}

.hs-slide.hs-theme--light:hover,
.hs-slide.hs-theme--light:focus {
    color: #fff;
}

.hs-slide.hs-theme--dark:hover,
.hs-slide.hs-theme--dark:focus {
    color: var(--hs-ink);
}

.hs-slide__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(44px, 5vw, 64px);
}

.hs-slide__title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(26px, 3.3vw, 46px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.025em;
    color: inherit;
    text-transform: none;
}

.hs-slide__text {
    margin: 0;
    max-width: 42ch;
    font-size: 15px;
    line-height: 1.5;
    opacity: .86;
    color: inherit;
}

.hs-slide__btn {
    margin-top: 6px;
}

.hs-slide__media {
    position: relative;
    min-height: 100%;
}

.hs-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24%);
    transition: transform 1.2s var(--hs-ease);
}

.hs-slide:hover .hs-slide__img {
    transform: scale(1.04);
}

.hs-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: var(--hs-ink);
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .5);
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s, transform .25s var(--hs-ease), background-color .2s;
}

.hs-hero__arrow--prev {
    left: 14px;
    transform: translateX(-6px);
}

.hs-hero__arrow--next {
    right: 14px;
    transform: translateX(6px);
}

.hs-hero__main:hover .hs-hero__arrow,
.hs-hero__arrow:focus-visible {
    opacity: 1;
    transform: none;
}

.hs-hero__arrow:hover {
    background: #fff;
}

.hs-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 4;
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(14, 27, 51, .28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transform: translateX(-50%);
}

.hs-hero__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: width .3s var(--hs-ease), background-color .3s;
}

.hs-hero__dot.is-active {
    width: 26px;
    background: #fff;
}

.hs-hero__side {
    position: relative;
    display: none;
    min-width: 0;
    border-radius: var(--hs-radius);
    overflow: hidden;
    background: var(--hs-bg, var(--hs-tint));
    text-decoration: none;
    isolation: isolate;
}

@media (min-width: 768px) {
    .hs-hero__side {
        display: block;
    }
}

.hs-hero__side:hover,
.hs-hero__side:focus {
    text-decoration: none;
}

.hs-hero__side-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--hs-ease);
}

.hs-hero__side:hover .hs-hero__side-img {
    transform: scale(1.05);
}

.hs-hero__side::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hs-hero__side.hs-theme--light::after {
    background: linear-gradient(to top, rgba(8, 14, 28, .72) 0%, rgba(8, 14, 28, 0) 58%);
}

.hs-hero__side.hs-theme--dark::after {
    background: linear-gradient(to top, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, 0) 58%);
}

.hs-hero__side-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.hs-hero__side-title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.015em;
    color: inherit;
    text-transform: none;
}

.hs-hero__side.hs-theme--light,
.hs-hero__side.hs-theme--light:hover {
    color: #fff;
}

.hs-hero__side.hs-theme--dark,
.hs-hero__side.hs-theme--dark:hover {
    color: var(--hs-ink);
}

@media (max-width: 767px) {
    .hs-home {
        padding-top: 8px;
    }

    .hs-slide {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .hs-slide__media {
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .hs-slide__img {
        -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    }

    .hs-slide__copy {
        justify-content: flex-start;
        gap: 10px;
        padding: 4px 20px 52px;
    }

    .hs-slide__title {
        font-size: 26px;
    }

    .hs-slide__text {
        font-size: 14px;
    }

    .hs-hero__arrow {
        display: none;
    }
}

/* ── Category circles ────────────────────────────────────────────────── */

.hs-cats .hs-scroller {
    --hs-btn-top: 42%;
}

.hs-cats__track {
    display: flex;
    gap: clamp(14px, 2.2vw, 30px);
    margin: 0;
    padding: 6px 2px 10px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.hs-cats__item {
    flex: 0 0 auto;
    width: clamp(92px, 11vw, 136px);
    scroll-snap-align: start;
}

.hs-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--hs-ink);
    text-align: center;
    text-decoration: none;
}

.hs-cat:hover,
.hs-cat:focus {
    color: var(--hs-blue);
    text-decoration: none;
}

.hs-cat__img {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--hs-line);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 26%, #fff 0%, var(--hs-tile) 68%);
    overflow: hidden;
    transition: transform .3s var(--hs-ease), box-shadow .3s var(--hs-ease), border-color .3s;
}

.hs-cats--rounded .hs-cat__img {
    border-radius: 26px;
}

.hs-cat__img img {
    width: 76%;
    height: 76%;
    object-fit: contain;
    transition: transform .4s var(--hs-ease);
}

.hs-cat:hover .hs-cat__img,
.hs-cat:focus-visible .hs-cat__img {
    border-color: var(--hs-blue-soft);
    box-shadow: 0 16px 30px -16px rgba(13, 64, 148, .5);
    transform: translateY(-4px);
}

.hs-cat:hover .hs-cat__img img {
    transform: scale(1.06);
}

.hs-cat__initial {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    color: var(--hs-navy);
}

.hs-cat__label {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
}

/* ── Product rows ────────────────────────────────────────────────────── */

.hs-row--tinted {
    padding: clamp(28px, 4vw, 44px) 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(31, 98, 255, .10), transparent 40%),
        var(--hs-tint);
}

.hs-row .hs-scroller {
    --hs-btn-top: 34%;
}

.hs-row__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--hs-gap)) / 2.25);
    gap: var(--hs-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
}

@media (min-width: 768px) {
    .hs-row__track {
        grid-auto-columns: calc((100% - 2 * var(--hs-gap)) / 3);
    }
}

@media (min-width: 992px) {
    .hs-row__track {
        grid-auto-columns: calc((100% - 3 * var(--hs-gap)) / 4);
    }
}

@media (min-width: 1200px) {
    .hs-row__track {
        --hs-gap: 20px;
        grid-auto-columns: calc((100% - 4 * var(--hs-gap)) / 5);
    }
}

.hs-row__item {
    min-width: 0;
    scroll-snap-align: start;
}

/* Card */
.hs-card {
    height: 100%;
}

.hs-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hs-card__media {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--hs-radius-sm);
    background: var(--hs-tile);
    overflow: hidden;
}

.hs-row--tinted .hs-card__media {
    background: #fff;
}

.hs-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hs-card__img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 9%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .45s var(--hs-ease);
}

.hs-card:hover .hs-card__img {
    transform: scale(1.06);
}

.hs-card__flags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    pointer-events: none;
}

.hs-card__flag {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.hs-card__flag--sale {
    background: var(--hs-sale);
}

.hs-card__flag--new {
    background: var(--hs-navy);
}

.hs-card__quick {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.hs-card__cart {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--hs-navy);
    box-shadow: 0 6px 16px -8px rgba(14, 27, 51, .45);
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s var(--hs-ease);
}

.hs-card__cart .material-icons {
    font-size: 19px;
    line-height: 1;
}

.hs-card__cart:hover,
.hs-card__cart:focus-visible {
    background: var(--hs-blue);
    color: #fff;
    transform: scale(1.08);
}

.hs-card__cart:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    background: #fff;
    color: var(--hs-muted);
}

.hs-card__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 2px 0;
}

.hs-card__brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hs-muted);
}

.hs-card__title {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    min-height: 2.7em;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-card__title a {
    color: var(--hs-ink);
    text-decoration: none;
}

.hs-card__title a:hover,
.hs-card__title a:focus {
    color: var(--hs-blue);
    text-decoration: none;
}

.hs-card__rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hs-card .iva-stars {
    display: inline-flex;
    gap: 1px;
    color: var(--hs-star-off);
}

.hs-card .iva-stars__star--on {
    color: var(--hs-star);
}

.hs-card__rating-count {
    font-size: 12px;
    color: var(--hs-muted);
}

.hs-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin-top: 2px;
}

.hs-card__price-now {
    font-size: 16px;
    font-weight: 800;
    color: var(--hs-ink);
}

.hs-card__price-now--sale {
    color: var(--hs-sale);
}

.hs-card__price-old {
    font-size: 12.5px;
    color: var(--hs-muted);
}

.hs-card__unit {
    font-size: 11.5px;
    color: var(--hs-muted);
}

.hs-card__oos {
    font-size: 12px;
    font-weight: 600;
    color: var(--hs-sale);
}

/* ── Promo banners ───────────────────────────────────────────────────── */

.hs-promos__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.hs-promos__grid::-webkit-scrollbar {
    display: none;
}

.hs-promo {
    position: relative;
    flex: 0 0 82%;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    border-radius: var(--hs-radius);
    background-color: var(--hs-bg, var(--hs-blue));
    background-image: radial-gradient(circle at 85% 8%, rgba(255, 255, 255, .25), transparent 45%);
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    isolation: isolate;
}

.hs-promo:hover,
.hs-promo:focus {
    text-decoration: none;
}

.hs-promo.hs-theme--light:hover {
    color: #fff;
}

.hs-promo.hs-theme--dark:hover {
    color: var(--hs-ink);
}

@media (min-width: 768px) {
    .hs-promos__grid {
        display: grid;
        grid-template-columns: repeat(var(--hs-promo-cols, 3), minmax(0, 1fr));
        gap: 20px;
        overflow: visible;
    }

    .hs-promos__grid--1 { --hs-promo-cols: 1; }
    .hs-promos__grid--2 { --hs-promo-cols: 2; }
    .hs-promos__grid--3 { --hs-promo-cols: 3; }
    .hs-promos__grid--4 { --hs-promo-cols: 4; }

    .hs-promo {
        min-height: clamp(340px, 31vw, 440px);
    }
}

.hs-promo__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 26px 0;
}

.hs-promo__title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(20px, 1.9vw, 26px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.015em;
    color: inherit;
    text-transform: none;
}

.hs-promo__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    opacity: .86;
    color: inherit;
}

.hs-promo .hs-btn {
    margin-top: 4px;
}

.hs-promo__media {
    position: relative;
    flex: 1 1 auto;
    min-height: 150px;
    margin-top: 18px;
}

.hs-promo__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0, #000 30%);
    transition: transform .8s var(--hs-ease);
}

.hs-promo:hover .hs-promo__media img {
    transform: scale(1.05);
}

/* Transparent PNG cutouts: whole image, sitting on the bottom edge */
.hs-promo--contain .hs-promo__media img {
    padding: 0 20px 20px;
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: none;
    mask-image: none;
    filter: drop-shadow(0 14px 18px rgba(14, 27, 51, .22));
}

/* ── Search banner ───────────────────────────────────────────────────── */

.hs-search__frame {
    position: relative;
    min-height: clamp(320px, 28vw, 380px);
    border: 2px solid transparent;
    border-radius: 26px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(120deg, var(--hs-blue) 0%, #FFD43B 50%, var(--hs-navy) 100%) border-box;
    overflow: hidden;
    isolation: isolate;
}

.hs-search__collage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
}

.hs-search__collage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 42% 62% at 50% 50%, rgba(255, 255, 255, .98) 45%, rgba(255, 255, 255, .72) 72%, rgba(255, 255, 255, .08) 100%);
    pointer-events: none;
}

.hs-search__tile {
    border-radius: 14px;
    background: var(--hs-tile);
    overflow: hidden;
    animation: hs-drift 7s ease-in-out infinite alternate;
    animation-delay: calc(var(--i, 0) * -.9s);
}

.hs-search__tile img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

@keyframes hs-drift {
    to {
        transform: translateY(-6px);
    }
}

.hs-search__panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 560px;
    min-height: inherit;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.hs-search__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hs-blue);
}

.hs-search__title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.025em;
    color: var(--hs-ink);
    text-transform: none;
}

.hs-search__text {
    margin: 0;
    font-size: 15px;
    color: var(--hs-muted);
}

.hs-search__form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 12px 0 0;
    padding: 6px 6px 6px 16px;
    border: 1px solid var(--hs-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 18px 40px -20px rgba(13, 64, 148, .5);
    transition: border-color .2s, box-shadow .2s;
}

.hs-search__form:focus-within {
    border-color: var(--hs-blue);
    box-shadow: 0 0 0 4px rgba(31, 98, 255, .14), 0 18px 40px -20px rgba(13, 64, 148, .5);
}

.hs-search__icon {
    flex-shrink: 0;
    color: var(--hs-muted);
}

.hs-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border: 0;
    background: transparent;
    font: 400 15px 'Albert Sans', sans-serif;
    color: var(--hs-ink);
    outline: none;
    box-shadow: none;
}

.hs-search__submit,
.hs-search__submit:hover {
    background: var(--hs-blue);
    color: #fff;
}

.hs-search__submit:hover,
.hs-search__submit:focus-visible {
    background: var(--hs-navy);
}

@media (max-width: 767px) {
    .hs-search__collage {
        position: relative;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: 180px;
        overflow: hidden;
    }

    .hs-search__tile:nth-child(n+9) {
        display: none;
    }

    .hs-search__collage::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, #fff 100%);
    }

    .hs-search__panel {
        min-height: 0;
        padding: 4px 18px 26px;
    }

    .hs-search__submit {
        padding: 12px 16px;
    }
}

/* ── Image banner ────────────────────────────────────────────────────── */

.hs-imgbanner__link {
    display: block;
    border-radius: var(--hs-radius);
    overflow: hidden;
}

.hs-imgbanner__img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .8s var(--hs-ease);
}

a.hs-imgbanner__link:hover .hs-imgbanner__img {
    transform: scale(1.015);
}

/* ── Text (SEO) ──────────────────────────────────────────────────────── */

.hs-text__inner {
    max-width: 880px;
    padding-top: clamp(24px, 3vw, 36px);
    border-top: 1px solid var(--hs-line);
}

.hs-text__title {
    margin: 0 0 12px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    color: var(--hs-ink);
    text-transform: none;
}

.hs-text__body {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--hs-muted);
}

.hs-text__body p {
    margin: 0 0 12px;
}

.hs-text__body a {
    color: var(--hs-navy);
}

/* ── Focus + reduced motion ──────────────────────────────────────────── */

.hs-home a:focus-visible,
.hs-home button:focus-visible,
.hs-home input:focus-visible {
    outline: 3px solid rgba(31, 98, 255, .45);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hs-home *,
    .hs-home *::before,
    .hs-home *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
