/*
Theme Name: Cleaning Company
Theme URI: https://example.com/cleaning-company
Author: Lovable
Author URI: https://lovable.dev
Description: قالب عربي لتقديم خدمات التنظيف مع أزرار اتصال وواتساب ودعم RTL.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cleaning-company
Domain Path: /languages
Tags: one-page, rtl, arabic, cleaning, services
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --radius: 1rem;
  --background: #f6fbfc;
  --foreground: #1a2530;
  --card: #ffffff;
  --card-foreground: #1a2530;
  --primary: #0f95a6;
  --primary-foreground: #ffffff;
  --secondary: #e6f5f7;
  --secondary-foreground: #1a2530;
  --muted: #eef7f8;
  --muted-foreground: #5a6b7a;
  --accent: #3cc9a8;
  --accent-foreground: #1a2530;
  --border: #d8e8eb;
  --input: #d8e8eb;
  --ring: #0f95a6;
  --whatsapp: #25d366;
  --gradient-hero: linear-gradient(135deg, #0f95a6 0%, #2bb5a3 55%, #3cc9a8 100%);
  --gradient-soft: linear-gradient(180deg, #eef7f8 0%, #ffffff 100%);
  --shadow-glow: 0 10px 40px -10px rgba(15, 149, 166, 0.45);
  --shadow-soft: 0 8px 30px -12px rgba(26, 37, 48, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  direction: rtl;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Floating buttons */
.floating-buttons {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease;
  animation: float-side 2s ease-in-out infinite;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.whatsapp {
  background-color: var(--whatsapp);
  animation: float-side 2s ease-in-out infinite, pulse-ring 2s ease-out infinite;
}

.floating-btn.phone {
  background-color: var(--primary);
}

.floating-btn svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Hero */
.hero {
  background: var(--gradient-hero);
  padding: 5rem 1rem;
  color: var(--primary-foreground);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  animation: rise 0.7s ease-out both;
}

.hero-title {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  animation: rise 0.7s ease-out 0.1s both;
}

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

.hero-desc {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  opacity: 0.9;
  animation: rise 0.7s ease-out 0.2s both;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: rise 0.7s ease-out 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background-color: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Sections */
.section {
  padding: 4rem 1rem;
}

.section-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  text-align: center;
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

/* Services grid */
.services-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background-color: var(--secondary);
  color: var(--primary);
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.service-title {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.service-desc {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.service-link:hover {
  text-decoration: underline;
}

.service-link svg {
  width: 1rem;
  height: 1rem;
}

/* Features */
.features-section {
  background-color: rgba(230, 245, 247, 0.5);
}

.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  background-color: var(--card);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.feature-item svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--accent);
}

.feature-item span {
  font-weight: 600;
}

/* CTA */
.cta-box {
  max-width: 48rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  background: var(--gradient-hero);
  padding: 2.5rem;
  text-align: center;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.cta-box h2 {
  font-size: 1.875rem;
  font-weight: 800;
}

.cta-box p {
  margin-top: 0.75rem;
  opacity: 0.9;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  border-radius: 9999px;
  background-color: var(--card);
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
  direction: ltr;
}

.cta-phone:hover {
  transform: scale(1.05);
}

.cta-phone svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--card);
  padding: 2.5rem 1rem;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer .copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-footer .designer {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-footer .designer a {
  font-weight: 700;
  color: var(--primary);
}

.site-footer .designer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes float-side {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WordPress admin bar fix */
.admin-bar .floating-buttons {
  bottom: 3.5rem;
}

/* WordPress alignments */
.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
