/**
 * Arno D Clean Website Styles
 * Professional sofa cleaning service website
 * Author: Arno D Clean Team
 * Last Updated: 2025-12-24
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #2c73d2; /* biru sejuk */
  --secondary: #84dccf; /* teal lembut */
  --accent: #4bb3fd; /* biru terang */
  --ink: #1f2a37; /* teks gelap */
  --muted: #6b7280; /* teks sekunder */
  --bg: #f6f9fc; /* latar lembut */
  --white: #ffffff;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(23, 43, 77, 0.08);
  --radius: 14px;
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: var(--shadow);
}

.navbar .nav-link {
  font-weight: 500;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: url("img/b2.png") center/cover no-repeat fixed;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 42, 55, 0.55),
    rgba(31, 42, 55, 0.25)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero h1 {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero p {
  max-width: 680px;
  margin: 0 auto;
  opacity: 0.95;
}

/* ============================================
   SECTIONS
   ============================================ */
section.section {
  padding: clamp(60px, 8vw, 110px) 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ============================================
   CARDS
   ============================================ */
.service-card,
.feature-card {
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(23, 43, 77, 0.12);
}

.service-card img,
.feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.step {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  gap: 14px;
  align-items: center;
}

.step-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial {
  background: linear-gradient(180deg, #eaf5ff, #f6f9fc);
}

.testimonial .carousel-item {
  min-height: 280px;
}

.quote-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* ============================================
   LOCATION MAP
   ============================================ */
#map {
  height: 100vh;
}

.legend {
  background: white;
  padding: 6px 8px;
  font-size: 14px;
}

/* ============================================
   WHATSAPP INTEGRATION
   ============================================ */

/* Floating WhatsApp Button */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1080;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.03);
}

/* Chat Popup */
.chat-popup {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 1080;
  width: min(340px, calc(100vw - 36px));
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(31, 42, 55, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.chat-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, #128c7e, #25d366);
}

.chat-body {
  padding: 14px;
  background: #f4f7f9;
  max-height: 300px;
  overflow: auto;
}

.chat-bubble {
  background: #fff;
  border-radius: 12px 12px 12px 4px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.chat-footer {
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.chat-footer textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  resize: none;
  min-height: 54px;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.out {
  opacity: 0.1;
  transform: translateY(12px) scale(0.995);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0f172a;
  color: #cbd5e1;
}

.footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.footer a:hover {
  color: #93c5fd;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 0;
  box-shadow: 0 10px 24px rgba(76, 141, 235, 0.25);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.badge-soft {
  background: #e6f1ff;
  color: var(--primary);
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 767.98px) {
  /* Disable parallax on mobile for better performance */
  .hero {
    background-attachment: scroll !important;
    min-height: 70vh;
  }

  /* Allow images to adjust height on mobile */
  .service-card img,
  .feature-card img {
    height: auto;
  }

  /* Larger click areas for mobile navigation */
  .navbar .nav-link {
    padding: 0.75rem 1rem;
  }
}
