:root {
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --hero-accent: #C1BCAC;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    background: #000;
    color: #fff;
    font-family: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
}

/* ---- Video background ---- */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
}

.hero-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1200ms ease-in-out;
}

.hero-media video.is-active {
    opacity: 1;
    animation: videoFadeIn 1200ms ease-in-out;
}

/* ---- Hero video slider (Swiper) ---- */
.hero-media .hero-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-media .hero-swiper .swiper-wrapper,
.hero-media .hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-media .hero-swiper .swiper-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Darken the bottom so the white tagline & CTA stay readable over bright footage */
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.34) 26%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.05) 100%);
}

/* ---- Content ---- */
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 150px;
    padding: 190px 15px 0;
}

/* ---- Bottom content (right side, compact) ---- */
.hero-bottom {
    /* Distance from viewport edge to the centered container's content box */
    --hero-edge-offset: calc(max((100vw - 1340px) / 2, 0px) + 15px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    justify-content: center;
    padding-bottom: 60px;
    gap: 16px;
    text-align: right;
    /* Push the block all the way against the right viewport edge */
    margin-right: calc(-1 * var(--hero-edge-offset));
}

/* ---- Tagline & CTA ---- */
.hero-tagline {
    margin: 0;
    max-width: 640px;
    /* Barely-there haze — just enough to lift the white text off bright footage */
    border-radius: 34px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.hero-tagline::before {
    content: '';
    display: block;
    width: 72px;
    height: 1px;
    margin: 0 0 14px auto;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    transform: scaleX(0);
    transform-origin: right;
    animation: heroLineGrow 1s var(--ease-spring) 0.55s forwards;
}

.hero-tagline-mn {
    display: block;
    font-family: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.22;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65), 0 2px 22px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: heroRiseIn 1s var(--ease-spring) 0.75s forwards;
}

html[lang="mn"] .hero-tagline-en {
    display: none !important;
}

.hero-tagline-en {
    display: block;
    margin-top: 12px;
    font-family: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(10px, 0.9vw, 12px);
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
    opacity: 0;
    animation: heroTrackIn 1.1s var(--ease-spring) 1s forwards;
}

.hero-bottom .hero-btn {
    opacity: 0;
    animation: heroRiseIn 0.9s var(--ease-spring) 1.3s forwards;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(12, 9, 6, 0.16);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    transition: color 0.4s var(--ease-spring), background-color 0.4s var(--ease-spring), border-color 0.4s var(--ease-spring);
}

.hero-btn span {
    position: relative;
    z-index: 1;
}

/* Arrow */
.hero-btn::before {
    content: '\2192';
    font-size: 15px;
    letter-spacing: 0;
    transition: transform 0.45s var(--ease-spring);
}

.hero-btn:hover {
    color: #17120e;
    background-color: var(--hero-accent);
    border-color: transparent;
}

.hero-btn:hover::before {
    transform: translateX(6px);
}

/* ============ Tablet (810px – 1199.98px) ============ */
@media (min-width: 810px) and (max-width: 1199.98px) {
    .hero-inner {
        gap: 120px;
    }

    .hero-bottom {
        padding-bottom: 52px;
        gap: 12px;
    }
}

/* ============ Mobile (<810px) ============ */
@media (max-width: 809.98px) {
    .hero-inner {
        justify-content: flex-end;
        gap: 72px;
        padding: 140px 18px 0;
    }

    .hero-bottom {
        padding-bottom: 44px;
        gap: 12px;
        text-align: right;
    }
}

/* ============ Keyframes ============ */
@keyframes videoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroLineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes heroRiseIn {
    from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes heroTrackIn {
    from { opacity: 0; letter-spacing: 0.6em; }
    to { opacity: 1; letter-spacing: 0.34em; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    .hero *,
    .hero *::before,
    .hero *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero-media video {
        opacity: 1;
    }

    /* Entrance animations are disabled — show everything in its final state */
    .hero-tagline::before {
        transform: scaleX(1);
    }

    .hero-tagline-mn,
    .hero-tagline-en,
    .hero-bottom .hero-btn {
        opacity: 1;
    }
}
/* ---- Hero bottom: right-aligned with the header toggle button ---- */
.hero-bottom {
    align-items: flex-end;
    text-align: right;
}
.hero-tagline {
    text-align: right;
    max-width: 760px;
}
@media (max-width: 809.98px) {
    .hero-tagline { text-align: right; }
}
/* ---- Align hero content right edge with the toggle (100px viewport clearance) ---- */
.hero-bottom {
    padding-right: calc(100px - max((100vw - 1340px) / 2, 0px) - 15px);
}
@media (max-width: 809.98px) {
    .hero-bottom {
        padding-right: 82px;
    }
}
/* ---- Hero right edge EXACTLY on the toggle line (100px from viewport) ---- */
.hero-bottom {
    padding-right: 0;
    align-self: flex-end;
    width: auto;
    margin-right: calc(100px - max((100vw - 1340px) / 2, 0px) - 15px);
}
@media (max-width: 809.98px) {
    .hero-bottom {
        margin-right: 82px;
    }
}

/* Collection cards: keep CTA buttons on one baseline regardless of copy length */
#collections .elementor-element-f8ae180 {
    align-items: stretch;
}

#collections .elementor-element-f8ae180 > .e-con {
    display: grid !important;
    grid-template-rows: auto auto auto 1fr;
    height: 100%;
    align-items: stretch;
}

#collections .elementor-element-f8ae180 > .e-con > .elementor-widget-button {
    align-self: end;
}

/* ============ Home: full-width horse video + CTA ============ */
.home-cta-video {
    width: 100%;
    margin: 0;
    padding: 0 0 56px;
    overflow: hidden;
    background: #1A1410;
}
.home-cta-video-media {
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
    background: #1A1410;
}
.home-cta-video-el {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.home-cta-video-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.home-cta-kicker {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #C9B58F;
}
.home-cta-title,
.elementor-kit-16 .home-cta-title {
    margin: 0 0 12px;
    max-width: 18ch;
    font-family: 'Noto Serif Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.15;
    color: #FAEDDC !important;
}
.home-cta-desc {
    margin: 0 auto 22px;
    max-width: 48ch;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(250, 237, 220, 0.82);
}
.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.home-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 168px;
    padding: 12px 22px;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    outline: none;
    box-shadow: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.home-cta-btn span,
.elementor-kit-16 a.home-cta-btn span {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}
.home-cta-btn-primary,
.elementor-kit-16 a.home-cta-btn-primary {
    background: #A08B64;
    color: #17120E !important;
    border: 1px solid #A08B64;
}
.home-cta-btn-primary:hover,
.elementor-kit-16 a.home-cta-btn-primary:hover {
    background: #C9B58F;
    border-color: #C9B58F;
    color: #17120E !important;
}
.home-cta-btn-ghost,
.elementor-kit-16 a.home-cta-btn-ghost {
    background: transparent;
    color: #FAEDDC !important;
    border: 1px solid rgba(201, 181, 143, 0.55);
}
.home-cta-btn-ghost:hover,
.elementor-kit-16 a.home-cta-btn-ghost:hover {
    background: #A08B64 !important;
    border-color: #A08B64 !important;
    color: #17120E !important;
}
html.light-mode .home-cta-video {
    background: #F7F1E8;
}
html.light-mode .home-cta-title,
html.light-mode .elementor-kit-16 .home-cta-title {
    color: #322622 !important;
}
html.light-mode .home-cta-desc {
    color: #5C4F45;
}
html.light-mode .home-cta-btn-ghost,
html.light-mode .elementor-kit-16 a.home-cta-btn-ghost {
    color: #322622 !important;
    border-color: rgba(160, 139, 100, 0.55);
}
html.light-mode .home-cta-btn-ghost:hover,
html.light-mode .elementor-kit-16 a.home-cta-btn-ghost:hover {
    background: #A08B64 !important;
    border-color: #A08B64 !important;
    color: #17120E !important;
}
@media (max-width: 639.98px) {
    .home-cta-video { padding-bottom: 40px; }
    .home-cta-video-media { margin-bottom: 22px; }
    .home-cta-desc { font-size: 14px; }
}
