/* ── ROOT VARIABLES ── */
:root {
    --cream:       #f5f0e6;
    --cream-dark:  #ebe5d5;
    --green-dark:  #1e3a1e;
    --green-mid:   #2d5a27;
    --green-light: #5a9a4a;
    --gold:        #c8860a;
    --text-dark:   #1a2410;
    --text-muted:  #6b7060;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    overscroll-behavior: none;
    touch-action: pan-y; /* izinkan scroll vertikal, blokir pinch-zoom & pan horizontal */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    overscroll-behavior: none;
    overflow-x: clip;
    max-width: 100vw;
    touch-action: pan-y;
}

h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Playfair Display', serif;
}

/* ── NAVBAR ── */
#mainNav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    padding: 0.9rem 0;
    transition: all 0.3s ease;
}
#mainNav.scrolled {
    background: rgba(245,240,230,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
#mainNav .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #fff !important;
    font-weight: 700;
    transition: color 0.3s;
}
#mainNav.scrolled .navbar-brand {
    color: var(--green-dark) !important;
}
#mainNav .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem !important;
    transition: color 0.2s;
}
#mainNav.scrolled .nav-link {
    color: var(--text-dark) !important;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--green-mid) !important; }
#mainNav.scrolled .nav-link:hover,
#mainNav.scrolled .nav-link.active { color: var(--green-mid) !important; }

.btn-book {
    background: var(--green-dark);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.45rem 1.3rem !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}
.btn-book:hover { background: var(--green-mid); transform: translateY(-1px); color: #fff !important; }
.nav-link.btn-book { color: #fff !important; }
.nav-link.btn-book:hover { color: #fff !important; }

/* ── SECTION HELPERS ── */
.section-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green-light);
    font-family: 'Inter', sans-serif;
}
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--green-dark);
    line-height: 1.2;
}
.section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin: 0.5rem auto 0;
}
.section-heading.text-start::after { margin-left: 0; }

/* ── 1. HERO ── */
#home {
    position: relative;
    min-height: 100vh;
    background: url('/images/hero.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,25,10,0.35) 0%,
        rgba(10,25,10,0.5) 60%,
        rgba(10,25,10,0.65) 100%
    );
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(200,134,10,0.25);
    border: 1px solid rgba(200,134,10,0.6);
    color: #f5d27a;
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    max-width: 520px;
    margin: 1rem auto 0;
    line-height: 1.7;
}
.btn-hero-primary {
    background: var(--green-mid);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-hero-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    padding: 0.73rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(4px);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

/* ── 2. ABOUT ── */
#about { background: var(--cream); padding: 6rem 0; }
.about-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.about-img-wrap img { width: 100%; height: 460px; object-fit: cover; display: block; }
.about-stat-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--green-dark);
    color: #fff;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.about-stat-badge strong {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    display: block;
    line-height: 1;
}
.about-stat-badge span { font-size: 0.78rem; opacity: 0.8; }
.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 0.9rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.about-feature-item:hover { transform: translateX(4px); }
.about-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: var(--green-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.btn-explore {
    background: var(--green-dark);
    color: #fff;
    border-radius: 50px;
    padding: 0.55rem 1.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}
.btn-explore:hover { background: var(--green-mid); color: #fff; transform: translateY(-1px); }

/* ── 3. TOURISM PACKAGES ── */
#tourism { background: var(--cream-dark); padding: 5rem 0; }
.package-card-featured {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.package-card-featured:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.18); }
.package-card-featured img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.4s;
}
.package-card-featured:hover img { transform: scale(1.04); }
.package-card-featured .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,25,10,0.85) 0%, rgba(10,25,10,0.2) 60%, transparent 100%);
}
.package-card-featured .content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem;
    color: #fff;
}
.package-tag {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    border-radius: 50px;
    padding: 0.2rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}
.package-card-sm {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    height: calc(50% - 0.5rem);
}
.package-card-sm:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }
.package-card-sm img { width: 120px; min-width: 120px; object-fit: cover; }
.package-card-sm .info { padding: 1.1rem; display: flex; flex-direction: column; justify-content: center; }
.package-price { font-size: 0.8rem; color: var(--green-light); font-weight: 700; }

/* ── 4. EVENTS ── */
#events { background: var(--cream); padding: 5rem 0; }
.event-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.event-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.event-row:hover { transform: translateX(4px); box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.event-date-box {
    min-width: 60px;
    text-align: center;
    background: var(--green-dark);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
}
.event-date-box .eday {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1;
    display: block;
}
.event-date-box .emon {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}
.event-info { flex: 1; }
.event-info h6 {
    font-family: 'Playfair Display', serif;
    color: var(--green-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.event-info p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.event-tag {
    background: rgba(90,154,74,0.12);
    color: var(--green-mid);
    border-radius: 50px;
    padding: 0.15rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
}
.btn-join {
    background: transparent;
    color: var(--green-dark);
    border: 1.5px solid var(--green-dark);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-join:hover { background: var(--green-dark); color: #fff; }

/* ── 5. GALLERY ── */
#gallery { background: var(--cream-dark); padding: 5rem 0; }
#gallery .section-heading { color: var(--green-dark); }
.gallery-grid-2x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 0.75rem;
}
@media(max-width:768px) {
    .gallery-grid-2x3 { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(3,180px); }
}
@media(max-width:480px) {
    .gallery-grid-2x3 { grid-template-columns: 1fr; grid-template-rows: repeat(6,200px); }
}
.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(30,58,30,0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    transition: background 0.3s;
    opacity: 0;
}
.gallery-item:hover .gallery-overlay { background: rgba(30,58,30,0.45); opacity: 1; }

/* ── 6. BOOKING CTA ── */
#booking {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0d2b0d 100%);
    position: relative; overflow: hidden; padding: 6rem 0;
}
#booking::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(200,134,10,0.12) 0%, transparent 70%);
}
.booking-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}
.btn-cta-book {
    background: var(--gold); color: #fff; border: none;
    border-radius: 50px; padding: 0.9rem 2.5rem;
    font-size: 1rem; font-weight: 700;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none; display: inline-block;
}
.btn-cta-book:hover { background: #a36d08; color: #fff; transform: translateY(-2px); }
.btn-cta-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50px; padding: 0.88rem 2.5rem;
    font-size: 1rem; font-weight: 600;
    transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.75); }
.booking-feature { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.75); font-size: 0.87rem; }

/* ── 7. CONTACT ── */
#contact { background: #fff; padding: 5rem 0; }
.contact-info-card { background: var(--cream); border-radius: 16px; padding: 2rem; height: 100%; }
.contact-icon {
    width: 48px; height: 48px;
    background: var(--green-dark); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.15rem; margin-bottom: 0.65rem;
}
.map-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.1); height: 350px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.social-link {
    width: 42px; height: 42px;
    background: var(--green-dark); color: #fff;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.social-link:hover { background: var(--green-mid); color: #fff; transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--green-dark); color: rgba(255,255,255,0.75); }
footer a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--gold); }
footer .footer-heading { color: #fff; font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 1rem; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
    background: #25D366; color: #fff;
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(37,211,102,0.6); color: #fff; }
.whatsapp-float .wa-tooltip {
    position: absolute; right: 68px;
    background: #fff; color: #333;
    font-size: 0.78rem; font-weight: 600;
    padding: 0.35rem 0.75rem; border-radius: 20px;
    white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
    font-family: 'Inter', sans-serif;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ── FADE ON SCROLL ── */
.fade-up { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.no-js-fade .fade-up { opacity: 0; transform: translateY(28px); }
.fade-up.visible { opacity: 1; transform: translateY(0); }