/* ALHOMIS Finance homepage promotion */

.finance-promo {
    padding: 70px 0;
    background:
        linear-gradient(135deg, rgba(0, 48, 32, .97), rgba(0, 74, 48, .94));
    color: #fff;
    overflow: hidden;
}

.finance-promo-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}

.finance-promo-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #e6c34d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.finance-promo h2 {
    margin: 0;
    max-width: 680px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6vw, 78px);
    font-weight: 400;
    line-height: .98;
}

.finance-promo h2 span {
    color: #e6c34d;
}

.finance-promo-copy {
    margin: 26px 0 0;
    max-width: 620px;
    color: rgba(255,255,255,.78);
    font-size: 18px;
    line-height: 1.75;
}

.finance-promo-products {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.finance-promo-product {
    padding: 15px 18px;
    border: 1px solid rgba(230,195,77,.28);
    background: rgba(255,255,255,.055);
    font-weight: 700;
}

.finance-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.finance-promo-primary,
.finance-promo-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 27px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease;
}

.finance-promo-primary:hover,
.finance-promo-secondary:hover {
    transform: translateY(-2px);
}

.finance-promo-primary {
    background: #e6c34d;
    color: #062e20;
}

.finance-promo-secondary {
    border: 1px solid rgba(255,255,255,.5);
    color: #fff;
}

.finance-promo-card {
    padding: 34px;
    border: 1px solid rgba(230,195,77,.34);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
}

.finance-promo-card-label {
    color: #e6c34d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.finance-promo-card h3 {
    margin: 14px 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
}

.finance-promo-card p {
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
}

.finance-promo-notice {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.58);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 820px) {
    .finance-promo {
        padding: 55px 0;
    }

    .finance-promo-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .finance-promo h2 {
        font-size: clamp(42px, 13vw, 64px);
    }

    .finance-promo-actions {
        display: grid;
    }

    .finance-promo-primary,
    .finance-promo-secondary {
        width: 100%;
    }

    .finance-promo-card {
        padding: 26px;
    }
}

/* =========================================================
   ALHOMIS FINANCE — PREMIUM MOTION
   ========================================================= */

.finance-promo {
    position: relative;
    isolation: isolate;
}

.finance-promo::before {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: -2;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(230,195,77,.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 65%,
            rgba(255,255,255,.08),
            transparent 27%
        );

    transform: translate3d(-4%,0,0) scale(1.05);
    animation: financeAmbientGlow 13s ease-in-out infinite alternate;
}

.finance-promo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 38%,
            rgba(255,255,255,.045) 48%,
            transparent 58%,
            transparent 100%
        );

    transform: translateX(-80%);
    animation: financeLightSweep 11s ease-in-out infinite;
}

/* Initial hidden states */
.finance-promo .finance-promo-eyebrow,
.finance-promo h2,
.finance-promo-copy,
.finance-promo-product,
.finance-promo-actions,
.finance-promo-card {
    opacity: 0;
}

/* Reveal states */
.finance-promo.is-visible .finance-promo-eyebrow {
    animation: financeRise .7s ease forwards;
}

.finance-promo.is-visible h2 {
    animation: financeHeroReveal .9s cubic-bezier(.2,.75,.25,1) .12s forwards;
}

.finance-promo.is-visible .finance-promo-copy {
    animation: financeRise .75s ease .32s forwards;
}

.finance-promo.is-visible .finance-promo-product:nth-child(1) {
    animation: financeProductReveal .65s ease .48s forwards;
}

.finance-promo.is-visible .finance-promo-product:nth-child(2) {
    animation: financeProductReveal .65s ease .62s forwards;
}

.finance-promo.is-visible .finance-promo-product:nth-child(3) {
    animation: financeProductReveal .65s ease .76s forwards;
}

.finance-promo.is-visible .finance-promo-actions {
    animation: financeRise .7s ease .92s forwards;
}

.finance-promo.is-visible .finance-promo-card {
    animation: financeCardReveal .95s cubic-bezier(.2,.75,.25,1) .36s forwards;
}

/* Elegant gold shimmer */
.finance-promo h2 span {
    position: relative;
    display: inline-block;

    background:
        linear-gradient(
            100deg,
            #d6ad36 0%,
            #f4d96f 32%,
            #fff0a8 48%,
            #e6c34d 65%,
            #c99b27 100%
        );

    background-size: 220% auto;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: financeGoldShimmer 6s linear infinite;
}

/* Product hover / touch feel */
.finance-promo-product {
    position: relative;
    overflow: hidden;
    transition:
        transform .28s ease,
        border-color .28s ease,
        background .28s ease;
}

.finance-promo-product::after {
    content: "→";
    position: absolute;
    right: 18px;
    opacity: .58;
    transform: translateX(-5px);
    transition:
        opacity .25s ease,
        transform .25s ease;
}

.finance-promo-product:hover {
    transform: translateX(5px);
    border-color: rgba(230,195,77,.62);
    background: rgba(255,255,255,.085);
}

.finance-promo-product:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Primary CTA: subtle premium breathing effect */
.finance-promo-primary {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 12px 35px rgba(0,0,0,.18),
        0 0 0 rgba(230,195,77,0);

    animation: financeCtaBreath 3.2s ease-in-out infinite;
}

.finance-promo-primary::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -35%;
    width: 28%;
    height: 220%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.44),
            transparent
        );

    transform: rotate(18deg);
    animation: financeButtonShine 4.8s ease-in-out infinite;
}

/* Card gets a soft inner glow */
.finance-promo-card {
    position: relative;
    overflow: hidden;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 24px 70px rgba(0,0,0,.13);
}

.finance-promo-card::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    top: -95px;
    right: -70px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(230,195,77,.16),
            transparent 68%
        );

    animation: financeOrbFloat 8s ease-in-out infinite alternate;
}

/* Keyframes */

@keyframes financeRise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes financeHeroReveal {
    from {
        opacity: 0;
        transform: translateY(34px) scale(.985);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes financeProductReveal {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes financeCardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes financeGoldShimmer {
    0% {
        background-position: 180% center;
    }
    100% {
        background-position: -40% center;
    }
}

@keyframes financeAmbientGlow {
    0% {
        transform: translate3d(-4%,0,0) scale(1.05);
    }
    100% {
        transform: translate3d(4%,2%,0) scale(1.11);
    }
}

@keyframes financeLightSweep {
    0%,
    68% {
        transform: translateX(-85%);
    }
    100% {
        transform: translateX(85%);
    }
}

@keyframes financeCtaBreath {
    0%,
    100% {
        box-shadow:
            0 12px 35px rgba(0,0,0,.18),
            0 0 0 0 rgba(230,195,77,.12);
    }

    50% {
        box-shadow:
            0 16px 42px rgba(0,0,0,.21),
            0 0 0 8px rgba(230,195,77,0);
    }
}

@keyframes financeButtonShine {
    0%,
    62% {
        left: -35%;
    }

    88%,
    100% {
        left: 125%;
    }
}

@keyframes financeOrbFloat {
    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(-18px,18px,0);
    }
}

/* Mobile refinements */
@media (max-width: 820px) {

    .finance-promo::before {
        inset: -15%;
    }

    .finance-promo-product {
        min-height: 76px;
        display: flex;
        align-items: center;
        padding-right: 54px;
    }

    .finance-promo-product::after {
        right: 22px;
    }

    .finance-promo-card h3 {
        font-size: clamp(38px, 11vw, 56px);
        line-height: 1.05;
    }
}

/* Accessibility / low-power preference */
@media (prefers-reduced-motion: reduce) {

    .finance-promo::before,
    .finance-promo::after,
    .finance-promo h2 span,
    .finance-promo-primary,
    .finance-promo-primary::after,
    .finance-promo-card::before {
        animation: none !important;
    }

    .finance-promo .finance-promo-eyebrow,
    .finance-promo h2,
    .finance-promo-copy,
    .finance-promo-product,
    .finance-promo-actions,
    .finance-promo-card {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}
