/* ==========================================================================
   Zen Temizlik - Modern Design System & Custom Styles
   Colors & Tone inspired by KoltukYikamaIst (Deep Emerald / Forest & Fresh Jade)
   ========================================================================== */

:root {
  --color-primary: #142d26;
  --color-primary-dark: #0d1e19;
  --color-primary-light: #1c3d34;
  --color-accent: #10b981;
  --color-accent-dark: #059669;
  --color-accent-light: #34d399;
  --color-accent-soft: rgba(16, 185, 129, 0.12);
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;
  
  --color-bg-base: #fbfbf9;
  --color-bg-surface: #ffffff;
  --color-bg-muted: #f4f6f4;
  
  --color-text-main: #142d26;
  --color-text-muted: #4b635b;
  --color-text-subtle: #738a83;

  --shadow-sm: 0 1px 2px 0 rgba(20, 45, 38, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(20, 45, 38, 0.08), 0 2px 6px -2px rgba(20, 45, 38, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(20, 45, 38, 0.12), 0 4px 12px -2px rgba(20, 45, 38, 0.06);
  --shadow-xl: 0 24px 50px -8px rgba(20, 45, 38, 0.18);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.25);
  
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;
}

/* Global resets & typography */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f3;
}
::-webkit-scrollbar-thumb {
  background: #cbd5d1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a39f;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
  background: rgba(20, 45, 38, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradients */
.gradient-forest {
  background: linear-gradient(135deg, #142d26 0%, #0d1e19 100%);
}

.gradient-hero {
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(20, 45, 38, 0.06) 0%, transparent 40%),
              #fbfbf9;
}

.text-gradient {
  background: linear-gradient(135deg, #142d26 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Before & After Interactive Slider */
.ba-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  box-shadow: var(--shadow-lg);
  background-color: #f1f5f3;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  z-index: 1;
}

.ba-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.05s ease-out;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  z-index: 3;
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transform: translateX(-50%);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  cursor: ew-resize;
  border: 2px solid var(--color-accent);
}

.ba-badge {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  z-index: 4;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ba-badge-before {
  left: 16px;
  background: rgba(239, 68, 68, 0.88);
  color: #ffffff;
}

.ba-badge-after {
  right: 16px;
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
}

/* Video Player Styles */
.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-accent);
  color: #ffffff;
}

/* Animations */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-whatsapp {
  animation: pulse-ring 2s infinite;
}

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

.animate-float {
  animation: float-slow 4s ease-in-out infinite;
}

/* STICKY MOBILE BOTTOM BAR (STRICTLY MOBILE ONLY) */
.mobile-bottom-bar {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(20, 45, 38, 0.12);
  padding: 10px 16px;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

/* MOBILE DRAWER HIGHEST PRIORITY Z-INDEX & SCROLL */
#mobile-drawer-backdrop {
  z-index: 9998 !important;
}

#mobile-drawer {
  z-index: 9999 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Interactive Calculator Styles */
.calc-card {
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.calc-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.calc-card.active {
  border-color: var(--color-accent);
  background: rgba(16, 185, 129, 0.06);
}

/* Badges & Trust Pills */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-accent-soft);
  color: var(--color-primary);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Service Card Hover */
.service-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}
.service-card:hover .service-icon {
  background: var(--color-accent);
  color: #ffffff;
  transform: scale(1.1) rotate(-3deg);
}

.service-icon {
  transition: all 0.3s ease;
}

/* FAQ Accordion */
.faq-item details summary::-webkit-details-marker {
  display: none;
}
.faq-item details[open] summary svg {
  transform: rotate(180deg);
}
.faq-item details summary svg {
  transition: transform 0.25s ease;
}

/* Button glow effects */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: rotate(30deg);
  transition: transform 0.75s ease;
}
.btn-glow:hover::after {
  transform: rotate(30deg) translate(50%, 50%);
}
