/* amer-banner-feature--d9 — features around a product picture.
 * Two template pages, one block (styles.css 21158-21307):
 *   --s1  home-sneaker.html:2768 `.section-feature-v2 > .container-full >
 *         .banner-feature.style-2`: accent icon discs, a light disc behind a
 *         transparent product picture, a 1px ring, 860px circle from 1440.
 *   --s2  home-office-equipment.html:2004 `.section-feature > .container >
 *         .banner-feature`: light icon discs, the picture cut to a circle, a
 *         4px ring, 12/16 text, 658px circle, the heading as an h2.
 * Measured at 1920/1440/1280/1024/768/600/390 against both pages with
 * tools/measure_styles.mjs (specs and results in
 * D:/tmp/amer-build/r4/build-banner-feature/).
 * The sheet is the only one this design links: banner-feature.css holds the
 * other designs' stage (a dark fill under a full-bleed picture).
 */

/* `.flat-spacing`: 80px, 60px under 992px, 40px from 425px down. */
.mt-section.amer-banner-feature--d9 {
  padding-block: var(--mt-space-top, 80px) var(--mt-space-bottom, 80px);
}
@media (max-width: 991px) {
  .mt-section.amer-banner-feature--d9 {
    padding-block: var(--mt-space-top-mobile, var(--mt-space-top, 60px)) var(--mt-space-bottom-mobile, var(--mt-space-bottom, 60px));
  }
}
@media (max-width: 425px) {
  .mt-section.amer-banner-feature--d9 {
    padding-block: var(--mt-space-top-mobile, var(--mt-space-top, 40px)) var(--mt-space-bottom-mobile, var(--mt-space-bottom, 40px));
  }
}

/* ---- Heading ------------------------------------------------------------ */
/* s1 is a plain `.sect-heading` (24px under it, 40px from 992) with an h3
   title; s2 is `.sect-heading.type-2` (44px from 992, 60px from 1440 under
   `.section-feature`) with an h2 title. The text is `.text-body-1` (18/28,
   14/22 up to 575px). The template breaks the text with a <br> from 992px;
   here a measure of 850px does it (the template's first lines are 788 and
   837px), and a line break typed in the field is kept. */
.amer-banner-feature--d9 .amer-banner-feature__head .amer-head__title { color: var(--afb-text, var(--amer-heading)); }
/* The line under the title and each callout's line (below) follow «لون
   النص» too, like the names: on a dark «لون خلفية القسم» they kept the muted
   grey, 3.7:1 on #111 while the title read 18:1 (options review round 2,
   2026-10-13). Empty, they keep the muted grey. */
.amer-banner-feature--d9 .amer-banner-feature__head .amer-head__text { line-height: 28px; white-space: pre-line; color: var(--afb-text, var(--amer-muted)); }
@media (min-width: 992px) {
  .amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__head { margin-block-end: 40px; }
  .amer-banner-feature--d9 .amer-banner-feature__head .amer-head__text { max-inline-size: 850px; }
}
@media (min-width: 1440px) {
  .amer-banner-feature--d9.amer-banner-feature--s2 .amer-banner-feature__head { margin-block-end: 60px; }
}
@media (max-width: 575px) {
  .amer-banner-feature--d9 .amer-banner-feature__head .amer-head__text { line-height: 22px; }
}
.amer-banner-feature--d9.amer-banner-feature--s2 .amer-banner-feature__head .amer-head__title {
  font-size: var(--amer-fs-h2);
  line-height: clamp(38px, 5vw, 50px);
}

/* ---- The board: the circle, with the callouts laid over it from 768 ------ */
.amer-banner-feature--d9 .amer-banner-feature__board { position: relative; }

/* `.feature-image`: a square circle, 658px at most, centred. */
.amer-banner-feature--d9 .amer-banner-feature__figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  max-inline-size: 658px;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
}
/* The ring: `::after`, 4px of the light surface (s2), 1px of the line (s1). */
.amer-banner-feature--d9 .amer-banner-feature__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--amer-surface);
  pointer-events: none;
}
.amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__figure::after {
  border-width: 1px;
  border-color: var(--amer-line);
}
/* s1's light disc behind the picture: `::before`, 50px in from the ring,
   618px from 1440 (centred), 20px in on phones up to 425. */
.amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__figure::before {
  content: "";
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  background: var(--amer-surface);
}

/* The picture: square, fitted inside the circle. s1 is a cut-out product
   (contained, so a tall PNG is not squeezed: the template stretches its
   687x863 PNG to 687x687); s2 fills the circle and is cut by it. */
.amer-banner-feature--d9 .amer-banner-feature__pic {
  position: relative;
  display: block;
  inline-size: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.amer-banner-feature--d9 .amer-banner-feature__img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: var(--afb-pos, 50% 50%);
}
.amer-banner-feature--d9.amer-banner-feature--s2 .amer-banner-feature__pic { max-inline-size: 471px; }
.amer-banner-feature--d9.amer-banner-feature--s2 .amer-banner-feature__img { object-fit: cover; }
/* «الجزء اللي يفضل باين لما الصورة تتقص» (image_focus, mobile_image_focus;
   Mohamed, 2026-10-13): --afb-pos / --afb-pos-m from the template, written
   only for a choice other than the middle. It moves the circle's crop on s2
   and in parallax. */
@media (max-width: 767px) {
  .amer-banner-feature--d9 .amer-banner-feature__img { object-position: var(--afb-pos-m, var(--afb-pos, 50% 50%)); }
}
/* s1 draws the cut-out whole (contain): there is no crop to steer, and a
   kept part only slid the picture into the ring's clip, «فوق» leaving the
   disc's lower half empty (review, 2026-10-13). So s1 stays centred at every
   width (0,3,0 beats both rules above); parallax (.pic--fixed) still crops
   and keeps the choice. */
.amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__img { object-position: 50% 50%; }

@media (min-width: 1440px) {
  .amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__figure { max-inline-size: 860px; }
  .amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__figure::before { inset: calc(50% - 309px); }
  /* The template's PNG at its natural 687px in the 860px circle. */
  .amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__pic { inline-size: 79.884%; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .amer-banner-feature--d9 .amer-banner-feature__figure { max-inline-size: 500px; padding: 50px; }
}
@media (max-width: 767px) {
  .amer-banner-feature--d9 .amer-banner-feature__figure { margin-block-end: 30px; padding: 30px; }
}
@media (max-width: 425px) {
  .amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__figure::before { inset: 20px; }
}

/* ---- The callouts --------------------------------------------------------- */
/* `.feature-detail_list.tf-grid-layout.sm-col-2.gap-20` under 768px: one
   column, two from 576px, 20px apart. */
.amer-banner-feature--d9 .amer-banner-feature__list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 576px) {
  .amer-banner-feature--d9 .amer-banner-feature__list { grid-template-columns: 1fr 1fr; }
}
/* `.feature-detail`: icon disc and copy in a row, 20px apart (12 up to 1199). */
.amer-banner-feature--d9 .amer-banner-feature__item {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  min-inline-size: 0;
}
@media (max-width: 1199px) {
  .amer-banner-feature--d9 .amer-banner-feature__item { gap: 12px; }
}
/* `.feature_illus`: a 72px disc (80 from 1440 on s1), the accent with a
   52px white glyph on s1, the light surface with a 48px dark icon on s2. */
.amer-banner-feature--d9 .amer-banner-feature__illus {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  inline-size: 72px;
  block-size: 72px;
  border-radius: 50%;
  background: var(--amer-surface);
  color: var(--amer-heading);
  font-size: 48px;
}
.amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__illus {
  background: var(--amer-accent);
  color: var(--amer-on-accent);
  font-size: 52px;
}
.amer-banner-feature--d9 .amer-banner-feature__illus img {
  display: block;
  inline-size: 1em;
  block-size: 1em;
  object-fit: contain;
}
@media (min-width: 1440px) {
  .amer-banner-feature--d9.amer-banner-feature--s1 .amer-banner-feature__illus { inline-size: 80px; block-size: 80px; }
}
.amer-banner-feature--d9 .amer-banner-feature__info { min-inline-size: 0; }
/* `.info__name.h6`: 20/28, 500, 8px under it. */
.amer-banner-feature--d9 .amer-banner-feature__name {
  margin: 0 0 8px;
  font-family: var(--amer-font-heading);
  font-size: var(--amer-fs-h6);
  font-weight: var(--amer-fw-heading);
  line-height: 28px;
  letter-spacing: var(--amer-ls-heading);
  color: var(--afb-text, var(--amer-heading));
}
/* `.info__desc.cl-text-2`: body 16/26 on s1, `.text-caption-02` 12/16 on s2. */
.amer-banner-feature--d9 .amer-banner-feature__desc {
  margin: 0;
  font-size: var(--amer-fs-body);
  line-height: 26px;
  color: var(--afb-text, var(--amer-muted));
  white-space: pre-line;
}
.amer-banner-feature--d9.amer-banner-feature--s2 .amer-banner-feature__desc {
  font-size: var(--amer-fs-caption);
  line-height: 16px;
}
@media (min-width: 576px) and (max-width: 767px) {
  .amer-banner-feature--d9 .amer-banner-feature__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* From 768px the callouts sit over the board, at the template's percentages
   of its box: 1-2 at the start side (their copy first, then the disc, both
   pushed against the circle, the copy aligned to it), 3-4 at the end side. */
@media (min-width: 768px) {
  .amer-banner-feature--d9 .amer-banner-feature__list { display: block; }
  .amer-banner-feature--d9 .amer-banner-feature__item { position: absolute; z-index: 2; }
  .amer-banner-feature--d9 .amer-banner-feature__item--p1 { top: 18.9%; inset-inline: 0 67.69%; }
  .amer-banner-feature--d9 .amer-banner-feature__item--p2 { bottom: 19.5%; inset-inline: 0 67.9%; }
  .amer-banner-feature--d9 .amer-banner-feature__item--p3 { top: 18.6%; inset-inline: 67.8% 0; }
  .amer-banner-feature--d9 .amer-banner-feature__item--p4 { bottom: 19.5%; inset-inline: 67.8% 0; }
  .amer-banner-feature--d9 .amer-banner-feature__item--p1,
  .amer-banner-feature--d9 .amer-banner-feature__item--p2 { justify-content: flex-end; }
  .amer-banner-feature--d9 .amer-banner-feature__item--p1 .amer-banner-feature__illus,
  .amer-banner-feature--d9 .amer-banner-feature__item--p2 .amer-banner-feature__illus { order: 2; }
  /* The copy faces its disc on both sides (s1 did; s2 kept the start side's lines against the outer edge, so a short title
     stood away from its icon: Mohamed, 2026-10-29, Framlna: «مش المفروض العناوين في الجنب اليمين هنا في النسخه العربي تكون علي
     الشمال؟ عشان التناسق»). */
  .amer-banner-feature--d9 .amer-banner-feature__item--p1 .amer-banner-feature__info,
  .amer-banner-feature--d9 .amer-banner-feature__item--p2 .amer-banner-feature__info { text-align: end; }
}

/* Parallax (bg_attachment): the picture is the circle's background, fixed to
   the viewport from 768px (iOS Safari ignores `fixed` and scrolls it). The
   window keeps the picture's square box. */
.amer-banner-feature--d9 .amer-banner-feature__pic--fixed {
  aspect-ratio: 1;
  background-image: var(--afb-bg);
  background-repeat: no-repeat;
  background-position: var(--afb-pos, center);
  background-size: cover;
}
.amer-banner-feature--d9.amer-banner-feature--s2 .amer-banner-feature__pic--fixed { inline-size: min(100%, 471px); }
@media (min-width: 768px) {
  .amer-banner-feature--d9 .amer-banner-feature__pic--fixed { background-attachment: fixed; }
}
@media (max-width: 767px) {
  .amer-banner-feature--d9 .amer-banner-feature__pic--fixed {
    background-image: var(--afb-bg-mobile, var(--afb-bg));
    background-position: var(--afb-pos-m, var(--afb-pos, center));
  }
}

/* Over the board the callouts have a fixed band each (top 18.9% and bottom
   19.5% of the circle): long copy would run into the callout below it. The
   template does, with its own copy, at 768px (the first callout's last line
   sits under the second's title). So from 768 the name stops at two lines
   and the line under it at three (four from 1200, where the band is 405px
   tall or more): the template's own copy is never cut except its 4-line
   callout at 768px, and two full callouts always fit one side. */
@media (min-width: 768px) {
  .amer-banner-feature--d9 .amer-banner-feature__name,
  .amer-banner-feature--d9 .amer-banner-feature__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .amer-banner-feature--d9 .amer-banner-feature__name { -webkit-line-clamp: 2; }
  .amer-banner-feature--d9 .amer-banner-feature__desc { -webkit-line-clamp: 3; }
}
@media (min-width: 1200px) {
  .amer-banner-feature--d9 .amer-banner-feature__desc { -webkit-line-clamp: 4; }
}
/* s2's 12/16 line takes more lines in the same band: five (80px, the
   office page's longest at 768), six from 1200. */
@media (min-width: 768px) {
  .amer-banner-feature--d9.amer-banner-feature--s2 .amer-banner-feature__desc { -webkit-line-clamp: 5; }
}
@media (min-width: 1200px) {
  .amer-banner-feature--d9.amer-banner-feature--s2 .amer-banner-feature__desc { -webkit-line-clamp: 6; }
}
