/* Rukn Al Fan Cleaning & Technical Services Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Fragment+Mono:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-muted: #f1f2f4;
  --text-primary: #0a0a0a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-subtle: #e2e8f0;
  --border-strong: #0a0a0a;
  --accent-gold: #c59b27;
  --accent-whatsapp: #25D366;
  --accent-whatsapp-dark: #128C7E;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fragment Mono', 'SF Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: #f6f8fb;
  color: var(--text-primary);
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--text-primary);
  top: 0px !important;
  min-height: 100vh;
  background-color: #f8fafc;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.10) 0px, transparent 50%),
    radial-gradient(at 50% 30%, rgba(56, 189, 248, 0.08) 0px, transparent 55%),
    radial-gradient(at 0% 65%, rgba(245, 158, 11, 0.09) 0px, transparent 50%),
    radial-gradient(at 100% 75%, rgba(16, 185, 129, 0.10) 0px, transparent 55%),
    radial-gradient(at 50% 100%, rgba(56, 189, 248, 0.08) 0px, transparent 50%);
  background-size: 100% 100%;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

body.bg-white {
  background-color: #f8fafc !important;
}

.font-mono {
  font-family: var(--font-mono);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Studio button styling */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #0a0a0a;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #0a0a0a;
  padding: 0.75rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: #0a0a0a;
  background-color: #0a0a0a;
  color: #ffffff;
  transform: translateY(-1px);
}

/* WhatsApp Button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #25D366;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #20ba5a;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Floating WhatsApp Badge */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.floating-whatsapp:hover {
  background-color: #1eb956;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

/* Mobile Screens (< 640px): Compact, non-intrusive circular action button */
@media (max-width: 640px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.95);
  }
  .floating-whatsapp::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 11px;
    height: 11px;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
  }
  .floating-whatsapp span {
    display: none !important;
  }
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
    margin: 0;
  }
}

/* Mobile menu drawer must ALWAYS sit above all floating controls */
#mobile-menu {
  z-index: 1000 !important;
}

/* Utility to hide scrollbars for horizontal pill slider */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Clean background for hero on mobile - zero haze or fade */
.mobile-hero-ambient {
  background: transparent !important;
}

.whatsapp-pulse {
  position: relative;
}

.whatsapp-pulse::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Badge styling */
.badge-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Card hover zoom */
.service-card, .project-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card .img-wrapper, .project-card .img-wrapper {
  overflow: hidden;
  background-color: #eaeaea;
}

.service-card .img-wrapper img, .project-card .img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .img-wrapper img, .project-card:hover .img-wrapper img {
  transform: scale(1.05);
}

/* Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  opacity: 1;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

/* Testimonial slider */
.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

/* Floating header shadow on scroll */
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* Modal and Drawer backdrop */
.modal-overlay {
  background-color: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(4px);
}

/* Toast alert */
#toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-notification.show {
  transform: translateY(0);
}

/* Star Rating System */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: #cbd5e1;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.star-rating label .lucide {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
  pointer-events: none;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f59e0b;
}

/* ========================================================
   GOOGLE TRANSLATE & MOBILE RESPONSIVENESS OVERRIDES
   ======================================================== */

/* Prevent horizontal scroll and layout shift from translation widgets */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body {
  top: 0px !important;
  position: static !important;
}

/* Hide all desktop-style, overflow-prone Google banners on all screens */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-ORHb-OEVmcd.skiptranslate,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
body > .skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  max-height: 0 !important;
  max-width: 0 !important;
  pointer-events: none !important;
}

/* Safeguard if any Google iframe attempts to inject */
.goog-te-banner,
iframe.goog-te-banner-frame {
  max-width: 100vw !important;
  width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.goog-te-gadget {
  font-size: 0px !important;
}

.goog-te-gadget span {
  display: none !important;
}

.goog-te-gadget .goog-te-combo {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background-color: #f8f9fa;
  color: #0a0a0a;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.goog-te-gadget .goog-te-combo:hover {
  border-color: #0a0a0a;
}

/* Custom Arabic toggle button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background-color: #f8f9fa;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #0a0a0a;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.lang-toggle-btn:hover {
  border-color: #0a0a0a;
  background-color: #ffffff;
}

.lang-toggle-btn.is-active-ar {
  background-color: #0a0a0a !important;
  color: #fbbf24 !important;
  border-color: #fbbf24 !important;
}

/* Floating translation active pill on mobile */
#translation-status-banner {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* ========================================================
   MOBILE LUXURY VISUAL ENRICHMENT & TACTILE POLISH
   ======================================================== */

/* Tactile mobile tap response */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:active,
  .btn-outline:active,
  .btn-whatsapp:active,
  .service-filter-btn:active,
  .lang-toggle-btn:active {
    transform: scale(0.97) !important;
  }
}

/* Enhanced mobile card depth & richness */
@media (max-width: 768px) {
  .service-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.05);
    border-radius: 1.25rem;
  }
  
  .service-card:active {
    transform: scale(0.99);
  }

  .process-step-card {
    min-height: auto !important;
    padding: 1.25rem !important;
  }
}

/* Luxury accent badges */
.gold-glow-badge {
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.12) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(197, 155, 39, 0.35);
  color: #92640e;
}

.emerald-glow-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
}

/* ========================================================
   GLOSSY & TRANSLUCENT GLASS FINISH (FRESH STUDIO AESTHETIC)
   ======================================================== */

/* High-Performance Studio Surfaces */
.bg-studio-surface,
.service-card,
.process-step-card,
.project-card,
.review-card {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 
    0 4px 18px -2px rgba(15, 23, 42, 0.04),
    0 1px 3px 0 rgba(15, 23, 42, 0.02);
  border-radius: 1.25rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.process-step-card:hover {
  background: #ffffff !important;
  border-color: rgba(10, 10, 10, 0.75) !important;
  box-shadow: 
    0 12px 28px -4px rgba(15, 23, 42, 0.08),
    0 4px 8px -2px rgba(15, 23, 42, 0.03);
  transform: translateY(-2px);
}

/* Translucent Frosted Glass Header (Fixed & Lightweight) */
header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* High-Performance Badges */
.badge-tag {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

/* Crisp Clean Form Elements */
input, select, textarea {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  background: #ffffff !important;
  border-color: #0a0a0a !important;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

/* Specular Edge on Images */
.service-card .img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
}

.service-card .img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* Glossy Obsidian Dark Banners with Top Light Highlight */
.bg-studio-black {
  background: linear-gradient(140deg, #161616 0%, #0a0a0a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 24px 48px -12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
}

/* Clean High-Performance Footer */
footer {
  background-color: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

/* Glass Specular Top Sheen on Cards */
.service-card::before,
.process-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

/* ================= HERO SHOWCASE CAROUSEL ================= */
#hero-showcase-carousel {
  position: relative;
  background-color: #0a0a0a;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-carousel-slide.active {
  opacity: 1 !important;
  transform: scale(1) !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.hero-carousel-slide:not(.active) {
  opacity: 0 !important;
  transform: scale(1.025) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.hero-dot {
  cursor: pointer;
  outline: none;
}

.hero-dot:focus-visible {
  outline: 2px solid #fbbf24;
}

/* Hero Top Eyebrow Badge (High-Contrast Obsidian Badge - Eliminates White Fade) */
.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: #0a0a0a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 100%;
}

.hero-top-badge .hero-top-badge-text {
  color: #ffffff !important;
  font-weight: 600;
}

@media (min-width: 640px) {
  .hero-top-badge {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
  }
}

/* Hero Showcase Carousel Category Badges (High Contrast Legibility & Mobile Responsive) */
.hero-carousel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.45rem;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .hero-carousel-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
  }
}

.hero-carousel-badge.badge-cleaning {
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
}

.hero-carousel-badge.badge-ac {
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
}

.hero-carousel-badge.badge-tiling {
  color: #facc15 !important;
  border: 1px solid rgba(250, 204, 21, 0.5) !important;
}

.hero-carousel-badge.badge-painting {
  color: #c084fc !important;
  border: 1px solid rgba(192, 132, 252, 0.5) !important;
}

.hero-carousel-badge.badge-plumbing {
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
}

.hero-carousel-badge .lucide {
  stroke-width: 2.25px;
  flex-shrink: 0;
}




/* Lucide Icon Global Styling */
.lucide {
  display: inline-block;
  vertical-align: -0.15em;
  stroke-width: 2;
  stroke: currentColor;
}
