/* ============================================================
   Basecamp Cemara — Modern Redesign 2026
   Style: Boxy + Flat + Glassmorphism | Mobile First
   ============================================================ */

:root {
  --primary: #FFBF00;
  --secondary: #FFF78D;
  --accent: #467235;
  --dark: #283F24;
  --glass-bg: rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.25);
  --radius-card: 20px;
  --radius-card-lg: 24px;
  --transition: 0.3s ease;
}

/* ======================== BASE ======================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
  background: #f8f9fa;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark); }

/* ======================== GLASSMORPHISM ======================== */
.glass {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
}
.glass-dark {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(40,63,36,0.55);
  border: 1px solid rgba(255,255,255,0.15);
}
.glass-white {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.5);
}

/* ======================== PAGE LOADER ======================== */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255,191,0,0.14);
  animation: loader-pulse 2s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.9; }
  50%       { transform: scale(1.45); opacity: 0; }
}
.loader-ring {
  position: absolute;
  inset: -12px;
  border: 3px solid rgba(255,191,0,0.15);
  border-top-color: var(--primary);
  border-right-color: rgba(255,191,0,0.4);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loader-logo-wrap img { position: relative; z-index: 1; }

.loader-dots {
  display: flex;
  gap: 8px;
}
.loader-dot {
  width: 7px;
  height: 7px;
  background: rgba(255,191,0,0.35);
  border-radius: 50%;
  animation: loader-bounce 1.4s ease-in-out infinite both;
}
.loader-dot:nth-child(1) { animation-delay: 0s; }
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loader-bounce {
  0%, 80%, 100% { transform: scale(0.65); background: rgba(255,191,0,0.3); }
  40%           { transform: scale(1.15); background: var(--primary); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======================== NAVBAR ======================== */
#navbar { transition: all var(--transition); }
#navbar.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(40,63,36,0.95) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-link-item {
  position: relative;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-link-item:hover::after,
.nav-link-item.active::after { width: 100%; }
.nav-link-item:hover { color: var(--primary) !important; }

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open { max-height: 520px; }

/* ======================== BUTTONS ======================== */
.btn-primary {
  background: var(--primary);
  color: var(--dark);
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: #e6ab00;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,191,0,0.35);
  color: var(--dark);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: white;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-dark:hover {
  background: #1a2c18;
  transform: translateY(-2px);
  color: white;
}

.btn-outline-white {
  background: transparent;
  color: white;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-2px);
  color: white;
}

/* ======================== HERO SLIDER ======================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.9s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(40,63,36,0.78) 0%, rgba(40,63,36,0.48) 100%);
}
.hero-slide.rental-slide::before {
  background: linear-gradient(135deg, rgba(40,63,36,0.82) 0%, rgba(70,114,53,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,191,0,0.2);
  border: 1px solid rgba(255,191,0,0.4);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.hero-nav-btn:hover { background: var(--primary); color: var(--dark); }
.hero-nav-prev { left: 18px; }
.hero-nav-next { right: 18px; }

.slide-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.slide-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Floating glass cards in hero */
.float-cards-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.float-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 16px 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: float 3s ease-in-out infinite;
}
.float-card:nth-child(2) { animation-delay: 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ======================== SECTION COMMON ======================== */
.section-padding { padding: 80px 0; }
@media (max-width: 768px) { .section-padding { padding: 60px 0; } }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(70,114,53,0.1);
  border: 1px solid rgba(70,114,53,0.2);
  color: var(--accent);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-badge.gold {
  background: rgba(255,191,0,0.15);
  border-color: rgba(255,191,0,0.35);
  color: var(--primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-color: #f6f9f5;
  background-image: radial-gradient(circle, rgba(70,114,53,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ======================== ABOUT ======================== */
.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(40,63,36,0.14);
}
.about-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 16px;
  z-index: -1;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid #efefef;
  transition: all var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ======================== FEATURE CARDS ======================== */
.feature-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 30px 24px;
  border: 1px solid #eeeeee;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(40,63,36,0.11);
  border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

/* ======================== UMKM CARDS ======================== */
.umkm-card {
  background: white;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  border: 1px solid #eeeeee;
  transition: all var(--transition);
}
.umkm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0,0,0,0.09);
}
.umkm-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}
.umkm-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.umkm-card:hover .umkm-img-wrap img { transform: scale(1.06); }
.umkm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40,63,36,0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.umkm-card:hover .umkm-overlay { opacity: 1; }
.umkm-eye-btn {
  width: 54px;
  height: 54px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.1rem;
  transition: transform var(--transition);
}
.umkm-eye-btn:hover { transform: scale(1.1); }

/* ======================== RENTAL CARDS ======================== */
.rental-card {
  background: white;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  border: 1px solid #eeeeee;
  transition: all var(--transition);
}
.rental-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0,0,0,0.1);
}
.rental-card-head { padding: 32px; }
.rental-card-body { padding: 24px 32px 32px; }
.rental-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.rental-feature-item {
  text-align: center;
  padding: 16px 12px;
  border-radius: 14px;
  transition: all var(--transition);
}

/* ======================== GALLERY ======================== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(40,63,36,0.88), transparent);
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }

.gallery-ig-overlay {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40,63,36,0.55);
  padding: 0;
}
.gallery-ig-overlay i { font-size: 2rem; color: white; }

/* ======================== TESTIMONIALS ======================== */
.testimonial-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-card-lg);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.17);
  transform: translateY(-4px);
}
.t-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ======================== FAQ ======================== */
.faq-item {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: all var(--transition);
}
.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(255,191,0,0.1);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  background: white;
  transition: background var(--transition);
  user-select: none;
}
.faq-question:hover { background: #fffef5; }
.faq-question-text { font-weight: 600; font-size: 0.88rem; color: var(--dark); }
.faq-toggle-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--dark);
}
.faq-item.open .faq-toggle-icon {
  background: var(--primary);
  color: var(--dark);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: white;
  padding: 0 22px;
}
.faq-answer.open { max-height: 280px; padding: 0 22px 18px; }
.faq-answer p { font-size: 0.85rem; color: #666; line-height: 1.7; }

/* ======================== CTA ======================== */
.cta-bg {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 60%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-bg::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -30%;
  width: 160%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,191,0,0.1) 0%, transparent 60%);
  animation: pulse-glow 5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* ======================== CONTACT ======================== */
.contact-info-card {
  background: #f7faf6;
  border: 1px solid #e8eee7;
  border-radius: 20px;
  padding: 22px;
  transition: all var(--transition);
}
.contact-info-card:hover {
  box-shadow: 0 8px 25px rgba(40,63,36,0.07);
  transform: translateY(-2px);
}
.map-wrap {
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  border: 1px solid #e5e5e5;
  height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ======================== FOOTER ======================== */
.footer-link {
  color: rgba(255,255,255,0.48);
  font-size: 0.83rem;
  transition: color var(--transition);
  display: block;
  margin-bottom: 8px;
}
.footer-link:hover { color: var(--primary); }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.social-btn:hover {
  color: white;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.07);
}

/* ======================== SCROLL TO TOP ======================== */
#scroll-top {
  position: fixed;
  bottom: 94px;
  right: 18px;
  width: 42px;
  height: 42px;
  background: var(--dark);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 200;
  border: none;
  box-shadow: 0 4px 15px rgba(40,63,36,0.28);
  font-size: 0.85rem;
}
#scroll-top.visible { opacity: 1; visibility: visible; }
#scroll-top:hover { background: var(--primary); color: var(--dark); transform: translateY(-3px); }

/* ======================== WHATSAPP FLOAT ======================== */
#wa-float { position: fixed; bottom: 22px; right: 18px; z-index: 300; }
.wa-btn {
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.45rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.42);
  transition: all var(--transition);
  position: relative;
  z-index: 2;
}
.wa-btn:hover { transform: scale(1.08); }
.wa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #f44336;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  border: 2px solid white;
}

.wa-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 276px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: all 0.3s ease;
  transform-origin: bottom right;
}
.wa-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.wa-popup-header {
  background: #25D366;
  padding: 14px 18px;
}
.wa-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  transition: background 0.2s;
  color: inherit;
  border-bottom: 1px solid #f5f5f5;
}
.wa-contact-item:last-child { border-bottom: none; }
.wa-contact-item:hover { background: #f8f8f8; }
.wa-avatar {
  width: 42px;
  height: 42px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ======================== SCROLL REVEAL ======================== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ======================== UTILITY ======================== */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.divider-wave {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  border: none;
  margin: 0;
}

/* ======================== RESPONSIVE TWEAKS ======================== */
@media (max-width: 640px) {
  .hero-nav-btn { width: 38px; height: 38px; }
  .hero-nav-prev { left: 10px; }
  .hero-nav-next { right: 10px; }
  .float-cards-row { display: none; }
  .rental-card-head, .rental-card-body { padding: 22px 20px; }
}

@media (min-width: 1024px) {
  .section-padding { padding: 100px 0; }
}
