/*
Theme Name: Al-Ittihad Services | مكتب الاتحاد للخدمات العامة والتعقيب
Theme URI: https://gitlab.com/kash9/wordpress-theme
Author: Kash
Description: ثيم ووردبريس احترافي عربي RTL لمكتب خدمات عامة وتعقيب في السعودية. خلفية خضراء داكنة، متجاوب مع الجوال والكمبيوتر، محسّن لمحركات البحث ومتوافق مع إرشادات المحتوى المفيد من جوجل.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
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: alittihad
Tags: rtl-language-support, custom-menu, custom-logo, blog, one-column
*/

:root {
  --green-950: #06281d;
  --green-900: #0b3d2e;
  --green-800: #14532d;
  --green-700: #1a6b3c;
  --gold: #d4af37;
  --gold-light: #e9cd6d;
  --white: #ffffff;
  --text: #eaf3ee;
  --text-muted: #b8ccc2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  background: var(--green-900);
  color: var(--text);
  line-height: 1.9;
  direction: rtl;
  text-align: right;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold); }

.container { width: min(1170px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { color: var(--white); line-height: 1.5; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-muted); max-width: 720px; margin: 0 auto 45px; }
.section-title::after {
  content: ""; display: block; width: 70px; height: 4px;
  background: var(--gold); margin: 14px auto 0; border-radius: 2px;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--green-950); font-size: .88rem;
  padding: 8px 0; border-bottom: 1px solid rgba(212,175,55,.25);
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--text-muted); margin-inline-start: 14px; }
.topbar a:hover { color: var(--gold); }

/* ===== Header ===== */
.site-header {
  background: rgba(6, 40, 29, .97);
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .custom-logo { width: 52px; height: 52px; object-fit: contain; }
.site-title { font-size: 1.15rem; font-weight: 800; color: var(--white); }
.site-title span { color: var(--gold); }
.site-tagline { display: block; font-size: .78rem; color: var(--text-muted); font-weight: 400; }

.main-nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text); font-weight: 700; padding: 9px 14px; border-radius: 8px; display: block;
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--green-800); color: var(--gold-light); }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--gold); color: var(--gold);
  font-size: 1.3rem; padding: 4px 12px; border-radius: 8px; cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 13px 32px; border-radius: 50px;
  font-weight: 800; font-size: 1rem; transition: all .25s; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-light); color: var(--green-950); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--green-950); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(212,175,55,.14), transparent 55%),
    linear-gradient(160deg, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%);
  padding: 90px 0 80px; text-align: center;
}
.hero h1 { max-width: 850px; margin: 0 auto 18px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { max-width: 700px; margin: 0 auto 34px; color: var(--text-muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 55px; }
.hero-stats .stat strong { display: block; font-size: 1.9rem; color: var(--gold); font-weight: 800; }
.hero-stats .stat span { color: var(--text-muted); font-size: .92rem; }

/* ===== Services ===== */
.services { background: var(--green-950); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.service-card {
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
  border: 1px solid rgba(212,175,55,.22);
  border-radius: var(--radius); padding: 30px 24px;
  transition: transform .25s, border-color .25s; box-shadow: var(--shadow);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.service-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.service-card h3 { color: var(--gold-light); margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .95rem; }

/* ===== About / Why us ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-grid ul { list-style: none; margin-top: 18px; }
.about-grid li { padding-inline-start: 28px; position: relative; margin-bottom: 10px; }
.about-grid li::before { content: "✔"; color: var(--gold); position: absolute; right: 0; }
.about-panel {
  background: var(--green-950); border: 1px solid rgba(212,175,55,.25);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.about-panel h3 { color: var(--gold); margin-bottom: 14px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature { background: var(--green-800); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.feature .icon { font-size: 2rem; }
.feature h3 { margin: 10px 0 8px; color: var(--gold-light); font-size: 1.05rem; }
.feature p { color: var(--text-muted); font-size: .92rem; }

/* ===== Testimonials ===== */
.testimonials { background: var(--green-950); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial {
  background: var(--green-900); border-radius: var(--radius); padding: 28px;
  border: 1px solid rgba(212,175,55,.18);
}
.testimonial p { color: var(--text); font-size: .97rem; }
.testimonial .who { margin-top: 16px; color: var(--gold); font-weight: 700; font-size: .9rem; }
.testimonial .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 10px; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--green-800); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden; border: 1px solid rgba(212,175,55,.18);
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 800; color: var(--white);
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; left: 22px; color: var(--gold); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 22px 20px; color: var(--text-muted); }

/* ===== Contact / CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  text-align: center; border-top: 1px solid rgba(212,175,55,.25); border-bottom: 1px solid rgba(212,175,55,.25);
}
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 35px; }
.contact-card { background: var(--green-950); border-radius: var(--radius); padding: 26px; text-align: center; border: 1px solid rgba(212,175,55,.2); }
.contact-card .icon { font-size: 1.8rem; }
.contact-card h3 { color: var(--gold-light); margin: 8px 0 6px; font-size: 1rem; }
.contact-card a, .contact-card p { color: var(--text-muted); font-size: .95rem; }

/* ===== Blog / content ===== */
.content-area { padding: 60px 0; }
.post-card {
  background: var(--green-800); border-radius: var(--radius); padding: 30px;
  margin-bottom: 26px; border: 1px solid rgba(212,175,55,.15);
}
.post-card h2 a { color: var(--white); }
.post-card h2 a:hover { color: var(--gold); }
.post-meta { color: var(--text-muted); font-size: .85rem; margin: 6px 0 14px; }
.entry-content h2, .entry-content h3 { margin: 26px 0 12px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { padding-inline-start: 24px; }

/* ===== Footer ===== */
.site-footer { background: var(--green-950); padding: 55px 0 0; border-top: 2px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; padding-bottom: 40px; }
.footer-grid h3 { color: var(--gold); font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a, .footer-grid p { color: var(--text-muted); font-size: .93rem; }
.footer-grid a:hover { color: var(--gold-light); }
.copyright {
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0;
  text-align: center; color: var(--text-muted); font-size: .85rem;
}

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 998;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); font-size: 1.7rem; color: #fff;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; padding: 10px 0; }
  .header-inner { flex-wrap: wrap; }
  .hero { padding: 60px 0 55px; }
  .section { padding: 50px 0; }
  .hero-stats { gap: 22px; }
}

/* ===== Ultra v2 ===== */
.hero-badge {
  display: inline-block; border: 1px solid var(--gold); color: var(--gold-light);
  padding: 6px 20px; border-radius: 50px; font-size: .85rem; font-weight: 700;
  margin-bottom: 20px; background: rgba(212,175,55,.08);
}

.badges-strip { background: var(--green-950); border-block: 1px solid rgba(212,175,55,.2); padding: 16px 0; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; color: var(--text-muted); font-size: .9rem; }
.badge {
  background: var(--green-800); border: 1px solid rgba(212,175,55,.25);
  padding: 5px 18px; border-radius: 50px; color: var(--gold-light); font-weight: 700; font-size: .85rem;
}

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step {
  background: var(--green-800); border-radius: var(--radius); padding: 30px 22px;
  text-align: center; border: 1px solid rgba(212,175,55,.18); transition: transform .25s;
}
.step:hover { transform: translateY(-5px); }
.step .num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--green-950);
  font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { color: var(--gold-light); font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .92rem; }

.backtotop {
  position: fixed; bottom: 94px; left: 26px; z-index: 998;
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold);
  background: var(--green-950); color: var(--gold); font-size: 1.2rem; cursor: pointer;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.backtotop.show { opacity: 1; visibility: visible; }
.backtotop:hover { background: var(--gold); color: var(--green-950); }

.wa-float { animation: wa-pulse 2.5s infinite; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
