/*
Theme Name: Riyadh Water Leak Detection Theme
Theme URI: https://example.com/riyadh-water-leak
Author: Antigravity
Author URI: https://example.com
Description: قالب ووردبريس لصفحة هبوط سريعة وخفيفة لخدمات كشف تسربات المياه وعوازل الأسطح والخزانات بالرياض، مع دعم كامل للغة العربية وأزرار الاتصال السريع والواتساب.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: riyadh-water-leak
Tags: one-page, rtl-language-support, custom-header, custom-menu, landing-page
*/

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
:root {
  --primary: #0284c7;       /* أزرق مائي رئيسي */
  --primary-dark: #0369a1;  /* أزرق غامق */
  --primary-light: #e0f2fe; /* أزرق فاتح جداً لخلفيات البطاقات */
  --secondary: #0d9488;     /* لون تيركواز مائي */
  --accent-green: #16a34a;  /* أخضر واتساب وتأكيد */
  --accent-red: #dc2626;    /* أحمر اتصل الآن وتنبيه */
  --dark: #1e293b;          /* كحلي داكن للنصوص */
  --gray-bg: #f8fafc;       /* خلفية رمادية فاتحة جداً */
  --gray-border: #e2e8f0;   /* لون الحدود */
  --white: #ffffff;
  --font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Top Alert Bar & Header
   ========================================================================== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar .badge {
  background: var(--accent-red);
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
  margin-left: 8px;
}

.main-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
}

.logo-text h1 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.8rem;
  color: #64748b;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease-in-out;
}

.btn-phone {
  background: var(--accent-red);
  color: #fff;
}

.btn-phone:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--accent-green);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #15803d;
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  padding: 50px 0 40px;
  border-bottom: 1px solid var(--gray-border);
}

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

.hero-content h2 {
  font-size: 2.2rem;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 900;
}

.hero-content h2 span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 25px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-badge-item {
  background: var(--white);
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dark);
}

.hero-badge-item i {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* Quick Order Card */
.quick-order-card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-light);
}

.quick-order-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  text-align: center;
  font-weight: 800;
}

.quick-order-card p {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 18px;
}

.quick-form .form-group {
  margin-bottom: 12px;
}

.quick-form input,
.quick-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.quick-form input:focus,
.quick-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.quick-form .btn-submit {
  width: 100%;
  background: var(--accent-red);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  margin-top: 5px;
}

.quick-form .btn-submit:hover {
  background: #b91c1c;
}

/* ==========================================================================
   Trust / Stats Bar
   ========================================================================== */
.stats-section {
  background: var(--primary-dark);
  color: #fff;
  padding: 25px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h2 {
  font-size: 1.9rem;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-title p {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 24px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

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

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.service-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.service-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   Why Choose Us & Process
   ========================================================================== */
.bg-light {
  background-color: var(--gray-bg);
}

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

.feature-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border-right: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.feature-box h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-box p {
  color: #64748b;
  font-size: 0.9rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.step-card {
  background: #fff;
  padding: 25px 15px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  position: relative;
}

.step-number {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 12px;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.88rem;
  color: #64748b;
}

/* ==========================================================================
   Coverage & Water Bill Section
   ========================================================================== */
.report-banner {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border-radius: 12px;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.report-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.report-content p {
  font-size: 1rem;
  opacity: 0.95;
  max-width: 600px;
}

.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.coverage-tag {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

/* ==========================================================================
   Footer & Sticky Mobile Bar
   ========================================================================== */
.main-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 45px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 35px;
  margin-bottom: 30px;
}

.footer-info h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-info p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Floating Mobile Buttons */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
  padding: 10px 15px;
  z-index: 9999;
}

.sticky-mobile-bar .btn-group {
  display: flex;
  gap: 10px;
}

.sticky-mobile-bar .btn {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
}

/* ==========================================================================
   SEO Article & Content Section
   ========================================================================== */
.seo-article-section {
  padding: 70px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--gray-border);
}

.seo-article-box {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  line-height: 1.85;
}

.seo-article-box h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.seo-article-box h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.seo-article-box h3 {
  font-size: 1.35rem;
  color: var(--dark);
  margin: 25px 0 12px;
  font-weight: 700;
}

.seo-article-box p {
  color: #475569;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.seo-article-box ul,
.seo-article-box ol {
  margin-right: 25px;
  margin-bottom: 20px;
}

.seo-article-box li {
  list-style: disc;
  color: #334155;
  margin-bottom: 10px;
  font-size: 1rem;
}

.seo-highlight-card {
  background: var(--primary-light);
  border-right: 4px solid var(--primary);
  padding: 20px;
  border-radius: 6px;
  margin: 25px 0;
}

.seo-highlight-card p {
  margin-bottom: 0;
  color: var(--primary-dark);
  font-weight: 600;
}

/* FAQ Accordion */
.faq-section {
  padding: 60px 0;
  background-color: var(--gray-bg);
}

.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 18px 22px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.faq-answer {
  padding: 0 22px 18px;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
  .header-cta {
    display: none;
  }
  .hero-content h2 {
    font-size: 1.7rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .sticky-mobile-bar {
    display: block;
  }
  body {
    padding-bottom: 60px;
  }
}
