/* ========================================
   ROOT & GLOBAL
======================================== */
:root {
    --primary: #1c1f30;
    --light: #F1F8FF;
    --dark: #0F172B;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #444;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.2), transparent);
    margin: 40px auto;
    width: 70%;
}

.container-xxl {
    padding: 0;
    margin: 0 auto;
}

/* ========================================
   SECTION & JUDUL HALAMAN
======================================== */
.section-spacing {
    padding-top: 40px;
    padding-bottom: 40px;
}

.section-title {
    margin-top: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.section-spacing:last-of-type,
.section-title:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .section-title {
        margin-top: 15px;
        margin-bottom: 20px;
        font-size: 1.5rem;
    }
}

/* ========================================
   SPINNER
======================================== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: .5s;
    z-index: 99999;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   BUTTON
======================================== */
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .3s;
}

/* ========================================
   NAVBAR PREMIUM
======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;

    background: transparent;
    border-bottom: none;
    transition: all .4s ease;
}

/* navbar saat scroll */
.navbar.scrolled {
    background: rgba(28,31,48,0.92);
}

/* menu */
.navbar-light .navbar-nav .nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #f5a623; /* warna hitam */
    text-transform: uppercase;
    letter-spacing: .5px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    position: relative;

    
}

/* hover */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #f5a623;
}

/* hover underline animation */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: #f5a623;
    transition: width .3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* logo */
.navbar-brand img {
    max-height: 50px;
    width: auto;
}

/* ========================================
   MOBILE NAVBAR
======================================== */
@media (max-width: 991px) {

    .navbar-brand img {
        max-height: 40px;
    }

    .navbar-nav {
        background: rgba(28,31,48,0.95);
        padding: 15px;
        border-radius: 10px;
    }

    .navbar-light .navbar-nav .nav-link {
        font-size: 13px;
        padding: 6px 0;
        color: #fff; /* di mobile tetap putih supaya terlihat */
        text-shadow: none; /* hilangkan strok di mobile biar jelas */
    }

}

/* ========================================
   HEADER CAROUSEL
======================================== */
.carousel-caption {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 15px 0 15px;
    z-index: 2;
}

.carousel-caption h1,
.carousel-caption h6 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

@media (min-width: 992px){
    #header-carousel .carousel-item {
        height: 75vh;
        transition: transform 1.8s ease-in-out;
    }
}

@media (max-width: 991px){
    #header-carousel .carousel-item {
        height: 55vh;
        transition: transform 1.8s ease-in-out;
    }
}

#header-carousel .carousel-item img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 30%;
    display:block;
    animation: zoomCarousel 20s ease-in-out infinite;
}

@keyframes zoomCarousel{
    0% { transform:scale(1); }
    100% { transform:scale(1.1); }
}

#header-carousel::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    background:linear-gradient(rgba(15,23,43,0.7), rgba(15,23,43,0.3));
    z-index:1;
}

/* ========================================
   HERO TEXT STYLE
======================================== */
.hero-subtitle{
    letter-spacing:4px;
    font-weight:500;
    font-size:14px;
    margin-bottom:8px;
}

.hero-title{
    font-size:clamp(28px, 5vw, 40px);
    font-weight:600;
    line-height:1.2;
    margin-bottom:12px;
    text-shadow:2px 4px 15px rgba(0,0,0,0.6);
    white-space: normal;
}

.carousel-caption .btn {
    margin: 4px;
    padding: 10px 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

/* ========================================
   GLOBAL PREMIUM CARD EFFECT
======================================== */
.room-item,
.meeting-card,
.social-card,
.service-item {
    position: relative;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1),
                box-shadow 0.4s cubic-bezier(.4,0,.2,1);
}

.room-item:hover,
.meeting-card:hover,
.social-card:hover,
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}

.room-item img,
.meetingroom-item img,
.social-card img {
    transition: transform 0.6s ease, filter 0.6s ease;
}

.room-item:hover img,
.meeting-card:hover img,
.social-card:hover img {
    transform: scale(1.12);
    filter: brightness(1.05);
}

.room-item::after,
.meeting-card::after,
.social-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.room-item:hover::after,
.meeting-card:hover::after,
.social-card:hover::after {
    opacity: 1;
}

/* ========================================
   ROOM CARD
======================================== */
.room-item {
    overflow: hidden;
}

.room-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.room-item h5 {
    font-weight: 600;
    font-size: 18px;
}

.room-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.room-item small.position-absolute {
    display: none;
}

@media (min-width: 768px) {
    .room-item img {
        height: auto;
    }
}

/* ========================================
   MEETING ROOM CARD
======================================== */
.meetingroom-item {
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.meetingroom-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.meeting-card {
    overflow: hidden;
}

.meetingroom-item .p-4 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.meetingroom-item .p-4 > .d-flex {
    margin-top: auto;
}

.meetingroom-item small.position-absolute {
    display: none;
}

/* ========================================
   SERVICE / FACILITIES
======================================== */
.service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 35px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.service-item:hover {
    background: var(--primary);
    color: #fff;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.service-item:hover .service-icon {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 10px 25px rgba(255,255,255,0.25);
}

.service-icon i {
    font-size: 28px;
    color: #f5a623;
    transition: 0.3s ease;
}

.service-item:hover i,
.service-item:hover h5,
.service-item:hover p {
    color: #fff;
}

.service-item h5 {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.service-item p {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* ========================================
   SOCIAL CARD
======================================== */
.social-card {
    background: #fff;
    overflow: hidden;
    border: 1px solid #f1f1f1;
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 80px rgba(0,0,0,0.22);
}

.social-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.7s ease;
}

.social-card:hover img {
    transform: scale(1.12) translateY(-5px);
    filter: brightness(1.05);
}

.social-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.08), rgba(0,0,0,0.02), transparent);
    opacity: 1;
    pointer-events: none;
}

.social-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.social-content h5,
.social-content p,
.social-content .d-flex {
    margin: 0 0 8px 0;
}

.social-content .d-flex {
    margin-top: 12px;
    justify-content: space-between;
}

.social-content h5 {
    font-weight: 600;
}

.social-content p {
    font-size: 14px;
    color: #666;
}

/* ========================================
   FOOTER FIXED / CLEAN
======================================== */
.footer {
    padding: 20px 0;
    background: var(--primary);
    color: #fff;
    clear: both;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 3px;
    padding: 0;
    text-align: left;
    color: #fff;
    font-size: 15px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
}

.footer .copyright {
    padding: 10px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer .copyright a {
    color: #fff;
}

.footer .copyright a:hover {
    color: #f5a623;
}

/* ========================================
   WHATSAPP BUTTON
======================================== */
.wa-premium {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    font-size: 14px;
    z-index: 9999;
    text-decoration: none;
    transition: .3s;
}

.wa-premium:hover {
    transform: translateY(-4px);
    background: #1ebe5d;
}

.wa-icon {
    width: 36px;
    height: 36px;
    background: #1ebe5d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 100px;
    z-index: 9998;
}

/* ========================================
   GLOBAL CAROUSEL DOTS
======================================== */
.carousel-indicators {
    bottom: -10px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.carousel-indicators button {
    width: 6px !important;
    height: 6px !important;
    padding: 0 !important;
    min-width: 0 !important;
    border-radius: 50% !important;
    background-color: #555 !important;
    border: none !important;
    display: inline-block !important;
    aspect-ratio: 1/1 !important;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary) !important;
    transform: scale(1.3) !important;
}

.carousel-indicators button:hover {
    background-color: var(--primary) !important;
    transform: scale(1.3) !important;
}

/* ========================================
   MOBILE-FRIENDLY FIX (HP ≤768px)
======================================== */
@media (max-width: 768px) {

    /* Carousel & Hero */
    #header-carousel .carousel-item {
        height: 50vh; /* tinggi carousel di HP */
    }

    .carousel-caption {
        padding: 20px 15px 10px 15px; /* padding cukup agar subtitle terlihat */
        text-align: center;
    }

    /* Hero title responsive */
    .hero-title {
        font-size: clamp(18px, 6vw, 28px); /* minimal 18px, maksimal 28px */
        line-height: 1.3;
        font-weight: 500;
        margin-bottom: 8px;
    }

    /* Hero subtitle responsive */
    .hero-subtitle {
        font-size: clamp(10px, 3vw, 14px); /* minimal 10px, maksimal 14px */
        letter-spacing: 2px;
        margin-bottom: 6px;
    }

    .carousel-caption .btn {
        font-size: 13px;
        padding: 8px 14px;
        margin: 5px 0;
        width: 90%;
        max-width: 250px;
        display: block;
    }

    /* Room / Meeting / Social / Service cards */
    .room-item img,
    .meetingroom-item img,
    .social-card img {
        height: 180px;
    }

    .room-item h5,
    .meetingroom-item h5,
    .social-content h5,
    .service-item h5 {
        font-size: 16px;
    }

    .room-item p,
    .meetingroom-item p,
    .social-content p,
    .service-item p {
        font-size: 13px;
        line-height: 1.4;
    }

    .room-item:hover,
    .meeting-card:hover,
    .social-card:hover,
    .service-item:hover {
        transform: none;
        box-shadow: none;
    }

    /* Navbar */
    .navbar-brand img {
        max-height: 35px;
    }

    .navbar-nav {
        padding: 15px;
    }

    .navbar-light .navbar-nav .nav-link {
        font-size: 13px;
        padding: 0.25rem 0;
    }

    /* Footer */
    .footer {
        padding: 15px 10px;
        font-size: 14px;
    }

    .footer .btn.btn-link {
        font-size: 14px;
        margin-bottom: 3px;
    }

    /* WhatsApp & Back to Top */
    .wa-premium {
        bottom: 80px;
        right: 15px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .back-to-top {
        bottom: 140px;
        right: 15px;
    }

    /* Section spacing & title */
    .section-spacing {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .section-title {
        margin-top: 15px;
        margin-bottom: 20px;
        font-size: 1.5rem;
    }

    /* Carousel indicators */
    .carousel-indicators {
        gap: 3px;
        bottom: -8px;
    }

    .carousel-indicators button {
        width: 5px !important;
        height: 5px !important;
    }

}