/* ============================================
   PT. Mitra Famili Sejahtera - app.css
   Taruh di: public/css/app.css
   ============================================ */

* {
    font-family: 'Poppins', sans-serif;
}

:root {
    /* =============================================
       PALET WARNA — Opsi 1: Navy + Merah + Gold
       Ganti nilai di sini, seluruh website ikut!
       ============================================= */

    /* Primary — Navy */
    --primary:          #1a2a4a;
    --primary-light:    #2d4a7a;
    --primary-dark:     #0f1e36;
    --primary-text:     #ffffff;

    /* Secondary — Merah */
    --secondary:        #c0392b;
    --secondary-light:  #e74c3c;
    --secondary-dark:   #962d22;
    --secondary-text:   #ffffff;

    /* Accent — Gold (dari logo) */
    --accent:           #f5c518;
    --accent-light:     #fad44a;
    --accent-dark:      #c9a010;
    --accent-text:      #3a2800;

    /* Neutral */
    --dark:             #111827;
    --gray-light:       #f0f4f8;
    --gray-mid:         #e5e7eb;
    --white:            #ffffff;

    /* Surface khusus */
    --card-dark:        #1e3460;
    --section-dark:     #1a1a2e;
    --cta-gradient:     linear-gradient(135deg, #1a2a4a 0%, #2d4a7a 100%);
    --wa-green:         #25d366;
}

html {
    scroll-behavior: smooth;
}

/* TOP BAR */
.topbar {
    background: var(--primary);
}

/* NAVBAR */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--primary);
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--secondary);
    z-index: 50;
}

.dropdown a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--primary);
    transition: background 0.2s;
}

.dropdown a:hover {
    background: var(--gray-light);
    color: var(--secondary);
}

.has-dropdown:hover .dropdown {
    display: block;
}

/* HERO / VIDEOTRON */
.hero-slider {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 42, 74, 0.85) 40%, rgba(26, 42, 74, 0.3));
}

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

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.slider-btn {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--secondary);
    transform: scale(1.3);
}

/* SECTION TITLES */
.section-subtitle {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.title-bar {
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin-top: 12px;
}

/* CARDS */
.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.service-card .card-img {
    height: 220px;
    overflow: hidden;
}

.service-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* SERVICES CARD */
.svc-outer {
    position: relative;
    padding-top: 100px;
}

.svc-photo {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.svc-photo-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-dotcard {
    background: var(--white);
    border: 2px dashed var(--gray-mid);
    border-radius: 16px;
    padding: 120px 22px 28px;
    position: relative;
    z-index: 1;
}

.svc-dotcard h3 {
    font-weight: 700;
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 10px;
}

.svc-dotcard p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 22px;
}

.svc-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-readmore {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 28px;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.2s;
    line-height: 1.4;
    text-transform: uppercase;
}

.btn-readmore:hover {
    background: var(--secondary);
}

.btn-readmore .arr {
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 2px;
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-wa:hover {
    color: var(--wa-green);
}

.wa-circle {
    width: 42px;
    height: 42px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-wa:hover .wa-circle {
    background: var(--wa-green);
}

/* PRODUCTS CARD */
.prod-outer {
    position: relative;
    padding-top: 100px;
}

.prod-photo {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.prod-photo-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-dotcard {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 120px 22px 28px;
    position: relative;
    z-index: 1;
}

.prod-dotcard h3 {
    font-weight: 700;
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 10px;
}

.prod-dotcard p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 22px;
}

.prod-dotcard .prod-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-readmore-dark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 28px;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.2s;
    line-height: 1.4;
    text-transform: uppercase;
}

.btn-readmore-dark:hover {
    background: var(--secondary-light);
}

.btn-readmore-dark .arr {
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 2px;
}

.btn-wa-dark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-wa-dark:hover {
    color: var(--wa-green);
}

.wa-circle-dark {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-wa-dark:hover .wa-circle-dark {
    background: var(--wa-green);
}

/* CTA BANNER */
.cta-banner {
    background: var(--cta-gradient);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.15);
}

/* VIDEO CTA */
.vcta-section {
    background: var(--white);
    padding: 40px 0 0 0;
}

.vcta-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    height: 460px;
}

.vcta-photo {
    position: absolute;
    top: 0;
    left: 40px;
    width: 480px;
    height: 360px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 1;
    background: linear-gradient(160deg, #232d1a 0%, #2e3d20 40%, #3a4d2a 100%);
}

.vcta-photo-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vcta-panel {
    position: absolute;
    top: 180px;
    left: 440px;
    width: calc(100% - 440px);
    max-width: 650px;
    background: var(--primary);
    border-radius: 0 16px 16px 0;
    padding: 40px 60px 40px 40px;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}


@media (max-width: 1100px) {
    .vcta-panel {
        left: 360px;
        width: calc(100% - 360px);
        padding: 32px;
    }
}
@media (max-width: 900px) {
    .vcta-inner {
        height: auto;
        padding: 0;
    }
    .vcta-photo {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 260px;
        border-radius: 10px 10px 0 0;
    }
    .vcta-panel {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 0 10px 10px;
        padding: 32px 24px;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .vcta-panel {
        padding: 24px 16px;
    }
}

/* VIDEO GALLERY */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media(max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* BLOG */
.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
}

/* FOOTER */
footer {
    background: var(--primary);
}

/* WHATSAPP FLOAT */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
}

.wa-float a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--wa-green);
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s;
}

.wa-float a:hover {
    transform: scale(1.05);
}

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up  { animation: fadeUp 0.7s ease forwards; }
.delay-1  { animation-delay: 0.2s; opacity: 0; }
.delay-2  { animation-delay: 0.4s; opacity: 0; }
.delay-3  { animation-delay: 0.6s; opacity: 0; }

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
