/* ==========================================================================
   KONSULTAN PERIZINAN LOMBOK DESIGN SYSTEM (MARKETOOPIL TEAM)
   COLOR PALETTE: Bright Sky Blue #2488E5 & Deep Navy Ink #1F2B5C
   DESIGN: Organic Morphing Glass, Airiness, Modern Micro-interactions
   ========================================================================== */

:root {
  /* Primary & Accents */
  --primary: #2488e5;
  --primary-hover: #1a75cb;
  --primary-foreground: #ffffff;
  
  --sky-tint: #f2f7fd;
  --sky-soft: #e0edfc;
  --teal: #10b981;
  --gold: #f59e0b;
  --coral: #f97316;
  
  /* Text & Surfaces */
  --ink: #1f2b5c;
  --foreground: #252d47;
  --background: #fbfcfe;
  --card: #ffffff;
  --card-foreground: #252d47;
  
  --secondary: #eef4fd;
  --secondary-foreground: #22356b;
  --muted: #f0f5fc;
  --muted-foreground: #667499;
  --border: #e2eaf5;
  --input: #e2eaf5;
  --ring: #2488e5;

  /* Typography & Effects */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.375rem;
  --radius-2xl: 1.75rem;
  --radius-3xl: 2.25rem;

  --shadow-glass: 0 18px 46px -22px rgba(31, 43, 92, 0.22);
  --shadow-lift: 0 20px 38px -16px rgba(36, 136, 229, 0.35);
  --shadow-card: 0 10px 30px -15px rgba(31, 43, 92, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--background) !important;
}

body, #page, .site, .elementor {
  margin: 0;
  padding: 0;
  background-color: var(--background) !important;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Force-hide Elementor Page Transition overlay */
.e-page-transition,
.e-page-transition-animation {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   GLASSMORPHISM & ORGANIC MOTION UTILITIES
   ========================================================================== */

.glass {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  box-shadow: 
    0 1px 0 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 46px -22px rgba(31, 43, 92, 0.18) !important;
}

.glass-dark {
  background: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.24) inset !important;
}

/* Slow organic radius morph — the signature motion */
.morph {
  border-radius: 42% 58% 54% 46% / 46% 42% 58% 54%;
  animation: morph-blob 18s ease-in-out infinite;
}

.morph-card {
  border-radius: 1.75rem;
  transition:
    border-radius 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 500ms ease;
}

.morph-card:hover {
  border-radius: 2.75rem 1.25rem 2.75rem 1.25rem;
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(36, 136, 229, 0.25);
}

.hairline {
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(36, 136, 229, 0.32),
    transparent
  );
  height: 1px;
}

@keyframes morph-blob {
  0%, 100% {
    border-radius: 42% 58% 54% 46% / 46% 42% 58% 54%;
  }
  33% {
    border-radius: 62% 38% 36% 64% / 58% 62% 38% 42%;
  }
  66% {
    border-radius: 36% 64% 62% 38% / 62% 36% 64% 38%;
  }
}

@keyframes float-y {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.float-slow {
  animation: float-y 9s ease-in-out infinite;
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(36, 136, 229, 0.55);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(36, 136, 229, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(36, 136, 229, 0);
  }
}

.ring-pulse {
  animation: ring-pulse 2600ms ease-out infinite;
}

/* ==========================================================================
   HEADER COMPONENT (STICKY FLOATING GLASS NAVBAR)
   ========================================================================== */

.kpl-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 14px 18px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@media (min-width: 640px) {
  .kpl-header-wrapper {
    padding: 18px 24px 0;
  }
}

.kpl-header-container {
  max-width: 1140px;
  margin: 0 auto;
  pointer-events: auto;
}

.kpl-navbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpl-header-wrapper.scrolled .kpl-navbar {
  border-radius: 1.25rem;
  padding: 8px 18px;
  box-shadow: 0 20px 48px -20px rgba(31, 43, 92, 0.28) !important;
}

/* Logo & Brand Identity */
.kpl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.kpl-brand .custom-logo-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

/* Hard containment for WordPress custom logo so uploads never blow up the navbar */
.kpl-header-wrapper .custom-logo,
.kpl-brand .custom-logo,
.kpl-brand-logo {
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  max-width: 140px !important;
  object-fit: contain !important;
  border-radius: 10px;
  display: block !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.kpl-brand:hover .kpl-brand-logo,
.kpl-brand:hover .custom-logo,
.kpl-brand .custom-logo-link:hover .custom-logo {
  transform: scale(1.05);
}

.kpl-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.kpl-brand-text:hover {
  opacity: 0.9;
}

.kpl-brand-name {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.kpl-brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--primary);
  text-transform: uppercase;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .kpl-header-wrapper .custom-logo,
  .kpl-brand .custom-logo,
  .kpl-brand-logo {
    height: 38px !important;
    max-height: 38px !important;
  }

  .kpl-brand {
    gap: 8px;
  }

  .kpl-brand-name {
    font-size: 0.85rem;
  }

  .kpl-brand-sub {
    font-size: 0.62rem;
  }
}

/* Desktop Navigation Menu */
.kpl-nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

@media (min-width: 860px) {
  .kpl-nav-desktop {
    display: flex;
  }
}

.kpl-nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kpl-nav-desktop li {
  margin: 0;
  padding: 0;
}

.kpl-nav-desktop a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.25s ease;
}

.kpl-nav-desktop a:hover {
  color: var(--ink);
}

.kpl-nav-desktop li.current-menu-item a,
.kpl-nav-desktop li.current_page_item a {
  color: var(--ink);
  background-color: var(--secondary);
  font-weight: 600;
}

/* Header CTA Button */
.kpl-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground) !important;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 24px -10px var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.kpl-header-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px var(--primary);
}

/* Mobile Toggle Hamburger */
.kpl-mobile-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

@media (min-width: 860px) {
  .kpl-mobile-toggle {
    display: none;
  }
}

.kpl-mobile-toggle:hover {
  background: var(--secondary);
}

/* Mobile Drawer */
.kpl-mobile-drawer {
  display: none;
  margin-top: 10px;
  padding: 14px;
  border-radius: 1.25rem;
  animation: mobile-slide-down 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kpl-mobile-drawer.open {
  display: block;
}

@keyframes mobile-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kpl-mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpl-mobile-drawer li a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.kpl-mobile-drawer li.current-menu-item a,
.kpl-mobile-drawer li.current_page_item a {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
}

.kpl-mobile-drawer-cta {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-foreground) !important;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */

.kpl-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background-color: var(--sky-tint);
  padding-top: 64px;
}

.kpl-footer-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px 64px 20px;
}

.kpl-footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .kpl-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 48px;
  }
}

.kpl-footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kpl-footer-brand-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.kpl-footer-logo,
.kpl-footer-brand-header .custom-logo {
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  max-width: 140px !important;
  object-fit: contain !important;
  border-radius: 10px;
  display: block !important;
  flex-shrink: 0;
}

.kpl-footer-brand-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.kpl-footer-desc {
  margin-top: 20px;
  max-width: 384px;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.kpl-footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.kpl-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kpl-footer-menu li a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
  display: inline-block;
}

.kpl-footer-menu li a:hover {
  color: var(--primary);
}

.kpl-footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kpl-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.kpl-footer-contact-item a {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.kpl-footer-contact-item a:hover {
  color: var(--primary);
}

.kpl-footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 3px;
}

.kpl-break-all {
  word-break: break-all;
}

.kpl-footer-bottom-wrapper {
  border-top: 1px solid var(--border);
}

.kpl-footer-bottom-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .kpl-footer-bottom-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .kpl-branches-text {
    padding-right: 170px;
  }
}

.kpl-footer-bottom-container p {
  margin: 0;
}

/* ==========================================================================
   FLOATING ACTIONS (WHATSAPP BUTTON)
   ========================================================================== */

.kpl-floating-wa {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 9999px;
  background-color: #25d366;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 16px 36px -12px rgba(37, 211, 102, 0.55);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  text-decoration: none;
}

.kpl-floating-wa:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 42px -12px rgba(37, 211, 102, 0.7);
}

.kpl-floating-wa svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   PAGE WRAPPERS & 404
   ========================================================================== */

.kpl-page-wrapper {
  padding-top: 96px;
  min-height: 70vh;
}

.kpl-page-wrapper.elementor-template-fullwidth,
body.elementor-page .kpl-page-wrapper,
body.elementor-editor-active .kpl-page-wrapper {
  padding-top: 0 !important;
}

body.elementor-page .kpl-page-container,
body.elementor-editor-active .kpl-page-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.kpl-404-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.kpl-404-code {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.kpl-404-title {
  font-size: 1.6rem;
  margin-top: 16px;
  color: var(--ink);
}

.kpl-404-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground) !important;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.kpl-404-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .morph,
  .float-slow,
  .ring-pulse {
    animation: none !important;
  }
}
