/* ==========================================================================
   AAD Finlease Private Limited — NBFC Front-End Theme
   ========================================================================== */

:root {
    --navy: #150a0e;
    --navy-2: #1f0f15;
    --indigo: #6b2338;
    --violet: #8a2f45;
    --cyan: #c9a25b;
    --gold: #c9a25b;
    --ink: #1c1013;
    --muted: #8a7f83;
    --muted-light: #d9cdd1;
    --light-bg: #f8f5f2;
    --card-bg: #ffffff;
    --border-soft: rgba(28, 16, 19, 0.08);
    --shadow-soft: 0 20px 45px rgba(28, 16, 19, 0.1);
    --gradient-brand: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 55%, var(--gold) 100%);
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-head: 'Sora', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

a {
    text-decoration: none;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-muted-light {
    color: var(--muted-light);
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}

    #preloader.loaded {
        opacity: 0;
        visibility: hidden;
    }

.loader-ring {
    width: 54px;
    height: 54px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Topbar ---------- */
.topbar {
    background: var(--navy);
    color: var(--muted-light);
    font-size: 0.82rem;
    padding: 8px 0;
}

.topbar-left span {
    margin-right: 22px;
}

.topbar-left i {
    color: var(--cyan);
    margin-right: 6px;
}

.badge-live {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* ---------- Navbar ---------- */
.navbar-glass {
    background: rgba(11, 18, 41, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 0;
    transition: all .35s ease;
    top: 40px;
}

    .navbar-glass.scrolled {
        top: 0;
        padding: 10px 0;
        background: rgba(11, 18, 41, 0.92);
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

.navbar-brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff !important;
}

.brand-mark {
    display: inline-block;
    background: var(--gradient-brand);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    text-align: center;
    line-height: 30px;
    margin-right: 4px;
    font-size: 1rem;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform .3s ease;
}

.navbar-brand:hover .brand-logo-img {
    transform: scale(1.05);
}

.footer-logo-img {
    height: 44px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 5px 9px;
    margin-bottom: 14px;
}

.brand-accent {
    color: var(--cyan);
}

.navbar .nav-link {
    color: var(--muted-light) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all .25s ease;
    position: relative;
}

    .navbar .nav-link:hover {
        color: #fff !important;
        background: rgba(255,255,255,0.06);
    }

.btn-gradient {
    background: var(--gradient-brand);
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 10px 25px rgba(67, 56, 202, 0.35);
}

    .btn-gradient:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(124, 58, 237, 0.45);
        color: #fff;
    }

.btn-outline-light {
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 24px;
    transition: all .3s ease;
    background: transparent;
}

    .btn-outline-light:hover {
        background: #fff;
        color: var(--navy);
        transform: translateY(-3px);
    }

.btn-light {
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 28px;
    transition: transform .3s ease;
}

    .btn-light:hover {
        transform: translateY(-3px);
    }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: radial-gradient(circle at 20% 20%, #1b2452 0%, var(--navy) 55%, #060a1a 100%);
    padding-top: 170px;
    padding-bottom: 100px;
    overflow: hidden;
}

.min-vh-hero {
    min-height: 60vh;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: drift 12s ease-in-out infinite;
}

.shape-1 {
    width: 380px;
    height: 380px;
    background: var(--indigo);
    top: -100px;
    left: -80px;
}

.shape-2 {
    width: 320px;
    height: 320px;
    background: var(--cyan);
    bottom: -120px;
    right: -60px;
    animation-delay: 2s;
}

.shape-3 {
    width: 260px;
    height: 260px;
    background: var(--violet);
    top: 40%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes drift {
    0%, 100% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.08);
    }
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.eyebrow-dark {
    background: rgba(67, 56, 202, 0.08);
    color: var(--indigo);
}

.hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-sub {
    color: var(--muted-light);
    font-size: 1.08rem;
    max-width: 520px;
}

.hero-trust h3 {
    color: #fff;
    margin-bottom: 2px;
    font-size: 1.7rem;
}

.hero-trust p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--muted-light);
}

.hero-card-stack {
    position: relative;
    padding: 20px;
}

.glass-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 28px;
    color: #fff;
}

.glass-card-sm {
    max-width: 260px;
    position: absolute;
    bottom: -30px;
    left: -10px;
    padding: 18px;
}

.badge-soft {
    background: rgba(6, 182, 212, 0.18);
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.progress-track {
    height: 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 92%;
    border-radius: 10px;
    background: var(--gradient-brand);
    animation: growWidth 1.6s ease forwards;
}

@keyframes growWidth {
    from {
        width: 0;
    }
}

.float-anim {
    animation: floatY 5s ease-in-out infinite;
}

.float-anim-delay {
    animation: floatY 5s ease-in-out infinite;
    animation-delay: 1.2s;
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* ---------- Trust strip ---------- */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
}

    .trust-strip i {
        font-size: 1.6rem;
        color: var(--indigo);
        display: block;
        margin-bottom: 8px;
    }

    .trust-strip p {
        margin: 0;
        font-weight: 600;
        color: var(--ink);
        font-size: 0.9rem;
    }

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--navy);
}

    .section-dark h2, .section-dark h6 {
        color: #fff;
    }

    .section-dark p {
        color: var(--muted-light);
    }

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
}

    .section-head h2 {
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        margin: 12px 0;
    }

/* ---------- Product Cards ---------- */
.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0 0 28px;
    height: 100%;
    border: 1px solid var(--border-soft);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    position: relative;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-soft);
        border-color: transparent;
    }

.product-media {
    position: relative;
    height: 170px;
    overflow: hidden;
}

    .product-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
        display: block;
    }

.product-card:hover .product-media img {
    transform: scale(1.12);
}

.product-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,18,41,0) 40%, rgba(11,18,41,0.55) 100%);
}

.product-card-body {
    padding: 24px 28px 0;
}

.product-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: absolute;
    left: 20px;
    bottom: -27px;
    z-index: 2;
    box-shadow: 0 10px 22px rgba(67,56,202,0.35);
    transition: transform .35s ease;
}

.product-card:hover .product-icon {
    transform: rotate(-8deg) scale(1.08);
}

.product-icon-lg {
    width: 72px;
    height: 72px;
    font-size: 1.9rem;
    border-radius: 18px;
    position: static;
    box-shadow: none;
}

.product-card h5 {
    margin: 22px 0 10px;
}

.product-card p {
    font-size: 0.92rem;
}

.card-link {
    font-weight: 600;
    color: var(--indigo);
    font-size: 0.9rem;
}

    .card-link i {
        transition: transform .25s ease;
        display: inline-block;
    }

    .card-link:hover i {
        transform: translateX(4px);
    }

/* ---------- Feature list / timeline ---------- */
.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
}

    .feature-item i {
        color: var(--cyan);
        font-size: 1.4rem;
        margin-top: 3px;
    }

    .feature-item h6 {
        color: #fff;
        margin-bottom: 4px;
    }

    .feature-item p {
        margin: 0;
        font-size: 0.92rem;
    }

.process-timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background .3s ease, transform .3s ease;
}

    .timeline-item:hover {
        background: rgba(255,255,255,0.08);
        transform: translateX(6px);
    }

.timeline-index {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--cyan);
    min-width: 40px;
}

.timeline-item h6 {
    color: #fff;
    margin-bottom: 4px;
}

.timeline-item p {
    margin: 0;
    font-size: 0.88rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    max-width: 640px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

    .testimonial-card i.bi-quote {
        font-size: 2rem;
        color: var(--violet);
    }

    .testimonial-card p {
        font-size: 1.1rem;
        color: var(--ink);
        font-style: italic;
    }

    .testimonial-card h6 {
        margin: 14px 0 2px;
    }

    .testimonial-card span {
        font-size: 0.85rem;
        color: var(--muted);
    }

.carousel-control-prev, .carousel-control-next {
    width: 6%;
}

.carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--gradient-brand);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .cta-band h2 {
        color: #fff;
        margin-bottom: 10px;
    }

    .cta-band p {
        color: rgba(255,255,255,0.85);
        margin-bottom: 30px;
    }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: radial-gradient(circle at 30% 20%, #1b2452 0%, var(--navy) 60%);
    padding: 190px 0 90px;
}

    .page-hero h1 {
        color: #fff;
        font-size: clamp(2rem, 4vw, 2.8rem);
        margin: 14px 0;
    }

    .page-hero p {
        max-width: 560px;
        margin: 0 auto;
    }

/* ---------- Stat boxes (About) ---------- */
.stat-box {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    text-align: center;
    border: 1px solid var(--border-soft);
    transition: transform .3s ease;
}

    .stat-box:hover {
        transform: translateY(-6px);
    }

    .stat-box h3 {
        font-size: 1.8rem;
        color: var(--indigo);
        margin-bottom: 4px;
    }

    .stat-box p {
        margin: 0;
        font-size: 0.85rem;
    }

.value-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    height: 100%;
    transition: transform .3s ease, background .3s ease;
}

    .value-card:hover {
        transform: translateY(-8px);
        background: rgba(255,255,255,0.09);
    }

    .value-card i {
        font-size: 2rem;
        color: var(--cyan);
        margin-bottom: 14px;
        display: block;
    }

    .value-card h5 {
        color: #fff;
    }

.team-card {
    text-align: center;
    background: #fff;
    border-radius: 18px;
    padding: 36px 20px;
    border: 1px solid var(--border-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .team-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-soft);
    }

.team-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 auto 16px;
}

.team-card span {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- Loan detail cards (Products page) ---------- */
.loan-detail-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid var(--border-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .loan-detail-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-soft);
    }

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.tag {
    background: var(--light-bg);
    border: 1px solid var(--border-soft);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.rate-box {
    background: linear-gradient(135deg, rgba(67,56,202,0.06), rgba(6,182,212,0.06));
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
}

    .rate-box h4 {
        color: var(--indigo);
        margin: 4px 0 0;
    }

    .rate-box small {
        color: var(--muted);
        font-size: 0.7rem;
        font-weight: 500;
    }

/* ---------- EMI Calculator ---------- */
.emi-calculator-card {
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.emi-field {
    margin-bottom: 34px;
}

    .emi-field label {
        font-weight: 600;
        font-size: 0.92rem;
    }

.emi-value {
    font-weight: 700;
    color: var(--indigo);
}

.form-range {
    accent-color: var(--indigo);
}

.emi-result {
    text-align: center;
}

.donut-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
}

.donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-track {
    fill: none;
    stroke: var(--light-bg);
    stroke-width: 16;
}

.donut-progress {
    fill: none;
    stroke: var(--indigo);
    stroke-width: 16;
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    transition: stroke-dashoffset 0.8s ease;
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .donut-center h2 {
        color: var(--indigo);
        margin: 4px 0 0;
        font-size: 1.8rem;
    }

.emi-breakdown {
    text-align: left;
    margin-top: 10px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-soft);
    font-size: 0.92rem;
}

.dot-principal {
    color: var(--indigo);
    font-size: 0.6rem;
    margin-right: 8px;
}

.dot-interest {
    color: var(--cyan);
    font-size: 0.6rem;
    margin-right: 8px;
}

/* ---------- Contact page ---------- */
.contact-info-card, .contact-form-card {
    background: #fff;
    border-radius: 22px;
    padding: 40px;
    border: 1px solid var(--border-soft);
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-top: 26px;
}

    .contact-info-item i {
        font-size: 1.3rem;
        color: var(--indigo);
        margin-top: 4px;
    }

    .contact-info-item h6 {
        margin-bottom: 4px;
    }

    .contact-info-item p {
        margin: 0;
        font-size: 0.9rem;
    }

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    padding: 12px 14px;
    font-size: 0.94rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--indigo);
        box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.1);
    }

.form-success {
    text-align: center;
    padding: 40px 0;
}

    .form-success i {
        font-size: 3rem;
        color: #16a34a;
        margin-bottom: 14px;
    }

.d-none {
    display: none !important;
}

/* ---------- Footer ---------- */
.footer {
    background: #060a1a;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--indigo);
    filter: blur(140px);
    opacity: 0.18;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.footer h4, .footer h6 {
    color: #fff;
}

.footer-brand {
    font-family: var(--font-head);
}

.footer p {
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

    .footer-links li {
        margin-bottom: 12px;
        font-size: 0.9rem;
        color: var(--muted-light);
    }

    .footer-links a {
        color: var(--muted-light);
        transition: color .25s ease;
    }

        .footer-links a:hover {
            color: var(--cyan);
        }

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

    .social-icons a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .3s ease;
    }

        .social-icons a:hover {
            background: var(--gradient-brand);
            transform: translateY(-4px);
        }

.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin-top: 40px;
}

/* ---------- Back to top ---------- */
#backToTop {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 12px 28px rgba(67,56,202,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .35s ease;
    z-index: 999;
}

    #backToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #backToTop:hover {
        transform: translateY(-4px);
    }

/* ---------- AOS speed tweak ---------- */
[data-aos] {
    transition-duration: 700ms !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .navbar-glass {
        top: 0;
    }

    .topbar {
        display: none !important;
    }

    .hero {
        padding-top: 130px;
    }

    .glass-card-sm {
        position: static;
        margin-top: 16px;
    }
}

/* ==========================================================================
   Images, parallax & extra motion — added for real photography
   ========================================================================== */

/* ---- Ken Burns slow-zoom for hero/background photography ---- */
@keyframes kenburns {
    0% {
        transform: scale(1.06) translate(0, 0);
    }

    100% {
        transform: scale(1.16) translate(-1.5%, -1.5%);
    }
}

.ken-burns {
    animation: kenburns 16s ease-in-out infinite alternate;
}

/* ---- Hero visual: photo + floating glass cards ---- */
.hero-visual {
    position: relative;
    padding: 10px;
}

.hero-photo-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    will-change: transform;
    transition: transform .2s ease-out;
}

    .hero-photo-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .hero-photo-frame::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(11,18,41,0.05) 0%, rgba(11,18,41,0.55) 100%);
    }

.hero-float-card {
    position: absolute;
    left: -28px;
    bottom: -26px;
    max-width: 250px;
    z-index: 3;
}

.hero-badge-card {
    position: absolute;
    top: 20px;
    right: -18px;
    max-width: 210px;
    z-index: 3;
}

@media (max-width: 991px) {
    .hero-float-card, .hero-badge-card {
        position: static;
        max-width: 100%;
        margin-top: 14px;
    }

    .hero-photo-frame {
        aspect-ratio: 16/10;
    }
}

/* ---- Generic image zoom-on-hover wrapper ---- */
.img-zoom-wrap {
    overflow: hidden;
    border-radius: 18px;
    position: relative;
}

    .img-zoom-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .6s ease, filter .6s ease;
    }

    .img-zoom-wrap:hover img {
        transform: scale(1.1);
    }

/* ---- Scroll reveal mask (clip-path wipe) for feature photos ---- */
.reveal-photo {
    clip-path: inset(0 0 0 0);
}

[data-aos="reveal-wipe"] {
    clip-path: inset(0 100% 0 0);
    transition-property: clip-path;
}

    [data-aos="reveal-wipe"].aos-animate {
        clip-path: inset(0 0 0 0);
    }

/* ---- Loan detail card media (Products page) ---- */
.loan-media {
    width: 100%;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

    .loan-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.loan-detail-card:hover .loan-media img {
    transform: scale(1.08);
}

/* ---- About: split image + stat overlay ---- */
.about-photo-wrap {
    position: relative;
}

    .about-photo-wrap .img-zoom-wrap {
        aspect-ratio: 5/4;
        box-shadow: var(--shadow-soft);
    }

.about-stat-badge {
    position: absolute;
    bottom: -24px;
    right: -20px;
    background: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    z-index: 2;
}

    .about-stat-badge h3 {
        color: var(--indigo);
        margin: 0;
        font-size: 1.6rem;
    }

    .about-stat-badge p {
        margin: 0;
        font-size: 0.78rem;
    }

/* ---- Gallery strip (About: Life at AAD Finlease) ---- */
.gallery-grid .img-zoom-wrap {
    aspect-ratio: 4/3;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(180deg, rgba(11,18,41,0) 0%, rgba(11,18,41,0.75) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

/* ---- Team avatars as real photos ---- */
.team-avatar-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border: 3px solid var(--light-bg);
    box-shadow: var(--shadow-soft);
    transition: transform .35s ease;
}

.team-card:hover .team-avatar-photo {
    transform: scale(1.06) rotate(-2deg);
}

/* ---- Testimonial avatar ---- */
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    border: 3px solid var(--light-bg);
}

/* ---- Contact page (no forms — pure info/branch layout) ---- */
.contact-hero {
    position: relative;
    min-height: 340px;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

    .contact-hero img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .contact-hero .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(11,18,41,0.92) 20%, rgba(11,18,41,0.55) 100%);
        z-index: 1;
    }

    .contact-hero .container {
        position: relative;
        z-index: 2;
    }

.quick-contact-row {
    margin-top: -70px;
    position: relative;
    z-index: 3;
}

.quick-contact-card {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: transform .3s ease;
}

    .quick-contact-card:hover {
        transform: translateY(-8px);
    }

    .quick-contact-card i {
        font-size: 1.8rem;
        color: var(--indigo);
        margin-bottom: 12px;
        display: block;
    }

    .quick-contact-card h6 {
        margin-bottom: 4px;
    }

    .quick-contact-card a {
        color: var(--muted);
        font-size: 0.9rem;
    }

        .quick-contact-card a:hover {
            color: var(--indigo);
        }

.branch-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}

    .branch-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-soft);
    }

.branch-media {
    height: 150px;
    overflow: hidden;
}

    .branch-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.branch-card:hover .branch-media img {
    transform: scale(1.08);
}

.branch-body {
    padding: 20px 22px;
}

    .branch-body h6 {
        margin-bottom: 6px;
    }

    .branch-body p {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

.branch-tag {
    display: inline-block;
    background: rgba(67,56,202,0.08);
    color: var(--indigo);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.grievance-card {
    background: var(--navy);
    border-radius: 22px;
    padding: 40px;
    color: #fff;
}

    .grievance-card h4 {
        color: #fff;
    }

    .grievance-card p {
        color: var(--muted-light);
    }

.grievance-row {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

    .grievance-row i {
        color: var(--cyan);
        font-size: 1.2rem;
        margin-top: 3px;
    }

    .grievance-row h6 {
        color: #fff;
        margin-bottom: 2px;
    }

    .grievance-row p {
        margin: 0;
        font-size: 0.88rem;
    }

.whatsapp-fab {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 12px 28px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform .3s ease;
    animation: pulseWhatsapp 2.4s ease-in-out infinite;
}

    .whatsapp-fab:hover {
        transform: scale(1.08);
        color: #fff;
    }

@keyframes pulseWhatsapp {
    0%, 100% {
        box-shadow: 0 12px 28px rgba(37,211,102,0.4);
    }

    50% {
        box-shadow: 0 12px 28px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.12);
    }
}

/* ---- EMI page hero image accent ---- */
.emi-hero-photo {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-soft);
}

    .emi-hero-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ---- Insights / updates cards (magazine-style, badge over thumbnail) ---- */
.insight-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .insight-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-soft);
    }

.insight-media {
    position: relative;
    height: 170px;
    overflow: hidden;
}

    .insight-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
        display: block;
    }

.insight-card:hover .insight-media img {
    transform: scale(1.1);
}

.insight-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}

.insight-body {
    padding: 20px 22px 24px;
}

    .insight-body h6 {
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .insight-body p {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }

.insight-meta {
    font-size: 0.76rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.worth-reading-list {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.worth-reading-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: padding-left .3s ease;
}

    .worth-reading-item:hover {
        padding-left: 8px;
    }

    .worth-reading-item h6 {
        color: #fff;
        margin: 0 0 4px;
        font-size: 0.95rem;
    }

    .worth-reading-item span {
        font-size: 0.76rem;
        color: var(--muted-light);
    }

    .worth-reading-item i {
        color: var(--gold);
        font-size: 1.1rem;
        flex-shrink: 0;
    }

/* ==========================================================================
   Additional section animations & transitions
   ========================================================================== */

/* ---- Page-load fade/slide-in for main content ---- */
.page-fade {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
}

    .page-fade.loaded {
        opacity: 1;
        transform: translateY(0);
    }

/* ---- Animated underline on nav links ---- */
.navbar .nav-link {
    position: relative;
    overflow: hidden;
}

    .navbar .nav-link::after {
        content: '';
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 6px;
        height: 2px;
        background: var(--gradient-brand);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s ease;
    }

    .navbar .nav-link:hover::after {
        transform: scaleX(1);
    }

/* ---- Button shine sweep on hover ---- */
.btn-gradient, .btn-outline-light {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

    .btn-gradient::before, .btn-outline-light::before {
        content: '';
        position: absolute;
        top: 0;
        left: -60%;
        width: 40%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
        transform: skewX(-20deg);
        transition: left .6s ease;
        z-index: 1;
        pointer-events: none;
    }

    .btn-gradient:hover::before, .btn-outline-light:hover::before {
        left: 130%;
    }

/* ---- Eyebrow badge gentle pulse ---- */
@keyframes eyebrowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201,162,91,0.25);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(201,162,91,0);
    }
}

.eyebrow {
    animation: eyebrowPulse 2.6s ease-in-out infinite;
}

/* ---- Icon micro-interactions on hover ---- */
.quick-contact-card i,
.value-card i,
.feature-item > i,
.grievance-row i {
    transition: transform .4s ease, color .3s ease;
}

.quick-contact-card:hover i {
    transform: scale(1.15) rotate(-6deg);
}

.value-card:hover i {
    transform: translateY(-4px) scale(1.1);
}

.feature-item:hover > i {
    transform: scale(1.2);
    color: var(--gold);
}

/* ---- Gallery caption slide-up reveal ---- */
.gallery-caption {
    transform: translateY(100%);
    opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
}

.img-zoom-wrap:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

/* ---- Angled section divider (visual transition between sections) ---- */
.angled-divider {
    position: relative;
    height: 64px;
    margin-top: -64px;
    z-index: 2;
    pointer-events: none;
    background: var(--light-bg);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

    .angled-divider.divider-dark {
        background: var(--navy);
        clip-path: polygon(0 0, 100% 100%, 0 100%);
    }

/* ---- Section heading underline grow-in ---- */
.section-head h2 {
    position: relative;
    display: inline-block;
}

    .section-head h2::after {
        content: '';
        display: block;
        width: 56px;
        height: 3px;
        margin: 14px auto 0;
        background: var(--gradient-brand);
        border-radius: 3px;
        transform: scaleX(0);
        animation: underlineGrow 1s ease forwards;
        animation-delay: .3s;
    }

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

/* ---- Worth-reading list items: staggered entrance handled via data-aos in markup ---- */

/* ---- Scroll progress bar ---- */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-brand);
    z-index: 1100;
    transition: width .1s ease-out;
}

/* ---- Card lift transition consistency ---- */
.stat-box, .team-card, .branch-card, .insight-card, .quick-contact-card, .value-card, .product-card, .loan-detail-card {
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}

/* ==========================================================================
   News-feed style homepage components (Featured card, strips, post lists)
   ========================================================================== */

/* Featured hero card */
.featured-card {
    background: var(--card-bg, #fff);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.featured-media {
    position: relative;
    aspect-ratio: 16/8;
    overflow: hidden;
}

    .featured-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

.featured-card:hover .featured-media img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--gradient-brand);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.featured-body {
    padding: 32px;
}

    .featured-body h1 {
        margin-bottom: 14px;
    }

/* Section head row with "view all" link */
.section-head-row h4 {
    margin: 0;
    font-family: var(--font-head);
}

.view-all-link {
    font-size: .9rem;
    font-weight: 600;
    color: var(--indigo);
    text-decoration: none;
    white-space: nowrap;
}

    .view-all-link:hover {
        color: var(--violet);
    }

/* Horizontal scroll strip (Latest Updates) */
.scroll-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

    .scroll-strip::-webkit-scrollbar {
        height: 6px;
    }

    .scroll-strip::-webkit-scrollbar-thumb {
        background: var(--border-soft);
        border-radius: 6px;
    }

.strip-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .strip-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-soft);
    }

.strip-media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

    .strip-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.strip-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold, #c7a25b);
    color: #2a0f16;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.strip-body {
    padding: 14px 16px;
}

    .strip-body h6 {
        font-size: .92rem;
        margin-bottom: 8px;
        line-height: 1.35;
    }

.strip-meta {
    font-size: .78rem;
    color: var(--muted);
}

/* Post list (Our Loan Products / Editor's Picks) */
.post-list-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-soft);
    transition: transform .3s ease;
}

    .post-list-item:first-child {
        padding-top: 0;
    }

    .post-list-item:last-child {
        border-bottom: none;
    }

    .post-list-item:hover {
        transform: translateX(4px);
    }

.post-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
}

    .post-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.post-list-item:hover .post-thumb img {
    transform: scale(1.08);
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 6px;
}

.post-content h6 {
    margin-bottom: 6px;
}

.post-content p {
    margin: 0;
    font-size: .88rem;
    color: var(--muted);
}

/* Larger post-list variant for Editor's Picks (bigger thumbnail, stacked) */
.post-list-lg .post-thumb {
    flex-basis: 130px;
    width: 130px;
    height: 130px;
}

/* Promo / Apply banner */
.promo-banner {
    background: var(--gradient-brand);
    border-radius: 24px;
    padding: 36px 40px;
    color: #fff;
}

    .promo-banner h5 {
        color: #fff;
        margin-bottom: 6px;
    }

    .promo-banner p {
        color: rgba(255,255,255,0.85);
        margin: 0;
        max-width: 420px;
    }

.promo-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Subscribe box */
.subscribe-box {
    background: var(--section-dark-bg, var(--navy, #1a0a10));
    border-radius: 24px;
    padding: 48px 32px;
}

    .subscribe-box h4 {
        color: #fff;
    }

    .subscribe-box p {
        color: var(--muted-light);
        max-width: 480px;
        margin: 0 auto 24px;
    }

.subscribe-form {
    max-width: 460px;
    margin: 0 auto;
}

    .subscribe-form input {
        flex: 1 1 240px;
        padding: 13px 18px;
        border-radius: 30px;
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.08);
        color: #fff;
        min-width: 0;
    }

        .subscribe-form input::placeholder {
            color: var(--muted-light);
        }

        .subscribe-form input:focus {
            outline: none;
            border-color: var(--gold, #c7a25b);
            background: rgba(255,255,255,0.12);
        }

    .subscribe-form .btn {
        border-radius: 30px;
        white-space: nowrap;
    }

.subscribe-success {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 767px) {
    .featured-body {
        padding: 22px;
    }

    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

        .promo-banner p {
            max-width: none;
        }

    .post-thumb {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
    }

    .post-list-lg .post-thumb {
        flex-basis: 96px;
        width: 96px;
        height: 96px;
    }
}

.btn-outline-dark {
    border: 1.5px solid var(--border-soft);
    color: var(--ink);
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 24px;
    transition: all .3s ease;
    background: transparent;
    display: inline-block;
}

    .btn-outline-dark:hover {
        background: var(--ink);
        border-color: var(--ink);
        color: #fff;
        transform: translateY(-3px);
    }

/* Scoped overrides: hero text sits on a light card inside the featured hero */
.featured-body .hero-title {
    color: var(--ink);
}

.featured-body .hero-sub {
    color: var(--muted);
}

.featured-body .hero-trust h3 {
    color: var(--ink);
}

.featured-body .hero-trust p {
    color: var(--muted);
}

/* ==========================================================================
   Local SVG icon tiles — replace all external/hotlinked photos.
   Every "media" slot now renders a self-hosted SVG on a brand-gradient
   tile instead of an <img> pointing at an external host.
   ========================================================================== */
.media-tile {
    width: 100%;
    height: 100%;
    min-height: inherit;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    overflow: hidden;
}

    .media-tile::before {
        content: '';
        position: absolute;
        width: 220%;
        height: 220%;
        background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.22), transparent 55%);
        animation: kenburns 18s ease-in-out infinite alternate;
    }

    .media-tile .tile-icon {
        position: relative;
        z-index: 1;
        width: 34%;
        max-width: 92px;
        filter: drop-shadow(0 10px 18px rgba(21,10,14,0.35));
        transition: transform .5s ease;
    }

    /* Size variants */
    .media-tile.tile-sm .tile-icon {
        width: 40%;
        max-width: 46px;
    }

    .media-tile.tile-lg .tile-icon {
        width: 28%;
        max-width: 160px;
    }

    /* Absolute full-bleed background use (contact hero, page hero) */
    .media-tile.tile-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

/* Round avatar tiles for testimonials / team (no gradient tile, flat icon) */
.tile-avatar {
    display: block;
    border-radius: 50%;
}

/* Hover-zoom parity for cards that used to zoom a photo */
.product-card:hover .media-tile .tile-icon,
.loan-detail-card:hover .media-tile .tile-icon,
.insight-card:hover .media-tile .tile-icon,
.img-zoom-wrap:hover .media-tile .tile-icon,
.featured-card:hover .media-tile .tile-icon,
.strip-card:hover .media-tile .tile-icon,
.post-list-item:hover .media-tile .tile-icon,
.branch-card:hover .media-tile .tile-icon,
.team-card:hover .media-tile .tile-icon {
    transform: scale(1.12);
}
