/* FSP Wealth - Home Page CSS */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ============================================================
   HERO VIDEO SECTION
   ============================================================ */
.hero-video-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-scroll-arrow {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.75);
    opacity: 0;
    animation: fadeInBounce 1s ease-in-out 3s forwards;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hero-scroll-arrow:hover {
    color: #c4a05a;
}

.hero-scroll-arrow svg {
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

@keyframes fadeInBounce {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* ============================================================
   INTRO / ABOUT SECTION
   ============================================================ */
.intro-section {
    background: #0a0a0a;
    padding: 100px 0;
    text-align: center;
}

.intro-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
}

.intro-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.15em;
    margin: 0 0 2.5rem;
}

.intro-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

/* ============================================================
   PROCESS SCROLLER SECTION
   ============================================================ */
.process-section {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

.process-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.process-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.process-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    max-width: 780px;
    padding: 0 40px;
    color: #fff;
}

.slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 3.25rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin: 0 0 0.6rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.slide-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Prev / Next buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 3rem;
    line-height: 1;
    width: 3rem;
    height: 5rem;
    cursor: pointer;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.slider-nav-btn:hover {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

/* Dot indicators */
.slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.25);
}

/* ============================================================
   FINANCIAL LIFE CYCLE ACCORDION
   ============================================================ */
.lifecycle-section {
    background: #111111;
    padding: 90px 0;
}

.lifecycle-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.lifecycle-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0 0 3rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    background: #2a2a2a;
    border: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: background 0.25s ease;
}

.accordion-header:hover {
    background: #333;
}

.accordion-item.active .accordion-header {
    background: #ffffff;
    color: #1a1a1a;
}

.accordion-icon {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-body {
    max-height: 600px;
    padding: 1.25rem 1.5rem 1.5rem;
}

.accordion-body p {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.88rem, 1vw, 0.95rem);
    color: #444;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   PARTNERS / iFSP GROUP SECTION
   ============================================================ */
.partners {
    padding: 5rem 0;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #c4a05a;
    border-bottom: 1px solid #c4a05a;
}

.partners-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3.75rem;
    letter-spacing: 0.125rem;
}

.partners-slider {
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.partners-slider:active {
    cursor: grabbing;
}

.partners-track {
    display: flex;
    gap: 5rem;
    align-items: center;
    justify-content: center;
    animation: scroll 20s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.partner-logo {
    flex-shrink: 0;
    width: 15rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   ACCORDION SHOW-MORE (mobile "read more" reveal)
   ============================================================ */
.accordion-readmore-btn {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    /* Hero video: full width, reduced height */
    .hero-video-section {
        height: 48vh;
        min-height: 200px;
    }

    .intro-section {
        padding: 70px 0;
    }

    .intro-container {
        padding: 0 29px;
    }

    .intro-text {
        text-align: justify;
    }

    .process-section {
        height: 80vh;
        min-height: 420px;
    }

    .slide-content {
        padding: 0 24px;
    }

    .slider-nav-btn {
        width: 2.5rem;
        height: 4rem;
        font-size: 2rem;
    }

    .lifecycle-section {
        padding: 60px 0;
    }

    .lifecycle-container {
        padding: 0 20px;
    }

    /* Accordion text wrap: clipped preview with fade */
    .accordion-text-wrap {
        position: relative;
        max-height: 130px;
        overflow: hidden;
    }

    .accordion-text-wrap::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 72px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
        pointer-events: none;
    }

    /* Class on the item itself controls expanded state */
    .accordion-item.text-expanded .accordion-text-wrap {
        max-height: none;
    }

    .accordion-item.text-expanded .accordion-text-wrap::after {
        display: none;
    }

    /* Raise the body cap after permanent unlock */
    .accordion-item.accordion-unlocked.active .accordion-body {
        max-height: 2000px;
    }

    /* Show more / Show less button */
    .accordion-readmore-btn {
        display: block;
        background: none;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        color: #888;
        font-family: 'Outfit', sans-serif;
        font-size: 0.75rem;
        font-weight: 400;
        letter-spacing: 0.1em;
        padding: 0.7rem 0 0.2rem;
        cursor: pointer;
        text-align: center;
        width: 100%;
        text-transform: uppercase;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s ease;
    }

    .accordion-readmore-btn:active {
        color: #1a1a1a;
    }

    .partners {
        padding: 3.5rem 0;
    }

    .partner-logo {
        width: 140px;
        height: 80px;
    }

    .partners-track {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-video-section {
        height: 42vh;
        min-height: 180px;
    }

    .intro-section {
        padding: 50px 0;
    }

    .intro-container {
        padding: 0 21px;
    }

    .process-section {
        height: 85vh;
    }

    .slider-nav-btn {
        width: 2rem;
        height: 3.5rem;
        font-size: 1.75rem;
    }

    .lifecycle-title {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .partner-logo {
        width: 120px;
        height: 70px;
    }

    .partners-track {
        gap: 2.5rem;
    }
}
