/*
Theme Name: مركز الريحان للعلاج الروحاني
Theme URI: https://Alrrahma.online
Author: Al Rayhan Center
Author URI: https://Alrrahma.online
Description: قالب ووردبريس متكامل لمركز الريحان للعلاج الروحاني بالقرآن والسنة. يتضمن صفحة رئيسية متكاملة مع خدمات، نموذج طلب، وتكامل مع واتساب.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alrayhan
Tags: rtl, arabic, one-page, custom-background, custom-logo
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ─── CSS VARIABLES ─── */
:root {
  --deep: #06101f;
  --navy: #0d1f3c;
  --royal: #15345a;
  --sky: #5dade2;
  --sky-light: #85c1e9;
  --gold: #d4a24e;
  --gold-light: #f0d78c;
  --white: #ffffff;
  --off-white: #f0f7ff;
  --text: #c8ddf0;
  --text-light: #8fa8c8;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  background: var(--deep);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

::selection { background: rgba(212,162,78,0.3); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── PARTICLE CANVAS ─── */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  padding: 18px 0;
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
}
.navbar.scrolled {
  background: rgba(6,16,31,0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 10px 0;
  border-bottom: 1px solid rgba(212,162,78,0.1);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--deep);
  box-shadow: 0 4px 20px rgba(212,162,78,0.3);
}
.logo-text { font-family: 'Scheherazade New', serif; font-size: 22px; color: var(--white); font-weight: 700; }
.logo-sub { font-size: 10px; color: var(--gold); letter-spacing: 2px; }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-link {
  background: none; border: none; padding: 10px 18px; border-radius: 10px;
  font-family: 'Amiri', serif; font-size: 15px; color: var(--text-light);
  cursor: pointer; transition: all 0.3s; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(212,162,78,0.08); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 4px; right: 50%; transform: translateX(50%);
  width: 20px; height: 2px; background: var(--gold); border-radius: 2px;
}

.mobile-toggle {
  display: none; background: none; border: 1px solid rgba(212,162,78,0.3);
  color: var(--gold); font-size: 22px; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
  align-items: center; justify-content: center;
}
.mobile-menu {
  display: none; position: fixed; top: 70px; right: 0; left: 0;
  background: rgba(6,16,31,0.98); backdrop-filter: blur(20px);
  padding: 20px; flex-direction: column; gap: 4px;
  border-bottom: 1px solid rgba(212,162,78,0.1);
  animation: slideDown 0.3s ease;
  list-style: none;
}
.mobile-menu.open { display: flex; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; position: relative; display: flex;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(21,52,90,0.8), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(93,173,226,0.15), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(212,162,78,0.1), transparent),
    var(--deep);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%23d4a24e' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='15' fill='none' stroke='%23d4a24e' stroke-width='0.3'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  animation: patternDrift 30s linear infinite;
}
.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  animation: glowPulse 6s ease-in-out infinite;
}
.hero-glow-1 { top: 10%; right: 10%; background: rgba(93,173,226,0.12); }
.hero-glow-2 { bottom: 10%; left: 10%; background: rgba(212,162,78,0.08); animation-delay: 3s; }
.hero-ring {
  position: absolute; border: 1px solid rgba(212,162,78,0.08);
  border-radius: 50%; pointer-events: none;
}
.ring-1 { width: 400px; height: 400px; top: 15%; left: -5%; animation: rotateSlow 40s linear infinite; }
.ring-2 { width: 600px; height: 600px; bottom: -10%; right: -10%; animation: rotateSlow 60s linear infinite reverse; border-color: rgba(93,173,226,0.06); }
.ring-3 { width: 300px; height: 300px; top: 30%; right: 5%; animation: rotateSlow 30s linear infinite; }

.hero-content { position: relative; z-index: 2; max-width: 850px; }
.bismillah {
  font-family: 'Amiri Quran', 'Scheherazade New', serif;
  font-size: clamp(24px, 4.5vw, 42px);
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 1s 0.2s forwards;
  text-shadow: 0 0 40px rgba(212,162,78,0.3);
}
.hero-title {
  font-family: 'Scheherazade New', serif;
  font-size: clamp(42px, 8vw, 82px);
  font-weight: 700; color: var(--white);
  margin-bottom: 8px; line-height: 1.2;
  opacity: 0; animation: fadeUp 1s 0.4s forwards;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-family: 'Amiri', serif;
  font-size: clamp(18px, 3.2vw, 30px);
  color: var(--sky-light);
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp 1s 0.6s forwards;
}
.hero-desc {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text-light);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 2;
  opacity: 0; animation: fadeUp 1s 0.8s forwards;
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s 1s forwards;
}
.hero-verse {
  margin-top: 50px; padding: 20px 36px;
  background: rgba(212,162,78,0.06);
  border: 1px solid rgba(212,162,78,0.12);
  border-radius: 18px; display: inline-block;
  opacity: 0; animation: fadeUp 1s 1.2s forwards;
}
.hero-verse p {
  font-family: 'Amiri Quran', 'Scheherazade New', serif;
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--gold-light); margin: 0;
}
.hero-verse span { font-size: 12px; color: var(--text-light); margin-top: 8px; display: block; }

/* ─── BUTTONS ─── */
.btn-primary {
  padding: 15px 38px;
  background: linear-gradient(135deg, var(--gold), #c4913e);
  border: none; border-radius: 14px;
  color: var(--deep); font-family: 'Amiri', serif;
  font-size: 17px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 30px rgba(212,162,78,0.35);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(212,162,78,0.5); }
.btn-secondary {
  padding: 15px 38px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,162,78,0.3);
  border-radius: 14px; color: var(--gold);
  font-family: 'Amiri', serif; font-size: 17px;
  cursor: pointer; backdrop-filter: blur(8px);
  transition: all 0.4s; display: inline-block;
}
.btn-secondary:hover { background: rgba(212,162,78,0.1); border-color: var(--gold); }
.btn-whatsapp {
  padding: 15px 38px;
  background: #25D366; border: none;
  border-radius: 14px; color: #fff;
  font-family: 'Amiri', serif; font-size: 17px;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(37,211,102,0.3);
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.4s;
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(37,211,102,0.5); }

/* ─── SECTION COMMON ─── */
.section-tag {
  font-family: 'Amiri', serif; font-size: 13px;
  color: var(--gold); letter-spacing: 3px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.section-tag::before, .section-tag::after {
  content: ''; width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-title {
  font-family: 'Scheherazade New', serif;
  font-size: clamp(30px, 5.5vw, 48px);
  color: var(--white); font-weight: 700;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; color: var(--text-light);
  max-width: 600px; margin: 0 auto; line-height: 1.9;
}

/* ─── ABOUT ─── */
.about {
  padding: 100px 24px; position: relative;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(21,52,90,0.5), transparent 70%),
    var(--deep);
}
.about-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.about-text {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text); line-height: 2.2;
  max-width: 780px; margin: 0 auto 20px;
}
.about-divider {
  width: 60px; height: 2px; margin: 30px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stats { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 50px; }
.stat-card {
  padding: 30px 40px;
  background: linear-gradient(135deg, rgba(21,52,90,0.6), rgba(13,31,60,0.8));
  border: 1px solid rgba(212,162,78,0.12);
  border-radius: 20px; min-width: 160px;
  position: relative; overflow: hidden;
  transition: all 0.4s;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,162,78,0.3);
  box-shadow: 0 12px 40px rgba(212,162,78,0.1);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-family: 'Scheherazade New', serif;
  font-size: 38px; font-weight: 700; color: var(--gold);
}
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ─── SERVICES ─── */
.services {
  padding: 100px 24px; position: relative;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(93,173,226,0.06), transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(212,162,78,0.04), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--navy), var(--deep));
}
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px; margin-top: 50px;
}
.service-card {
  background: linear-gradient(160deg, rgba(21,52,90,0.5), rgba(13,31,60,0.7));
  border: 1px solid rgba(93,173,226,0.08);
  border-radius: 20px; padding: 30px 26px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,162,78,0.05), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,162,78,0.25);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 30px rgba(212,162,78,0.06);
}
.service-card::after {
  content: ''; position: absolute; top: -1px; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform 0.5s;
}
.service-card:hover::after { transform: scaleX(1); }
.service-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; position: relative; z-index: 1; }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(212,162,78,0.15), rgba(212,162,78,0.05));
  border: 1px solid rgba(212,162,78,0.2);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
  transition: all 0.4s;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(212,162,78,0.25), rgba(212,162,78,0.1));
  box-shadow: 0 0 20px rgba(212,162,78,0.15);
}
.service-name {
  font-family: 'Scheherazade New', serif;
  font-size: 20px; color: var(--white); font-weight: 700;
}
.service-desc {
  font-size: 14px; color: var(--text-light);
  line-height: 2; position: relative; z-index: 1;
}
.service-details {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
}
.service-card.expanded .service-details { max-height: 250px; opacity: 1; }
.service-details-inner {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgba(212,162,78,0.1);
  position: relative; z-index: 1;
}
.service-details-text { font-size: 13px; color: var(--text-light); line-height: 2; }
.service-wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 22px;
  background: #25D366; border-radius: 12px;
  color: #fff; font-family: 'Amiri', serif; font-size: 14px;
  transition: all 0.3s;
}
.service-wa-btn:hover { background: #1fba58; box-shadow: 0 4px 20px rgba(37,211,102,0.3); }
.service-toggle {
  margin-top: 14px; font-size: 11px; color: var(--gold);
  font-family: 'Amiri', serif; letter-spacing: 1px;
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 6px;
}
.service-toggle-arrow { display: inline-block; transition: transform 0.3s; }
.service-card.expanded .service-toggle-arrow { transform: rotate(180deg); }

/* ─── ORDER FORM ─── */
.order {
  padding: 100px 24px; position: relative;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(21,52,90,0.6), transparent 70%),
    var(--deep);
}
.order-inner { max-width: 680px; margin: 0 auto; }
.order-form {
  background: linear-gradient(160deg, rgba(21,52,90,0.5), rgba(13,31,60,0.7));
  border: 1px solid rgba(212,162,78,0.12);
  border-radius: 24px; padding: 40px 32px;
  position: relative; overflow: hidden; margin-top: 40px;
}
.order-form::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.form-group { margin-bottom: 22px; }
.form-label {
  font-family: 'Amiri', serif; font-size: 15px;
  color: var(--gold-light); margin-bottom: 8px; display: block;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 15px 20px;
  background: rgba(6,16,31,0.6);
  border: 1px solid rgba(93,173,226,0.12);
  border-radius: 14px;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 15px; color: var(--white);
  outline: none; transition: all 0.3s;
  direction: rtl;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); opacity: 0.5; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,162,78,0.08);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select option { background: var(--navy); color: var(--white); }
.submit-btn {
  width: 100%; padding: 17px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none; border-radius: 16px;
  color: #fff; font-family: 'Amiri', serif;
  font-size: 19px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 30px rgba(37,211,102,0.25);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: all 0.4s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(37,211,102,0.4); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── CONTACT ─── */
.contact {
  padding: 100px 24px;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(93,173,226,0.06), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--navy));
}
.contact-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-cards { display: flex; flex-direction: column; gap: 18px; align-items: center; margin-top: 40px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 36px; min-width: 340px;
  background: linear-gradient(135deg, rgba(21,52,90,0.5), rgba(13,31,60,0.7));
  border: 1px solid rgba(212,162,78,0.1);
  border-radius: 18px; transition: all 0.4s;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,162,78,0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.contact-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.contact-icon.wa { background: #25D366; }
.contact-icon.web { background: linear-gradient(135deg, var(--sky), #2980b9); }
.contact-label { font-family: 'Amiri', serif; font-size: 17px; color: var(--white); font-weight: 700; }
.contact-value { font-size: 14px; color: var(--gold); direction: ltr; text-align: right; }

/* ─── FOOTER ─── */
.site-footer {
  padding: 50px 24px;
  background: var(--deep);
  text-align: center;
  border-top: 1px solid rgba(212,162,78,0.08);
}
.footer-name {
  font-family: 'Scheherazade New', serif;
  font-size: 22px; color: var(--gold); margin-bottom: 8px;
}
.footer-tagline { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.footer-copy {
  font-size: 13px; color: rgba(255,255,255,0.25);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 9999;
  width: 64px; height: 64px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 25px rgba(37,211,102,0.4);
  animation: waFloat 3s ease-in-out infinite;
  transition: all 0.3s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 35px rgba(37,211,102,0.6); }
.wa-float::before {
  content: ''; position: absolute; inset: -6px;
  border: 2px solid rgba(37,211,102,0.3);
  border-radius: 50%;
  animation: waPing 2s ease-out infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: white; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── WP DEFAULTS ─── */
.wp-block-image img { max-width: 100%; height: auto; }
.aligncenter { display: block; margin: 0 auto; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes patternDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 40px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes waPing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .mobile-toggle { display: flex !important; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { gap: 16px; }
  .stat-card { padding: 24px 30px; min-width: 130px; }
  .order-form { padding: 28px 20px; }
  .contact-card { min-width: 280px; padding: 18px 24px; }
  .hero-ring { display: none; }
}
