/* ==========================================================================
   SANGGAR NAMPANI - PREMIUM CORE STYLESHEET
   ========================================================================== */

/* Import Google Fonts - Playfair untuk Judul Klasik/Kultural, Inter untuk Keterbacaan */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --primary: #851313;       /* Deep Crimson / Maroon Sanggar */
    --primary-dark: #5c0b0b;  /* Maroon Gelap */
    --accent: #d4af37;        /* Elegant Gold */
    --accent-hover: #bda030;  /* Gold Redup */
    --dark: #121212;          /* Charcoal Black */
    --light: #fdfbf7;         /* Off-White / Cream Lembut */
    --gray-light: #f4f4f4;    /* Abu-abu Terang */
    --text-dark: #2c2c2c;     /* Warna Teks Utama */
    --text-muted: #757575;    /* Warna Teks Sekunder */
    
    /* Typography & Spacing */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 20px rgba(133, 19, 19, 0.08);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   NAVIGATION BAR (TRANSPARENT TO SOLID)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    background: transparent;
}

/* Kondisi saat di-scroll (Solid Dark) */
.navbar.scrolled {
    background: rgba(18, 18, 18, 0.98); 
    backdrop-filter: blur(10px);
    padding: 15px 8%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.logo h2 {
    font-size: 24px;
    color: #ffffff; 
    transition: var(--transition-smooth);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); 
}

.navbar.scrolled .logo h2 {
    text-shadow: none;
}

.logo span {
    color: var(--accent); 
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

/* Teks Menu: Dibuat putih + shadow agar tidak tenggelam di gambar */
.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff; 
    text-shadow: 0 2px 6px rgba(0,0,0,0.8); 
    position: relative;
    padding: 5px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled .nav-link {
    text-shadow: none; 
    color: #ffffff;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

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

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

/* ==========================================================================
   MOBILE MENU TOGGLE (HAMBURGER) & RESPONSIVE
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff; 
    border-radius: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.navbar.scrolled .menu-toggle .bar {
    box-shadow: none;
}

/* ==========================================================================
   NATIVE HERO SLIDER SYSTEM
   ========================================================================== */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--dark);
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0 8%;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    max-width: 750px;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, opacity 0.8s ease 0.2s;
    opacity: 0;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-badge-top {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 56px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-dynamic-title {
    font-size: 42px;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.slide-desc {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 35px;
    color: rgba(255,255,255,0.9);
}

/* Slider Buttons Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* Slider Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

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

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Premium Buttons */
.btn-premium {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(133, 19, 19, 0.3);
}

.btn-premium:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

/* Section Components */
.section-padding {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 38px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '✦';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 18px;
}

/* Cards Grid */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.premium-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.premium-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.card-info {
    padding: 25px;
}

.card-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.premium-card:hover .card-info h3 {
    color: var(--primary);
}

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

/* Premium Footer */
.premium-footer {
    background-color: var(--dark);
    color: var(--light);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8% 60px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-links h3, .footer-contact h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background-color: #0d0d0d;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Responsive UI */
@media (max-width: 992px) {
    .navbar { padding: 20px 5%; }
    .navbar.scrolled { padding: 15px 5%; }
    .hero-content h1 { font-size: 42px; }
    .slide-dynamic-title { font-size: 34px; }
    .section-padding { padding: 70px 5%; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .slider-btn { display: none; } /* Sembunyikan panah di hp, geser pakai dots */
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 18px; text-shadow: none; }

    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-links h3::after, .footer-contact h3::after { left: 50%; transform: translateX(-50%); }
    .footer-contact li { justify-content: center; }
}

/* Modal Overlay */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0; transition: 0.3s; z-index: 2000;
}
.modal:target { visibility: visible; opacity: 1; }

.modal-content {
    background: #fff; padding: 40px; border-radius: 8px; width: 90%; max-width: 500px;
    position: relative;
}
.close-modal {
    position: absolute; top: 20px; right: 20px; font-size: 24px; color: var(--dark);
}

@media (max-width: 768px) {
    .event-grid-container { grid-template-columns: 1fr !important; }
}