/* ============================================================
   الصفحة الرئيسية — أقسام الصفحة
   ============================================================ */

/* ---------- الهيرو ---------- */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  background:
    radial-gradient(53% 75% at 50% 24%, rgba(195, 222, 244, 0.45) 0%, rgba(250, 250, 250, 0) 100%),
    linear-gradient(190deg, rgba(195, 245, 255, 0.2) 0%, rgba(255, 255, 255, 0) 55%),
    var(--c-bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero__text h1 { max-width: 620px; }
.hero__text .lead {
  margin-top: 22px;
  max-width: 470px;
  color: var(--c-mid);
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero__cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero__cv:hover { text-decoration: underline; text-underline-offset: 5px; }

/* بطاقة الصورة */
.hero__card {
  order: 2; /* الصورة في اليسار (RTL) */
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(180deg, #dff0f7 0%, #cfe6f2 100%);
  box-shadow: 0 30px 60px -20px rgba(26, 47, 66, 0.18), 0 0 0 8px rgba(255, 255, 255, 0.6);
  max-width: 430px;
  justify-self: start;
}
.hero__card img.portrait {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
/* تأثير زجاجي متدرّج أسفل الصورة (مثل الأصل) */
.hero__card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 100%);
  mask-image: linear-gradient(to top, #000 35%, transparent 100%);
}
/* أيقونات عائمة فوق البطاقة */
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--c-navy);
  animation: floaty 5s ease-in-out infinite;
}
.hero__float svg { width: 24px; height: 24px; }
.hero__float--1 { top: 18%; inset-inline-start: 10%; }
.hero__float--2 { top: 30%; inset-inline-end: 12%; animation-delay: 1.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1199px) {
  .hero__inner { gap: 40px; }
}
@media (max-width: 809px) {
  .hero { padding-top: 110px; padding-bottom: 50px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 100%; order: -1; }
}

/* ---------- الخدمات (أكورديون 01/02/03) ---------- */
.services__list {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
.service {
  border-inline-start: 1px solid var(--c-line);
  padding: 28px 28px 36px;
  cursor: pointer;
  transition: background-color 0.4s;
}
.service__num {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #c9c9c9;
  transition: color 0.4s;
}
.service.is-active .service__num { color: var(--c-gold); }
.service.is-active { border-inline-start-color: var(--c-gold); }
.service h5 { margin-top: 14px; }
.service__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out), opacity 0.5s;
  opacity: 0;
}
.service.is-active .service__body {
  max-height: 700px;
  opacity: 1;
}
.service__body p {
  margin-top: 14px;
  color: var(--c-gray-2);
}
.service__media {
  margin-top: 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.service:hover .service__media img { transform: scale(1.04); }
.service__label {
  margin-top: 12px;
  font-size: 15px;
  color: var(--c-gray);
}
@media (max-width: 809px) {
  .services__list { grid-template-columns: 1fr; }
  .service { border-inline-start: none; border-top: 1px solid var(--c-line); }
}

/* ---------- المشاريع ---------- */
.projects__head {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 48px;
}
.projects__head p { margin-top: 14px; color: var(--c-gray-2); }
.projects__grid {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  direction: rtl;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1.04;
  display: block;
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.project-card:hover img { transform: scale(1.06); }
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10, 18, 28, 0.72) 100%);
  transition: opacity 0.4s;
}
.project-card__bar {
  position: absolute;
  z-index: 1;
  inset-inline: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-card__title {
  color: var(--c-white);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.35;
}
.project-card .icon-circle { flex-shrink: 0; }
.project-card:hover .icon-circle { transform: rotate(-45deg); }
@media (max-width: 809px) {
  .projects__grid { grid-template-columns: 1fr; }
}

/* ---------- التقرير (منهجيتي) ---------- */
.report__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
}
.report__media {
  order: 2; /* الكتاب في اليسار */
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #f1f1ef;
}
.report__media img {
  width: 100%;
  transition: transform 0.8s var(--ease-out);
}
.report__media:hover img { transform: scale(1.04) rotate(0.5deg); }
.report__text .section-tag { margin-bottom: 18px; }
.report__text h2 { max-width: 480px; }
.report__text p { margin-top: 16px; max-width: 460px; color: var(--c-gray-2); }
.report__text .btn { margin-top: 26px; }
@media (max-width: 809px) {
  .report__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- شريط الشعارات ---------- */
.logos {
  padding-block: 40px;
  overflow: hidden;
  position: relative;
}
.logos::before, .logos::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.logos::before { inset-inline-start: 0; background: linear-gradient(90deg, var(--c-bg), transparent); }
.logos::after  { inset-inline-end: 0;  background: linear-gradient(-90deg, var(--c-bg), transparent); }
.logos__track {
  display: flex;
  align-items: center;
  gap: 90px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.logos:hover .logos__track { animation-play-state: paused; }
.logos__track img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(40%);
  transition: opacity 0.3s, filter 0.3s;
}
.logos__track img:hover { opacity: 1; filter: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- المقالات ---------- */
.blog__head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 48px;
}
.blog__head .section-tag { margin-bottom: 18px; }
.blog__head p { margin-top: 14px; color: var(--c-gray-2); }
.blog__head .blog__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 500;
  font-size: 16px;
}
.blog__head .blog__all:hover { text-decoration: underline; text-underline-offset: 5px; }
.blog__grid {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card { display: block; direction: rtl; }
.blog-card__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1.26;
}
.blog-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card h5 {
  margin-top: 18px;
  font-size: 22px;
  transition: color 0.3s;
}
.blog-card:hover h5 { color: var(--c-navy); }
.blog-card__meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--c-gray);
  font-size: 14px;
  font-weight: 500;
}
.blog-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card__meta svg { width: 15px; height: 15px; }
@media (max-width: 809px) {
  .blog__grid { grid-template-columns: 1fr; }
}

/* ---------- الشهادات ---------- */
.testimonials__head {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 48px;
}
.testimonials__head .section-tag { margin-bottom: 18px; }
.testimonials__head p { margin-top: 14px; color: var(--c-gray-2); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--c-tag);
  border-radius: var(--radius-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.testi-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1.05;
}
.testi-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.testi-card__person {
  padding: 14px 8px 6px;
}
.testi-card__person .pre { font-size: 12px; color: var(--c-gray); }
.testi-card__person .name { font-size: 18px; font-weight: 700; letter-spacing: -0.035em; }
.testi-card__person .role { font-size: 14px; color: var(--c-gray-2); margin-top: 2px; }

/* مشغل الصوت */
.audio-player {
  direction: ltr;
  margin-top: 12px;
  padding: 14px 14px 10px;
  background: var(--c-white);
  border-radius: 18px;
  box-shadow: 0 12px 28px -18px rgba(26, 47, 66, 0.28);
  transition: box-shadow 0.3s;
}
.audio-player.is-playing {
  box-shadow: 0 16px 34px -16px rgba(26, 47, 66, 0.38);
}
.audio-player__time {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--c-gray-2);
  font-variant-numeric: tabular-nums;
}
.audio-player__bar {
  margin-top: 8px;
  height: 6px;
  background: #ececec;
  border-radius: 99px;
  cursor: pointer;
  position: relative;
}
.audio-player__bar .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-navy), #2e5273);
  border-radius: 99px;
  transition: width 0.15s linear;
  position: relative;
}
.audio-player__bar .fill::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(227, 173, 48, 0.25);
  opacity: 0;
  transition: opacity 0.25s;
}
.audio-player.is-playing .audio-player__bar .fill::after,
.audio-player__bar:hover .fill::after { opacity: 1; }
.audio-player__controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.audio-player__controls button,
.audio-player__controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--c-navy);
  transition: background-color 0.25s, transform 0.25s, color 0.25s;
  font-size: 13px;
  font-weight: 700;
}
.audio-player__controls button:hover,
.audio-player__controls a:hover { background: rgba(26, 47, 66, 0.08); transform: scale(1.06); }
.audio-player__controls svg { width: 19px; height: 19px; }

/* زر التشغيل الرئيسي */
.audio-player__play {
  width: 48px !important;
  height: 48px !important;
  background: var(--c-navy);
  color: var(--c-white) !important;
  box-shadow: 0 10px 20px -10px rgba(26, 47, 66, 0.55);
}
.audio-player__play:hover {
  background: #234059 !important;
  transform: scale(1.08) !important;
}
.audio-player__play svg { width: 22px; height: 22px; }
.audio-player.is-playing .audio-player__play {
  animation: play-pulse 2s ease-out infinite;
}
@keyframes play-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(26, 47, 66, 0.35); }
  70%  { box-shadow: 0 0 0 14px rgba(26, 47, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 47, 66, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .audio-player.is-playing .audio-player__play { animation: none; }
}
@media (max-width: 809px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}
