/* ==========================================================================
   FAMKM Integrated Services - Design System & Global Stylesheet
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* CSS Variables */
:root {
  /* Color System */
  --navy-deep: #0F2C59;
  --navy-medium: #1D3A6F;
  --blue-royal: #006FCD;
  --blue-teal: #6DC5FF;
  --green-prof: #10B981;
  --gold-metallic: #0284C7;
  --off-white: #F0F7FF;
  --light-gray: #E2EEFC;
  --white: #FFFFFF;
  --blue-gradient: linear-gradient(135deg, #A4DBFF 0%, #006FCD 100%);
  
  /* Text Colors */
  --text-dark: #0F2C59;
  --text-light: #F0F7FF;
  --text-muted: #5A738E;
  --text-gold: #006FCD;

  /* Typography */
  --font-ar-headings: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  --font-ar-body: 'Tajawal', sans-serif;
  --font-en-headings: 'Manrope', 'Inter', sans-serif;
  --font-en-body: 'Inter', sans-serif;

  /* Layout & Spacing */
  --container-width: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease-in-out;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(0, 111, 205, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 111, 205, 0.07);
  --shadow-lg: 0 16px 40px rgba(0, 111, 205, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(12px);
  --glass-border: rgba(0, 111, 205, 0.15); /* Subtle Blue border */

  /* Borders */
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

/* Base resets & box sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

/* RTL / LTR Font Application */
html[dir="rtl"] {
  font-family: var(--font-ar-body);
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6 {
  font-family: var(--font-ar-headings);
}

html[dir="ltr"] {
  font-family: var(--font-en-body);
}
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3, html[dir="ltr"] h4, html[dir="ltr"] h5, html[dir="ltr"] h6 {
  font-family: var(--font-en-headings);
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-metallic);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-teal);
}

/* Reusable Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-deep);
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Button & Link Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background: var(--blue-gradient);
  color: var(--white);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #006FCD 0%, #004C8C 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 111, 205, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: var(--glass-blur);
}
.btn-secondary:hover {
  background-color: var(--white);
  color: var(--navy-deep);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold-metallic);
  color: var(--navy-deep);
  border: none;
}
.btn-gold:hover {
  background-color: #b59247;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(199, 164, 90, 0.4);
}

.btn-whatsapp {
  background-color: #25D366 !important;
  color: var(--white) !important;
  border: none !important;
}
.btn-whatsapp:hover {
  background-color: #128C7E !important;
  color: var(--white) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
}

.btn-green {
  background-color: var(--green-prof);
  color: var(--white);
  border: none;
}
.btn-green:hover {
  background-color: #3e6d21;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(78, 138, 42, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--blue-royal);
  border-color: var(--blue-royal);
}
.btn-outline:hover {
  background: var(--blue-gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
}

.link-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--blue-royal);
  font-size: 0.9rem;
  gap: 4px;
}
.link-more::after {
  content: '→';
  transition: var(--transition-fast);
}
html[dir="rtl"] .link-more::after {
  content: '←';
}
.link-more:hover {
  color: var(--blue-teal);
}
.link-more:hover::after {
  transform: translateX(4px);
}
html[dir="rtl"] .link-more:hover::after {
  transform: translateX(-4px);
}

/* ==========================================================================
   HEADER COMPONENT (Sticky, Transparent -> Solid)
   ========================================================================== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid var(--light-gray);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.header-wrapper.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--light-gray);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  transition: var(--transition-smooth);
}

.header-wrapper.scrolled .header-container {
  height: 85px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  margin-inline-end: 24px;
}

.logo-img {
  height: 90px;
  width: auto;
  transition: var(--transition-smooth);
  padding: 4px;
}

.header-wrapper.scrolled .logo-img {
  height: 70px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  color: rgba(15, 44, 89, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blue-royal);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--blue-royal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(0, 111, 205, 0.05);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--light-gray);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switch:hover {
  background: rgba(0, 111, 205, 0.1);
  border-color: var(--blue-royal);
  color: var(--blue-royal);
}

.whatsapp-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #25D366;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.whatsapp-icon-btn:hover {
  transform: scale(1.1) rotate(10deg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

/* Expand tap target to 44px x 44px for touchscreen accessibility */
.menu-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}

.menu-bar {
  width: 100%;
  height: 2px;
  background-color: var(--navy-deep);
  transition: var(--transition-smooth);
}

.menu-toggle.active .menu-bar {
  background-color: var(--white);
}

/* Hamburger transition when active */
.menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION (Cinematic and Luxury Background)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-color: #F0F7FF;
  color: var(--text-dark);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(240, 247, 255, 0.75) 100%), url('../assets/hero-daylight-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 111, 205, 0.06) !important;
  border: 1px solid rgba(0, 111, 205, 0.25) !important;
  color: var(--blue-royal) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border-radius: 999px !important;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 111, 205, 0.05);
  text-shadow: none !important;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.2;
  color: var(--navy-deep);
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
  color: var(--blue-royal);
}

.hero-desc {
  font-size: 1.15rem;
  color: #4A607A;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-statement {
  font-size: 18px !important;
  color: var(--navy-deep) !important;
  font-weight: 600 !important;
  line-height: 1.8 !important;
  background: rgba(0, 111, 205, 0.08) !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  border-inline-start: 3px solid var(--blue-royal) !important;
  font-style: normal !important;
  box-shadow: 0 4px 12px rgba(0, 111, 205, 0.05);
  text-shadow: none !important;
  align-self: flex-start;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .hero-badge {
    font-size: 16px !important;
    padding: 8px 20px !important;
  }
  .hero-statement {
    font-size: 16px !important;
    padding: 8px 16px !important;
  }
}

@media (max-width: 576px) {
  .hero-badge {
    font-size: 14px !important;
    padding: 6px 16px !important;
  }
  .hero-statement {
    font-size: 15px !important;
    padding: 8px 14px !important;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-video-box {
  width: 100%;
  max-width: 450px;
  background-color: var(--white);
  border: 4px solid var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 111, 205, 0.15);
  position: relative;
  aspect-ratio: 16/9;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 25, 45, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-video-play-overlay:hover {
  background: rgba(7, 25, 45, 0.2);
}

.play-btn-circle {
  width: 60px;
  height: 60px;
  background-color: var(--gold-metallic);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(199, 164, 90, 0.5);
  color: var(--navy-deep);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.play-btn-circle:hover {
  transform: scale(1.1);
  background-color: var(--white);
}

/* ==========================================================================
   TRUST BAR (Directly below Hero)
   ========================================================================== */
.trust-bar {
  background-color: var(--white);
  padding: 30px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--light-gray);
  position: relative;
  z-index: 5;
  margin-top: -40px;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  margin-left: 24px;
  margin-right: 24px;
  max-width: calc(var(--container-width) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-inline-end: 1px solid var(--light-gray);
}

.trust-item:last-child {
  border-inline-end: none;
}

.trust-icon-wrapper {
  color: var(--gold-metallic);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-deep);
}

/* ==========================================================================
   COMMON SECTIONS & GRID SYSTEM
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section-bg-light {
  background-color: var(--off-white);
}

.section-bg-dark {
  background-color: var(--navy-deep);
  color: var(--white);
}

.section-bg-medium {
  background-color: var(--navy-medium);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-badge {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-metallic);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-bg-dark .section-title, .section-bg-medium .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-bg-dark .section-desc, .section-bg-medium .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--gold-metallic);
  margin: 20px auto 0;
}

/* ==========================================================================
   SERVICES GRID (6 Premium Cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Subtle border color accent lines */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--light-gray);
  transition: var(--transition-smooth);
}

.service-card:nth-child(1)::before { background-color: var(--blue-royal); }
.service-card:nth-child(2)::before { background-color: var(--gold-metallic); }
.service-card:nth-child(3)::before { background-color: var(--blue-teal); }
.service-card:nth-child(4)::before { background-color: var(--green-prof); }
.service-card:nth-child(5)::before { background-color: #E67E22; } /* Orange accent */
.service-card:nth-child(6)::before { background-color: #2ECC71; } /* Light green accent */

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  height: 6px;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  background-color: var(--off-white);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
  color: var(--navy-deep);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background-color: var(--navy-deep);
  color: var(--white);
}

.service-card:nth-child(1):hover .service-icon-box { background-color: var(--blue-royal); }
.service-card:nth-child(2):hover .service-icon-box { background-color: var(--gold-metallic); color: var(--navy-deep); }
.service-card:nth-child(3):hover .service-icon-box { background-color: var(--blue-teal); }
.service-card:nth-child(4):hover .service-icon-box { background-color: var(--green-prof); }
.service-card:nth-child(5):hover .service-icon-box { background-color: #E67E22; }
.service-card:nth-child(6):hover .service-icon-box { background-color: #2ECC71; }

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.5;
}

/* ==========================================================================
   FEATURED SECTION: PROPERTY MANAGEMENT
   ========================================================================== */
.featured-split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.featured-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.featured-content .lead-text {
  font-size: 1.15rem;
  color: var(--navy-medium);
  font-weight: 500;
  margin-bottom: 20px;
}

.featured-content p {
  margin-bottom: 30px;
}

.featured-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  list-style: none;
}

.featured-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.featured-list-item i {
  color: var(--green-prof);
  font-size: 1.1rem;
}

.featured-visual-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Mini property management dashboard widget overlaid on image */
.dashboard-widget {
  position: absolute;
  bottom: 30px;
  inset-inline-start: 30px;
  background: rgba(7, 25, 45, 0.85);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  width: 280px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.dashboard-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-metallic);
  margin-bottom: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--green-prof);
  border-radius: 50%;
  animation: pulseGold 2s infinite;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.dashboard-row:last-child {
  margin-bottom: 0;
}

.dashboard-label {
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-val {
  font-weight: 700;
}

/* ==========================================================================
   CLEANING BEFORE/AFTER IMAGE SLIDER
   ========================================================================== */
.cleaning-comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.comparison-slider-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.image-before {
  /* Set initial clip-path for before image */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  background-image: url('../assets/ref-cleaning-compare.jpg');
}

.image-after {
  background-image: url('../assets/hero-bg.jpg'); /* clean reference */
}

/* Custom interactive before-after slider using simple CSS layout */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 380px;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--light-gray);
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-img.img-before {
  z-index: 2;
  /* Left or Right depending on dir, default left-clipped */
  clip-path: inset(0 50% 0 0); /* will be updated via JS */
}

html[dir="rtl"] .slider-img.img-before {
  clip-path: inset(0 0 0 50%);
}

.slider-img.img-after {
  z-index: 1;
}

.slider-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--gold-metallic);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--navy-deep);
  border: 3px solid var(--gold-metallic);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: ew-resize;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  font-weight: 700;
  font-size: 0.8rem;
  transition: transform 0.1s ease;
}

.slider-bar:hover .slider-handle, .slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--blue-teal);
}

.slider-label {
  position: absolute;
  bottom: 20px;
  background-color: rgba(7, 25, 45, 0.8);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
  letter-spacing: 0.5px;
}

.label-before {
  inset-inline-start: 20px;
  border-bottom: 2px solid #E74C3C;
}

.label-after {
  inset-inline-end: 20px;
  border-bottom: 2px solid var(--green-prof);
}

.cleaning-comparison-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.comparison-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.comparison-box {
  border-radius: var(--border-radius-md);
  padding: 24px;
  background-color: var(--off-white);
  border: 1px solid var(--light-gray);
}

.comparison-box.box-regular {
  border-top: 4px solid #E74C3C;
}

.comparison-box.box-deep {
  border-top: 4px solid var(--green-prof);
  background-color: #EDF7E7;
}

.comparison-box h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.comparison-box ul {
  list-style: none;
}

.comparison-box li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-box.box-regular li::before {
  content: '✕';
  color: #E74C3C;
  font-weight: 700;
}

.comparison-box.box-deep li::before {
  content: '✓';
  color: var(--green-prof);
  font-weight: 700;
}

/* ==========================================================================
   HOME MAINTENANCE SECTION (Grid of Categories)
   ========================================================================== */
.maintenance-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.maint-cat-card {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-md);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.maint-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-metallic);
}

.maint-cat-icon {
  font-size: 2.2rem;
  color: var(--blue-teal);
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.maint-cat-card:hover .maint-cat-icon {
  color: var(--gold-metallic);
}

.maint-cat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
}

/* ==========================================================================
   HOW IT WORKS (4 connected steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--light-gray);
  z-index: 1;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 auto 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.step-card:hover .step-number-circle {
  background-color: var(--gold-metallic);
  border-color: var(--navy-deep);
  color: var(--navy-deep);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(199, 164, 90, 0.4);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy-deep);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 220px;
  margin: 0 auto;
}

/* ==========================================================================
   WHY FAMKM (Luxury dark block with bullet checklist)
   ========================================================================== */
.why-famkm-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

#why-us {
  background-color: var(--navy-deep);
  color: var(--white);
}

.why-famkm-statement {
  max-width: 650px;
  direction: rtl;
  text-align: right;
  overflow-wrap: break-word;
  word-break: normal;
}

html[dir="ltr"] .why-famkm-statement {
  direction: ltr;
  text-align: left;
}

.why-title {
  font-family: var(--font-ar-headings);
  font-size: 44px !important;
  color: var(--white) !important;
  margin-bottom: 20px;
  font-weight: 700;
}

html[dir="ltr"] .why-title {
  font-family: var(--font-en-headings);
}

.why-subtitle {
  font-family: var(--font-ar-headings);
  font-size: 24px !important;
  color: var(--white) !important;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 600;
}

html[dir="ltr"] .why-subtitle {
  font-family: var(--font-en-headings);
}

.why-subtitle .highlight-text {
  color: var(--blue-teal) !important;
  background: none !important;
  padding: 0 !important;
  font-weight: 700;
}

.why-desc {
  font-size: 18px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.8 !important;
  margin-bottom: 30px;
  font-weight: 400;
}

.why-footer-text {
  font-size: 18px !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  line-height: 1.8 !important;
  margin-bottom: 0;
  border-inline-start: none !important;
  padding-inline-start: 0 !important;
}

@media (max-width: 992px) {
  .why-title {
    font-size: 36px !important;
  }
}

@media (max-width: 768px) {
  .why-title {
    font-size: 28px !important;
  }
  .why-subtitle {
    font-size: 20px !important;
  }
  .why-desc, .why-footer-text {
    font-size: 17px !important;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.why-card:hover {
  border-color: var(--blue-royal);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  font-size: 1.8rem;
  color: var(--blue-royal);
  margin-bottom: 16px;
}

.why-card h4 {
  font-size: 1.1rem;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PROJECTS & GALLERY SECTION
   ========================================================================== */
.gallery-filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-deep);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--navy-medium);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(7, 25, 45, 0.9) 0%, rgba(7, 25, 45, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-metallic);
  margin-bottom: 4px;
}

.gallery-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.gallery-item-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   TESTIMONIALS SECTION (Editable)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote-icon {
  font-size: 3rem;
  color: rgba(199, 164, 90, 0.15);
  position: absolute;
  top: 20px;
  inset-inline-end: 30px;
  font-family: serif;
  line-height: 1;
}

.testimonial-stars {
  color: var(--gold-metallic);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy-deep);
}

.testimonial-username {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-deep);
}

.testimonial-userinfo {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION (Accordions)
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: var(--white);
  transition: var(--transition-smooth);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 28px;
  text-align: start;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-chevron {
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 28px;
  background-color: var(--off-white);
}

.faq-answer-content {
  padding-bottom: 22px;
  padding-top: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--light-gray);
  line-height: 1.6;
}

/* Active FAQ states toggled by JS */
.faq-item.active {
  border-color: var(--gold-metallic);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer-panel {
  max-height: 1000px; /* arbitrary large value */
  transition: max-height 0.4s ease-in-out;
}

/* ==========================================================================
   FINAL CLOSING CTA SECTION
   ========================================================================== */
.cta-block-section {
  position: relative;
  padding: 100px 0;
  background-color: var(--navy-deep);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(7, 25, 45, 0.95) 0%, rgba(13, 47, 80, 0.9) 100%), url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-gold-line {
  width: 40px;
  height: 2px;
  background-color: var(--gold-metallic);
  margin-bottom: 20px;
}

.cta-title {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */
.footer {
  background: linear-gradient(180deg, #0F2C59 0%, #081B38 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 110px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-statement {
  font-size: 0.85rem;
  color: var(--gold-metallic);
  font-style: italic;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--gold-metallic);
}

html[dir="rtl"] .footer-title::after {
  left: auto;
  right: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-metallic);
  padding-inline-start: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--gold-metallic);
  margin-top: 3px;
  font-size: 1rem;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon-btn:hover {
  background-color: var(--gold-metallic);
  color: var(--navy-deep);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   MULTI-STEP SERVICE REQUEST FORM
   ========================================================================== */
.request-form-card {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.form-progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.form-progress-bar::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--light-gray);
  z-index: 1;
}

.form-progress-line {
  position: absolute;
  top: 15px;
  left: 0;
  width: 0%; /* updated by JS */
  height: 4px;
  background-color: var(--blue-teal);
  z-index: 2;
  transition: var(--transition-smooth);
}

html[dir="rtl"] .form-progress-line {
  left: auto;
  right: 0;
}

.progress-step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 3;
  transition: var(--transition-smooth);
}

.progress-step.active {
  border-color: var(--blue-teal);
  background-color: var(--blue-teal);
  color: var(--white);
}

.progress-step.completed {
  border-color: var(--green-prof);
  background-color: var(--green-prof);
  color: var(--white);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step-title {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--navy-deep);
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group-full {
  grid-column: 1 / span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.form-label span.req {
  color: #E74C3C;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--blue-teal);
  box-shadow: 0 0 0 4px rgba(21, 122, 145, 0.1);
}

/* Radio grid for property types and service types */
.radio-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.radio-select-box {
  position: relative;
}

.radio-select-box input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-box-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  gap: 10px;
  background-color: var(--off-white);
  height: 100%;
}

.radio-box-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.radio-select-box input[type="radio"]:checked + .radio-box-label {
  border-color: var(--blue-teal);
  background-color: #EDF7F9;
  color: var(--blue-teal);
}

.radio-select-box input[type="radio"]:checked + .radio-box-label .radio-box-icon {
  color: var(--blue-teal);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  border-top: 1px solid var(--light-gray);
  padding-top: 24px;
}

.form-success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-icon-circle {
  width: 80px;
  height: 80px;
  background-color: #EDF7E7;
  color: var(--green-prof);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
  border: 3px solid var(--green-prof);
}

.success-title {
  font-size: 1.8rem;
  color: var(--navy-deep);
  margin-bottom: 12px;
}

/* ==========================================================================
   BREADCRUMBS & INNER PAGE HEADERS
   ========================================================================== */
.inner-page-hero {
  background-color: var(--navy-deep);
  color: var(--white);
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
}

.inner-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(15, 44, 89, 0.75) 0%, rgba(0, 111, 205, 0.45) 100%), url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.inner-hero-container {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a:hover {
  color: var(--gold-metallic);
}

.breadcrumbs-separator {
  font-size: 0.75rem;
}

.inner-page-title {
  font-size: 2.6rem;
  color: var(--white);
}

/* ==========================================================================
   FLOATING BUTTONS & UTILITIES
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  inset-inline-end: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
}

.floating-request-mobile {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background-color: var(--blue-teal);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(21, 122, 145, 0.4);
  align-items: center;
  gap: 8px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  inset-inline-start: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background-color: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--gold-metallic);
  color: var(--navy-deep);
  transform: translateY(-3px);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 138, 42, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(78, 138, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 138, 42, 0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    inset-inline-end: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  
  .nav-menu.active {
    inset-inline-end: 0;
  }

  .nav-menu .nav-link {
    color: var(--white);
    font-size: 1.1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-menu .nav-link:hover, .nav-menu .nav-link.active {
    color: var(--blue-teal);
  }
  
  .header-actions .btn {
    display: none; /* Hide primary header CTA on tablet/mobile */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .trust-bar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .trust-item {
    border-inline-end: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-split-layout, .cleaning-comparison-container, .why-famkm-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-visual-wrapper, .slider-container {
    max-width: 600px;
    margin: 0 auto;
  }

  .maintenance-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  .gallery-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .floating-request-mobile {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .trust-bar {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    border-radius: 0;
  }

  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid, .gallery-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .radio-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: auto;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .trust-bar-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-categories-grid, .steps-grid {
    grid-template-columns: 1fr;
  }

  .request-form-card {
    padding: 30px 20px;
  }

  .form-progress-bar {
    margin-bottom: 30px;
  }

  .progress-step {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .radio-select-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 70px !important;
  }
  .header-wrapper.scrolled .logo-img {
    height: 55px !important;
  }
  .header-container {
    height: 85px !important;
  }
  .header-wrapper.scrolled .header-container {
    height: 70px !important;
  }
}

/* ==========================================================================
   GLOBAL RESPONSIVENESS AND OVERFLOW PREVENTION
   ========================================================================== */
body {
  overflow-x: hidden !important;
  position: relative !important;
  width: 100% !important;
}

/* Prevent image stretching/distortion globally */
img, video {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Prevent auto-zooming on iPhone/iPad forms & scale input heights */
@media (max-width: 768px) {
  .form-input {
    font-size: 16px !important;
    min-height: 48px !important;
  }
}

/* Mobile-Friendly horizontal scrolling for projects filter buttons */
@media (max-width: 768px) {
  .gallery-filter-buttons {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    padding-inline: 16px !important;
    margin-bottom: 24px !important;
    scrollbar-width: none !important; /* Hide scrollbar for Firefox */
  }
  .gallery-filter-buttons::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome/Safari */
  }
  .filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
}

/* Permanent visibility of card details on mobile (No-Hover Fallback) */
@media (max-width: 768px) {
  .gallery-item-overlay {
    opacity: 1 !important;
    background-image: linear-gradient(0deg, rgba(7, 25, 45, 0.95) 0%, rgba(7, 25, 45, 0.6) 100%) !important;
  }
}

/* Mobile size optimization for floating buttons (prevents overlap) */
@media (max-width: 768px) {
  .floating-whatsapp {
    width: 48px !important;
    height: 48px !important;
    bottom: 20px !important;
    inset-inline-end: 20px !important;
  }
  .back-to-top {
    width: 40px !important;
    height: 40px !important;
    bottom: 20px !important;
    inset-inline-start: 20px !important;
  }
  .floating-request-mobile {
    bottom: 20px !important;
  }
}
