/* ==========================================================================
   ALTIPEAK™ - Custom Hero Section
   ========================================================================== */

/* Overrides for this specific hero component */
.custom-hero-section {
    min-height: 100vh;
    background-color: #02025E; /* Website's primary theme bg */
    display: flex;
    align-items: center;
    font-family: 'Inter', 'Outfit', sans-serif;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Framed-video hero theme: text on one side, the real footage boxed in a glass card on
   the other — instead of a full-bleed background video. */
.hero-framed {
    background:
        radial-gradient(120% 90% at 82% 8%, rgba(56, 129, 252, 0.2) 0%, transparent 55%),
        radial-gradient(90% 70% at 10% 100%, rgba(247, 12, 52, 0.12) 0%, transparent 60%),
        #02025E;
}
.hero-columns {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    gap: 64px;
}
.hero-columns .custom-hero-content {
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 1 1 50%;
}
.hero-video-col {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
}
.hero-video-card.cine-card {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 4 / 5;
}
.hero-video-card.cine-card video {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1100px) {
    .hero-columns {
        flex-direction: column-reverse;
        padding: 120px 24px 48px;
        gap: 40px;
    }
    .hero-columns .custom-hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-video-card { max-width: 420px; aspect-ratio: 4 / 3; }
}

/* No background video/photo yet — a premium atmospheric gradient stands in until real
   ALTIPEAK footage is supplied. Swap this out by re-adding a .hero-bg-video element. */
.hero-no-media {
    background:
        radial-gradient(120% 90% at 82% 8%, rgba(56, 129, 252, 0.22) 0%, transparent 55%),
        radial-gradient(90% 70% at 10% 100%, rgba(247, 12, 52, 0.14) 0%, transparent 60%),
        #02025E;
}

/* Full-bleed real footage — replaces the old AI-generated 4-panel collage */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(2,2,94,.72) 0%, rgba(2,2,94,.5) 26%, rgba(2,2,94,.14) 52%, rgba(2,2,94,.05) 100%),
        linear-gradient(180deg, rgba(2,2,94,.35) 0%, rgba(2,2,94,0) 22%, rgba(2,2,94,0) 65%, rgba(2,2,94,.55) 100%);
}

/* Subtle cinematic grain — a premium film-commercial texture, not a distraction */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .05;
    mix-blend-mode: overlay;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
    background-size: 180px 180px;
}

/* Small pulsing "LIVE" indicator above the eyebrow — cinematic, not a real live feed */
.hero-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin-bottom: 20px;
    opacity: 0;
    animation: heroFadeIn .8s cubic-bezier(0.16,1,0.3,1) .15s forwards;
}
.hero-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #F70C34;
    box-shadow: 0 0 8px #F70C34;
    animation: heroLivePulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes heroLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(1.25); }
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll cue at the base of the hero */
.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 2;
    width: 22px; height: 36px;
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 20px;
    transform: translateX(-50%);
    opacity: 0;
    animation: heroFadeIn .8s cubic-bezier(0.16,1,0.3,1) .9s forwards;
}
.hero-scroll-indicator span {
    display: block;
    width: 4px; height: 8px;
    margin: 6px auto 0;
    border-radius: 3px;
    background: #fff;
    animation: heroScrollDot 1.8s ease-in-out infinite;
}
@keyframes heroScrollDot {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    71% { transform: translateY(0); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@media (max-width: 1100px) { .hero-scroll-indicator { display: none; } }

/* ---------- Performance Metrics Strip (directly under hero) ---------- */
.metrics-strip {
    position: relative;
    background: #02025E;
    border-top: 1px solid rgba(56,129,252,.18);
    border-bottom: 1px solid rgba(56,129,252,.18);
    padding: 28px 24px;
}
.metrics-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}
.metric-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}
.metric-num {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.metric-num.accent { color: #3881FC; font-family: var(--font-heading, 'Outfit', sans-serif); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.metric-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-top: 4px;
}
.metric-div { width: 1px; height: 30px; background: rgba(255,255,255,.12); }
@media (max-width: 700px) {
    .metrics-strip-inner { gap: 18px 26px; }
    .metric-div:nth-of-type(2) { display: none; }
    .metric-num { font-size: 21px; }
}

/* Sticky "Free Trial" side tab — small, always-visible reminder while scrolling on mobile */
.side-trial-tab {
    display: none;
    position: fixed;
    top: 175px;
    right: 0;
    z-index: 900;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: #F70C34;
    color: #fff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 8px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 2px 14px rgba(247, 12, 52, 0.4);
}
@media (max-width: 768px) {
    .side-trial-tab { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-live-dot, .hero-scroll-indicator span, .hero-live-indicator, .hero-scroll-indicator {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-bg-video { animation: none !important; }
}
.custom-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Navbar */
.custom-navbar {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 24px 60px;
    background: transparent;
}
.custom-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}
.custom-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}
.custom-logo-icon {
    width: 32px;
    height: 32px;
    color: #ffffff;
}
.custom-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.custom-tm {
    font-size: 10px;
    vertical-align: super;
}
.custom-nav-links {
    display: flex;
    gap: 32px;
}
.custom-nav-item {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s;
}
.custom-nav-item:hover {
    color: #ffffff;
}
.custom-nav-item.active {
    color: #ffffff;
}
.custom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 24px;
    height: 2px;
    background: #3881FC;
    border-radius: 2px;
}

.custom-btn-book {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid #3881FC;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.custom-btn-book:hover {
    background: #3881FC;
}
.custom-btn-book .arrow-icon {
    width: 16px;
    height: 16px;
}

.hamburger {
    display: none;
}

.hero-eyebrow {
    margin-bottom: 28px;
}
.eyebrow-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 14px;
}
.eyebrow-line {
    width: 60px;
    height: 3px;
    background-color: #3881FC;
    border-radius: 2px;
}

.custom-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 2.6vw, 50px) !important;
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 22px 0;
    letter-spacing: -0.01em;
}
.custom-hero-title .line {
    color: #ffffff;
    display: block;
}
.custom-hero-title .line.accent {
    color: #3881FC;
}
.custom-hero-subtext {
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0 0 36px 0;
    max-width: 340px;
}

.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}
.hero-trust-row .trust-stat {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}
.hero-trust-row .trust-label {
    font-size: 12px;
    color: #8b93a7;
    line-height: 1.3;
    max-width: 110px;
}
.hero-trust-row .trust-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
}

.custom-btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 34px;
    border: 1px solid #F70C34;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #F70C34;
    width: max-content;
    box-shadow: 0 8px 24px rgba(247, 12, 52, 0.35);
}
.custom-btn-main:hover {
    background: #870517;
    border-color: #870517;
    box-shadow: 0 10px 30px rgba(135, 5, 23, 0.5);
    transform: translateY(-2px);
}
.custom-btn-main .arrow-icon {
    width: 16px;
    height: 16px;
}

.custom-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 34px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    width: max-content;
}
.custom-btn-login:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}
.custom-btn-login .arrow-icon {
    width: 16px;
    height: 16px;
}
.hero-login-link:hover span {
    color: #3881FC;
}

/* Media Queries */
@media (max-width: 1100px) {
    .custom-hero-section {
        min-height: 100svh;
    }
    .custom-hero-content {
        padding: 120px 24px 48px;
        align-items: center;
        text-align: center;
    }
    .hero-eyebrow, .custom-hero-subtext {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta-row {
        justify-content: center;
        width: 100%;
    }
    .hero-trust-row {
        justify-content: center;
        text-align: left;
    }
    .hero-bg-overlay {
        background:
            linear-gradient(180deg, rgba(2,2,94,.45) 0%, rgba(2,2,94,.25) 32%, rgba(2,2,94,.55) 75%, rgba(2,2,94,.78) 100%);
    }
    .custom-navbar {
        padding: 20px 24px;
    }
    .custom-nav-links, .custom-btn-book {
        display: none;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }
    .hamburger .bar {
        width: 28px;
        height: 3px;
        background-color: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
}
