/* ============================================
   CUSTOM.CSS — CSS TAMBAHAN
   Design System: Navy + Gold | Plus Jakarta Sans + Inter
   ============================================ */

/* ——— RESET & BASE ——— */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary:   #1A3A5C;
    --secondary: #C8A96E;
    --accent:    #E8F4FD;
    --dark:      #0D1F33;
    --light:     #F8FAFC;
    --gray:      #64748B;
    --border:    #E2E8F0;
    --white:     #FFFFFF;

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body:    'Inter', sans-serif;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;

    --shadow-card: 0 1px 3px rgba(13,31,51,.06), 0 1px 2px -1px rgba(13,31,51,.04);
    --shadow-card-hover: 0 8px 24px -4px rgba(13,31,51,.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ——— TYPOGRAPHY ——— */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.25;
    color: var(--dark);
}

p { max-width: 72ch; }
p.wide { max-width: none; }

/* ——— NAVBAR ——— */
#site-header.scrolled {
    box-shadow: 0 2px 16px rgba(13,31,51,.10) !important;
}

/* Hamburger animation */
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ——— BUTTONS ——— */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.375rem;
    background-color: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { background-color: var(--dark); box-shadow: 0 4px 12px rgba(13,31,51,.2); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.375rem;
    background-color: transparent;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.btn-secondary:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.375rem;
    background-color: var(--secondary);
    color: var(--dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color .2s ease;
}
.btn-gold:hover { background-color: #b89558; }

/* ——— CARDS ——— */
/* Card dengan border-left gold — signature look */
.card-gold {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s ease, transform .25s ease;
}
.card-gold:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

/* Standard card */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

/* ——— SECTION HELPERS ——— */
.section-py { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 1024px) {
    .section-py { padding-top: 6rem; padding-bottom: 6rem; }
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.625rem;
}

.gold-rule {
    display: block;
    width: 2.5rem;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
    margin-top: 1rem;
}

/* ——— DIVIDER ——— */
.divider-gold {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
    margin: 0;
    opacity: 0.4;
}

/* ——— SLIDESHOW / HERO ——— */
.slideshow-container { position: relative; overflow: hidden; }

/* Hero slideshow height — responsif PC & mobile */
#hero-slideshow {
    /* Mobile: aspect ratio 16:9 agar gambar tidak terpotong */
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    position: relative;
}
@media (min-width: 640px) {
    #hero-slideshow {
        height: clamp(380px, 50vw, 560px);
        padding-bottom: 0;
    }
}
@media (min-width: 1024px) {
    #hero-slideshow {
        height: clamp(480px, 55vh, 680px);
        padding-bottom: 0;
    }
}

/* Slide: hidden by default, visible when .active */
.slide {
    display: none;
    position: absolute;
    inset: 0;
}
.slide.active {
    display: block;
}
.slide.fade {
    animation: fadeSlide .6s ease-in-out;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 1; transform: scale(1); }
}

/* Pastikan gambar dalam slide mengisi penuh dan tidak terpotong */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
@media (min-width: 640px) {
    .slide img { object-position: center top; }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(13,31,51,.75) 0%,
        rgba(13,31,51,.40) 55%,
        rgba(13,31,51,.15) 100%
    );
}

/* Slideshow dots */
.slide-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .25s ease;
}
.slide-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--secondary);
}

/* ——— CONTAINER RENDERER ——— */
/* image_text layouts */
.container-img-left  { }
.container-img-right .img-col  { order: 2; }
.container-img-right .text-col { order: 1; }

/* ——— GALLERY LIGHTBOX ——— */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13,31,51,.95);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* ——— FAQ ACCORDION ——— */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-content { max-height: 600px; }
.faq-icon { transition: transform .3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ——— FORM STYLES ——— */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--dark);
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #94A3B8; }
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.375rem;
}

/* ——— SCROLL REVEAL ——— */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ——— PAGINATION ——— */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem; height: 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray);
    border: 1px solid var(--border);
    transition: all .2s ease;
    text-decoration: none;
}
.page-link:hover, .page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ——— BADGE ——— */
.badge {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--accent);
    color: var(--primary);
}
.badge-gold {
    background: rgba(200,169,110,.15);
    color: #96731F;
}
.badge-success {
    background: rgba(5,150,105,.1);
    color: #059669;
}

/* ——— STAT CARD ——— */
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* ——— RESPONSIVE HELPERS ——— */
@media (max-width: 640px) {
    .section-py { padding-top: 3rem; padding-bottom: 3rem; }
}

/* ——— PRINT ——— */
@media print {
    #site-header, footer { display: none; }
    .section-py { padding: 1rem 0; }
}

/* ——— REDUCED MOTION ——— */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
