/* ============================================================
   BALI SUNDAY — Luxury Travel Redesign
   Aesthetic: Refined Tropical Elegance
   Fonts: Cormorant Garamond (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
    --navy:      #0b1724;
    --navy-mid:  #162236;
    --gold:      #c9a84c;
    --gold-light:#e2c97e;
    --sand:      #f5f0e8;
    --warm-white:#fefcf8;
    --text-dark: #1c1810;
    --text-muted:#8a7f6e;
    --radius:    12px;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    background-color: var(--warm-white);
    color: var(--text-dark);
    padding-top: 80px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── SCROLL BAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: rgba(11, 23, 36, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    padding: 0.85rem 0;
    transition: background var(--transition);
}

.navbar-brand img {
    max-height: 52px;
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.3));
    transition: filter var(--transition);
}
.navbar-brand img:hover { filter: drop-shadow(0 0 14px rgba(201,168,76,0.6)); }

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 1px;
    background: var(--gold);
    transition: left var(--transition), right var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gold-light);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    left: 1rem;
    right: 1rem;
}

/* GTranslate */
.gtranslate_wrapper select {
    background-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 6px;
    padding: 6px 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    transition: border-color var(--transition);
}
.gtranslate_wrapper select:hover { border-color: var(--gold); }

/* Fix: option text harus gelap agar terbaca di background putih */
.gtranslate_wrapper select option {
    background-color: #ffffff;
    color: #1c1810;
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
    .navbar .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-toggler {
        border: 1px solid rgba(201,168,76,0.4);
        border-radius: 6px;
        padding: 6px 10px;
    }
    .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(201,168,76,0.25); }

    .navbar-collapse {
        flex-basis: 100%;
        background: rgba(11, 23, 36, 0.98);
        border-top: 1px solid rgba(201,168,76,0.15);
        padding: 1rem 0;
        margin-top: 8px;
    }

    .gtranslate_wrapper {
        margin-top: 1rem;
        padding: 0 1rem;
        width: 100%;
    }
    .gtranslate_wrapper select { width: 100%; }
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
#heroCarousel {
    height: calc(100vh - 80px);
    overflow: hidden;
}

.carousel { height: 100% !important; }
.carousel-inner { height: 100%; }
.carousel-item { height: 100%; }

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(45%) saturate(1.2);
    transform: scale(1.03);
    transition: transform 6s ease-out, filter 1s ease;
}

.carousel-item.active img { transform: scale(1); }

/* Gradient overlay */
#heroCarousel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11,23,36,0.1) 0%,
        rgba(11,23,36,0.05) 40%,
        rgba(11,23,36,0.6) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    z-index: 2;
    text-align: center;
}

.carousel-caption h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    color: #fff;
}

.carousel-caption p {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Gold line decoration above caption */
.carousel-caption::before {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1.2rem;
    opacity: 0.85;
}

/* Carousel indicators */
.carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    border: none;
    margin: 0 4px;
    transition: all 0.3s;
}
.carousel-indicators .active {
    background-color: var(--gold);
    transform: scale(1.4);
}

/* Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
    margin: 0 1.5rem;
}
#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next { opacity: 1; }
.carousel-control-prev:hover,
.carousel-control-next:hover { background: rgba(201,168,76,0.25); border-color: var(--gold); }

@media (max-width: 767px) {
    #heroCarousel { height: 65vh; }
}

/* ============================================================
   SECTION TITLES — Shared
   ============================================================ */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
}

.lead.text-muted {
    font-size: 1rem;
    color: var(--text-muted) !important;
    font-weight: 300;
}

/* Gold rule divider */
.gold-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 0;
}

/* ============================================================
   SERVICES / PACKAGES SECTION
   ============================================================ */
.services-section {
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.card {
    border: none !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06) !important;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.12) !important;
}

.card-img-top {
    height: 210px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-top { transform: scale(1.06); }

.card-body {
    padding: 1.5rem 1.25rem;
    border-top: 2px solid transparent;
    transition: border-color var(--transition);
}
.card:hover .card-body { border-top-color: var(--gold); }

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--navy);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
a.btn-primary {
    background: linear-gradient(135deg, var(--gold), #b8913a) !important;
    border: none !important;
    border-radius: 50px !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 1.5rem;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(201,168,76,0.35);
    transition: all var(--transition) !important;
}

.btn-primary:hover,
a.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
    box-shadow: 0 8px 24px rgba(201,168,76,0.5) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-section {
    background: var(--navy);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.process-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.process-section .section-title { color: #fff; }
.process-section .lead.text-muted { color: rgba(255,255,255,0.5) !important; }

.process-step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--gold-light);
    margin-bottom: 0.6rem;
}

.process-section p {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
}

/* Step number indicator */
.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 1.2rem;
    background: rgba(201,168,76,0.06);
}

/* ============================================================
   TESTIMONIAL GALLERY
   ============================================================ */
.testimonial-gallery {
    padding: 6rem 0;
    background: var(--sand);
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    height: 280px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,23,36,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

/* ============================================================
   CTA / WHATSAPP SECTION
   ============================================================ */
.cta-section {
    background: var(--warm-white);
    padding: 6rem 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--text-dark);
}

.whatsapp-button {
    display: inline-block;
    background: #25D366;
    color: white !important;
    padding: 14px 28px;
    border-radius: 60px;
    text-decoration: none !important;
    font-weight: 500;
    transition: all var(--transition);
    box-shadow: 0 8px 30px rgba(37,211,102,0.35);
    border: none;
}

.whatsapp-button:hover {
    background: #1ebe5b;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(37,211,102,0.45);
    color: white !important;
}

.whatsapp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    object-fit: cover;
}

.whatsapp-title  { font-weight: 600; font-size: 0.95rem; }
.whatsapp-status { font-size: 0.75rem; opacity: 0.85; }
.whatsapp-service { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    padding: 5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
}

.footer-heading {
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.site-footer p { line-height: 1.8; font-size: 0.9rem; }

.site-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.9rem;
}

.site-footer a:hover { color: var(--gold-light); }

.site-footer ul li { margin-bottom: 0.5rem; }

.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-right: 8px;
    transition: all var(--transition);
    text-decoration: none !important;
}

.social-icons .social-icon:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201,168,76,0.35);
}

.copyright-text {
    margin-top: 3.5rem;
    font-size: 0.82rem;
    opacity: 0.45;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    letter-spacing: 0.04em;
}

/* ============================================================
   PACKAGE DETAIL PAGE
   ============================================================ */
.package-header {
    padding: 7rem 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-align: center;
}

.package-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11,23,36,0.3),
        rgba(11,23,36,0.65)
    );
}

.package-header .container { position: relative; z-index: 2; }

.package-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.itinerary-list { list-style: none; padding-left: 0; }
.itinerary-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.95rem;
}
.itinerary-list li:last-child { border-bottom: none; }

.price-card {
    background: var(--sand);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(201,168,76,0.2);
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.price-label { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0; }
.price-amount { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 600; color: var(--navy); }
.price-per { font-size: 0.9rem; color: var(--text-muted); }

.inclusions-list { list-style: none; padding-left: 0; margin: 1.5rem 0; }
.inclusions-list li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.inclusions-list .fa-check { color: #25a55b; margin-right: 10px; }
.inclusions-list .fa-times { color: #d94040; margin-right: 10px; }

.package-gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: opacity var(--transition), transform var(--transition);
    cursor: pointer;
}
.package-gallery-img:hover { opacity: 0.85; transform: scale(1.02); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card,
.gallery-item,
.process-step-number {
    animation: fadeUp 0.6s ease both;
}

/* Stagger card animation */
.col-lg-3:nth-child(1) .card { animation-delay: 0.05s; }
.col-lg-3:nth-child(2) .card { animation-delay: 0.15s; }
.col-lg-3:nth-child(3) .card { animation-delay: 0.25s; }
.col-lg-3:nth-child(4) .card { animation-delay: 0.35s; }

/* ============================================================
   IMAGE POPUP MODAL
   ============================================================ */
#imgPopupModal .modal-dialog {
    max-width: 92vw;
}

#imgPopupModal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#imgPopupModal .modal-backdrop,
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

#imgPopupModal #popupModalImg {
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    display: block;
    max-height: 88vh;
    width: 100%;
    object-fit: contain;
}

/* Close (×) button */
.modal-close-btn {
    position: absolute;
    top: -48px;
    right: 0;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    backdrop-filter: blur(8px);
}

.modal-close-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 767px) {
    #imgPopupModal .modal-dialog { max-width: 98vw; }
    .modal-close-btn { top: -44px; right: 4px; }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 767px) {
    .services-section { padding-top: 4rem; padding-bottom: 3rem; }
    .process-section,
    .testimonial-gallery,
    .cta-section { padding: 4rem 0; }
    .gallery-item { height: 220px; }
    .price-card { position: static; }
}