/* SiapNgeweb CRM — Front Page
   Exact match: siapngeweb.com design patterns */

/* ===== Shared Section ===== */
.fp-section {
    padding: 100px 0;
    position: relative;
}
.fp-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.fp-section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--heading-color);
}
.fp-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 12px auto 0;
}
.fp-section-title span {
    color: var(--primary-color);
}
.fp-section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.7;
}

/* Background variants */
.fp-bg-white { background: #ffffff; }
.fp-bg-alt   { background: var(--bg-color); }

/* ==========================================================
   1. HERO — Swiper slider, Ken Burns, 2-col grid
   ========================================================== */
.fp-hero {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
}
.fp-hero-swiper {
    width: 100%;
    height: 100%;
}
.fp-hero .swiper-slide {
    overflow: hidden;
}

/* Slide layout — 2 columns */
.fp-hero-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    align-items: center;
}

/* Alternating layout */
.layout-image-right .fp-hero-img { order: 2; }
.layout-image-right .fp-hero-text { order: 1; }
.layout-image-left .fp-hero-img { order: 1; }
.layout-image-left .fp-hero-text { order: 2; }

/* Text side */
.fp-hero-text {
    padding: 5vw;
}
.fp-hero-text h1,
.fp-hero-text h2,
.fp-hero-text h3 {
    font-size: clamp(1.9rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--heading-color);
}
.fp-hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 500px;
    color: var(--text-color);
    line-height: 1.7;
}
.fp-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Image side + Ken Burns */
.fp-hero-img {
    height: 100%;
    overflow: hidden;
}
.fp-ken-burns {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    transition: transform 8s ease-in-out;
}
.swiper-slide-active .fp-ken-burns {
    transform: scale(1);
}
.fp-hero-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6b8ff7 100%);
}

/* Text line-by-line animation */
.text-line {
    overflow: hidden;
    padding: 2px 0;
}
.text-line > * {
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
}
.swiper-slide-active .text-line:nth-child(1) > * {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}
.swiper-slide-active .text-line:nth-child(2) > * {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.5s;
}
.swiper-slide-active .text-line:nth-child(3) > * {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.7s;
}

/* Swiper navigation */
.fp-hero-swiper .swiper-pagination-bullet {
    background: var(--heading-color);
    background-clip: content-box;
    opacity: 0.3;
    width: 12px;
    height: 12px;
    padding: 0;
    margin: 0 4px;
    box-sizing: content-box;
    border: 6px solid transparent;
}
.fp-hero-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    background-clip: content-box;
    opacity: 1;
}
/* Hero arrows — same style as pricing arrows */
.fp-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.fp-hero-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(66, 110, 240, 0.15);
}
.fp-hero-arrow svg {
    width: 20px;
    height: 20px;
}
.fp-hero-arrow-prev {
    left: 20px;
}
.fp-hero-arrow-next {
    right: 20px;
}


/* ==========================================================
   2. FEATURES — Why Us card style
   ========================================================== */
.fp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.fp-feature-card {
    background: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fp-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.fp-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}
.fp-feature-icon svg {
    width: 48px;
    height: 48px;
}
.fp-feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--heading-color);
}
.fp-feature-desc {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* ==========================================================
   3. PRICING — Slider
   ========================================================== */
.fp-pricing-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.fp-pricing-track {
    display: flex;
    gap: 30px;
    overflow: hidden;
    scroll-behavior: smooth;
    flex: 1;
    min-width: 0;
}
.fp-pricing-track .scrm-pcard {
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fp-pricing-track .scrm-pcard:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Slider arrows */
.fp-pricing-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.fp-pricing-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(66, 110, 240, 0.15);
}
.fp-pricing-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.fp-pricing-more {
    text-align: center;
    margin-top: 30px;
}

/* ==========================================================
   4. PORTFOLIO — Swiper slider
   ========================================================== */
.fp-portfolio-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}
.fp-portfolio-slider {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.fp-portfolio-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--surface-color, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--heading-color);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.fp-portfolio-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.fp-portfolio-arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}
.fp-portfolio-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.fp-portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.fp-portfolio-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #eee;
    overflow: hidden;
}
.fp-portfolio-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.fp-portfolio-card:hover .fp-portfolio-thumb img {
    transform: scale(1.05);
}
.fp-portfolio-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
}
/* Overlay deskripsi — muncul saat hover */
.fp-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fp-portfolio-overlay p {
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.65;
    text-align: center;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-portfolio-card:hover .fp-portfolio-overlay {
    opacity: 1;
}
.fp-portfolio-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.fp-portfolio-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

/* Portfolio nav header — pagination + mobile arrows */
.fp-portfolio-nav-header {
    margin-top: 16px;
}
.fp-portfolio-arrows-mobile {
    display: none;
}
.fp-portfolio-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.fp-portfolio-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    padding: 0;
    margin: 0 4px;
    box-sizing: content-box;
    border: 6px solid transparent;
    background: var(--border-color);
    background-clip: content-box;
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fp-portfolio-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
    background-clip: content-box;
    width: 24px;
    border-radius: 4px;
}

/* Portfolio mobile — arrows replace pagination */
@media (max-width: 768px) {
    .fp-portfolio-pagination {
        display: none;
    }
    .fp-portfolio-arrows-mobile {
        display: flex;
        justify-content: center;
        gap: 12px;
    }
    .fp-portfolio-arrows-mobile .fp-portfolio-arrow {
        width: 32px;
        height: 32px;
    }
    .fp-portfolio-slider-wrap > .fp-portfolio-arrow {
        display: none;
    }
}

/* Card equal height */
.fp-portfolio-slider .swiper-slide {
    height: auto;
}
.fp-portfolio-card {
    display: flex;
    flex-direction: column;
}
.fp-portfolio-content {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-portfolio-content h3 {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ==========================================================
   5. TESTIMONIALS — Clean cards
   ========================================================== */
.fp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.fp-testimonial-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.fp-testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.fp-testimonial-quote {
    font-size: 3rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.fp-testimonial-text {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
}
.fp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fp-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    flex-shrink: 0;
}
.fp-testimonial-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}
.fp-testimonial-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================
   6. FAQ — Accordion
   ========================================================== */
.fp-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fp-faq-item {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fp-faq-item:hover {
    box-shadow: var(--shadow-lg);
}
.fp-faq-item.active {
    box-shadow: 0 4px 20px rgba(66, 110, 240, 0.12);
}
.fp-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--body-font);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--heading-color);
    transition: color 0.3s ease;
}
.fp-faq-item.active .fp-faq-question {
    color: var(--primary-color);
}
.fp-faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.4s ease, color 0.3s ease;
}
.fp-faq-icon svg {
    width: 100%;
    height: 100%;
}
.fp-faq-item.active .fp-faq-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}
.fp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.fp-faq-answer-inner {
    padding: 0 24px 18px;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* ==========================================================
   7. CLIENT LOGOS
   ========================================================== */
.fp-clients {
    padding: 60px 0;
}
.fp-clients .fp-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
    text-align: center;
}
.fp-clients-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 60px;
}
.fp-client-item {
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.5;
}
.fp-client-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
.fp-client-item img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================
   8. CTA — Blue bg, yellow button
   ========================================================== */
.fp-cta {
    background: var(--primary-color);
    color: #ffffff;
    text-align: center;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-cta-content {
    max-width: 600px;
    margin: 0 auto;
}
.fp-cta-title {
    font-size: clamp(1.9rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}
.fp-cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.fp-cta .btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ==========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================== */
.fp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fp-reveal-up {
    transform: translateY(30px);
}
.fp-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* --- Tablet (<=1024px) --- */
@media (max-width: 1024px) {
    .fp-section {
        padding: 80px 0;
    }
    .fp-section-header {
        margin-bottom: 40px;
    }

    /* Pricing slider — 2 visible */
    .fp-pricing-track .scrm-pcard {
        flex: 0 0 calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }

    /* Grids */
    .fp-features-grid,
    .fp-testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* --- Mobile (<=768px) --- */
@media (max-width: 768px) {
    .fp-section {
        padding: 60px 0;
    }
    .fp-section-header {
        margin-bottom: 30px;
    }

    /* Hero — stack vertically */
    .fp-hero-slide {
        grid-template-columns: 1fr;
    }
    .fp-hero-img {
        order: 1 !important;
        height: 50vh;
    }
    .fp-hero-text {
        order: 2 !important;
        height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 5vw;
    }
    .fp-hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .fp-hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    .fp-hero-buttons .btn {
        width: 100%;
    }
    .fp-hero-arrow {
        display: none;
    }

    /* Grids — single column */
    .fp-features-grid,
    .fp-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Pricing — stack */
    .fp-pricing-arrow {
        display: none;
    }
    .fp-pricing-track {
        flex-direction: column;
        overflow: visible;
    }
    .fp-pricing-track .scrm-pcard {
        flex: 1;
        max-width: none;
    }

    /* FAQ */
    .fp-faq-question {
        font-size: 0.875rem;
        padding: 14px 18px;
    }
    .fp-faq-answer-inner {
        padding: 0 18px 14px;
        font-size: 0.8125rem;
    }

    /* Clients */
    .fp-clients-grid {
        gap: 24px 32px;
    }
    .fp-client-item img {
        max-height: 28px;
    }

    /* CTA */
    .fp-cta {
        min-height: auto;
        padding: 60px 0;
    }
    .fp-cta .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* --- Small mobile (<=480px) --- */
@media (max-width: 480px) {
    .fp-hero-text h1,
    .fp-hero-text h2,
    .fp-hero-text h3 {
        font-size: 1.5rem;
    }
    .fp-hero-text p {
        font-size: 0.875rem;
    }
    .fp-feature-card,
    .fp-testimonial-card {
        padding: 24px 20px;
    }
}
