/*
Theme Name: الفاروق - لشراء الأثاث المستعمل
Theme URI: https://el-farouq.com
Author: الفاروق
Author URI: https://el-farouq.com
Description: قالب متخصص لشراء الأثاث والأجهزة المنزلية المستعملة في الرياض - تصميم عربي RTL بالكامل
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: al-farouq
Tags: rtl-language, arabic, one-page, services, business
*/

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

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
  background-color: #f8f5f0;
  color: #1a1a1a;
  line-height: 1.6;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #1a6b4a; border-radius: 3px; }

/* ── Variables ─────────────────────────────────────────── */
:root {
  --green-dark:   #0f3d28;
  --green:        #1a6b4a;
  --green-light:  #2a8a60;
  --gold:         #e8a020;
  --gold-dark:    #c88010;
  --surface:      #f8f5f0;
  --card:         #ffffff;
  --text:         #1a1a1a;
  --muted:        #6b7280;
  --border:       #e5e0d8;
  --radius-sm:    12px;
  --radius-md:    20px;
  --radius-lg:    28px;
}

/* ── Layout ────────────────────────────────────────────── */
.af-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section Titles ────────────────────────────────────── */
.af-section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}
.af-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin-top: 12px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────── */
.af-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
  padding: 16px 0;
}
.af-header.scrolled {
  background: #fff;
  padding: 8px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.af-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.af-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.af-logo-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
  flex-shrink: 0;
}
.af-logo-text .name {
  font-size: 18px; font-weight: 900; line-height: 1.1;
  color: #fff;
  transition: color 0.3s;
}
.af-logo-text .sub {
  font-size: 11px; color: #a7f3d0; line-height: 1;
  transition: color 0.3s;
}
.af-header.scrolled .af-logo-text .name { color: var(--green); }
.af-header.scrolled .af-logo-text .sub  { color: var(--muted); }

.af-nav { display: flex; align-items: center; gap: 28px; }
.af-nav a {
  font-size: 14px; font-weight: 600; color: #fff;
  transition: color 0.2s;
}
.af-header.scrolled .af-nav a { color: #374151; }
.af-nav a:hover { color: var(--gold); }
.af-header.scrolled .af-nav a:hover { color: var(--green); }

.af-header-cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  transition: background 0.2s;
}
.af-header-cta:hover { background: var(--gold-dark) !important; color: #fff !important; }

/* Mobile */
.af-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; padding: 4px;
}
.af-header.scrolled .af-hamburger { color: #374151; }
.af-hamburger svg { width: 26px; height: 26px; }

.af-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.af-mobile-menu.open { display: block; }
.af-mobile-menu a {
  display: block; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600; color: #374151;
}
.af-mobile-menu a:last-child { border-bottom: none; }
.af-mobile-menu .af-mobile-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 14px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 15px; margin-top: 12px;
}

/* ─────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────── */
.af-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f3d28 0%, #1a6b4a 55%, #134d36 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.af-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18;
}
.af-hero-circle-1 {
  position: absolute; top: 0; left: 0;
  width: 280px; height: 280px; border-radius: 50%;
  background: #fff; opacity: 0.05;
  transform: translate(-50%, -50%);
}
.af-hero-circle-2 {
  position: absolute; bottom: 0; right: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--gold); opacity: 0.1;
  transform: translate(50%, 50%);
}
.af-hero-content {
  position: relative; z-index: 2;
  padding: 140px 0 60px;
}
.af-hero-badge {
  display: inline-block;
  background: var(--gold); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 6px 18px; border-radius: 999px;
  margin-bottom: 24px;
}
.af-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 20px;
  max-width: 640px;
}
.af-hero h1 span { color: var(--gold); }
.af-hero-desc {
  font-size: 18px; color: #a7f3d0;
  max-width: 540px; line-height: 1.8; margin-bottom: 36px;
}
.af-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.af-btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #fff;
  padding: 16px 36px; border-radius: var(--radius-md);
  font-size: 17px; font-weight: 900;
  animation: pulse 2s infinite;
  transition: background 0.2s;
}
.af-btn-primary:hover { background: var(--gold-dark); }
.af-btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--green);
  padding: 16px 36px; border-radius: var(--radius-md);
  font-size: 17px; font-weight: 900;
  transition: background 0.2s;
}
.af-btn-secondary:hover { background: #f0fdf4; }

/* Stats */
.af-hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 48px;
}
.af-stat { text-align: center; }
.af-stat-value {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
}
.af-stat-label { font-size: 13px; color: #a7f3d0; margin-top: 4px; }

/* Wave */
.af-wave {
  position: relative; z-index: 2;
  line-height: 0;
}
.af-wave svg { width: 100%; display: block; fill: #f8f5f0; }

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,160,32,.4); }
  50%      { box-shadow: 0 0 0 14px rgba(232,160,32,0); }
}

/* ─────────────────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────────────────── */
.af-services { padding: 80px 0; background: var(--surface); }
.af-services-header { margin-bottom: 48px; }
.af-services-header p {
  font-size: 17px; color: var(--muted); margin-top: 20px;
}
.af-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.af-service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  transition: transform .25s, box-shadow .25s;
  cursor: default;
}
.af-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26,107,74,.12);
}
.af-service-emoji { font-size: 2.5rem; margin-bottom: 16px; }
.af-service-title { font-size: 15px; font-weight: 900; margin-bottom: 8px; }
.af-service-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ─────────────────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────────────────── */
.af-about { padding: 80px 0; background: var(--card); }
.af-about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.af-about-text p {
  font-size: 17px; color: #4b5563; line-height: 1.9;
  margin: 20px 0;
}
.af-features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 32px;
}
.af-feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius-sm); padding: 16px;
}
.af-feature-icon { font-size: 1.6rem; flex-shrink: 0; }
.af-feature-title { font-size: 13px; font-weight: 700; }
.af-feature-desc  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.af-about-image-wrap {
  position: relative;
}
.af-about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #d1d5db;
}
.af-about-image img { width: 100%; height: 100%; object-fit: cover; }
.af-badge-years {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--green); color: #fff;
  border-radius: var(--radius-md); padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(26,107,74,.25);
}
.af-badge-years .val { font-size: 2rem; font-weight: 900; }
.af-badge-years .lbl { font-size: 12px; color: #a7f3d0; }
.af-badge-clients {
  position: absolute; top: -16px; left: -16px;
  background: var(--gold); color: #fff;
  border-radius: var(--radius-md); padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(232,160,32,.25);
}
.af-badge-clients .val { font-size: 1.6rem; font-weight: 900; }
.af-badge-clients .lbl { font-size: 11px; color: #fef3c7; }

/* ─────────────────────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────────────────────── */
.af-how { padding: 80px 0; background: var(--green-dark); }
.af-how-header { text-align: center; margin-bottom: 56px; }
.af-how-header h2 { color: #fff; font-size: clamp(1.8rem,4vw,2.5rem); font-weight: 900; }
.af-how-header p  { color: #6ee7b7; font-size: 16px; margin-top: 8px; }
.af-steps-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.af-step {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md); padding: 28px 20px;
  text-align: center; position: relative;
}
.af-step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900;
  margin: 0 auto 16px;
}
.af-step-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.af-step-desc  { font-size: 13px; color: #6ee7b7; line-height: 1.7; }

/* ─────────────────────────────────────────────────────────
   FAQ
───────────────────────────────────────────────────────── */
.af-faq { padding: 80px 0; background: var(--surface); }
.af-faq-header { margin-bottom: 48px; }
.af-faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.af-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.af-faq-question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 24px; text-align: right;
  background: none; border: none; cursor: pointer;
  font-family: 'Cairo','Tajawal',sans-serif;
  font-size: 15px; font-weight: 700; color: var(--text);
  transition: background 0.2s;
}
.af-faq-question:hover { background: #f9fafb; }
.af-faq-question svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--green); margin-right: 16px;
  transition: transform 0.3s;
}
.af-faq-item.open .af-faq-question svg { transform: rotate(180deg); }
.af-faq-answer {
  padding: 0 24px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 14px; color: #4b5563; line-height: 1.9;
}
.af-faq-item.open .af-faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────────
   ARTICLES / BLOG
───────────────────────────────────────────────────────── */
.af-articles { padding: 80px 0; background: var(--card); }
.af-articles-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 48px;
}
.af-articles-header-text p {
  font-size: 17px; color: var(--muted); margin-top: 20px;
}
.af-articles-all {
  font-size: 14px; font-weight: 700; color: var(--green);
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
  white-space: nowrap; transition: color 0.2s;
}
.af-articles-all:hover { color: var(--gold); }

.af-articles-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.af-article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.af-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26,107,74,.1);
}
.af-article-thumb {
  position: relative; overflow: hidden;
  height: 200px; background: #d1d5db; flex-shrink: 0;
}
.af-article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.af-article-card:hover .af-article-thumb img { transform: scale(1.06); }
.af-article-cat {
  position: absolute; top: 12px; right: 12px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.af-article-body {
  padding: 20px; display: flex; flex-direction: column; flex: 1;
}
.af-article-title {
  font-size: 15px; font-weight: 900; color: var(--text);
  line-height: 1.4; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.af-article-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.8; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 16px;
}
.af-article-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.af-article-date { font-size: 12px; color: #9ca3af; }
.af-article-read {
  font-size: 12px; color: var(--green); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.af-article-read svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .af-articles-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 580px) {
  .af-articles-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────────────────── */
.af-contact { padding: 80px 0; background: var(--card); }
.af-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.af-contact-text p {
  font-size: 17px; color: var(--muted); line-height: 1.8;
  margin: 20px 0 32px;
}
.af-contact-btns { display: flex; flex-direction: column; gap: 14px; }
.af-contact-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-radius: var(--radius-md);
  transition: filter 0.2s;
}
.af-contact-btn:hover { filter: brightness(0.9); }
.af-contact-btn.phone { background: var(--green); color: #fff; }
.af-contact-btn.whatsapp { background: #25d366; color: #fff; }
.af-contact-btn-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.af-contact-btn-icon svg { width: 22px; height: 22px; }
.af-contact-btn-label { font-size: 12px; opacity: 0.75; }
.af-contact-btn-value { font-size: 20px; font-weight: 900; direction: ltr; }
.af-contact-info {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-md); padding: 20px 24px;
  margin-top: 16px;
}
.af-contact-info-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.af-contact-info-row.primary { color: var(--green); font-weight: 700; }
.af-contact-info-row.secondary { color: #4b5563; }

.af-contact-visual {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1;
  background: #d1fae5;
}
.af-contact-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.af-contact-overlay {
  position: absolute; inset: 0;
  background: rgba(26,107,74,.6);
  display: flex; align-items: center; justify-content: center;
}
.af-contact-overlay-inner { text-align: center; color: #fff; padding: 32px; }
.af-contact-overlay-inner .pin { font-size: 4rem; margin-bottom: 16px; }
.af-contact-overlay-inner h3 { font-size: 1.8rem; font-weight: 900; }
.af-contact-overlay-inner p  { color: #a7f3d0; margin-top: 6px; }

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
.af-footer { background: var(--green-dark); color: #fff; padding: 60px 0 24px; }
.af-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.af-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.af-footer-brand-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
}
.af-footer-brand-name { font-size: 18px; font-weight: 900; }
.af-footer-brand-sub  { font-size: 11px; color: #6ee7b7; }
.af-footer-desc { font-size: 14px; color: #6ee7b7; line-height: 1.8; }

.af-footer-col h4 {
  font-size: 15px; font-weight: 700;
  color: var(--gold); margin-bottom: 16px;
}
.af-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.af-footer-col ul li a, .af-footer-col ul li {
  font-size: 13px; color: #6ee7b7;
  transition: color 0.2s;
}
.af-footer-col ul li a:hover { color: #fff; }

.af-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.af-footer-bottom span { font-size: 13px; color: #6ee7b7; }
.af-footer-phone { font-size: 14px; font-weight: 700; direction: ltr; }

/* ─────────────────────────────────────────────────────────
   FLOATING BUTTONS
───────────────────────────────────────────────────────── */
.af-float {
  position: fixed; bottom: 24px; left: 24px;
  z-index: 999;
  display: flex; flex-direction: column; gap: 12px;
}
.af-float a {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform 0.2s;
}
.af-float a:hover { transform: scale(1.12); }
.af-float a.wa  { background: #25d366; }
.af-float a.tel { background: var(--green); animation: pulse 2s infinite; }
.af-float a svg { width: 24px; height: 24px; fill: #fff; }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .af-services-grid { grid-template-columns: repeat(2, 1fr); }
  .af-steps-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .af-nav, .af-header-cta { display: none; }
  .af-hamburger { display: block; }

  .af-hero-stats  { grid-template-columns: repeat(2,1fr); }
  .af-about-grid  { grid-template-columns: 1fr; }
  .af-contact-grid{ grid-template-columns: 1fr; }
  .af-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .af-services-grid { grid-template-columns: repeat(2,1fr); }
  .af-steps-grid  { grid-template-columns: 1fr; }
  .af-features-grid { grid-template-columns: 1fr; }
  .af-badge-years, .af-badge-clients { display: none; }

  .af-hero h1 { font-size: 2rem; }
  .af-btn-primary, .af-btn-secondary { padding: 14px 24px; font-size: 15px; }
}

@media (max-width: 480px) {
  .af-services-grid { grid-template-columns: 1fr; }
  .af-hero-stats { grid-template-columns: repeat(2,1fr); }
  .af-hero-btns { flex-direction: column; }
  .af-btn-primary, .af-btn-secondary { justify-content: center; }
}
