/* ============================================================
   Hero Split Parallax — ahsp-*
   Parallax background + left/right split layout with
   floating info cards and entrance animation support.
   ============================================================ */

/* Container: clips the parallax background */
.ahsp-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

/* Parallax background layer */
.ahsp-parallax-bg {
    position: absolute;
    inset: -25% 0;          /* vertical overshoot allows parallax travel */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    will-change: transform;
    z-index: 0;
}

/* Darkening overlay */
.ahsp-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.35);
}

/* Inner content wrapper */
.ahsp-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 80px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ── Columns ──────────────────────────────────────────────── */
.ahsp-text-col,
.ahsp-image-col {
    flex: 1;
    min-width: 0;
}

/* ── Title ────────────────────────────────────────────────── */
.ahsp-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #ffffff;
}

/* ── Description ──────────────────────────────────────────── */
.ahsp-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px;
}

.ahsp-description p {
    margin: 0 0 0.75em;
}

/* ── Checklist ────────────────────────────────────────────── */
.ahsp-checklist {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ahsp-check-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ahsp-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #4a90d9);
    font-size: 16px;
    flex-shrink: 0;
}

.ahsp-check-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.ahsp-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.ahsp-btn1,
.ahsp-btn2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease,
                transform 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

.ahsp-btn1 {
    background-color: var(--primary, #4a90d9);
    color: #ffffff;
    border: none;
}

.ahsp-btn1:hover {
    transform: translateY(-2px);
}

.ahsp-btn2 {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.ahsp-btn2:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.ahsp-btn-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.ahsp-btn-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* ── Image column ─────────────────────────────────────────── */
.ahsp-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ahsp-image-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.ahsp-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* ── Floating cards ───────────────────────────────────────── */
.ahsp-float-card {
    position: absolute;
    z-index: 2;
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-line;         /* respects textarea line breaks */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    max-width: 220px;
    word-break: break-word;
}

/* Top-left card floats upward */
.ahsp-float-card-tl {
    top: -20px;
    left: -20px;
    animation: ahspFloatUp 3s ease-in-out infinite alternate;
}

/* Bottom-right card floats downward (offset phase) */
.ahsp-float-card-br {
    bottom: -20px;
    right: -20px;
    animation: ahspFloatDown 3s ease-in-out 1.5s infinite alternate;
}

@keyframes ahspFloatUp {
    from { transform: translateY(0); }
    to   { transform: translateY(-12px); }
}

@keyframes ahspFloatDown {
    from { transform: translateY(0); }
    to   { transform: translateY(12px); }
}

/* ── Direction variants ───────────────────────────────────── */
/* Default: text left, image right — no extra CSS needed */
/* image-left: swap order visually */
.ahsp-dir-image-left .ahsp-text-col  { order: 2; }
.ahsp-dir-image-left .ahsp-image-col { order: 1; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .ahsp-wrapper {
        flex-direction: column;
        padding: 60px 24px;
    }

    .ahsp-text-col,
    .ahsp-image-col {
        width: 100%;
        flex: unset;
    }

    /* Reset order on mobile — text always on top */
    .ahsp-dir-image-left .ahsp-text-col  { order: 1; }
    .ahsp-dir-image-left .ahsp-image-col { order: 2; }

    .ahsp-image-wrap {
        max-width: 100%;
    }

    .ahsp-float-card-tl {
        top: -14px;
        left: -10px;
    }

    .ahsp-float-card-br {
        bottom: -14px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .ahsp-wrapper {
        padding: 48px 16px;
    }

    .ahsp-buttons {
        flex-wrap: wrap;
    }

    .ahsp-btn1,
    .ahsp-btn2 {
        width: 100%;
        justify-content: center;
    }

    .ahsp-float-card {
        font-size: 0.8rem;
        padding: 12px 14px;
        min-width: 110px;
        max-width: 170px;
    }
}