/* ==========================================================================
   شركة لمسة نظافة - ملف التنسيق
   تصميم متجاوب لجميع الأجهزة
   ========================================================================== */

:root {
  --primary: #0a3a8c;
  --primary-dark: #07286a;
  --primary-light: #1565d8;
  --primary-soft: #e7efff;
  --accent: #ffd166;
  --accent-dark: #f4b942;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebd5b;
  --text: #1a1f3a;
  --text-soft: #5a6280;
  --muted: #8a93b0;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --border: #e3e9f7;
  --shadow-sm: 0 2px 8px rgba(10, 58, 140, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 58, 140, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 58, 140, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1200px;
  --nav-h: 72px;
  --nav-h-mobile: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-h);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ============== Navbar ============== */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(10, 58, 140, 0.08);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(10, 58, 140, 0.25);
}

.nav-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand-name {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.nav-brand-tag {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.nav-cta-item {
  margin-inline-start: 8px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 800;
  font-size: 15px;
  border-radius: 50px;
  letter-spacing: 0.3px;
  direction: ltr;
  box-shadow: 0 4px 14px rgba(10, 58, 140, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-cta svg {
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 58, 140, 0.4);
}

/* Toggle (Hamburger) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: #d6e2ff;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  body { padding-top: var(--nav-h-mobile); }
  .navbar { height: var(--nav-h-mobile); }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h-mobile);
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(10, 58, 140, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    max-height: calc(100vh - var(--nav-h-mobile));
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li { width: 100%; }

  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  .nav-cta-item { margin: 8px 0 0; }

  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 16px;
  }

  .nav-brand-tag { display: none; }
  .nav-logo { width: 40px; height: 40px; }
  .nav-brand-name { font-size: 17px; }
}

/* ============== Gallery ============== */
.gallery {
  background: var(--bg-soft);
  padding: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe6f5;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

@media (max-width: 600px) {
  .gallery-grid { gap: 3px; }
  .gallery-item { aspect-ratio: 4 / 3; }
}

@media (max-width: 380px) {
  .gallery-grid { gap: 2px; }
  .gallery-item { aspect-ratio: 1 / 1; }
}

/* ============== Hero ============== */
.hero {
  background:
    radial-gradient(900px 500px at 90% -20%, rgba(255, 209, 102, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(21, 101, 216, 0.30), transparent 60%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0, transparent 2%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.05) 0, transparent 2%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05) 0, transparent 2%);
  pointer-events: none;
}

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

.hero-content { max-width: 820px; }

.hero-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-title {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: clamp(28px, 5.4vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.75;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 700px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
}

.hero-badges span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(255, 209, 102, 0.4);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 209, 102, 0.55);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.btn-large { padding: 18px 32px; font-size: 17px; }

/* ============== Sections ============== */
.section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .kicker {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text);
}

.section-head p {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.8;
}

.section-head.light .kicker {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255, 255, 255, 0.9); }

/* ============== Services ============== */
.services { background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.service-icon svg { width: 32px; height: 32px; }

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.service-card h3 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* ============== Features ============== */
.features {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255, 209, 102, 0.12), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 209, 102, 0.5);
  transform: translateY(-4px);
}

.feature-num {
  font-family: 'Cairo', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.feature-card h3 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.9;
}

/* ============== Contact ============== */
.contact { background: var(--bg-soft); }

.contact-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  border-top: 6px solid var(--primary);
}

.contact-text .kicker {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-text h2 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
}

.contact-text > p {
  color: var(--text-soft);
  font-size: 16px;
  margin-bottom: 24px;
}

.contact-info {
  display: grid;
  gap: 14px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border-inline-start: 4px solid var(--primary);
}

.info-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.info-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.info-value a {
  color: var(--primary);
  letter-spacing: 0.5px;
  direction: ltr;
  display: inline-block;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-actions .btn { width: 100%; }

/* ============== Footer ============== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  font-size: 14px;
  margin: 0;
}

.footer-credit {
  font-size: 14px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(255, 209, 102, 0.12);
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
}

.footer-credit a:hover {
  background: rgba(255, 209, 102, 0.22);
  transform: translateY(-2px);
}

.credit-name {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.02em;
}

/* ============== Floating WhatsApp ============== */
.float-whatsapp {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  animation: pulse 2.4s ease-in-out infinite;
}

.float-whatsapp:hover { transform: scale(1.1); }

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  50% {
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5), 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* ============== Responsive ============== */
@media (max-width: 900px) {
  .section { padding: 60px 0; }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 32px 26px;
    gap: 28px;
  }

  .section-head { margin-bottom: 40px; }
}

@media (max-width: 600px) {
  .container { padding-inline: 16px; }

  .hero { padding: 50px 0 60px; }
  .hero-eyebrow { font-size: 13px; padding: 6px 14px; margin-bottom: 18px; }

  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; }

  .hero-badges { gap: 10px 16px; }
  .hero-badges li { font-size: 14px; }

  .section { padding: 50px 0; }

  .services-grid { gap: 18px; grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px; }

  .features-grid { gap: 16px; grid-template-columns: 1fr; }
  .feature-card { padding: 24px 22px; }

  .contact-card { padding: 28px 22px; border-radius: var(--radius-lg); }

  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }

  .float-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 16px;
    inset-inline-start: 16px;
  }
}

@media (max-width: 380px) {
  .hero-title { font-size: 26px; }
  .nav-brand-name { font-size: 16px; }
  .nav-logo { width: 36px; height: 36px; }
  .btn { padding: 12px 18px; font-size: 15px; }
}

/* ============== Accessibility ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection {
  background: var(--primary);
  color: #fff;
}
