/*
Theme Name: Sheikh Hussein Spiritual
Theme URI: https://example.com/sheikh-hussein
Author: Sheikh Hussein
Author URI: https://example.com
Description: قالب وردبريس تعريفي للشيخ الروحاني حسين – تصميم هادئ بألوان بيج وأخضر زيتي مع دعم كامل للغة العربية وRTL. مخصص للعلاج الروحاني، فك السحر، جلب الحبيب، وحل المشاكل الزوجية.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sheikh-hussein
Tags: rtl-language-support, one-column, custom-colors, custom-menu, featured-images, threaded-comments
*/

:root {
  --bg: #f7f3ea;
  --bg-soft: #efe7d4;
  --card: #fdfaf3;
  --foreground: #3a2f1f;
  --muted: #7a6b56;
  --border: #e1d5bb;
  --primary: #4a5d3a;
  --primary-glow: #6b8455;
  --primary-foreground: #f7f3ea;
  --gold: #c9a44a;
  --gold-soft: #e8d8a8;
  --whatsapp: #25d366;
  --whatsapp-fg: #ffffff;
  --shadow-soft: 0 8px 24px -12px rgba(74, 93, 58, 0.18);
  --shadow-elegant: 0 20px 50px -20px rgba(74, 93, 58, 0.25);
  --radius: 1rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.1rem;
}
.brand-name {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--foreground);
}
.brand-sub { font-size: 0.7rem; color: var(--muted); }
.nav-menu { display: none; gap: 1.5rem; align-items: center; }
.nav-menu a { font-size: 0.92rem; color: var(--foreground); transition: color .2s; }
.nav-menu a:hover { color: var(--primary); }
@media (min-width: 768px) {
  .nav-menu { display: flex; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  border: none;
  font-family: inherit;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn-whatsapp { background: var(--whatsapp); color: var(--whatsapp-fg); box-shadow: var(--shadow-soft); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.78rem; }

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .hero { padding: 8rem 0; }
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(247,243,234,0.7), rgba(247,243,234,0.85), var(--bg));
  z-index: -1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(253, 250, 243, 0.75);
  border: 1px solid rgba(201, 164, 74, 0.4);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}
.hero-badge .dot { color: var(--gold); }
.hero h1 {
  font-family: 'Amiri', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--foreground);
}
.hero h1 span { color: var(--primary); }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
.hero p {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .hero-cta { flex-direction: row; justify-content: center; align-items: center; }
}
.hero-phone {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  direction: ltr;
}

/* ========== SECTIONS ========== */
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }

.section-bg-soft { background: var(--bg-soft); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title h2 {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
}
@media (min-width: 768px) { .section-title h2 { font-size: 2.5rem; } }
.section-title .underline {
  margin: 1rem auto 0;
  width: 64px; height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ========== ABOUT ========== */
.about-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 2;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(201, 164, 74, 0.5); }
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(74, 93, 58, 0.1);
  color: var(--primary);
  display: grid; place-items: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--foreground); }
.feature-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(74, 93, 58, 0.4); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
  color: var(--primary-foreground);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--foreground); }
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

.services-cta { text-align: center; margin-top: 2.5rem; }

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft);
  background: var(--card);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
  color: #fff;
  padding: 0.85rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========== CONTACT ========== */
.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--card), var(--bg-soft));
  border: 1px solid rgba(201, 164, 74, 0.3);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-elegant);
}
@media (min-width: 768px) { .contact-card { padding: 3.5rem; } }
.contact-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
}
.contact-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--foreground); }
.contact-card p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.85; }
.phone-display {
  display: inline-block;
  background: var(--bg);
  padding: 1rem 1.75rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  direction: ltr;
}
@media (min-width: 768px) { .phone-display { font-size: 2rem; } }
.contact-buttons {
  display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch;
}
@media (min-width: 640px) { .contact-buttons { flex-direction: row; justify-content: center; } }
.contact-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: rgba(253, 250, 243, 0.6);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.85rem; color: var(--foreground); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.88rem; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-brand-name { font-family: 'Amiri', serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.6rem; }
.footer-brand-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ========== FLOATING WHATSAPP ========== */
.fab-whatsapp {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 50;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-elegant);
  font-size: 1.6rem;
  transition: transform .2s;
}
.fab-whatsapp:hover { transform: scale(1.1); }
.fab-whatsapp::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0.3;
  animation: ping 2s cubic-bezier(0,0,0.2,1) infinite;
  z-index: -1;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.3; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}

/* WP standard classes */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
