/*
 * "À propos" page (Rihla: À propos block).
 * Builds on rihla-destination.css (tokens, buttons, section titles) and the
 * brand palette in rihla-brand.css.
 */

/* The block is edge-to-edge: drop the page template's box. */
.page-template-content:has(> .rd-ab) { max-width: none; padding: 0; }

.rd-ab { padding-bottom: 24px; }
.rd-ab figure { margin: 0; }

.rd-ab-kicker {
  align-items: center;
  color: var(--rihla-green);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: .12em;
  margin: 0 0 12px !important;
  text-transform: uppercase;
}
.rd-ab-kicker svg { height: 17px; width: 17px; }
.rd-ab-kicker--red { color: var(--rihla-red); }
.rd-ab-kicker--light { color: #fff; }

.rd-ab-title { font-size: clamp(26px, 2.6vw, 36px); max-width: 640px; }
.rd-ab-lead { color: #3d4b5c; font-size: 17px; line-height: 1.7; margin-top: 20px !important; }
.rd-ab-prose { display: grid; gap: 16px; margin-top: 22px; }
.rd-ab-prose p { color: #3d4b5c; font-size: 17px; line-height: 1.75; max-width: 660px; }

.rd-ab-btn-outline,
.rd-ab-btn-ghost {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.rd-ab-btn-outline { background: #fff; border: 1px solid var(--rihla-border); color: var(--rihla-ink); }
.rd-ab-btn-outline:hover { border-color: var(--rihla-red); color: var(--rihla-red); }
.rd-ab-btn-ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.rd-ab-btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.rd-ab-btn-ghost svg { height: 18px; width: 18px; }

.rd-ab-sec { padding-top: 88px; }
.rd-ab-head {
  align-items: end;
  display: grid;
  gap: 16px 56px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  margin-bottom: 32px;
}
.rd-ab-head > p { color: #3d4b5c; font-size: 16px; line-height: 1.7; }

/* ── Hero ── */
.rd-ab-hero {
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 98, 51, .07), transparent 42%),
    linear-gradient(180deg, var(--rihla-red-wash) 0%, #fff 100%);
  border-bottom: 1px solid var(--rd-dest-line);
  padding-bottom: 40px;
}
.rd-ab-hero__grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  padding-block: 64px 48px;
}
.rd-ab-hero__title {
  color: var(--rihla-ink);
  font-family: var(--rd-dest-display);
  font-size: clamp(40px, 4.8vw, 72px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 0;
}
.rd-ab-hero__sub {
  color: #3d4b5c;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 20px !important;
  max-width: 600px;
}
.rd-ab-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.rd-ab-collage { aspect-ratio: 6 / 5; position: relative; }
.rd-ab-collage figure {
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(22, 42, 68, .16);
  overflow: hidden;
  position: absolute;
}
.rd-ab-collage img { height: 100%; object-fit: cover; width: 100%; }
.rd-ab-collage__main { inset: 0 22% 8% 0; }
.rd-ab-collage__main img { object-position: 62% center; }
.rd-ab-collage__side { border: 6px solid #fff; bottom: 0; height: 58%; right: 0; width: 44%; }
.rd-ab-collage__badge {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rd-dest-line);
  border-radius: 14px;
  box-shadow: var(--rd-dest-shadow-hover);
  display: flex;
  gap: 12px;
  left: -18px;
  max-width: 300px;
  padding: 12px 16px 12px 12px;
  position: absolute;
  top: 9%;
}
.rd-ab-collage__badge strong { color: var(--rihla-ink); display: block; font-size: 15px; }
.rd-ab-collage__badge span:last-child { color: var(--rihla-muted); font-size: 13px; line-height: 1.4; }
.rd-ab-collage__badge-icon {
  align-items: center;
  background: var(--rihla-green-soft);
  border-radius: 10px;
  color: var(--rihla-green);
  display: inline-flex;
  flex: none;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.rd-ab-collage__badge-icon svg { height: 22px; width: 22px; }

.rd-ab-stats {
  background: #fff;
  border: 1px solid var(--rd-dest-line);
  border-radius: 18px;
  box-shadow: var(--rd-dest-shadow);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rd-ab-stats div { display: flex; flex-direction: column-reverse; padding: 20px 24px; }
.rd-ab-stats div + div { border-left: 1px solid var(--rd-dest-line); }
.rd-ab-stats dt { color: var(--rihla-muted); font-size: 14px; font-weight: 500; line-height: 1.4; }
.rd-ab-stats dd {
  color: var(--rihla-red);
  font-family: var(--rd-dest-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.rd-ab-stats div:nth-child(even) dd { color: var(--rihla-green); }

/* ── Story ── */
.rd-ab-story {
  align-items: center;
  display: grid;
  gap: 40px 72px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.rd-ab-name {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 98, 51, .08), transparent 45%),
    var(--rihla-red-wash);
  border: 1px solid #f6e3e5;
  border-radius: 22px;
  padding: 36px;
}
.rd-ab-name__word {
  color: var(--rihla-red);
  font-family: var(--rd-dest-display);
  font-size: clamp(36px, 3.6vw, 54px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.rd-ab-name__word span { color: var(--rihla-ink); }
.rd-ab-name__text { color: var(--rihla-ink); font-size: 16.5px; line-height: 1.7; margin-top: 20px !important; }
.rd-ab-name__sign {
  border-top: 1px solid var(--rihla-border);
  color: var(--rihla-red);
  font-size: 14px;
  font-weight: 600;
  margin-top: 22px !important;
  padding-top: 16px;
}

/* ── Why ── */
.rd-ab-why {
  background:
    radial-gradient(circle at 100% 0%, rgba(193, 39, 45, .35), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(0, 98, 51, .3), transparent 40%),
    var(--rihla-ink-deep);
  color: #fff;
  margin-top: 88px;
  padding-block: 80px;
}
.rd-ab-why__head {
  align-items: end;
  display: grid;
  gap: 24px 64px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.rd-ab-why__title {
  color: #fff;
  font-family: var(--rd-dest-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 0;
}
.rd-ab-why__head > p { color: rgba(255, 255, 255, .8); font-size: 17px; line-height: 1.7; }
.rd-ab-promises {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px !important;
}
.rd-ab-promises li {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 24px 22px;
}
.rd-ab-promises__icon {
  align-items: center;
  background: var(--rihla-red);
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  margin-bottom: 18px;
  width: 46px;
}
.rd-ab-promises li:nth-child(even) .rd-ab-promises__icon { background: var(--rihla-green); }
.rd-ab-promises__icon svg { height: 23px; width: 23px; }
.rd-ab-promises h3 { color: #fff; font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.rd-ab-promises p { color: rgba(255, 255, 255, .75); font-size: 14.5px; line-height: 1.6; }

/* ── Services ── */
.rd-ab-offers { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-ab-offers li { display: flex; }
.rd-ab-offer {
  background: #fff;
  border: 1px solid var(--rd-dest-line);
  border-radius: 16px;
  box-shadow: var(--rd-dest-shadow);
  color: var(--rihla-ink);
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  width: 100%;
}
.rd-ab-offer:hover { border-color: var(--rihla-border); box-shadow: var(--rd-dest-shadow-hover); color: var(--rihla-ink); transform: translateY(-3px); }
.rd-ab-offer__icon {
  align-items: center;
  background: var(--rihla-green-soft);
  border-radius: 12px;
  color: var(--rihla-green);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}
.rd-ab-offers li:nth-child(even) .rd-ab-offer__icon { background: var(--rihla-red-soft); color: var(--rihla-red); }
.rd-ab-offer__icon svg { height: 24px; width: 24px; }
.rd-ab-offer h3 { font-family: var(--rd-dest-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.rd-ab-offer p { color: var(--rihla-muted); flex: 1; font-size: 14.5px; line-height: 1.6; }
.rd-ab-offer__cta {
  align-items: center;
  color: var(--rihla-red);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  margin-top: 18px;
}
.rd-ab-offer__cta svg { height: 16px; transition: transform .2s ease; width: 16px; }
.rd-ab-offer:hover .rd-ab-offer__cta { color: var(--rihla-red-hover); }
.rd-ab-offer:hover .rd-ab-offer__cta svg { transform: translateX(3px); }
/* Seven cards: the last one closes the final row in ink. */
.rd-ab-offers li:last-child { grid-column: span 2; }
.rd-ab-offers li:last-child .rd-ab-offer { background: var(--rihla-ink); border-color: var(--rihla-ink); color: #fff; }
.rd-ab-offers li:last-child .rd-ab-offer p { color: rgba(255, 255, 255, .75); }
.rd-ab-offers li:last-child .rd-ab-offer__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.rd-ab-offers li:last-child .rd-ab-offer__cta { color: #ff9ea2; }

/* ── Morocco ── */
.rd-ab-morocco {
  align-items: center;
  display: grid;
  gap: 40px 72px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.rd-ab-morocco__media {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(22, 42, 68, .16);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}
.rd-ab-morocco__media::after {
  background: linear-gradient(180deg, transparent 50%, rgba(16, 32, 51, .88) 100%);
  content: '';
  inset: 0;
  position: absolute;
  z-index: -1;
}
.rd-ab-morocco__media img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; z-index: -2; }
.rd-ab-morocco__media figcaption {
  bottom: 0;
  color: #fff;
  font-family: var(--rd-dest-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  left: 0;
  letter-spacing: -.02em;
  line-height: 1.25;
  padding: 28px;
  position: absolute;
  right: 0;
}
.rd-ab-highlights { display: grid; gap: 14px; margin-top: 28px !important; }
.rd-ab-highlights li {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--rd-dest-line);
  border-radius: 14px;
  display: flex;
  gap: 16px;
  padding: 18px 20px;
}
.rd-ab-highlights__icon {
  align-items: center;
  background: var(--rihla-red-soft);
  border-radius: 12px;
  color: var(--rihla-red);
  display: inline-flex;
  flex: none;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.rd-ab-highlights li:nth-child(even) .rd-ab-highlights__icon { background: var(--rihla-green-soft); color: var(--rihla-green); }
.rd-ab-highlights__icon svg { height: 22px; width: 22px; }
.rd-ab-highlights h3 { color: var(--rihla-ink); font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.rd-ab-highlights p { color: var(--rihla-muted); font-size: 15px; line-height: 1.6; }
.rd-ab-more { margin-top: 22px; white-space: normal; }

/* ── World ── */
.rd-ab-world {
  border-radius: 24px;
  color: #fff;
  display: flex;
  isolation: isolate;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}
.rd-ab-world::after {
  background: linear-gradient(90deg, rgba(16, 32, 51, .94) 0%, rgba(16, 32, 51, .78) 46%, rgba(16, 32, 51, .1) 100%);
  content: '';
  inset: 0;
  position: absolute;
  z-index: -1;
}
.rd-ab-world__img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; z-index: -2; }
.rd-ab-world__body { align-self: center; display: grid; gap: 16px; justify-items: start; max-width: 640px; padding: 56px; }
.rd-ab-world__body .rd-ab-kicker { margin-bottom: 0 !important; }
.rd-ab-world__title {
  color: #fff;
  font-family: var(--rd-dest-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
}
.rd-ab-world__body > p { color: rgba(255, 255, 255, .85); font-size: 16.5px; line-height: 1.7; }
.rd-ab-world__diaspora {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  padding: 18px 20px;
}
.rd-ab-world__diaspora h3 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.rd-ab-world__diaspora p { color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.6; }
.rd-ab-world .rd-dest-btn { margin-top: 8px; }

/* ── Closing CTA ── */
.rd-ab-cta {
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(193, 39, 45, .35), transparent 45%),
    var(--rihla-ink-deep);
  border-radius: 22px;
  color: #fff;
  display: grid;
  gap: 24px 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 44px 48px;
}
.rd-ab-cta h2 {
  color: #fff;
  font-family: var(--rd-dest-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0;
}
.rd-ab-cta p { color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.6; margin-top: 10px !important; max-width: 620px; }
.rd-ab-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ── Responsive ── */
@media (max-width: 1199px) {
  .rd-ab-hero__grid { gap: 40px; grid-template-columns: minmax(0, 1fr); padding-block: 48px 40px; }
  .rd-ab-hero__sub { max-width: 680px; }
  .rd-ab-collage { aspect-ratio: 16 / 9; margin-left: 18px; }
  .rd-ab-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-ab-offers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rd-ab-offers li:last-child { grid-column: span 3; }
  .rd-ab-cta { grid-template-columns: minmax(0, 1fr); }
  .rd-ab-cta__actions { justify-content: flex-start; }
}

@media (max-width: 991px) {
  .rd-ab-head,
  .rd-ab-story,
  .rd-ab-why__head,
  .rd-ab-morocco { grid-template-columns: minmax(0, 1fr); }
  .rd-ab-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-ab-offers li:last-child { grid-column: span 2; }
  .rd-ab-morocco__media { aspect-ratio: 16 / 10; }
  .rd-ab-world::after { background: linear-gradient(180deg, rgba(16, 32, 51, .72) 0%, rgba(16, 32, 51, .94) 60%); }
}

@media (max-width: 767px) {
  .rd-ab-sec { padding-top: 56px; }
  .rd-ab-hero { padding-bottom: 28px; }
  .rd-ab-hero__grid { padding-block: 36px 32px; }
  .rd-ab-hero__sub { font-size: 16px; }
  .rd-ab-hero__actions > a { justify-content: center; width: 100%; }
  .rd-ab-collage { aspect-ratio: 1 / 1; margin-left: 0; }
  .rd-ab-collage__main { inset: 0 0 16% 0; }
  .rd-ab-collage__side { border-width: 4px; height: 44%; width: 50%; }
  .rd-ab-collage__badge { left: 12px; max-width: calc(100% - 24px); padding: 10px; top: 12px; }
  .rd-ab-collage__badge span:last-child { font-size: 12px; }
  .rd-ab-collage__badge-icon { height: 34px; width: 34px; }
  .rd-ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-ab-stats div { padding: 16px; }
  .rd-ab-stats div + div { border-left: 0; }
  .rd-ab-stats div:nth-child(even) { border-left: 1px solid var(--rd-dest-line); }
  .rd-ab-stats div:nth-child(n+3) { border-top: 1px solid var(--rd-dest-line); }
  .rd-ab-stats dt { font-size: 13px; }
  .rd-ab-stats dd { font-size: 26px; }
  .rd-ab-prose p { font-size: 16px; }
  .rd-ab-name { padding: 28px 22px; }
  .rd-ab-why { margin-top: 56px; padding-block: 56px; }
  .rd-ab-promises,
  .rd-ab-offers { grid-template-columns: minmax(0, 1fr); }
  .rd-ab-offers li:last-child { grid-column: auto; }
  .rd-ab-promises { margin-top: 32px !important; }
  .rd-ab-highlights li { padding: 16px; }
  .rd-ab-world { border-radius: 18px; min-height: 0; }
  .rd-ab-world__body { padding: 32px 20px; }
  .rd-ab-world .rd-dest-btn { justify-content: center; width: 100%; }
  .rd-ab-cta { border-radius: 18px; padding: 32px 22px; }
  .rd-ab-cta__actions > a { justify-content: center; width: 100%; }
}
