/* ====================================================
   LAYANAN DETAIL UNIFIED CENTERED STYLESHEET (layanan-detail.css)
   PT. Mitra Cerdas Nusantara
   ==================================================== */

/* ---------- 1. Page Base & Container Center ---------- */
.layanan-page {
    background-color: #f9fafb;
    color: #111827;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.layanan-container {
    width: 100%;
    max-width: var(--site-max-width, 1520px);
    margin: 0 auto;
    padding: 0 var(--site-gutter, clamp(1.25rem, 3.5vw, 4rem));
    box-sizing: border-box;
}

.layanan-section {
    padding: clamp(45px, 5vw, 70px) 0;
    text-align: center;
}

.layanan-section-white {
    background-color: #ffffff;
}

.layanan-section-gray {
    background-color: #f4f5f7;
}

/* ---------- 2. Centered Headings ---------- */
.layanan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 1.25rem;
    background-color: rgba(216, 18, 81, 0.08);
    border: 1px solid rgba(216, 18, 81, 0.2);
    color: #D81251;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.layanan-title-center {
    font-size: 2.15rem;
    font-weight: 800;
    color: #111827;
    text-align: center;
    line-height: 1.25;
    margin: 0 auto 1rem;
    max-width: 1000px;
    letter-spacing: -0.02em;
}

.layanan-title-center .highlight-accent {
    color: #D81251;
}

.layanan-desc-center {
    font-size: 1.125rem;
    color: #4b5563;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

/* ---------- 3. Centered Hero Section ---------- */
.layanan-hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f4f5f7 100%);
    padding: 50px 0 70px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.layanan-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    max-width: 820px;
}

.layanan-hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-layanan-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2.25rem;
    background-color: #D81251;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.btn-layanan-primary:hover {
    background-color: #b50e42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.btn-layanan-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background-color: #ffffff;
    color: #111827;
    font-weight: 700;
    font-size: 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-layanan-secondary:hover {
    border-color: #D81251;
    color: #D81251;
    transform: translateY(-2px);
}

/* ---------- 4. Centered Grid Cards ---------- */
.layanan-grid-centered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.75rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 2rem;
}

/* 5 Cards Layout (3 Top Row, 2 Bottom Row Centered) */
.layanan-why-5-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    margin-top: 2rem;
}

.layanan-why-5-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 780px;
    margin: 1.75rem auto 0;
}

@media (max-width: 992px) {
    .layanan-why-5-top,
    .layanan-why-5-bottom {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .layanan-why-5-top,
    .layanan-why-5-bottom {
        grid-template-columns: 1fr;
    }
}

/* ---------- 4 Cards Layout for "Kenapa Harus Custom Software" ---------- */
.layanan-why-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 2.5rem auto 0;
}

.layanan-why-grid-4 .layanan-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

.layanan-why-grid-4 .layanan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(216, 18, 81, 0.3);
}

.layanan-why-grid-4 .layanan-card-icon {
    width: 54px;
    height: 54px;
    background-color: rgba(216, 18, 81, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D81251;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.layanan-why-grid-4 .layanan-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    text-align: left;
}

.layanan-why-grid-4 .layanan-card-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

@media (max-width: 1024px) {
    .layanan-why-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .layanan-why-grid-4 {
        grid-template-columns: 1fr;
    }

    .layanan-why-grid-4 .layanan-card {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
    }

    .layanan-why-grid-4 .layanan-card-icon {
        margin-bottom: 0;
        width: 46px;
        height: 46px;
    }
}

/* ---------- 4b. 2x2 & 3 Column Grid Layout for "Jenis Services / Sektor" ---------- */
.layanan-jenis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
    text-align: left;
}

.layanan-jenis-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
    text-align: left;
}

.layanan-jenis-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 2.25rem 2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.layanan-jenis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(216, 18, 81, 0.3);
}

.layanan-jenis-icon {
    width: 58px;
    height: 58px;
    background-color: rgba(216, 18, 81, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D81251;
    margin-bottom: 1.25rem;
}

.layanan-jenis-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.layanan-jenis-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.layanan-jenis-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.layanan-jenis-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.925rem;
    color: #374151;
    line-height: 1.5;
}

.layanan-jenis-item svg {
    color: #D81251;
    flex-shrink: 0;
    margin-top: 3px;
}

@media (max-width: 1024px) {
    .layanan-jenis-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .layanan-jenis-grid {
        grid-template-columns: 1fr;
    }
}

.layanan-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.layanan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(216, 18, 81, 0.3);
}

.layanan-card-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(216, 18, 81, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #D81251;
}

.layanan-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    text-align: center;
}

.layanan-card-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
    text-align: center;
    margin-bottom: 1.25rem;
}

.layanan-card-list {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    width: 100%;
}

.layanan-card-list-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.layanan-card-list-item svg {
    color: #D81251;
    flex-shrink: 0;
}

/* ---------- 5. Centered Feature Showcase Box ---------- */
.layanan-showcase-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    margin-top: 2rem;
}

.layanan-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

.layanan-showcase-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.layanan-showcase-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(216, 18, 81, 0.08);
    color: #D81251;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.layanan-showcase-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}

.layanan-showcase-desc {
    font-size: 0.925rem;
    color: #4b5563;
    line-height: 1.55;
}

/* ---------- 6. FAQ Accordion Single-Open Component ---------- */
.layanan-faq-wrapper {
    max-width: 820px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.active {
    border-color: rgba(216, 18, 81, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq-trigger {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    text-align: left;
}

.faq-trigger:hover {
    color: #D81251;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #D81251;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding: 0 1.5rem 1.25rem;
}

/* ---------- 7. Centered Banner CTA Akhir ---------- */
.layanan-cta-banner {
    background: linear-gradient(135deg, #D81251 0%, #a80a3c 100%);
    color: #ffffff;
    text-align: center;
    padding: 70px 0;
}

.layanan-cta-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.layanan-cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 620px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* ---------- 8. Responsive Breakpoints ---------- */
@media (max-width: 768px) {
    .layanan-title-center {
        font-size: 1.95rem;
    }

    .layanan-cta-title {
        font-size: 1.85rem;
    }

    .layanan-showcase-box {
        padding: 1.75rem;
    }

    .layanan-hero-section {
        padding: 40px 0 50px;
    }

    .faq-trigger {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }
}

/* ---------- 9. Digital Tabs Component (Matching Screenshot Layout) ---------- */
.digital-tabs-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem;
    margin-bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .digital-tabs-header {
        justify-content: flex-start;
    }
}

.digital-tabs-header::-webkit-scrollbar {
    display: none;
}

.digital-tab-btn {
    padding: 0.85rem 1.85rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    border: 1.5px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.digital-tab-btn:hover {
    border-color: #D81251;
    color: #D81251;
    transform: translateY(-2px);
}

.digital-tab-btn.active {
    background-color: #D81251;
    color: #ffffff;
    border-color: #D81251;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.digital-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.digital-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.075rem;
    color: #374151;
    font-weight: 500;
}

.digital-bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .layanan-container {
        padding: 0 1.25rem;
    }

    .digital-tabs-header {
        gap: 0.75rem;
    }

    .digital-tab-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .digital-feature-item {
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    #digitalTabPane {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #digitalTabPane .website-tab-visual {
        order: 1 !important;
    }

    #digitalTabPane .website-tab-details {
        order: 2 !important;
    }
}

/* ====================================================
   10. SCROLL REVEAL & INTERACTIVE ANIMATIONS
   ==================================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays for Grid Cards */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }
.reveal-delay-5 { transition-delay: 0.48s; }
.reveal-delay-6 { transition-delay: 0.58s; }

/* Subtle floating animation for Hero Mockup image */
@keyframes heroFloatAnim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.website-hero-img-wrapper img {
    animation: heroFloatAnim 5s ease-in-out infinite;
}

/* Accessibility: Support for users with prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .website-hero-img-wrapper img {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

