/* ============================================================
   main.css — Lawu Vista Design System
   Stack: PHP Native + JSON | Mobile First | Google Ads Optimized
   Colors: Purple #7c3aed (primary) | Green #25d366 (WhatsApp CTA)
   ============================================================ */

/* ─── CSS VARIABLES ─── */
:root {
  --primary:        #7c3aed;
  --primary-dark:   #5b21b6;
  --primary-light:  #ede9fe;
  --primary-50:     #f5f3ff;
  --wa-green:       #25d366;
  --wa-dark:        #128c7e;
  --accent:         #f59e0b;
  --white:          #ffffff;
  --gray-50:        #f9fafb;
  --gray-100:       #f3f4f6;
  --gray-200:       #e5e7eb;
  --gray-300:       #d1d5db;
  --gray-400:       #9ca3af;
  --gray-500:       #6b7280;
  --gray-600:       #4b5563;
  --gray-700:       #374151;
  --gray-800:       #1f2937;
  --gray-900:       #111827;
  --text:           #1f2937;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md:      0 8px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);
  --shadow-lg:      0 16px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
  --shadow-purple:  0 8px 24px rgba(124,58,237,.25);
  --transition:     0.25s ease;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w:          1200px;
  --section-py:     72px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-muted); line-height: 1.75; }

/* ─── CONTAINER ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1200px) { .container { padding: 0 40px; } }

/* ─── SECTION ─── */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--gray-50); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .75rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 3rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-sm {
  padding: .5rem 1rem;
  font-size: .875rem;
  border-radius: var(--radius-sm);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-50); }
.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.btn-wa-outline {
  background: transparent;
  color: var(--wa-green);
  border-color: var(--wa-green);
}
.btn-wa-outline:hover { background: var(--wa-green); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover { background: var(--primary-50); transform: translateY(-1px); }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .75rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-primary { background: var(--primary); color: var(--white); }
.badge-purple-light { background: var(--primary-light); color: var(--primary); }
.badge-white { background: rgba(255,255,255,.2); color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.badge-popular { background: var(--primary); color: var(--white); position: absolute; top: -1px; right: 1rem; border-radius: 0 0 8px 8px; padding: .3rem .75rem; font-size: .7rem; }

/* ─── CARD ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }

/* ─── RATING STARS ─── */
.stars { display: inline-flex; gap: 2px; color: #f59e0b; font-size: .9rem; }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 99px;
  padding: .35rem .875rem;
  font-size: .875rem;
  color: var(--white);
  backdrop-filter: blur(4px);
}
.rating-number { font-weight: 700; font-size: 1rem; }

/* ─── AVATAR STACK ─── */
.avatar-stack { display: flex; }
.avatar-stack img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
}
.avatar-stack img + img { margin-left: -10px; }
.avatar-stack .avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .625rem;
  font-weight: 700;
  color: var(--white);
}
.avatar-stack .avatar-placeholder + * { margin-left: -10px; }

/* ─── NAVIGATION ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
}
.site-nav.nav-transparent { background: transparent; }
.site-nav.nav-scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: .875rem;
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; }
.nav-scrolled .nav-logo { color: var(--gray-900); }
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: .9rem;
  font-weight: 500;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { color: rgba(255,255,255,.9); transition: color var(--transition); }
.nav-links a:hover { color: var(--white); }
.nav-scrolled .nav-links a { color: var(--gray-700); }
.nav-scrolled .nav-links a:hover { color: var(--primary); }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: flex; } }
.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--white);
  transition: all var(--transition);
}
@media (min-width: 768px) { .nav-mobile-toggle { display: none; } }
.nav-scrolled .nav-mobile-toggle { color: var(--gray-700); }
.nav-mobile-toggle:hover { background: rgba(255,255,255,.15); }
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  padding: .75rem 1.5rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.nav-mobile-menu a:hover { background: var(--primary-50); color: var(--primary); }
.nav-mobile-menu .btn { margin: .75rem 1.5rem; justify-content: center; }

/* ─── TRUST BADGES (MINI) ─── */
.trust-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.85);
}
.trust-mini-item {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.trust-mini-item .check-icon {
  width: 16px;
  height: 16px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--white);
  flex-shrink: 0;
}

/* ─── SOCIAL PROOF ROW ─── */
.social-proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.social-proof-avatars-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.social-proof-text { font-size: .8125rem; color: rgba(255,255,255,.9); line-height: 1.4; }
.social-proof-text strong { display: block; color: var(--white); font-size: .9375rem; }

/* ─── STAT PILLS ─── */
.stat-pill {
  display: flex;
  align-items: center;
  gap: .625rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  padding: .5rem 1rem;
  backdrop-filter: blur(4px);
}
.stat-number { font-size: 1.25rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label  { font-size: .6875rem; color: rgba(255,255,255,.75); font-weight: 500; line-height: 1.3; }

/* ─── FEATURE CHECK LIST ─── */
.feature-list { display: flex; flex-direction: column; gap: .5rem; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .9rem;
  color: var(--gray-700);
}
.feature-item .fi-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ─── SECTION DIVIDER ─── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ─── STICKY ELEMENTS ─── */
/* Sticky CTA Bar (mobile) */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: .75rem 1rem;
  display: flex;
  gap: .625rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
}
.sticky-cta-bar .btn { flex: 1; justify-content: center; font-size: .875rem; padding: .75rem .5rem; }
@media (min-width: 768px) { .sticky-cta-bar { display: none; } }

/* Floating WhatsApp Button */
.float-wa {
  position: fixed;
  bottom: 90px;
  right: 1.25rem;
  z-index: 980;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}
@media (min-width: 768px) { .float-wa { bottom: 2rem; } }
.float-wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: all var(--transition);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.float-wa-btn:hover { background: var(--wa-dark); transform: scale(1.1); animation: none; box-shadow: 0 6px 20px rgba(37,211,102,.5); }
.float-wa-btn svg { width: 28px; height: 28px; }
.float-wa-label {
  background: var(--gray-900);
  color: var(--white);
  padding: .375rem .75rem;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  pointer-events: none;
}
.float-wa:hover .float-wa-label { opacity: 1; transform: translateX(0); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,.65), 0 0 0 8px rgba(37,211,102,.12); }
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; color: var(--gray-400); line-height: 1.7; }
.footer-title { font-size: .9375rem; font-weight: 700; color: var(--white); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a { font-size: .875rem; color: var(--gray-400); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; color: var(--gray-400); margin-bottom: .75rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.25rem 0;
  font-size: .8125rem;
  color: var(--gray-500);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  padding: 1rem 0;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,.4); }
.breadcrumb-current { color: var(--white); font-weight: 500; }

/* ─── ALERT / FLASH ─── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info    { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #c4b5fd; }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: .375rem; }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ─── SKELETON LOADING ─── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-load {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── UTILITY ─── */
.text-primary    { color: var(--primary); }
.text-wa         { color: var(--wa-green); }
.text-muted      { color: var(--text-muted); }
.text-white      { color: var(--white); }
.text-center     { text-align: center; }
.text-sm         { font-size: .875rem; }
.text-xs         { font-size: .75rem; }
.fw-700          { font-weight: 700; }
.fw-800          { font-weight: 800; }
.d-flex          { display: flex; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1           { gap: .5rem; }
.gap-2           { gap: 1rem; }
.gap-3           { gap: 1.5rem; }
.mt-1            { margin-top: .5rem; }
.mt-2            { margin-top: 1rem; }
.mt-3            { margin-top: 1.5rem; }
.mb-1            { margin-bottom: .5rem; }
.mb-2            { margin-bottom: 1rem; }
.mb-3            { margin-bottom: 1.5rem; }
.py-1            { padding-top: .5rem; padding-bottom: .5rem; }
.py-2            { padding-top: 1rem; padding-bottom: 1rem; }
.w-full          { width: 100%; }
.relative        { position: relative; }
.overflow-hidden { overflow: hidden; }
.rounded         { border-radius: var(--radius); }
.rounded-lg      { border-radius: var(--radius-lg); }
.rounded-full    { border-radius: 99px; }
.hidden          { display: none !important; }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }

/* ─── GRID HELPERS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px)  { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ─── SCROLL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── ICON WRAPPER ─── */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.icon-wrap-sm  { width: 36px; height: 36px; }
.icon-wrap-md  { width: 48px; height: 48px; border-radius: var(--radius-lg); }
.icon-wrap-lg  { width: 64px; height: 64px; border-radius: 18px; }
.icon-wrap-purple { background: var(--primary-light); color: var(--primary); }
.icon-wrap-white  { background: rgba(255,255,255,.2); color: var(--white); }
.icon-wrap-green  { background: #dcfce7; color: #16a34a; }

/* ─── RESPONSIVE IMAGES ─── */
.img-cover  { width: 100%; height: 100%; object-fit: cover; }
.img-aspect { width: 100%; position: relative; overflow: hidden; }
.img-aspect-4-3  { padding-bottom: 75%; }
.img-aspect-16-9 { padding-bottom: 56.25%; }
.img-aspect-1-1  { padding-bottom: 100%; }
.img-aspect > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ─── WHATSAPP BRANDING ─── */
.wa-icon-svg { display: inline-block; vertical-align: middle; }

/* ─── PRINT ─── */
@media print {
  .site-nav, .float-wa, .sticky-cta-bar { display: none !important; }
}

/* ─── BTN VARIANTS (service page) ─── */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}
