/* ==========================================================================
   الصفحة الرئيسية — مبنية حرفياً من عقد Figma
   media-text-1 = 31:13311 · media-text-2 = 32:13708
   media-text-3 = 32:14632 · media-text-4 = 34:15251 · cta = 3:1118
   عرض الإطار 1440 · الحاوية الداخلية 1280
   ========================================================================== */
.sec { font-family: var(--aac-font); }
.sec__in { inline-size: 100%; max-inline-size: 1280px; margin-inline: auto; }

/* ---------- ترويسة القسم (شارة + عنوان + نص) ---------- */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sec-head__top { display: flex; flex-direction: column; align-items: center; gap: 4px; max-inline-size: 688px; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 16px; border-radius: 100px;
  background: var(--a-50); color: var(--a-500);
  font-size: var(--t-xl); line-height: var(--lh-xl); font-weight: 600; white-space: nowrap;
}
.sec-title {
  margin: 0; color: var(--p-950); text-align: center;
  font-size: var(--t-3xl); line-height: var(--lh-3xl); font-weight: 700;
}
.sec-sub {
  margin: 0; max-inline-size: 1030px; text-align: center; color: var(--a-600);
  font-size: var(--t-lg); line-height: var(--lh-lg); font-weight: 400;
}

/* ---------- 1) Company Overview — حشو 42/80 · فجوة 48 ---------- */
.overview { background: #FFF; padding: 42px 80px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.overview__row { display: flex; align-items: center; gap: 0; inline-size: 100%; max-inline-size: 1280px; }
.overview__col { flex: 0 0 605px; max-inline-size: 605px; padding-inline-end: 42px; display: flex; flex-direction: column; gap: 32px; }
.overview__lead {
  margin: 0; font-size: var(--t-2xl); line-height: var(--lh-2xl); font-weight: 700;
  background-image: linear-gradient(90deg, var(--p-500) 0%, var(--a-500) 50%, var(--a-400) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--p-500);
}
.overview__body { margin: 0; color: var(--p-950); font-size: var(--t-lg); line-height: var(--lh-lg); text-align: justify; }
.overview__media { position: relative; flex: 1 1 675px; block-size: 662px; border-radius: 16px; overflow: hidden; }
.overview__media img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.overview__media::after { content: ""; position: absolute; inset: 0; background: rgba(20,26,33,0.25); }
.fab {
  position: absolute; inset: 0; margin: auto; inline-size: 56px; block-size: 56px; z-index: 2;
  border-radius: 500px; background: var(--a-400); display: grid; place-items: center; border: 0; cursor: pointer;
}
.fab::after { content: ""; inline-size: 20px; block-size: 21px; background: #FFF;
  clip-path: polygon(8% 4%, 100% 50%, 8% 96%); }

/* ---------- 2) Our Solutions — خلفية #F5F5F5 · حشو 80 · فجوة 48 ---------- */
.solutions { background: #F5F5F5; padding: 80px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.solutions__grid { inline-size: 100%; max-inline-size: 1280px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 18px; }
.pcard { display: flex; flex-direction: column; gap: 12px; }
.pcard img { inline-size: 100%; block-size: 272px; object-fit: cover; display: block; }
.pcard__t { display: flex; flex-direction: column; gap: 5px; }
.pcard__h { margin: 0; font-size: var(--t-lg); line-height: var(--lh-lg); font-weight: 600; color: var(--a-500); }
.pcard__d { margin: 0; font-size: var(--t-sm); line-height: var(--lh-sm); color: var(--p-950); text-align: justify; }
.solutions__foot { display: flex; flex-direction: column; align-items: center; gap: 32px; padding-block-start: 32px; }
.solutions__note { margin: 0; text-align: center; color: #282828; font-size: var(--t-2xl); line-height: var(--lh-2xl); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; text-decoration: none;
  font-size: var(--t-2xl); line-height: var(--lh-2xl); font-weight: 600; white-space: nowrap;
  transition: filter .18s ease, background-color .18s ease, color .18s ease;
}
.btn--fill { background-image: linear-gradient(135deg, var(--p-500) 0%, var(--p-300) 100%); color: #FFF; }
.btn--fill:hover { filter: brightness(1.12); }
.btn--ghost-light { border: 2px solid var(--p-200); color: var(--p-200); }
.btn--ghost-light:hover { background: var(--p-200); color: var(--p-950); }

/* ---------- 3) Why AAC — صورة خلفية · حشو 144 · فجوة 84 ---------- */
.why { position: relative; isolation: isolate; padding: 71px 144px; overflow: hidden; }
.why__bg { position: absolute; inset: 0; z-index: -2; }
.why__bg img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.why::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20,26,33,0.82); }
.why__row { display: flex; align-items: center; gap: 84px; max-inline-size: 1280px; margin-inline: auto; }
.why__intro { flex: 0 0 511px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.why__title { margin: 0; color: #FFF; font-size: var(--t-3xl); line-height: var(--lh-3xl); font-weight: 700; max-inline-size: 466px; }
.why__text  { margin: 0; color: #FFF; font-size: var(--t-base); line-height: var(--lh-base); text-align: justify; max-inline-size: 350px; }
.why__cards { flex: 1 1 564px; display: grid; grid-template-columns: repeat(2, 270px); gap: 24px; justify-content: end; }
.rcard { background: rgba(255,255,255,0.08); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.rcard h3 { margin: 0; color: var(--a-300); font-size: var(--t-base); line-height: var(--lh-base); font-weight: 600; }
.rcard p  { margin: 0; color: #FFF; font-size: var(--t-sm); line-height: var(--lh-sm); }

/* ---------- 4) Who We Serve — حشو 80 · فجوة 48 ---------- */
.serve { background: #FFF; padding: 80px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.serve__row { display: flex; align-items: center; inline-size: 100%; max-inline-size: 1280px; }
.serve__media { flex: 0 0 628px; display: flex; flex-direction: column; gap: 24px; }
.serve__media img { inline-size: 100%; block-size: 360px; object-fit: cover; display: block; }
.serve__note { padding: 4px 18px; border-inline-start: 3px solid var(--a-500); }
.serve__note p { margin: 0; color: var(--p-950); font-size: var(--t-lg); line-height: var(--lh-lg); }
.serve__content { flex: 1 1 652px; padding-inline-start: 42px; display: flex; flex-direction: column; gap: 32px; }
.serve__h { margin: 0; font-size: var(--t-2xl); line-height: var(--lh-2xl); font-weight: 700;
  background-image: linear-gradient(90deg, var(--p-500) 0%, var(--a-500) 50%, var(--a-400) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--p-500); }
.clients { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.clients li { display: flex; gap: 24px; align-items: flex-start; }
.clients .tri { flex: 0 0 auto; inline-size: 12px; block-size: 14px; margin-block-start: 6px; background: var(--a-500);
  clip-path: polygon(8% 4%, 100% 50%, 8% 96%); }
.clients b { display: block; color: var(--p-950); font-size: var(--t-lg); line-height: var(--lh-lg); font-weight: 600; }
.clients span { display: block; color: var(--g-400); font-size: var(--t-base); line-height: var(--lh-base); }

/* ---------- 5) CTA — صورة خلفية · حشو 80/52 ---------- */
.cta { position: relative; isolation: isolate; padding: 80px 52px; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(4,12,26,0.72); }
.cta__in { display: flex; flex-direction: column; align-items: center; gap: 32px; max-inline-size: 1336px; margin-inline: auto; }
.cta__h { margin: 0; color: #FFF; text-align: center; font-size: var(--t-5xl); line-height: var(--lh-5xl); font-weight: 600; }
.cta__p { margin: 0; color: #FFF; text-align: center; max-inline-size: 1080px; font-size: var(--t-lg); line-height: var(--lh-lg); font-weight: 600; }
.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   التجاوب — قيم 1440 تبقى مرجعاً، والتصغير تحتها فقط
   ========================================================================== */
@media (max-width: 90rem) {
  .overview, .solutions, .serve { padding-inline: clamp(1.25rem, -1rem + 7vw, 80px); }
  .why { padding-inline: clamp(1.25rem, -3rem + 12vw, 144px); }
  .overview__col { flex: 1 1 50%; max-inline-size: none; }
  .overview__media { flex: 1 1 50%; block-size: auto; aspect-ratio: 675/662; }
  .why__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .serve__media, .serve__content { flex: 1 1 50%; }
}
@media (max-width: 64rem) {
  .solutions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__row { flex-direction: column; align-items: stretch; gap: 40px; }
  .why__intro { flex: 1 1 auto; }
  .why__title, .why__text { max-inline-size: none; }
  .cta__h { font-size: var(--t-4xl); }
}
@media (max-width: 48rem) {
  .overview__row, .serve__row { flex-direction: column; gap: 32px; }
  .overview__col { padding-inline-end: 0; }
  .serve__content { padding-inline-start: 0; }
  .solutions__grid { grid-template-columns: 1fr; }
  .why__cards { grid-template-columns: 1fr; }
  .sec-title { font-size: var(--t-2xl); }
  .btn { font-size: var(--t-lg); }
  .cta__h { font-size: var(--t-3xl); }
}
