/* 0. GLOBAL DESIGN SYSTEM */

/* 0.1 CSS reset & layout */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #001B72;
    /* Navy Blue */
    background: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

/* 0.2 CSS variables */
:root {
    --fs-navy: #001B72;
    --fs-red: #EB002B;
    --fs-peach: #FFE0D6;
    --fs-soft-blue: #D4DEFF;
    --fs-white: #FFFFFF;
    --fs-grey: rgba(0, 0, 0, 0.6);

    --fs-radius: 16px;
    --fs-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 0.3 Typography */
.h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 24px;
}

.h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-eyebrow,
.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.hero-eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.section-label {
    color: var(--fs-grey);
}

p {
    font-size: 1rem;
    color: var(--fs-grey);
    margin-bottom: 16px;
}

.text-center {
    text-align: center;
}

/* 0.4 Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    width: 100%;
    /* Mobile first */
    text-align: center;
}

/* Fix for hero secondary button visibility */
.hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-primary {
    background: var(--fs-red);
    color: var(--fs-white);
}

.btn-primary:hover {
    background: #c40022;
    /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 0, 43, 0.3);
}

.btn-secondary {
    border: 2px solid var(--fs-navy);
    color: var(--fs-navy);
}

.btn-secondary:hover {
    background: var(--fs-navy);
    color: var(--fs-white);
}

@media (min-width: 768px) {

    .btn-primary,
    .btn-secondary {
        width: auto;
    }
}

/* 1. HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--fs-white);
    padding: 20px 0;
    transition: padding 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    padding: 12px 0;
    box-shadow: var(--fs-shadow);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--fs-navy);
    letter-spacing: -0.02em;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fs-navy);
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Nav List */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background: var(--fs-white);
    padding: 80px 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
}

.nav.open {
    transform: translateX(0);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-list a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--fs-navy);
    position: relative;
}

/* Desktop Nav */
@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        max-width: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 32px;
    }

    .nav-list a {
        font-size: 1rem;
    }

    .nav-list a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--fs-navy);
        transition: width 0.2s;
    }

    .nav-list a:hover::after {
        width: 100%;
    }
}

/* 2. HERO SECTION */
.hero {
    min-height: 100vh;
    background:
        radial-gradient(circle at 75% 25%, rgba(235, 0, 43, 0.35), transparent 60%),
        linear-gradient(120deg, #02030A 0%, #02030A 40%, #001B72 100%);
    color: var(--fs-white);
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.text-highlight {
    color: var(--fs-red);
}

.hero-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* 2.4 FS Frame (Critical) */
.fs-frame {
    position: relative;
    padding: 4px;
    /* Space for the border */
    background: linear-gradient(135deg, var(--fs-red) 33%, var(--fs-white) 33%, var(--fs-white) 66%, var(--fs-navy) 66%);
    clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
    border-radius: 24px;
}

.fs-frame-inner {
    background: #02030A;
    /* Match hero bg just in case */
    clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
    border-radius: 20px;
    /* Slightly smaller radius */
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}

.fs-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--fs-red);
    transform: scale(1.2);
}

.slider-arrow {
    color: white;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: 0.3s;
}

.slider-arrow:hover {
    opacity: 1;
}

/* 2.3 HERO METRICS */
.hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .hero-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fs-white);
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 3. EMI CALCULATOR */
.section-emi {
    padding: 80px 0;
    background: var(--fs-peach);
}

.emi-card {
    background: var(--fs-white);
    border-radius: 24px;
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--fs-shadow);
}

.emi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .emi-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 60px;
    }
}

.input-group {
    margin-bottom: 32px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--fs-navy);
    margin-bottom: 12px;
}

.amount-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fs-navy);
    margin-right: 8px;
}

.amount-wrapper input {
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fs-navy);
    width: 100%;
    outline: none;
}

/* Range Slider */
input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--fs-red);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 2px 6px rgba(235, 0, 43, 0.4);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #eee;
    border-radius: 2px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--fs-grey);
}

/* Term Buttons */
.term-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.term-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    color: var(--fs-grey);
    font-weight: 600;
    transition: 0.2s;
}

.term-btn:hover {
    border-color: var(--fs-navy);
    color: var(--fs-navy);
}

.term-btn.active {
    background: var(--fs-navy);
    color: var(--fs-white);
    border-color: var(--fs-navy);
}

/* EMI Result */
.emi-result {
    background: var(--fs-soft-blue);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.result-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--fs-navy);
    opacity: 0.7;
    margin-bottom: 8px;
}

.emi-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--fs-navy);
    line-height: 1.1;
    margin-bottom: 24px;
}

.disclaimer {
    font-size: 0.75rem;
    margin-top: 16px;
    opacity: 0.6;
}

/* 4. LOANS SECTION */
.section-loans {
    padding: 80px 0;
    background: var(--fs-soft-blue);
}

.loan-carousel {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    /* 👈 add this */
}

.loan-carousel::-webkit-scrollbar {
    display: none;
}

.loan-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 12px 4px 4px;
    /* from step 1 */
}


.loan-card {
    background: var(--fs-white);
    border-radius: var(--fs-radius);
    padding: 32px;
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent;
    box-shadow: var(--fs-shadow);
    position: relative;
    /* 👈 allow z-index to work */
    z-index: 0;
}

.loan-card:hover {
    transform: translateY(-4px);
    /* 👈 gentler lift */
    border-color: var(--fs-navy);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    z-index: 1;
    /* 👈 sits above neighbours, not under edges */
}

.loan-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* 5. HOW IT WORKS */
.section-how {
    padding: 80px 0;
    background: rgba(255, 224, 214, 0.5);
    /* 50% peach */
}


.how-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.how-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.how-step-index {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fs-navy);
    color: var(--fs-white);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform 0.3s;
}

.how-step:hover .how-step-index {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .how-steps {
        flex-direction: row;
    }

    .how-connector {
        position: absolute;
        top: 24px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--fs-soft-blue);
        z-index: 1;
    }

    .how-connector-fill {
        height: 100%;
        width: 0;
        background: var(--fs-navy);
        transition: width 1.5s ease;
    }

    .how-steps.visible .how-connector-fill {
        width: 100%;
    }
}

/* 6. PROMISE SECTION */
.section-promise {
    padding: 80px 0;
    background: #f9f9f9;
}

.promise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .promise-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.promise-intro {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.promise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promise-item {
    position: relative;
    padding-left: 24px;
    transition: transform 0.2s;
}

.promise-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--fs-red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}

.promise-item:hover {
    transform: translateX(8px);
}

.promise-item:hover .promise-bar {
    transform: scaleY(1);
}

.promise-icons {
    display: flex;
    gap: 24px;
    justify-content: center;
    font-size: 4rem;
}

/* Promise section visual frame */
/* Make the entire visual block larger */
.promise-visual {
    max-width: 480px;
    /* increase from default ~350px */
    width: 100%;
}

/* Increase the frame size and height */
.promise-visual .fs-frame-inner {
    aspect-ratio: 5 / 4 !important;
    /* taller */
    height: auto;
}

/* Optional: increase radius for a smoother look */
.promise-visual .fs-frame,
.promise-visual .fs-frame-inner {
    border-radius: 28px;
}


.promise-frame {
    max-width: 380px;
    width: 100%;
    margin-left: auto;
    /* push frame to the right */
}

.promise-frame img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* PROMISE SECTION – match ABOUT image size */

/* 1. Layout: same 1fr / 1fr split and bigger gap */
.section-promise .promise-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 40px;
}

@media (min-width: 768px) {
    .section-promise .promise-grid {
        grid-template-columns: 1fr 1fr;
        /* 👈 same as ABOUT */
        column-gap: 64px;
        /* space between text and image */
        align-items: center;
    }
}

/* 2. Let the FS frame fill the column like in ABOUT */
.section-promise .promise-visual {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: flex-end;
}

.section-promise .promise-visual .fs-frame {
    width: 100%;
    max-width: 520px;
    /* tweak this number if you want bigger/smaller */
}

.section-promise .promise-visual .fs-frame-inner {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
}


/* 7. ABOUT SECTION */
.section-about {
    padding: 80px 0;
    background: var(--fs-soft-blue);
}

.section-about .about-grid {
    column-gap: 60px;
    /* space between image and text */
}

@media (max-width: 768px) {
    .section-about .about-grid {
        column-gap: 24px;
        /* smaller gap on mobile */
    }
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-body p {
    margin-bottom: 16px;
}

.about-bullets {
    list-style: none;
    margin-top: 24px;
    font-weight: 600;
    color: var(--fs-navy);
}

.about-bullets li {
    margin-bottom: 8px;
}

/* 8. TESTIMONIALS */
.section-testimonials {
    padding: 80px 0;
    background: var(--fs-peach);
}

.testimonial-carousel {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

.testimonial-card {
    background: var(--fs-white);
    border-radius: var(--fs-radius);
    padding: 32px;
    width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: var(--fs-shadow);
}

.story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
}

/* 9. FINAL CTA */
.section-final-cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: #ffffff;
    overflow: hidden;

    /* FULL blue/image background */
    background-image:
        linear-gradient(rgba(0, 27, 114, 0.9), rgba(0, 27, 114, 0.95)),
        url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* keep the existing content styling */
.final-cta-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

.final-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    justify-content: center;
}

@media (min-width: 600px) {
    .final-cta-buttons {
        flex-direction: row;
    }
}


/* 10. FOOTER */
.footer {
    background: #00124a;
    color: var(--fs-white);
    padding: 60px 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-nav a:hover {
    color: var(--fs-red);
}

.social-icons {
    display: flex;
    gap: 24px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--fs-white);
    transition: fill 0.2s;
}

.social-icon:hover {
    fill: var(--fs-red);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-left {
        text-align: left;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}