/* hero — flexible hero banner. All selectors scoped under the component root
   (.c-hero__section-hero) so cross-component canonical classes (c-about_info__*,
   c-accordion__*, c-cs_title__*, c-cookie__*, c-careers_jointeam__*,
   c-all_blogs__*, c-consult_expert__*) never bleed. Computed styles from the
   spec's ## Computed Styles, per viewport (1440 base / 991 tablet / 479 mobile).
   Numeric values token-snapped to tokens.css where a match exists. */

.c-hero__section-hero {
  display: block;
  /* Bare-preview neutraliser for the 8px UA body margin the source lacks.
     Zeroed on composed pages by the .region-content reset below (framework-11
     fix #1) so it never leaks past the viewport edge. margin is not a sizing
     property, so this stays clear of the unscoped-utility lint. */
  margin: -8px -8px 0 -8px;
  background-color: var(--color-bg-hero);
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: var(--line-height-body);
  font-weight: 400;
  color: var(--color-text-primary);
}

/* ---- Outer padding wrappers ------------------------------------------- */
/* padding-global padding-section-medium — 96/40 → 64/40 → 48/16 */
.c-hero__section-hero .c-about_info__heading-wrap-5 {
  padding: 96px var(--space-40);
}
/* padding-global padding-section-large (/ux-audit) — 128/40 → 96/40 → 64/16 */
.c-hero__section-hero .c-hero__padding-section-large {
  padding: 128px var(--space-40);
}
.c-hero__section-hero .c-hero__position-relative {
  position: relative;
}

/* ---- Container (container-large) -------------------------------------- */
.c-hero__section-hero .c-about_info__heading-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

/* ---- Headings --------------------------------------------------------- */
.c-hero__section-hero h1,
.c-hero__section-hero h2 {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: 60px;
  line-height: 68px;
  font-weight: var(--font-weight-h1);
  letter-spacing: -3px;
  color: var(--color-text-primary);
}
/* /about's plain h1 is the run's largest heading (~68px) and holds that measure
   from desktop through tablet, dropping only at mobile — it does NOT follow the
   .heading-style-h2 60/40/28 ramp (measured from the frozen source crops). */
.c-hero__section-hero .c-hero__hero-banner-content-about h1 {
  font-size: 78px;
  line-height: 82px;
  letter-spacing: -2px;
}
.c-hero__section-hero .c-hero__heading-secondary {
  color: var(--color-text-secondary);
  font-weight: inherit;
  letter-spacing: inherit;
}
.c-hero__section-hero p {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text-primary);
}

/* ---- Heading-only, centered column (/about — representative) ---------- */
.c-hero__section-hero .c-hero__hero-banner-content-about {
  display: flex;
  flex-direction: column;
  gap: var(--space-64);
  width: 100%;
  max-width: 864px;
  min-width: 0;
  margin-inline: auto;
  text-align: center;
}
.c-hero__section-hero .c-hero__hero-header-wrapper {
  display: flex;
  flex-direction: column;
}
.c-hero__section-hero .c-all_blogs__margin-bottom {
  margin: 0;
}

/* ---- Left column (heading+secondary/body+cta) ------------------------- */
.c-hero__section-hero .c-cs_title__heading-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
  max-width: 900px;
  min-width: 0;
}

/* ---- CTA (button-interactive visible-surface — spec Computed Styles) --- */
.c-hero__section-hero .c-hero__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-40);
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-h1);
  font-size: 16px;
  line-height: 20px;
  text-transform: capitalize;
  text-align: center;
  text-decoration: none;
  color: var(--color-text-inverse);
  background-color: var(--color-bg-dark);
  border-radius: 48px;
}
.c-hero__section-hero .c-hero__button-row,
.c-hero__section-hero .c-hero__button-group-left,
.c-hero__section-hero .c-hero__button-row-left-banner-custom-copy {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

/* ---- Eyebrow row (div-block-61 group + label-3) -----------------------
   The .c-hero__group container is a lifted shared atom (atom_c_hero_group);
   its flex/align/gap declaration lives in css/atoms.css (framework-13
   WS-FE-1) — do NOT re-declare it here. Its children stay scoped below. */
.c-hero__section-hero .c-hero__group-2 {
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--radius-full);
  background-color: var(--color-text-h1);
  flex: 0 0 auto;
}
.c-hero__section-hero .c-hero__label-3 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--font-weight-h1);
  text-transform: uppercase;
  color: rgb(105, 74, 213);
  letter-spacing: 0.5px;
}

/* ---- Eyebrow+centered heading (/ai-solutions/build-with-aws-ai) ------- */
.c-hero__section-hero .c-hero__inner-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
  max-width: 1008px;
  min-width: 0;
  margin-inline: auto;
}
.c-hero__section-hero .c-hero__hero-banner-content-aws {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  text-align: center;
  align-items: center;
}
.c-hero__section-hero .c-hero__hero-header-center-custom-2,
.c-hero__section-hero .c-hero__hero-header-center-custom {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: 60px;
  line-height: 68px;
  font-weight: var(--font-weight-h1);
  letter-spacing: -3px;
  color: var(--color-text-primary);
}
.c-hero__section-hero .c-hero__max-width-632 {
  width: 100%;
  max-width: 632px;
  min-width: 0;
}

/* ---- Home (eyebrow+heading+cta+cta+video) ----------------------------- */
.c-hero__section-hero .c-hero__inner-home {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  max-width: 1008px;
  min-width: 0;
  text-align: left;
  align-items: flex-start;
}
.c-hero__section-hero .c-hero__hero-banner-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  align-items: flex-start;
  text-align: left;
  width: 100%;
}
/* Home hero heading emphasis spans (source text-span-11 = secondary/gray,
   text-span-12 = brand red). Heading carries inline markup, rendered raw. */
.c-hero__section-hero .c-hero__hero-header-center-custom .c-hero__hd-secondary {
  color: var(--color-text-secondary);
}
.c-hero__section-hero .c-hero__hero-header-center-custom .c-hero__hd-accent {
  color: var(--color-bg-accent);
}
.c-hero__section-hero .c-hero__spacer-xxlarge {
  height: var(--space-64);
}
.c-hero__section-hero .c-hero__video-frame {
  width: 100%;
  border: 1px solid var(--color-bg-alt2);
  border-radius: var(--radius-12);
  overflow: hidden;
}
.c-hero__section-hero .c-hero__video-top {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}
.c-hero__section-hero .c-hero__video-wrapper {
  position: absolute;
  inset: 0;
}
.c-hero__section-hero .c-hero__video-iframe,
.c-hero__section-hero .c-hero__video-poster {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

/* ---- Careers/open-positions (heading+body+gallery) -------------------- */
.c-hero__section-hero .c-careers_jointeam__column {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.c-hero__section-hero .c-careers_jointeam__align-items-center {
  align-items: center;
  text-align: center;
}
.c-hero__section-hero .c-about_info__heading-wrap-2 {
  width: 100%;
  max-width: 668px;
  min-width: 0;
  gap: var(--space-24);
}
.c-hero__section-hero .c-careers_jointeam__mb-3-25 {
  margin-bottom: 52px;
}
.c-hero__section-hero .c-careers_jointeam__collage-img-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-40);
  width: 100%;
}
.c-hero__section-hero .c-careers_jointeam__mb-3-25rem {
  margin-bottom: 52px;
}
.c-hero__section-hero .c-hero__collage-img {
  min-width: 0;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---- Contact (heading+body+image+webform) ----------------------------- */
.c-hero__section-hero .c-hero__max-width-medium {
  width: 100%;
  max-width: 512px;
  min-width: 0;
}
.c-hero__section-hero .c-hero__margin-large {
  margin-bottom: var(--space-40);
}
.c-hero__section-hero .c-hero__hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.c-hero__section-hero .c-hero__cotact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 432px) minmax(0, 1fr);
  gap: var(--space-40);
  align-items: start;
}
.c-hero__section-hero .c-hero__cotact-form-grid > * {
  min-width: 0;
}
.c-hero__section-hero .c-hero__media-wrap {
  position: sticky;
  top: var(--space-40);
}
.c-hero__section-hero .c-hero__media {
  display: block;
  width: 100%;
  max-width: 432px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-12);
}
.c-hero__section-hero .c-hero__form {
  width: 100%;
  min-width: 0;
}

/* ---- UX audit (heading+body+cta+image) -------------------------------- */
.c-hero__section-hero .c-hero__ux-audit-hero-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--space-24);
  width: 100%;
}
.c-hero__section-hero .c-hero__ux-audit-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  min-width: 0;
}
.c-hero__section-hero .c-hero__ux-audit-hero-image {
  width: 100%;
  max-width: 605px;
  min-width: 0;
  height: auto;
  object-fit: contain;
}

/* ---- Composed-page reset (framework-11 fix #1) ------------------------ */
.region-content .c-hero__section-hero {
  margin: 0;
  width: 100%;
}

/* ======================================================================= */
/* Tablet — 768 viewport (canonical boundary 991)                          */
/* ======================================================================= */
@media (max-width: 991px) {
  .c-hero__section-hero .c-about_info__heading-wrap-5 {
    padding: var(--space-64) var(--space-40);
  }
  .c-hero__section-hero .c-hero__padding-section-large {
    padding: 96px var(--space-40);
  }
  /* /about plain h1 keeps the desktop measure at tablet (source stays ~60px). */
  .c-hero__section-hero h1,
  .c-hero__section-hero h2 {
    font-size: 60px;
    line-height: 72px;
    letter-spacing: -3px;
  }
  /* heading-style-h2 pages + center-custom headings ramp to 40px. */
  .c-hero__section-hero .c-cookie__heading-2,
  .c-hero__section-hero .c-hero__hero-header-center-custom,
  .c-hero__section-hero .c-hero__hero-header-center-custom-2 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -2px;
  }
  .c-hero__section-hero .c-hero__hero-banner-content-about {
    max-width: 700px;
    gap: var(--space-64);
  }
  .c-hero__section-hero .c-careers_jointeam__collage-img-row {
    gap: var(--space-20);
  }
  .c-hero__section-hero .c-hero__cotact-form-grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: var(--space-20);
  }
  .c-hero__section-hero .c-hero__ux-audit-hero-image {
    max-width: 323px;
  }
}

/* ======================================================================= */
/* Mobile — 375 viewport (canonical boundary 479)                          */
/* ======================================================================= */
@media (max-width: 479px) {
  .c-hero__section-hero .c-about_info__heading-wrap-5 {
    padding: 48px var(--space-16);
  }
  .c-hero__section-hero .c-hero__padding-section-large {
    padding: var(--space-64) var(--space-16);
  }
  /* generic h1/h2 (untested variants) ramp to ~36px at mobile. */
  .c-hero__section-hero h1,
  .c-hero__section-hero h2 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -1.5px;
  }
  /* /about's plain h1 drops from ~78px to ~44px at mobile (source measure). */
  .c-hero__section-hero .c-hero__hero-banner-content-about h1 {
    font-size: 44px;
    line-height: 52px;
    letter-spacing: -2px;
  }
  /* heading-style-h2 pages + center-custom headings ramp to 28px. */
  .c-hero__section-hero .c-cookie__heading-2,
  .c-hero__section-hero .c-hero__hero-header-center-custom,
  .c-hero__section-hero .c-hero__hero-header-center-custom-2 {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -1px;
  }
  .c-hero__section-hero .c-hero__hero-banner-content-about,
  .c-hero__section-hero .c-cs_title__heading-wrap,
  .c-hero__section-hero .c-hero__inner-hero-copy,
  .c-hero__section-hero .c-hero__inner-home {
    max-width: 100%;
  }
  .c-hero__section-hero .c-hero__cotact-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-hero__section-hero .c-hero__media-wrap {
    display: none;
  }
  .c-hero__section-hero .c-hero__ux-audit-hero-row {
    flex-direction: column;
    gap: var(--space-64);
  }
  .c-hero__section-hero .c-hero__ux-audit-hero-image {
    max-width: 100%;
  }
  .c-hero__section-hero .c-careers_jointeam__collage-img-row {
    gap: var(--space-10);
  }
}
