﻿/* ============================================
   Taifelhelol - طيف الحلول
   Dark Professional CSS Framework
   Corporate Blue/Teal Theme  RTL Arabic
   ============================================ */

/* --- Reset and Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: #0A0F1E;
  color: #F1F5F9;
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* --- Utility --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-teal { color: #06B6D4; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* --- Scroll Animation --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all .3s;
}
.navbar.scrolled {
  background: rgba(10,15,30,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6,182,212,.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #F1F5F9;
  display: flex;
  align-items: center;
}
.logo img { height: 45px; width: auto; display: block; }
.logo span { color: #06B6D4; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #94A3B8;
  transition: color .3s;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: #06B6D4; }
.nav-cta {
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #fff;
  padding: .6rem 1.4rem;
  border-radius: .6rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6,182,212,.3);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F1F5F9;
  margin: 5px 0;
  transition: all .3s;
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  inset-inline: 0;
  bottom: 0;
  background: rgba(10,15,30,.98);
  z-index: 99;
  padding: 5rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.2rem;
  color: #F1F5F9;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* --- Hero --- */
.hero {
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,15,30,.85) 0%, rgba(10,15,30,.6) 50%, rgba(6,182,212,.15) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.hero h1 span { color: #06B6D4; }
.hero p {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 2rem;
  max-width: 550px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  padding: .85rem 2rem;
  border-radius: .7rem;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37,211,102,.3);
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(6,182,212,.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6,182,212,.3);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.service-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(6,182,212,.1);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.service-card p {
  color: #94A3B8;
  font-size: .95rem;
}

/* --- Stats --- */
.stats-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #06B6D4;
}
.stat-item p {
  color: #94A3B8;
  margin-top: .5rem;
}

/* --- Features / Why Us --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  text-align: center;
  padding: 2rem;
}
.feature-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.feature-card p {
  color: #94A3B8;
  font-size: .9rem;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(6,182,212,.1);
  border-radius: 1rem;
  padding: 2rem;
}
.testimonial-card p {
  color: #94A3B8;
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial-author {
  font-weight: 700;
  color: #F1F5F9;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: 1.5rem;
  margin: 3rem auto;
  max-width: 900px;
}
.cta-section h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
}
.cta-btn {
  background: #fff;
  color: #0891B2;
  padding: .85rem 2.5rem;
  border-radius: .7rem;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.cta-btn:hover { transform: translateY(-2px); }

/* --- Footer --- */
.footer {
  background: #0F172A;
  border-top: 1px solid rgba(6,182,212,.1);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p {
  color: #94A3B8;
  margin-top: 1rem;
  max-width: 300px;
}
.footer-links h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #F1F5F9;
}
.footer-links a {
  display: block;
  color: #94A3B8;
  padding: .3rem 0;
  transition: color .3s;
}
.footer-links a:hover { color: #06B6D4; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: #64748B;
}

/* --- WhatsApp Float --- */
.wa-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* --- Service Page Hero --- */
.service-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #0A0F1E 0%, #1E293B 100%);
}
.service-hero-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-hero-icon svg {
  width: 64px;
  height: 64px;
}
.service-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.service-hero p {
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Service Content --- */
.service-content { padding: 4rem 0; }
.service-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(15,23,42,.6);
  border-radius: .75rem;
  border: 1px solid rgba(6,182,212,.08);
}
.benefit-icon {
  color: #06B6D4;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* --- Process Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.step-card {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}
.step-number {
  width: 40px;
  height: 40px;
  background: rgba(6,182,212,.15);
  color: #06B6D4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin: 0 auto 1rem;
}

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 1.5rem 0;
}
.faq-question {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  color: #94A3B8;
  margin-top: 1rem;
  display: none;
}
.faq-item.active .faq-answer { display: block; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  color: #64748B;
  font-size: .9rem;
}
.breadcrumb a { color: #06B6D4; }

/* --- Contact Form --- */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(6,182,212,.15);
  border-radius: .6rem;
  color: #F1F5F9;
  font-size: 1rem;
  transition: border-color .3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #06B6D4;
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(6,182,212,.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6,182,212,.3);
}
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img svg {
  width: 48px;
  height: 48px;
  stroke: #06B6D4;
  opacity: .5;
}
.blog-card-body {
  padding: 1.5rem;
}
.blog-card-date {
  font-size: .8rem;
  color: #64748B;
  margin-bottom: .5rem;
}
.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  line-height: 1.5;
}
.blog-card-excerpt {
  color: #94A3B8;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.blog-card-link {
  color: #06B6D4;
  font-weight: 600;
  font-size: .9rem;
}

/* --- Blog Hero --- */
.blog-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #0A0F1E 0%, #1E293B 100%);
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.blog-hero h1 span { color: #06B6D4; }
.blog-hero p {
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Blog Article --- */
.article-header {
  padding: 8rem 0 3rem;
  background: linear-gradient(135deg, #0A0F1E 0%, #1E293B 100%);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #64748B;
  font-size: .9rem;
}
.article-category {
  background: rgba(6,182,212,.15);
  color: #06B6D4;
  padding: .25rem .75rem;
  border-radius: .4rem;
  font-size: .8rem;
  font-weight: 600;
}
.article-body {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: #F1F5F9;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
  color: #E2E8F0;
}
.article-body p {
  color: #CBD5E1;
  margin-bottom: 1.25rem;
  line-height: 1.9;
}
.article-body ul, .article-body ol {
  color: #CBD5E1;
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}
.article-body li {
  margin-bottom: .5rem;
  line-height: 1.8;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.author-box {
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(6,182,212,.1);
  border-radius: 1rem;
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.author-box-icon {
  width: 60px;
  height: 60px;
  background: rgba(6,182,212,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-box-icon svg {
  width: 28px;
  height: 28px;
  stroke: #06B6D4;
}
.author-box h4 {
  font-weight: 700;
  margin-bottom: .25rem;
}
.author-box p {
  color: #94A3B8;
  font-size: .9rem;
}
.related-articles {
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.related-articles h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .service-benefits { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .blog-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; }
  .article-meta { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .wa-float { bottom: 1.25rem; left: 1rem; width: 50px; height: 50px; }
}

@media (max-width: 360px) {
  .services-grid { grid-template-columns: 1fr; }
}


/* --- Packages --- */
.packages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.package-card { background: rgba(15,23,42,.8); border: 1px solid rgba(6,182,212,.1); border-radius: 1rem; padding: 2rem; display: flex; flex-direction: column; }
.package-card:hover { border-color: rgba(6,182,212,.3); box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(-5px); transition: transform .3s, border-color .3s, box-shadow .3s; }
.package-card.popular { border-color: #06B6D4; position: relative; }
.package-card.popular::before { content: 'الأكثر طلباً'; position: absolute; top: -12px; right: 50%; transform: translateX(50%); background: #06B6D4; color: #fff; padding: .3rem 1rem; border-radius: 2rem; font-size: .8rem; font-weight: 700; }
.package-name { font-size: 1.3rem; font-weight: 900; margin-bottom: .5rem; }
.package-desc { color: #94A3B8; font-size: .9rem; margin-bottom: 1.5rem; }
.package-price { font-size: 1.8rem; font-weight: 900; color: #06B6D4; margin-bottom: 1.5rem; }
.package-price span { font-size: .9rem; color: #94A3B8; font-weight: 400; }
.package-features { list-style: none; flex: 1; margin-bottom: 2rem; }
.package-features li { padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.03); color: #CBD5E1; display: flex; align-items: center; gap: .5rem; }
.package-features li::before { content: '✓'; color: #06B6D4; font-weight: 700; }
.package-cta { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; padding: .75rem 1.5rem; border-radius: .6rem; text-align: center; font-weight: 700; transition: transform .2s; display: block; }
.package-cta:hover { transform: translateY(-2px); }

/* --- Comparison Table --- */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.comparison-table th, .comparison-table td { padding: 1rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,.05); }
.comparison-table th { background: rgba(6,182,212,.1); color: #06B6D4; font-weight: 700; }
.comparison-table td:first-child { text-align: right; color: #F1F5F9; }

/* --- Ministries badges --- */
.ministries-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.ministry-badge { background: rgba(15,23,42,.8); border: 1px solid rgba(6,182,212,.1); padding: .6rem 1.2rem; border-radius: 2rem; font-size: .9rem; color: #CBD5E1; transition: border-color .3s; }
.ministry-badge:hover { border-color: rgba(6,182,212,.4); }

/* --- Packages Responsive --- */
@media (max-width: 1024px) { .packages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .packages-grid { grid-template-columns: 1fr; } .comparison-table { font-size: .8rem; } .comparison-table th, .comparison-table td { padding: .5rem; } }
