/* ══════════════════════════════════════════════════════════════════════════
   SAMA landing page — Solutions › Financial Sector in KSA
   Loaded only on page-solutions-financial-sector-ksa.php (see functions.php).
   Prefix: dp-sama-*. The video carousel is a React island (frontend/), styled by the component itself.
   Card grids reuse the product-page design via template-parts/sama-benefit-grid.php.
   ══════════════════════════════════════════════════════════════════════════ */

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Shared section scaffolding ───────────────────────────────────────── */
.dp-sama-section { position: relative; padding: 5rem 0; background: #fff; }
.dp-sama-soft    { background: #f8fafc; }
.dp-sama-dark    { background: #0A0029; color: #fff; }
@media (min-width: 1024px) { .dp-sama-section { padding: 6.5rem 0; } }

.dp-sama-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.dp-sama-kicker {
  margin: 0 0 .75rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #0375F9;
}
.dp-sama-h2 {
  margin: 0 0 1rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -.02em; color: #0f172a;
}
.dp-sama-h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; color: #0f172a; }
.dp-sama-sub  { margin: 0 auto; max-width: 40rem; font-size: 1.0625rem; line-height: 1.7; color: #64748b; }
.dp-sama-more { margin: 2rem 0 0; }
.dp-sama-more a { color: #60A5FA; font-weight: 600; text-decoration: none; }
.dp-sama-more a:hover { color: #03F9F9; }

.dp-sama-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.75rem; font-size: 1rem; font-weight: 600; border-radius: 9999px;
  text-decoration: none; cursor: pointer;
}
.dp-sama-btn-ghost {
  color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04);
  transition: background .2s ease, border-color .2s ease;
}
.dp-sama-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

.dp-sama-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.dp-sama-ticks li { display: flex; gap: .65rem; align-items: flex-start; font-size: 1rem; line-height: 1.55; color: #334155; }
.dp-sama-ticks svg { flex: none; margin-top: .25rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.dp-sama-hero { background: #0A0029; color: #fff; padding: 6.5rem 0 3.5rem; }
@media (min-width: 1024px) { .dp-sama-hero { padding: 9rem 0 5.5rem; } }
.dp-sama-hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .dp-sama-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }

.dp-sama-h1 {
  margin: 0 0 1.25rem; font-size: clamp(2.25rem, 5.2vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.02em; color: #fff;
}
.dp-sama-lead { margin: 0 0 1.75rem; max-width: 38rem; font-size: 1.0625rem; line-height: 1.75; color: #94a3b8; }
.dp-sama-cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.75rem; }
.dp-sama-chips { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.dp-sama-chips li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem;
  border-radius: 9999px; font-size: .8125rem; font-weight: 500; color: #e2e8f0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.dp-sama-fineprint { margin: 0; max-width: 38rem; font-size: .8125rem; line-height: 1.6; color: #94a3b8; }

/* Riyadh skyline artwork */
.dp-sama-art { position: relative; width: 100%; max-width: 34rem; margin: 0 auto; }
.dp-sama-art svg { display: block; width: 100%; height: auto; }
.dp-sama-float {
  position: absolute; display: flex; align-items: center; gap: .65rem; padding: .6rem .9rem .6rem .65rem;
  border-radius: .9rem; color: #fff; background: rgba(10,0,41,.72);
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(3,117,249,.25);
  animation: dpSamaBob 6s ease-in-out infinite;
}
.dp-sama-float strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; line-height: 1.1; }
.dp-sama-float small  { display: block; margin-top: .15rem; font-size: .7rem; color: #94a3b8; }
.dp-sama-float-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem;
  border-radius: .6rem; color: #03F9F9; background: rgba(3,249,249,.12);
}
.dp-sama-float-a { top: 6%;  left: 2%; }
.dp-sama-float-b { bottom: 14%; right: 0; animation-delay: -3s; }
@keyframes dpSamaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Trust strip ──────────────────────────────────────────────────────── */
.dp-sama-trust { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 2.75rem 0; }
.dp-sama-trust-title {
  margin: 0 0 1.5rem; text-align: center; font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #94a3b8;
}
.dp-sama-logos { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.dp-sama-logos img { height: 3.25rem; width: 5.5rem; object-fit: contain; }
@media (min-width: 768px) { .dp-sama-logos img { height: 4.5rem; width: 7rem; } }
.dp-sama-award { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; }
.dp-sama-award img { height: 2rem; width: auto; }
.dp-sama-award figcaption { font-size: .8125rem; color: #64748b; }

/* ── Persona tabs ─────────────────────────────────────────────────────── */
.dp-sama-tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.dp-sama-tab {
  padding: .65rem 1.25rem; border-radius: 9999px; font-size: .9375rem; font-weight: 600; cursor: pointer;
  color: #475569; background: #fff; border: 1px solid #e2e8f0; transition: all .2s ease;
}
.dp-sama-tab:hover { border-color: rgba(3,117,249,.35); color: #0375F9; }
.dp-sama-tab[aria-selected="true"] { color: #fff; background: #0375F9; border-color: #0375F9; box-shadow: 0 6px 18px rgba(3,117,249,.28); }
.dp-sama-tab:focus-visible { outline: 3px solid rgba(3,117,249,.4); outline-offset: 2px; }
.dp-sama-panel { padding: 2rem; border-radius: 1.25rem; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 10px 40px rgba(15,23,42,.05); }
.dp-sama-panel[hidden] { display: none; }
.dp-sama-panel-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dp-sama-panel-grid { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } .dp-sama-panel { padding: 2.5rem; } }
.dp-sama-role { margin: 0 0 .85rem; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0375F9; }
.dp-sama-persona-lead { margin: 0 0 1.75rem; font-size: 1.1875rem; line-height: 1.6; color: #334155; }
.dp-sama-result { margin: 0; padding: .15rem 0 .15rem 1.25rem; border-left: 3px solid #0375F9; }
.dp-sama-result p { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 1.375rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: #211057; }

/* ── Coverage ─────────────────────────────────────────────────────────── */
/* Card grids are framed so they read as one object, apart from whatever follows. */
.dp-sama-benefits { margin-bottom: 3rem; border: 1px solid #e9eef6; border-radius: 1rem; overflow: hidden; }

/* The ledger has its own intro, set well clear of the cards above it. */
.dp-sama-ledger-head { margin: 3.5rem 0 1.75rem; max-width: 40rem; }
@media (min-width: 1024px) { .dp-sama-ledger-head { margin-top: 5rem; } }
.dp-sama-ledger-title {
  margin: 0 0 .4rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700;
  line-height: 1.2; letter-spacing: -.01em; color: #0f172a;
}
.dp-sama-ledger-sub { margin: 0; font-size: 1rem; line-height: 1.6; color: #64748b; }

/* Ledger table: no box, no zebra, no chips. Hairline rules match the benefit grid above.
   Cells are baseline-aligned so the number, title, text and first course sit on one line. */
.dp-sama-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.dp-sama-col-num     { width: 4rem; }
.dp-sama-col-area    { width: 26%; }
.dp-sama-col-courses { width: 26%; }
.dp-sama-table thead th {
  padding: 0 2rem .8rem 0; text-align: left; vertical-align: bottom;
  font-size: .8125rem; font-weight: 600; line-height: 1.4; color: #64748b;
  border-bottom: 2px solid #211057;
}
.dp-sama-table tbody th, .dp-sama-table tbody td {
  padding: 1.35rem 2rem 1.35rem 0; text-align: left; vertical-align: baseline;
  font-size: .9375rem; font-weight: 400; line-height: 1.6; color: #475569;
  border-bottom: 1px solid #e9eef6;
}
.dp-sama-table thead th:last-child, .dp-sama-table tbody td:last-child { padding-right: 0; }
.dp-sama-num {
  font-family: 'Space Grotesk', sans-serif; font-size: .875rem; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: .02em; color: #0375F9;
}
.dp-sama-area { display: block; font-size: 1rem; font-weight: 600; line-height: 1.4; color: #211057; }
.dp-sama-ref {
  display: block; margin-top: .3rem; font-size: .75rem; font-weight: 500; line-height: 1.4;
  font-variant-numeric: tabular-nums; letter-spacing: .02em; color: #64748b;
}
.dp-sama-courses { list-style: none; margin: 0; padding: 0; }
.dp-sama-courses li { position: relative; padding-left: 1.1rem; font-weight: 500; color: #0f172a; }
/* Brand-blue dash as a text glyph. A drawn box (height: 2px) is rounded to the device-pixel
   grid per line, so at 125%/150% display scaling some came out thinner than others; a glyph
   is rasterised once and looks the same on every line. The "/ ''" alt text keeps screen
   readers from announcing it (browsers without that syntax use the first declaration). */
.dp-sama-courses li::before {
  content: "\2013"; content: "\2013" / "";
  position: absolute; left: 0; top: 0; font-weight: 700; color: #0375F9;
}
.dp-sama-courses li + li { margin-top: .25rem; }
.dp-sama-tablenote { margin: 1rem 0 0; font-size: .8125rem; line-height: 1.5; color: #64748b; }

/* Below desktop each requirement becomes a stacked entry: number in the margin, the rest beside it. */
@media (max-width: 1023px) {
  .dp-sama-table, .dp-sama-table tbody { display: block; }
  .dp-sama-table colgroup { display: none; }
  .dp-sama-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dp-sama-table tbody tr {
    display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); row-gap: .6rem; align-items: baseline;
    padding: 1.35rem 0; border-bottom: 1px solid #e9eef6;
  }
  .dp-sama-table tbody tr:first-child { border-top: 2px solid #211057; }
  .dp-sama-table tbody th, .dp-sama-table tbody td { display: block; padding: 0; border: 0; }
  .dp-sama-cell-asks, .dp-sama-cell-courses { grid-column: 2; }
  .dp-sama-cell-courses::before {
    content: attr(data-label); display: block; margin-bottom: .3rem;
    font-size: .75rem; font-weight: 600; line-height: 1.4; color: #64748b;
  }
}

.dp-sama-drilllink {
  display: flex; flex-direction: column; gap: 1.5rem; margin-top: 3rem; padding: 2rem; border-radius: 1.25rem;
  color: #fff; background: linear-gradient(135deg, #211057 0%, #0375F9 100%);
}
@media (min-width: 900px) { .dp-sama-drilllink { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.5rem; } }
.dp-sama-drilllink-kicker { margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #03F9F9; }
.dp-sama-drilllink h3 { margin: 0 0 .5rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
.dp-sama-drilllink p:last-child { margin: 0; color: #cbd5e1; }

/* ── Local by design: copy + video carousel ───────────────────────────── */
.dp-sama-local { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .dp-sama-local { grid-template-columns: 1fr 1.15fr; gap: 4.5rem; } }
.dp-sama-local-solo { grid-template-columns: 1fr; max-width: 44rem; margin: 0 auto; text-align: center; }
.dp-sama-local-solo .dp-sama-local-points { justify-items: center; }
.dp-sama-local-points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .85rem; }
.dp-sama-local-points li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; line-height: 1.55; color: #e2e8f0; }
.dp-sama-local-points svg { flex: none; margin-top: .2rem; }

.dp-sama-carousel { min-width: 0; }

/* ── Managed service band ─────────────────────────────────────────────── */
.dp-sama-managed {
  display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 3rem; padding: 2rem; border-radius: 1.25rem;
  color: #fff; background: #0A0029; border: 1px solid rgba(3,249,249,.2);
}
@media (min-width: 900px) { .dp-sama-managed { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 2.75rem; gap: 3rem; } }
.dp-sama-managed h3 { margin: 0 0 .75rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700; color: #fff; }
.dp-sama-managed-copy > p:not(.dp-sama-kicker) { margin: 0 0 1.5rem; line-height: 1.7; color: #94a3b8; }
.dp-sama-managed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.dp-sama-managed-list li {
  display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: .75rem;
  font-weight: 500; color: #e2e8f0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}

/* ── Cloud timeline ───────────────────────────────────────────────────── */
.dp-sama-steps { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .dp-sama-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dp-sama-steps { grid-template-columns: repeat(4, 1fr); } }
.dp-sama-steps li { position: relative; padding: 1.5rem; border-radius: 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
@media (min-width: 1024px) {
  .dp-sama-steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 2.4rem; right: -1.25rem; width: 1.25rem; height: 2px;
    background: #0375F9;
  }
}
.dp-sama-step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; margin-bottom: .9rem;
  border-radius: 50%; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; background: #0375F9;
}
.dp-sama-steps h3 { margin: 0 0 .4rem; font-size: 1.0625rem; font-weight: 700; color: #fff; }
.dp-sama-steps p  { margin: 0; font-size: .9rem; line-height: 1.6; color: #94a3b8; }

.dp-sama-diligence {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding: 2rem; border-radius: 1.25rem;
  background: rgba(3,117,249,.1); border: 1px solid rgba(3,117,249,.3);
}
@media (min-width: 900px) { .dp-sama-diligence { grid-template-columns: 1fr 1.3fr; padding: 2.5rem; gap: 3rem; align-items: center; } }
.dp-sama-diligence h3 { margin: 0 0 .5rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.375rem; font-weight: 700; color: #fff; }
.dp-sama-diligence > div > p { margin: 0; line-height: 1.65; color: #94a3b8; }
.dp-sama-diligence ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.dp-sama-diligence li { display: flex; gap: .65rem; align-items: flex-start; font-size: .9375rem; line-height: 1.55; color: #e2e8f0; }
.dp-sama-diligence li svg { flex: none; margin-top: .25rem; }

/* ── Motion preferences ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .dp-sama-float { animation: none; }
  .dp-sama-btn-ghost { transition: none; }
}
