/**
 * AHYSP Hero Slider — Frontend Styles
 */

/* ============ ROOT ============ */
.ahysp-hero,
.ahysp-hero * { box-sizing: border-box; }

.ahysp-hero {
    --ahysp-ease: cubic-bezier(.22, 1, .36, 1);
    --ahysp-fx-duration: 8s;

    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 520px;
    max-height: 1080px;
    overflow: hidden;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0b0b0d;
    isolation: isolate;
}

/* ============ TRACK & SLIDES ============ */
.ahysp-hero__track { position: absolute; inset: 0; }

.ahysp-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s var(--ahysp-ease), visibility 0s linear .9s;
    z-index: 1;
}

.ahysp-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity .9s var(--ahysp-ease), visibility 0s linear 0s;
}

/* ============ BACKGROUND & EFFECTS ============ */
.ahysp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
}

.ahysp-fx-none { transform: none; }

.ahysp-hero__slide.is-active .ahysp-fx-ken-burns {
    animation: ahysp-kenburns var(--ahysp-fx-duration) ease-out both;
}
@keyframes ahysp-kenburns {
    0%   { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.15) translate(-1.5%, -1%); }
}

.ahysp-hero__slide.is-active .ahysp-fx-zoom-in { animation: ahysp-zoom-in var(--ahysp-fx-duration) ease-out both; }
@keyframes ahysp-zoom-in { 0% { transform: scale(1); } 100% { transform: scale(1.18); } }

.ahysp-hero__slide.is-active .ahysp-fx-zoom-out { animation: ahysp-zoom-out var(--ahysp-fx-duration) ease-out both; }
@keyframes ahysp-zoom-out { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }

.ahysp-hero__slide.is-active .ahysp-fx-pan-right { animation: ahysp-pan-right var(--ahysp-fx-duration) linear both; }
@keyframes ahysp-pan-right { 0% { transform: scale(1.12) translateX(-3%); } 100% { transform: scale(1.12) translateX(3%); } }

.ahysp-hero__slide.is-active .ahysp-fx-pan-left { animation: ahysp-pan-left var(--ahysp-fx-duration) linear both; }
@keyframes ahysp-pan-left { 0% { transform: scale(1.12) translateX(3%); } 100% { transform: scale(1.12) translateX(-3%); } }

.ahysp-hero__slide.is-active .ahysp-fx-pan-up { animation: ahysp-pan-up var(--ahysp-fx-duration) linear both; }
@keyframes ahysp-pan-up { 0% { transform: scale(1.12) translateY(3%); } 100% { transform: scale(1.12) translateY(-3%); } }

.ahysp-hero__slide.is-active .ahysp-fx-pan-down { animation: ahysp-pan-down var(--ahysp-fx-duration) linear both; }
@keyframes ahysp-pan-down { 0% { transform: scale(1.12) translateY(-3%); } 100% { transform: scale(1.12) translateY(3%); } }

/* ============ OVERLAY ============ */
.ahysp-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 70%);
}

/* ============ INNER LAYOUT ============ */
.ahysp-hero__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0 80px 80px 80px;
    z-index: 3;
}

.ahysp-hero__content {
    max-width: 620px;
    width: 100%;
    transform: translateY(24px);
    opacity: 0;
    transition: transform .9s var(--ahysp-ease) .15s, opacity .9s var(--ahysp-ease) .15s;
}

.ahysp-hero__slide.is-active .ahysp-hero__content {
    transform: translateY(0);
    opacity: 1;
}

/* ============ TITLE ============ */
.ahysp-hero__title {
    margin: 0 0 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

/* ============ DESCRIPTION ============ */
.ahysp-hero__desc {
    margin: 0 0 40px;
    font-size: clamp(0.95rem, 1.15vw, 1.125rem);
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    max-width: 46ch;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
}

/* ============ BUTTON — HARD RESET + DEFINED HOVER ============ */
.ahysp-hero .ahysp-hero__cta { margin-top: 8px; }

/* Base — locked in every state so no theme/Elementor default bleeds through */
.ahysp-hero .ahysp-hero__btn,
.ahysp-hero .ahysp-hero__btn:link,
.ahysp-hero .ahysp-hero__btn:visited,
.ahysp-hero .ahysp-hero__btn:hover,
.ahysp-hero .ahysp-hero__btn:focus,
.ahysp-hero .ahysp-hero__btn:focus-visible,
.ahysp-hero .ahysp-hero__btn:focus-within,
.ahysp-hero .ahysp-hero__btn:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    padding: 20px 40px;
    min-width: 260px;
    line-height: 1;
    font-family: inherit !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    text-transform: none;
    cursor: pointer !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    border-radius: 0;
    border-style: solid !important;
    border-width: 1px !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: background-color .35s var(--ahysp-ease), color .35s var(--ahysp-ease), border-color .35s var(--ahysp-ease) !important;
}

/* Normal state */
.ahysp-hero .ahysp-hero__btn,
.ahysp-hero .ahysp-hero__btn:link,
.ahysp-hero .ahysp-hero__btn:visited {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-color: rgba(255,255,255,0) !important;
}

/* Hover / focus / active */
.ahysp-hero .ahysp-hero__btn:hover,
.ahysp-hero .ahysp-hero__btn:focus,
.ahysp-hero .ahysp-hero__btn:focus-visible,
.ahysp-hero .ahysp-hero__btn:focus-within,
.ahysp-hero .ahysp-hero__btn:active {
    background: rgba(255,255,255,0) !important;
    background-image: none !important;
    background-color: rgba(255,255,255,0) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.ahysp-hero .ahysp-hero__btn .ahysp-hero__btn-text {
    color: inherit !important;
    background: transparent !important;
    text-decoration: none !important;
}

/* Arrow: hidden by default; slides in on hover when enabled */
.ahysp-hero .ahysp-hero__btn-arrow {
    width: 18px;
    height: 18px;
    color: inherit;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateX(-6px);
    transition: opacity .35s var(--ahysp-ease), transform .35s var(--ahysp-ease), max-width .35s var(--ahysp-ease);
    flex-shrink: 0;
}

.ahysp-hero--arrow .ahysp-hero__btn:hover .ahysp-hero__btn-arrow,
.ahysp-hero--arrow .ahysp-hero__btn:focus .ahysp-hero__btn-arrow,
.ahysp-hero--arrow .ahysp-hero__btn:focus-visible .ahysp-hero__btn-arrow {
    opacity: 1;
    max-width: 24px;
    transform: translateX(0);
}

/* Keyboard focus ring (subtle) */
.ahysp-hero .ahysp-hero__btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.35) !important;
}

/* ============ STANDALONE MARK POSITIONS (when Mark Position ≠ default) ============ */
.ahysp-hero__mark--standalone {
    --ahysp-mark-edge: 60px;
    --ahysp-mark-x: 0px;
    --ahysp-mark-y: 0px;
    position: absolute;
    z-index: 4;
    pointer-events: none;
    line-height: 0;
}

.ahysp-hero__mark--top-left      { top:    var(--ahysp-mark-edge); left:  var(--ahysp-mark-edge); transform: translate(var(--ahysp-mark-x), var(--ahysp-mark-y)); }
.ahysp-hero__mark--top-center    { top:    var(--ahysp-mark-edge); left:  50%;                    transform: translate(calc(-50% + var(--ahysp-mark-x)), var(--ahysp-mark-y)); }
.ahysp-hero__mark--top-right     { top:    var(--ahysp-mark-edge); right: var(--ahysp-mark-edge); transform: translate(calc(-1 * var(--ahysp-mark-x)), var(--ahysp-mark-y)); }
.ahysp-hero__mark--middle-left   { top:    50%;                    left:  var(--ahysp-mark-edge); transform: translate(var(--ahysp-mark-x), calc(-50% + var(--ahysp-mark-y))); }
.ahysp-hero__mark--middle-center { top:    50%;                    left:  50%;                    transform: translate(calc(-50% + var(--ahysp-mark-x)), calc(-50% + var(--ahysp-mark-y))); }
.ahysp-hero__mark--middle-right  { top:    50%;                    right: var(--ahysp-mark-edge); transform: translate(calc(-1 * var(--ahysp-mark-x)), calc(-50% + var(--ahysp-mark-y))); }
.ahysp-hero__mark--bottom-left   { bottom: var(--ahysp-mark-edge); left:  var(--ahysp-mark-edge); transform: translate(var(--ahysp-mark-x), calc(-1 * var(--ahysp-mark-y))); }
.ahysp-hero__mark--bottom-center { bottom: var(--ahysp-mark-edge); left:  50%;                    transform: translate(calc(-50% + var(--ahysp-mark-x)), calc(-1 * var(--ahysp-mark-y))); }
.ahysp-hero__mark--bottom-right  { bottom: var(--ahysp-mark-edge); right: var(--ahysp-mark-edge); transform: translate(calc(-1 * var(--ahysp-mark-x)), calc(-1 * var(--ahysp-mark-y))); }

.ahysp-hero__mark--standalone img {
    height: 130px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 30px rgba(0, 0, 0, 0.25));
    max-width: 100%;
}

/* ============ RAIL (mark + pagination shared left alignment) ============ */
.ahysp-hero__rail {
    position: absolute;
    right: 80px;
    top: 0;
    bottom: 80px;
    z-index: 4;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: start;      /* LEFT-align both mark and pagination */
    row-gap: 24px;
    pointer-events: none;      /* let content clicks pass through empty areas */
    width: max-content;         /* rail width = width of widest child */
    max-width: 45%;
}

.ahysp-hero__mark {
    grid-row: 1;
    align-self: center;
    line-height: 0;
    pointer-events: none;
}

.ahysp-hero__mark img {
    height: 130px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 30px rgba(0, 0, 0, 0.25));
    max-width: 100%;
}

/* When only pagination is shown, put it at the bottom */
.ahysp-hero__rail:not(.has-mark) { grid-template-rows: 1fr; }
.ahysp-hero__rail:not(.has-mark) .ahysp-hero__pagination { align-self: end; }
.ahysp-hero__rail:not(.has-pagination) { grid-template-rows: 1fr; }
.ahysp-hero__rail:not(.has-pagination) .ahysp-hero__mark { align-self: center; }

.ahysp-hero__pagination {
    grid-row: 2;
    align-self: end;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ============ PAGINATION DOTS — HARD RESET ============ */
.ahysp-hero .ahysp-hero__dot,
.ahysp-hero .ahysp-hero__dot:link,
.ahysp-hero .ahysp-hero__dot:visited,
.ahysp-hero .ahysp-hero__dot:hover,
.ahysp-hero .ahysp-hero__dot:active,
.ahysp-hero .ahysp-hero__dot:focus,
.ahysp-hero .ahysp-hero__dot:focus-visible,
.ahysp-hero .ahysp-hero__dot:focus-within {
    all: unset;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-variant-numeric: tabular-nums;
    transition: color .35s var(--ahysp-ease) !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.ahysp-hero .ahysp-hero__dot:hover { color: rgba(255, 255, 255, 0.9); }
.ahysp-hero .ahysp-hero__dot:focus-visible {
    outline: 1px dashed rgba(255,255,255,0.6) !important;
    outline-offset: 4px !important;
}
.ahysp-hero .ahysp-hero__dot.is-active { color: #fff; }

.ahysp-hero__dot-num {
    display: inline-block;
    color: inherit;
    background: transparent !important;
    order: 2;
}

.ahysp-hero__dot-line {
    display: inline-block;
    width: 0;
    height: 1px;
    background: transparent;
    order: 1;
    transition: width .5s var(--ahysp-ease), background .35s var(--ahysp-ease);
}

.ahysp-hero .ahysp-hero__dot.is-active .ahysp-hero__dot-line {
    width: 40px;
    background: #fff;
}

/* ============ TABLET (768–1024) ============ */
@media (max-width: 1024px) {
    .ahysp-hero { min-height: 480px; height: 75vh; }
    .ahysp-hero__inner { padding: 0 40px 64px 40px; }
    .ahysp-hero__title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }

    .ahysp-hero__rail { right: 40px; bottom: 40px; max-width: 40%; }
    .ahysp-hero__mark img { height: 100px; }
    .ahysp-hero__pagination { gap: 18px; }
    .ahysp-hero .ahysp-hero__dot.is-active .ahysp-hero__dot-line { width: 32px; }

    .ahysp-hero .ahysp-hero__btn { min-width: 220px; padding: 18px 32px; }
}

/* ============ MOBILE (< 768) — content TOP, rail BOTTOM (pagination left + mark right) ============ */
@media (max-width: 767px) {
    .ahysp-hero { height: 90vh; min-height: 620px; max-height: 900px; }

    .ahysp-hero__inner {
        align-items: flex-start !important;          /* content at top */
        padding: 280px 24px 140px 24px;              /* generous top padding as requested */
    }
    .ahysp-hero__content { max-width: 100%; }

    .ahysp-hero__title {
        font-size: clamp(1.6rem, 6.5vw, 2.2rem);
        margin-bottom: 16px;
        letter-spacing: -0.01em;
    }
    .ahysp-hero__desc {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 28px;
        max-width: 100%;
    }
    .ahysp-hero .ahysp-hero__btn {
        width: 100%;
        min-width: 0 !important;
        padding: 18px 24px;
        font-size: 0.9rem;
    }

    /* Rail — HARD-LOCKED to BOTTOM of the hero (pagination LEFT, mark RIGHT) */
    .ahysp-hero__rail {
        top: auto !important;
        right: 24px !important;
        left: 24px !important;
        bottom: 28px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        width: auto !important;
        max-width: none !important;
        row-gap: 0 !important;
        grid-template-rows: none !important;
        z-index: 6;
    }
    .ahysp-hero__pagination { order: 1; gap: 16px; }
    .ahysp-hero__rail .ahysp-hero__mark { order: 2; align-self: flex-end; grid-row: auto !important; }
    .ahysp-hero__mark img               { height: 68px; }
    .ahysp-hero .ahysp-hero__dot.is-active .ahysp-hero__dot-line { width: 26px; }
}

/* ============ SMALL PHONES ============ */
@media (max-width: 380px) {
    .ahysp-hero__mark img { height: 56px; }
    .ahysp-hero__inner { padding: 40px 20px 160px 20px; }
    .ahysp-hero__rail { right: 20px; left: 20px; bottom: 24px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    .ahysp-hero__slide,
    .ahysp-hero__content,
    .ahysp-hero__dot-line,
    .ahysp-hero__btn,
    .ahysp-hero__btn-arrow { transition: none !important; }
    .ahysp-hero__slide.is-active [class*="ahysp-fx-"] {
        animation: none !important;
        transform: scale(1.02) !important;
    }
}

/* ============ ELEMENTOR EDITOR TWEAKS ============ */
.elementor-editor-active .ahysp-hero { min-height: 480px; }

