/*
Theme Name: كفو كلين
Theme URI: https://example.com
Author: Kfoo Clean
Description: قالب إعلاني مختصر لشركة كفو كلين للتنظيف
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: kfoo-clean
Tags: rtl-language, arabic, cleaning, services
*/

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

:root {
  --primary:      #1a5f9c;
  --primary-dark: #0e3d6a;
  --accent:       #27ae60;
  --accent-dark:  #1e8449;
  --gold:         #f0a500;
  --white:        #ffffff;
  --light:        #f4f8fb;
  --gray:         #6c757d;
  --dark:         #1a1a2e;
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --radius:       14px;
  --tr:           0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
  direction: rtl;
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.2;
}
.logo-text span {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-phone a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  transition: var(--tr);
}
.nav-phone a:hover { color: var(--accent); }

.btn-nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 3px 14px rgba(37,211,102,0.3);
  transition: var(--tr);
}
.btn-nav-wa:hover {
  background: #1ab955;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,211,102,0.4);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2a7fbf 100%);
  color: var(--white);
  padding: 52px 0 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%; left: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.hero h2 {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}
.hero h2 span { color: var(--gold); }
.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 28px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.97rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--tr);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 4px 18px rgba(240,165,0,0.35);
}
.btn-gold:hover {
  background: #d4920a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(240,165,0,0.45);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* ===== SERVICES ===== */
.services {
  padding: 60px 0 50px;
  background: var(--light);
}
.sec-title {
  text-align: center;
  margin-bottom: 36px;
}
.sec-title h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.sec-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; right: 50%;
  transform: translateX(50%);
  width: 60px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.sec-title p { color: var(--gray); margin-top: 10px; font-size: 0.97rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--tr);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.svc-card:hover {
  transform: translateY(-7px);
  border-color: var(--primary);
  box-shadow: 0 14px 40px rgba(26,95,156,0.15);
}
.svc-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(26,95,156,0.22);
  transition: var(--tr);
}
.svc-card:hover .svc-icon { transform: scale(1.08); }
.svc-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.svc-card p {
  color: var(--gray);
  font-size: 0.87rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--tr);
  box-shadow: 0 3px 12px rgba(26,95,156,0.2);
}
.svc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26,95,156,0.3);
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--accent));
  padding: 56px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-section .container { position: relative; }
.cta-section h2 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.cta-section p {
  font-size: 1rem; opacity: 0.88;
  margin-bottom: 30px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-wa {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
}
.btn-wa:hover {
  background: #1ab955;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.5);
}
.btn-call {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.btn-call:hover {
  background: var(--light);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 28px 0;
  text-align: center;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer p { font-size: 0.87rem; }
.footer-owner a {
  color: #25d366;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--tr);
}
.footer-owner a:hover { color: #1ab955; text-decoration: underline; }

/* ===== FLOATING BUTTONS (LEFT) ===== */
.floating-buttons {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: var(--tr);
  position: relative;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
}
.float-btn:hover { transform: scale(1.14); }
.float-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 62px;
  background: var(--dark);
  color: var(--white);
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--tr);
  font-family: 'Tajawal', Arial, sans-serif;
}
.float-btn:hover::after { opacity: 1; }
.fb-wa { background: linear-gradient(135deg, #25d366, #1da851); }
.fb-call { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

/* pulse ring on call */
.fb-call::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* SVG icons inside buttons */
.float-btn svg { width: 24px; height: 24px; fill: white; }

/* ===== SCROLL ANIM ===== */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero h2 { font-size: 1.75rem; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .svc-card { padding: 20px 14px; }
  .nav-phone a span { display: none; }
  .cta-section h2 { font-size: 1.55rem; }
  .footer .container { flex-direction: column; text-align: center; gap: 8px; }
  .floating-buttons { left: 10px; gap: 8px; }
  .float-btn { width: 46px; height: 46px; }
}
@media (max-width: 400px) {
  .services-grid { grid-template-columns: 1fr; }
}
