/* Full width banner — SRS Part12 §Full width banner · Figma desktop 17759:18770 / mobile 17759:19773
   Every number below is read from get_design_context / get_variable_defs (see figma-*.txt beside this file). */

.uiw-full-width-banner {
  display: block;
  width: 100%;
}

/* One banner per content item (SRS: single item, no carousel — see gap B6). */
.uiw-full-width-banner-item {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 250px;                 /* bannerheight = small (default) */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 56px 96px;            /* Table 60; with the 1440 container this lands content at x=240 like Figma */
}
.uiw-full-width-banner-item--h-large { height: 500px; }
.uiw-full-width-banner-item--h-fullscreen { height: 100vh; }

.uiw-full-width-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* Table 61: cropped, never distorted */
  border: 0;
  display: block;                /* explicit so the desktop/mobile swap is numerically verifiable */
}
.uiw-full-width-banner-bg--mobile { display: none; }

/* Desktop-only scrim over the image (Figma 17759:18770; absent on mobile) — see gap A3. */
.uiw-full-width-banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.uiw-full-width-banner-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
}

.uiw-full-width-banner-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 667px;
}

/* AB#132269: `.uiw-full-width-banner-content` held its 667px max-width, but `-text` and `-cta`
   inside it kept the flex default `min-width: auto` and grew to 10512px / 5370px on an unbreakable
   500-char string — the textbook missing-`min-width:0` symptom QC described. `anywhere` also lowers
   the min-content width so the copy wraps instead of stretching its box.
   NOTE: the background-image `object-fit` question (AB#132580) is deliberately NOT touched here —
   it is blocked pending BA, see gap-132580-full-width-banner-object-fit.md. */
.uiw-full-width-banner-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.uiw-full-width-banner-title {
  margin: 0;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 41.6px;           /* 130% */
  letter-spacing: -0.32px;
  color: #ffffff;
}

.uiw-full-width-banner-desc {
  margin: 0;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.18px;
  color: #ffffff;
}

/* title/description carry rich-text HTML (gap A2): keep child tags on the block's own typography. */
.uiw-full-width-banner-title > *,
.uiw-full-width-banner-desc > * {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* DLS Button-Secondary (Small). White variant is the one Figma ships; orange is inferred — gap A5. */
.uiw-full-width-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 100px;
  max-width: 100%;           /* AB#132269 — a long label grew this button to 5370px */
  overflow-wrap: anywhere;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid #ff8f33;
  background-color: #ffffff;
  color: #ff7300;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
}
.uiw-full-width-banner-item--btn-orange .uiw-full-width-banner-cta {
  background-color: #ff7300;
  border-color: #ff7300;
  color: #ffffff;
}

/* AB#152950 - hover = Prod (D14). Prod .cta-button-root .btn:hover: background #FF9C40, label white, soft orange
   shadow (white variant 4px 4px 30px, orange 4px 4px 20px), 0.3s ease. Border follows the fill so the 1px ring vanishes. */
.uiw-full-width-banner-cta {
  transition: background-color .3s cubic-bezier(.4,0,.2,1), border-color .3s cubic-bezier(.4,0,.2,1), color .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.uiw-full-width-banner-cta:hover {
  background-color: #ff9c40;
  border-color: #ff9c40;
  color: #ffffff;
  box-shadow: 4px 4px 30px rgba(255, 123, 0, .3);
}
.uiw-full-width-banner-item--btn-orange .uiw-full-width-banner-cta:hover {
  box-shadow: 4px 4px 20px rgba(255, 123, 0, .3);
}

/* alignment (Table 57 / 66) — position of the block + text-align of its contents */
.uiw-full-width-banner-item--align-left .uiw-full-width-banner-container { justify-content: flex-start; }
.uiw-full-width-banner-item--align-center .uiw-full-width-banner-container { justify-content: center; }
.uiw-full-width-banner-item--align-right .uiw-full-width-banner-container { justify-content: flex-end; }
.uiw-full-width-banner-item--align-left .uiw-full-width-banner-content { align-items: flex-start; text-align: left; }
.uiw-full-width-banner-item--align-center .uiw-full-width-banner-content { align-items: center; text-align: center; }
.uiw-full-width-banner-item--align-right .uiw-full-width-banner-content { align-items: flex-end; text-align: right; }

@media (max-width: 767px) {
  .uiw-full-width-banner-item { height: 200px; padding: 20px; }
  .uiw-full-width-banner-item--h-large { height: 500px; }
  .uiw-full-width-banner-item--h-fullscreen { height: 100vh; }

  .uiw-full-width-banner-bg--desktop { display: none; }
  .uiw-full-width-banner-bg--mobile { display: block; }
  .uiw-full-width-banner-overlay { display: none; }

  .uiw-full-width-banner-content { gap: 16px; max-width: none; }
  .uiw-full-width-banner-item--align-left .uiw-full-width-banner-content { max-width: 248px; }
  .uiw-full-width-banner-item--align-center .uiw-full-width-banner-content { max-width: 350px; }
  .uiw-full-width-banner-item--align-right .uiw-full-width-banner-content { max-width: 350px; }

  .uiw-full-width-banner-title { font-size: 20px; line-height: 26px; letter-spacing: -0.2px; }
  .uiw-full-width-banner-desc { font-size: 12px; line-height: 16px; letter-spacing: normal; }
}

/* Mobile-only placement (R3 BA 21/10), like the carousel (hero) banner: its own horizontal alignment and an
   offset of the text block from the TOP edge, in % of the banner height. Declared after the desktop alignment
   rules so they win on mobile; a banner without contentoffsetmobile gets no --m-off class and keeps the vertical
   centring above. */
@media (max-width: 767px) {
  .uiw-full-width-banner-item--m-align-left .uiw-full-width-banner-container { justify-content: flex-start; }
  .uiw-full-width-banner-item--m-align-center .uiw-full-width-banner-container { justify-content: center; }
  .uiw-full-width-banner-item--m-align-right .uiw-full-width-banner-container { justify-content: flex-end; }
  .uiw-full-width-banner-item--m-align-left .uiw-full-width-banner-content { align-items: flex-start; text-align: left; max-width: 248px; }
  .uiw-full-width-banner-item--m-align-center .uiw-full-width-banner-content { align-items: center; text-align: center; max-width: 350px; }
  .uiw-full-width-banner-item--m-align-right .uiw-full-width-banner-content { align-items: flex-end; text-align: right; max-width: 350px; }
  .uiw-full-width-banner-item--m-off { align-items: flex-start; }
  .uiw-full-width-banner-item--m-off-0 .uiw-full-width-banner-container { top: 0%; }
  .uiw-full-width-banner-item--m-off-5 .uiw-full-width-banner-container { top: 5%; }
  .uiw-full-width-banner-item--m-off-10 .uiw-full-width-banner-container { top: 10%; }
  .uiw-full-width-banner-item--m-off-15 .uiw-full-width-banner-container { top: 15%; }
  .uiw-full-width-banner-item--m-off-20 .uiw-full-width-banner-container { top: 20%; }
  .uiw-full-width-banner-item--m-off-25 .uiw-full-width-banner-container { top: 25%; }
  .uiw-full-width-banner-item--m-off-30 .uiw-full-width-banner-container { top: 30%; }
  .uiw-full-width-banner-item--m-off-35 .uiw-full-width-banner-container { top: 35%; }
  .uiw-full-width-banner-item--m-off-40 .uiw-full-width-banner-container { top: 40%; }
  .uiw-full-width-banner-item--m-off-45 .uiw-full-width-banner-container { top: 45%; }
  .uiw-full-width-banner-item--m-off-50 .uiw-full-width-banner-container { top: 50%; }
  .uiw-full-width-banner-item--m-off-55 .uiw-full-width-banner-container { top: 55%; }
  .uiw-full-width-banner-item--m-off-60 .uiw-full-width-banner-container { top: 60%; }
  .uiw-full-width-banner-item--m-off-65 .uiw-full-width-banner-container { top: 65%; }
  .uiw-full-width-banner-item--m-off-70 .uiw-full-width-banner-container { top: 70%; }
  .uiw-full-width-banner-item--m-off-75 .uiw-full-width-banner-container { top: 75%; }
  .uiw-full-width-banner-item--m-off-80 .uiw-full-width-banner-container { top: 80%; }
  .uiw-full-width-banner-item--m-off-85 .uiw-full-width-banner-container { top: 85%; }
  .uiw-full-width-banner-item--m-off-90 .uiw-full-width-banner-container { top: 90%; }
}
