/**
 * UPFIT INDUSTRIES — Phase 3 Homepage Styles
 * Scoped under .home-page / .hp-* to avoid catalog conflicts
 */

.home-page {
    --hp-hero-h: min(100vh, 960px);
}

/* ===== Hero ===== */
.hp-hero {
    position: relative;
    height: var(--hp-hero-h);
    min-height: 640px;
    overflow: hidden;
    background: var(--uf-navy);
}

.hp-hero-slide {
    position: relative;
    height: var(--hp-hero-h);
    min-height: 640px;
}

.hp-hero-bg {
    position: absolute;
    inset: -4%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.ken-burns {
    animation: none;
    transform: scale(1.08);
    transition: transform 7s linear;
}

.swiper-slide-active .ken-burns {
    transform: scale(1);
}

.hp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(27, 27, 27, 0.92) 0%, rgba(122, 15, 29, 0.55) 48%, rgba(122, 15, 29, 0.25) 100%),
        radial-gradient(ellipse at 70% 80%, rgba(122, 15, 29, 0.18), transparent 50%);
}

.hp-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + var(--announce-h));
}

.hp-hero-copy {
    max-width: 680px;
    color: #fff;
}

.hp-hero-brand {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
}

.hp-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1rem;
    opacity: 0;
}

.hp-hero-title {
    font-size: clamp(2.6rem, 6.2vw, 4.8rem);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1.15rem;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    opacity: 0;
}

.hp-hero-text {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 500px;
    margin-bottom: 2rem;
    opacity: 0;
}

.hp-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    opacity: 0;
}

.swiper-slide-active .hp-hero-brand,
.swiper-slide-active .hp-hero-eyebrow,
.swiper-slide-active .hp-hero-title,
.swiper-slide-active .hp-hero-text,
.swiper-slide-active .hp-hero-ctas {
    animation: hpFadeUp 0.9s var(--ease) forwards;
}

.swiper-slide-active .hp-hero-eyebrow { animation-delay: 0.12s; }
.swiper-slide-active .hp-hero-title { animation-delay: 0.22s; }
.swiper-slide-active .hp-hero-text { animation-delay: 0.34s; }
.swiper-slide-active .hp-hero-ctas { animation-delay: 0.46s; }

@keyframes hpFadeUp {
    from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hp-hero-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 6;
}

.hp-hero-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7A0F1D, #fff);
}

.hp-hero-pagination {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.45rem;
}

.hp-hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    border-radius: 999px;
    transition: 0.35s var(--ease);
}

.hp-hero-pagination .swiper-pagination-bullet-active {
    width: 28px;
    background: #fff;
}

.hp-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    transition: var(--transition);
}

.hp-hero-nav:hover {
    background: var(--uf-blue);
    border-color: var(--uf-blue);
}

.hp-hero-prev { left: 1.5rem; }
.hp-hero-next { right: 1.5rem; }

.hp-hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 5;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hp-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(#fff, transparent);
    animation: scrollPulse 1.8s ease infinite;
}

/* ===== Categories ===== */
.hp-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.hp-cat-card {
    position: relative;
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-md);
}

.hp-cat-media {
    position: absolute;
    inset: 0;
}

.hp-cat-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.hp-cat-card:hover .hp-cat-media img {
    transform: scale(1.12);
}

.hp-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(27, 27, 27, 0.88) 100%);
    transition: background 0.5s var(--ease);
}

.hp-cat-card:hover .hp-cat-overlay {
    background: linear-gradient(180deg, rgba(122, 15, 29, 0.15) 10%, rgba(27, 27, 27, 0.92) 100%);
}

.hp-cat-border {
    position: absolute;
    inset: 12px;
    border-radius: calc(var(--radius-xl) - 8px);
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color 0.45s var(--ease), inset 0.45s var(--ease);
}

.hp-cat-card:hover .hp-cat-border {
    border-color: rgba(255, 255, 255, 0.45);
    inset: 16px;
}

.hp-cat-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.6rem;
    color: #fff;
    z-index: 2;
}

.hp-cat-body h3 {
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 0.3rem;
}

.hp-cat-body p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.hp-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    transform: translateY(8px);
    opacity: 0;
    transition: var(--transition);
}

.hp-cat-card:hover .hp-cat-btn {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Product tabs ===== */
.hp-product-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hp-ptab {
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--uf-navy);
    background: #fff;
    border: 1px solid rgba(122, 15, 29, 0.1);
    transition: var(--transition-fast);
}

.hp-ptab.is-active,
.hp-ptab:hover {
    background: var(--uf-gradient-btn);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-blue);
}

.hp-product-panel[hidden] {
    display: none !important;
}

/* ===== Why ===== */
.hp-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.hp-why-card {
    padding: 1.75rem 1.4rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid rgba(122, 15, 29, 0.06);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
}

.hp-why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.hp-why-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--uf-blue-soft);
    color: var(--uf-blue);
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    transition: var(--transition);
}

.hp-why-card:hover .hp-why-icon {
    background: var(--uf-gradient-btn);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.hp-why-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.hp-why-card p {
    color: var(--uf-grey);
    font-size: 0.9rem;
}

/* ===== Timeline ===== */
.hp-timeline {
    position: relative;
}

.hp-timeline-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 1.15rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.hp-timeline-step {
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform var(--transition), border-color var(--transition);
}

.hp-timeline-step:hover {
    transform: translateY(-8px);
    border-color: rgba(61, 126, 255, 0.5);
}

.hp-timeline-media {
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.hp-timeline-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.hp-timeline-step:hover .hp-timeline-media img {
    transform: scale(1.08);
}

.hp-timeline-num {
    display: block;
    padding: 1rem 1.1rem 0.25rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--uf-blue-bright);
}

.hp-timeline-step h3 {
    color: #fff;
    font-size: 1.05rem;
    padding: 0 1.1rem;
    margin-bottom: 0.35rem;
}

.hp-timeline-step p {
    padding: 0 1.1rem 1.2rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

/* ===== Custom split ===== */
.hp-custom {
    background: var(--uf-accent);
}

.hp-custom-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 560px;
}

.hp-custom-media {
    position: relative;
    overflow: hidden;
}

.hp-custom-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 480px;
}

.hp-custom-float {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.glass-float {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    animation: floatY 5s ease-in-out infinite;
}

.hp-custom-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 5rem);
}

.hp-custom-content p {
    color: var(--uf-grey);
    margin: 1rem 0 1.5rem;
    max-width: 480px;
}

.hp-custom-list {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.hp-custom-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--uf-text-soft);
    font-weight: 600;
}

.hp-custom-list i {
    color: var(--uf-blue);
}

/* ===== Collections ===== */
.hp-coll-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 1.15rem;
}

.hp-coll-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-md);
}

.hp-coll-card--lg {
    grid-row: 1 / span 2;
}

.hp-coll-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.hp-coll-card:hover img {
    transform: scale(1.1);
}

.hp-coll-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(27, 27, 27, 0.88) 100%);
}

.hp-coll-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem;
    color: #fff;
    z-index: 2;
}

.hp-coll-body h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.hp-coll-body p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.hp-coll-body span {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--uf-blue-bright);
}

/* ===== Quality ===== */
.hp-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.hp-quality-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(122, 15, 29, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hp-quality-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.hp-quality-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hp-quality-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.hp-quality-card:hover .hp-quality-img img {
    transform: scale(1.08);
}

.hp-quality-body {
    padding: 1.35rem 1.4rem 1.6rem;
}

.hp-quality-body h3 {
    font-size: 1.1rem;
    margin: 0.85rem 0 0.4rem;
}

.hp-quality-body p {
    color: var(--uf-grey);
    font-size: 0.9rem;
}

/* ===== Stats ===== */
.hp-stats {
    background: var(--uf-gradient-navy);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    text-align: center;
}

.hp-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hp-stat span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ===== Testimonials ===== */
.glass-card {
    height: 100%;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.hp-stars {
    color: #F5A623;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.hp-quote {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hp-author {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.hp-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hp-author strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.hp-author span,
.hp-author em {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: normal;
}

/* ===== Gallery ===== */
.hp-gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.hp-gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    padding: 0;
    display: block;
}

.hp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.hp-gallery-item:hover img {
    transform: scale(1.1);
}

.hp-gallery-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(122, 15, 29, 0.4);
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.hp-gallery-item:hover .hp-gallery-hover {
    opacity: 1;
}

.hp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(0, 10, 30, 0.9);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    padding: 2rem;
}

.hp-lightbox img {
    max-width: min(960px, 92vw);
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hp-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--uf-navy);
}

/* ===== Newsletter ===== */
.hp-newsletter {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hp-newsletter-bg,
.hp-final-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hp-newsletter-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(27, 27, 27, 0.92), rgba(122, 15, 29, 0.45));
}

.hp-newsletter-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 640px;
    padding: 4rem 0;
}

.hp-newsletter-inner h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.5rem 0 0.75rem;
}

.hp-newsletter-inner p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.hp-newsletter-form {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.4rem;
    backdrop-filter: blur(12px);
}

.hp-newsletter-form input {
    flex: 1;
    min-width: 200px;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0.85rem 1.15rem;
    outline: none;
    font-family: inherit;
}

.hp-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* ===== Final CTA ===== */
.hp-final-cta {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hp-final-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(27, 27, 27, 0.94), rgba(122, 15, 29, 0.7) 55%, rgba(122, 15, 29, 0.35));
}

.hp-final-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
    padding: 5rem 0;
}

.hp-final-inner h2 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin: 0.5rem 0 0.35rem;
}

.hp-final-lead {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--uf-blue-bright);
    margin-bottom: 1rem;
}

.hp-final-inner > p:not(.hp-final-lead) {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.75rem;
    max-width: 480px;
}

/* ===== Button ripple ===== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ===== Premium Footer Phase 3 ===== */
.site-footer--premium {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(122, 15, 29, 0.22), transparent 45%),
        linear-gradient(180deg, #1B1B1B 0%, #6B0F1A 100%);
    padding-top: 5rem;
}

.footer-top-brand {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-brand img {
    height: 78px;
    width: auto;
    background: transparent;
}

.footer-tagline {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.02rem;
    margin: 0;
}

.footer-grid--premium {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.footer-col h5 {
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--uf-primary);
    border-radius: 2px;
}

/* ===== Cinematic hero ===== */
.hp-cinematic {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1B1B1B;
    color: #fff;
}

.hp-cine-stage {
    position: absolute;
    inset: 0;
}

.hp-cine-frame {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease;
    z-index: 1;
}

.hp-cine-frame.is-active {
    opacity: 1;
    z-index: 2;
}

.hp-cine-bg {
    position: absolute;
    inset: -4%;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: cineKen 8s ease-out forwards;
}

.hp-cine-frame.is-active .hp-cine-bg {
    animation: cineKen 8s ease-out forwards;
}

@keyframes cineKen {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}

.hp-cine-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(27, 27, 27, 0.35) 0%, rgba(27, 27, 27, 0.55) 45%, rgba(122, 15, 29, 0.72) 100%);
}

.hp-cine-content {
    position: relative;
    z-index: 5;
    padding: calc(var(--header-h) + 4rem) 0 5rem;
    max-width: 820px;
}

.hp-cine-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hp-cine-logo {
    height: 64px;
    width: auto;
}

.hp-cine-label {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.hp-cine-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 1.5rem;
}

.hp-cine-finale {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1.5rem;
}

.hp-cine-progress {
    margin-top: 2rem;
    height: 2px;
    width: min(280px, 60%);
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border-radius: 2px;
}

.hp-cine-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

/* Five banners */
.hp-banners {
    padding: 2.5rem 0 0;
    background: #fff;
}

.hp-banner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.hp-banner-card {
    position: relative;
    display: block;
    min-height: 420px;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
}

.hp-banner-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hp-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 27, 27, 0.15), rgba(27, 27, 27, 0.78));
    transition: background 0.4s ease;
}

.hp-banner-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.5rem 1.25rem;
}

.hp-banner-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.05;
    margin: 0 0 0.4rem;
    color: #fff;
}

.hp-banner-body p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 0.75rem;
}

.hp-banner-body span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-banner-card:hover img {
    transform: scale(1.08);
}

.hp-banner-card:hover .hp-banner-overlay {
    background: linear-gradient(180deg, rgba(122, 15, 29, 0.25), rgba(27, 27, 27, 0.88));
}

@media (max-width: 1199.98px) {
    .hp-banner-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-banner-card:nth-child(4),
    .hp-banner-card:nth-child(5) { min-height: 360px; }
    .footer-grid--premium { grid-template-columns: 1fr 1fr; }
    .footer-top-brand { grid-template-columns: 1fr; text-align: left; }
    .footer-social { justify-content: flex-start; }
}

@media (max-width: 991.98px) {
    .hp-why-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .hp-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-custom-grid { grid-template-columns: 1fr; }
    .hp-coll-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .hp-coll-card--lg { grid-row: auto; min-height: 320px; }
    .hp-quality-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-banner-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
    .hp-cinematic { min-height: 88vh; }
    .hp-banner-grid,
    .hp-cat-grid,
    .hp-why-grid,
    .hp-quality-grid,
    .hp-coll-grid,
    .hp-stats-grid { grid-template-columns: 1fr; }
    .hp-banner-card { min-height: 320px; }
    .hp-coll-card { min-height: 260px; }
    .hp-newsletter-form { border-radius: 20px; flex-direction: column; }
    .hp-newsletter-form .btn-premium { width: 100%; }
    .footer-grid--premium { grid-template-columns: 1fr; }
}
