
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --dark: #111827;
    --light: #f9fafb;
    --white: #ffffff;
    --gray: #6b7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--light); color: var(--dark); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.p-30 { padding: 30px; }
.rounded { border-radius: 12px; }
.overflow-hidden { overflow: hidden; }

/* Disclaimer Header */
.top-disclaimer { background: var(--primary); color: white; text-align: center; font-size: 11px; padding: 5px; font-weight: bold; letter-spacing: 0.5px; }

/* Header & Nav */
.main-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; height: 85px; }
.logo-area a { text-decoration: none; display: flex; align-items: center; }
.logo-circle { width: 45px; height: 45px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 10px; animation: logo-pulse 3s infinite; }
.main-name { display: block; font-weight: 800; color: var(--dark); font-size: 18px; line-height: 1; }
.sub-name { font-weight: 700; color: var(--primary); font-size: 14px; }

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(220,38,38,0)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(220,38,38,0.4)); }
}

.nav-menu ul { display: flex; list-style: none; gap: 20px; }
.nav-menu a { text-decoration: none; color: var(--gray); font-weight: bold; font-size: 14px; text-transform: uppercase; transition: color 0.3s; }
.nav-menu a:hover { color: var(--primary); }

/* Hero Slider */
.hero-container { height: 550px; position: relative; overflow: hidden; background: #000; }
.slider { width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.slide.active { opacity: 1; z-index: 2; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.45); }
.hero-content { position: relative; z-index: 10; color: white; max-width: 800px; padding: 20px; }
.hero-content h1 { font-size: 48px; font-weight: 800; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.95; font-weight: 400; }
.btn-hero { padding: 15px 40px; font-size: 16px; border-radius: 50px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-card { text-align: center; padding: 30px; background: white; border-radius: 15px; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.feature-card img { width: 64px; height: 64px; margin-bottom: 20px; }

/* Services Layout */
.service-desc-home { font-size: 13px; color: var(--gray); margin-bottom: 20px; line-height: 1.5; text-align: justify; }
.btn-booking { background: var(--primary); color: white; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; display: inline-block; padding: 10px 20px !important; }
.btn-booking:hover { background: var(--primary-dark); transform: scale(1.05); }

/* Services Page - Vertical Layout */
.services-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.service-item { display: flex; flex-direction: column; background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; height: 100%; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-item img { width: 100%; height: 250px; object-fit: cover; }
.service-detail { padding: 40px; display: flex; flex-direction: column; flex-grow: 1; }
.service-detail h3 { margin-bottom: 20px; font-size: 26px; font-weight: 800; color: var(--dark); border-bottom: 3px solid var(--primary); padding-bottom: 10px; display: inline-block; }
.service-detail p { margin-bottom: 30px; color: #4b5563; text-align: justify; font-size: 15px; line-height: 1.8; flex-grow: 1; }
.btn-booking-full { display: block; width: 100%; padding: 18px 0; font-weight: 800; border-radius: 8px; text-align: center; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; margin-top: auto; }

/* Blog Section */
.blog-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-body h3 { font-size: 16px; margin-bottom: 10px; color: var(--dark); line-height: 1.4; font-weight: 700; }
.blog-card-body p { font-size: 13px; color: var(--gray); margin-bottom: 15px; flex-grow: 1; }
.btn-text { color: var(--primary); font-weight: bold; text-decoration: none; font-size: 13px; margin-top: auto; display: inline-block; }

.blog-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.blog-item { display: flex; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.blog-item img { width: 250px; object-fit: cover; }
.blog-item-content { padding: 30px; }
.blog-item-content h2 { font-size: 20px; margin-bottom: 10px; }

/* Article Details */
.article-container { max-width: 800px; }
.article-header { margin-bottom: 30px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--primary); font-weight: bold; text-decoration: none; }
.article-title { font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--dark); }
.article-featured-image { margin-bottom: 30px; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.img-responsive { width: 100%; height: auto; display: block; }
.article-content { font-size: 18px; line-height: 1.8; color: #374151; }
.article-disclaimer { border-top: 1px solid #eee; padding-top: 20px; font-size: 14px; color: #999; }

/* Gallery Carousel & Grid (VISUAL ONLY) */
.gallery-carousel-wrapper { position: relative; margin-top: 40px; overflow: hidden; }
.gallery-carousel-track { display: flex; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.gallery-slide { flex: 0 0 100%; width: 100%; padding: 0 10px; }
.gallery-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; max-width: 800px; margin: 0 auto; }

/* Link wrapper for gallery items to ensure no text/underline */
.gallery-item-link { display: block; text-decoration: none; border: none; outline: none; height: 100%; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.2); background: #333; height: 250px; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-full-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-link-large { display: block; overflow: hidden; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.3s; height: 250px; }
.gallery-link-large img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-link-large:hover img { transform: scale(1.05); }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 20px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); transition: 0.3s; }
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Image Viewer Page */
.image-viewer-box { max-width: 900px; margin: 40px auto; border: 10px solid #222; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.img-full-view { width: 100%; display: block; height: auto; }

/* Area Layanan */
.area-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.area-tag { background: white; padding: 12px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 13px; border: 1px solid #eee; transition: 0.3s; color: var(--gray); }
.area-tag.active { background: var(--primary); color: white; border-color: var(--primary); }
.map-box { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); border: 8px solid white; background: #eee; height: 400px; }

/* Footer */
.main-footer { background: var(--dark); color: #9ca3af; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-about h4, .footer-links h4, .footer-contact h4 { color: white; font-size: 18px; margin-bottom: 20px; font-weight: 700; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links a { color: #9ca3af; text-decoration: none; display: block; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-disclaimer { margin-top: 20px; font-size: 12px; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 6px; line-height: 1.5; color: #6b7280; }
.footer-bottom { border-top: 1px solid #374151; padding: 25px 0; text-align: center; font-size: 12px; }

/* Floating Buttons (PHP/CSS) */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.float-btn {
    width: 56px;
    height: 56px;
    background-color: var(--primary);
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}
.float-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}
.icon-svg {
    width: 24px;
    height: 24px;
}

/* Utils & Buttons */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); padding-bottom: 20px; }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 15px; text-align: center; }

.btn { display: inline-block; padding: 15px 35px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: 0.3s; cursor: pointer; border: none; }
.btn-red { background: var(--primary); color: white; }
.btn-red:hover { background: var(--primary-dark); }
.btn-dark { background: var(--dark); color: white; }
.btn-outline-white { border: 2px solid white; color: white; }
.btn-outline-white:hover { background: white; color: var(--dark); }
.btn-sm { font-size: 12px; padding: 8px 15px; border-radius: 4px; }
.btn-whatsapp-full { background: #25D366; color: white; width: 100%; text-align: center; padding: 15px; border-radius: 8px; font-weight: 800; font-size: 18px; }
.btn-whatsapp-full:hover { background: #128C7E; }

.section-title { font-size: 32px; font-weight: 800; margin-bottom: 50px; text-align: center; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 15px auto 0; }
.disclaimer-red { background: #fee2e2; border-left: 5px solid var(--primary); padding: 20px; font-size: 14px; color: #991b1b; }

/* Responsive */
@media (max-width: 992px) {
    .area-layout { grid-template-columns: 1fr; }
    .features-grid, .grid-4, .blog-list-grid { grid-template-columns: repeat(2, 1fr); }
    .services-list-grid { grid-template-columns: 1fr; } /* Services menjadi 1 kolom di tablet */
    .gallery-full-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .features-grid, .grid-4, .footer-grid, .blog-list-grid { grid-template-columns: 1fr; }
    .gallery-grid-3 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 32px; }
    .gallery-full-grid { grid-template-columns: 1fr; }
    .blog-item { flex-direction: column; }
    .blog-item img { width: 100%; height: 200px; }
    .header-flex { flex-direction: column; height: auto; padding: 15px; }
    .nav-menu ul { margin-top: 15px; flex-wrap: wrap; justify-content: center; }
}
