/**
 * @file
 * Styles for the Solutions by Role listing page (path: /roles).
 *
 * Mirrors the static design `services_by_role_list`:
 * al-hero, illustrated featured carousel, section intro, al-role-card grid,
 * newsletter band, final CTA.
 */
/**
 * @file
 * Shared LESS variables — imported by general.less and component files.
 *
 * Breakpoint variables used in @media queries across the theme.
 */
/**
 * @file
 * Layout mixins — shared across content types.
 */
/* Full-bleed: break out of parent container to fill viewport width.
   Uses margin-left: calc(50% - 50vw) — the percentage resolves against the
   direct parent's width, cancelling out any centering offset, so the element
   always aligns with the viewport's left edge regardless of nesting depth. */
/* =========================================================================
   FULL-BLEED and GAP FIXES (same as blog listing)
   ========================================================================= */
.path-roles .highlighted {
  display: none;
}
.path-roles main.main-content {
  margin-top: -8px !important;
  padding-top: 0 !important;
}
.path-roles .row {
  --bs-gutter-y: 0;
}
.path-roles #main-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow-x: clip;
}
/* =========================================================================
   HERO
   ========================================================================= */
.al-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--al-navy);
  color: #fff;
  position: relative;
  overflow: clip;
  overflow-clip-margin: 24px;
  margin-top: 0;
}
.al-hero::after {
  content: "";
  position: absolute;
  right: -150px;
  top: -110px;
  width: 480px;
  height: 270px;
  border: 2px solid rgba(224, 144, 48, 0.3);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}
.al-hero::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border: 1.5px solid rgba(224, 144, 48, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.al-hero .container {
  position: relative;
}
.al-hero__figure {
  position: absolute;
  right: -6px;
  bottom: -22px;
  width: 452px;
  z-index: 1;
  pointer-events: none;
}
.al-hero__figure svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1080px) {
  .al-hero__figure {
    display: none;
  }
}
.al-hero__inner {
  position: relative;
  z-index: 2;
  padding: 56px 0 60px;
  max-width: 880px;
}
/* ---------- Breadcrumb (inside al-hero) ---------- */
.al-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.al-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.12s;
}
.al-hero .breadcrumb a:hover {
  color: #fff;
}
.al-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}
.al-hero .breadcrumb__current {
  color: var(--al-orange-300);
  font-weight: 600;
}
.al-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 75px 0 0;
  text-wrap: balance;
}
.al-hero__title .accent {
  color: var(--al-orange);
}
.al-hero__standfirst {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  color: #cfe0ec;
  max-width: 620px;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.al-hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
/* ---------- CTA buttons ---------- */
.al-hero__cta .al-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s, transform 0.14s, box-shadow 0.14s, border-color 0.14s;
}
.al-hero__cta .al-btn svg {
  width: 18px;
  height: 18px;
}
.al-hero__cta .al-btn--primary {
  color: #fff;
  background: var(--al-orange);
  border: 1px solid var(--al-orange);
}
.al-hero__cta .al-btn--primary:hover {
  background: var(--al-orange-700);
  border-color: var(--al-orange-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(224, 144, 48, 0.35);
  color: #fff;
}
.al-hero__cta .al-btn--ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.al-hero__cta .al-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}
/* =========================================================================
   LISTING WRAPPER
   ========================================================================= */
.rx-listing {
  background: var(--bg-page);
  padding: 42px 0 8px;
}
/* =========================================================================
   FEATURED CAROUSEL (illustrated, contained rounded card)
   ========================================================================= */
.rx-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 0 0 42px;
  box-shadow: 0 24px 60px rgba(0, 32, 54, 0.2);
  background: var(--al-navy-dark);
}
.rx-feat-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bx-feat-slide {
  flex: 0 0 100%;
  min-width: 0;
}
@media (prefers-reduced-motion: reduce) {
  .rx-feat-track {
    transition: none;
  }
}
/* ---------- Featured slide content ---------- */
.bx-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  background: var(--al-navy-dark);
  overflow: hidden;
  position: relative;
  height: 100%;
}
.bx-featured__art {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #013753, #0a4f74);
}
.bx-featured__art::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 300px;
  height: 210px;
  border: 2px solid rgba(224, 144, 48, 0.4);
  border-radius: 50%;
  transform: rotate(-16deg);
}
.bx-featured__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.bx-featured__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(1, 55, 83, 0.28), rgba(10, 79, 116, 0) 50%, rgba(1, 55, 83, 0.4));
}
.bx-featured__body {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
}
.bx-featured__cat {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #9fd2ea;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bx-featured__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--al-orange);
  margin: 9px 0 0;
  text-wrap: balance;
}
.bx-featured__excerpt {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: #cfe0ec;
  margin: 14px 0 0;
  max-width: 52ch;
}
.bx-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #013753;
  background: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s, color 0.14s;
}
.bx-featured__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.14s;
}
.bx-featured__cta:hover {
  background: var(--al-orange);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(224, 144, 48, 0.4);
}
.bx-featured__cta:hover svg {
  transform: translateX(3px);
}
/* ---------- Carousel arrows ---------- */
.rx-feat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(1, 32, 54, 0.42);
  backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s, border-color 0.16s;
}
.rx-feat-arrow svg {
  width: 18px;
  height: 18px;
}
.rx-feat-arrow:hover {
  background: rgba(224, 144, 48, 0.85);
  border-color: transparent;
}
.rx-feat-arrow--prev {
  left: 16px;
}
.rx-feat-arrow--next {
  right: 16px;
}
@media (max-width: 840px) {
  .rx-feat-arrow {
    display: none;
  }
}
/* ---------- Carousel dots ---------- */
.rx-feat-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 5;
}
.bx-feat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
  transition: background 0.2s, width 0.2s;
}
.bx-feat-dot.is-active {
  background: var(--al-orange);
  width: 26px;
  border-radius: 5px;
}
/* =========================================================================
   SECTION INTRO
   ========================================================================= */
.role-intro {
  max-width: 780px;
  margin: 4px 0 32px;
}
.role-intro__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--al-navy);
  margin: 0 0 12px;
  letter-spacing: -0.018em;
}
.role-intro__lead {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--fg-3);
  margin: 0;
  text-wrap: pretty;
}
/* =========================================================================
   CARD GRID
   ========================================================================= */
.al-rx-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 8px;
}
/* =========================================================================
   ROLE CARD
   ========================================================================= */
.al-role-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 28px 26px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.42s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.42s cubic-bezier(0.16, 0.84, 0.44, 1), border-color 0.42s var(--ease-out);
}
/* top accent line that draws across on hover */
.al-role-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  z-index: 2;
  background: linear-gradient(90deg, var(--al-orange), var(--al-orange-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.al-role-card:hover {
  background: var(--al-navy-dark);
  box-shadow: 0 22px 48px -20px rgba(1, 55, 83, 0.45);
  transform: translateY(-6px);
  border-color: var(--al-navy-dark);
  text-decoration: none;
}
.al-role-card:hover::before {
  transform: scaleX(1);
}
.al-role-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 15px;
  background: rgba(224, 144, 48, 0.1);
  color: var(--al-orange);
  transition: background 0.42s var(--ease-out), color 0.42s var(--ease-out), transform 0.5s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.al-role-card__icon svg {
  width: 28px;
  height: 28px;
}
.al-role-card:hover .al-role-card__icon {
  background: var(--al-orange);
  color: #fff;
  transform: translateY(-2px) rotate(-4deg);
}
.al-role-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--al-navy);
  margin: 2px 0 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 0.3s var(--ease-out);
}
.al-role-card:hover .al-role-card__title {
  color: #fff;
}
.al-role-card__desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0;
  text-wrap: pretty;
  transition: color 0.3s var(--ease-out);
}
.al-role-card:hover .al-role-card__desc {
  color: rgba(255, 255, 255, 0.74);
}
.al-role-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--al-orange);
  transition: color 0.14s var(--ease-out), gap 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.al-role-card__link svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.al-role-card:hover .al-role-card__link {
  color: var(--al-orange-300);
  gap: 10px;
}
.al-role-card:hover .al-role-card__link svg {
  transform: translate(2px, -2px);
}
/* =========================================================================
   NEWSLETTER BAND
   ========================================================================= */
.al-newsband {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--al-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.al-newsband::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 330px;
  height: 190px;
  border: 2px solid rgba(224, 144, 48, 0.28);
  border-radius: 50%;
  transform: rotate(14deg);
  pointer-events: none;
}
.al-newsband__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  padding: 48px 0;
}
.al-newsband h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  max-width: 17ch;
}
.al-newsband p {
  font-family: var(--font-sans);
  font-size: 16px;
  color: #bcd6e7;
  margin: 9px 0 0;
  max-width: 46ch;
}
.al-newsband form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.al-newsband input {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  min-width: 250px;
  width: auto;
  height: 48px;
  box-sizing: border-box;
}
.al-newsband input::-moz-placeholder {
  color: #8fb1c8;
}
.al-newsband input::placeholder {
  color: #8fb1c8;
}
.al-newsband input:focus {
  outline: none;
  border-color: var(--al-orange);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.al-newsband .form-item,
.al-newsband .js-form-item {
  margin: 0 !important;
  padding: 0 !important;
}
.al-newsband .form-item label,
.al-newsband .js-form-item label,
.al-newsband label {
  display: none;
}
.al-newsband .form-actions,
.al-newsband .webform-actions {
  margin: 0 !important;
}
.al-newsband .form-item,
.al-newsband .js-form-item,
.al-newsband .form-actions,
.al-newsband .webform-actions {
  flex: 0 0 auto;
}
.al-newsband .webform-title {
  display: none;
}
.al-newsband button[type="submit"],
.al-newsband input[type="submit"],
.al-newsband .webform-button--submit,
.al-newsband .form-submit {
  height: 48px;
  box-sizing: border-box;
}
.al-newsband .al-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #013753;
  background: var(--al-orange);
  border: 1px solid var(--al-orange);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s, transform 0.14s, box-shadow 0.14s;
}
.al-newsband .al-btn--primary:hover {
  background: var(--al-orange-700);
  border-color: var(--al-orange-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(224, 144, 48, 0.35);
}
/* =========================================================================
   FINAL CTA
   ========================================================================= */
.al-finalcta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--al-navy-800);
  color: #fff;
  padding: 64px 0;
}
.al-finalcta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.al-finalcta__inner.with-form {
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.al-finalcta__copy {
  padding-top: 8px;
}
.al-finalcta__copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.15vw, 50px);
  line-height: 1.08;
  color: #fff;
  margin: 0 0 24px;
  max-width: 16ch;
  text-wrap: balance;
}
.al-finalcta__copy p {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
  max-width: 60ch;
}
.al-finalcta__microcopy {
  font-size: 14.5px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-top: 20px;
}
.al-finalcta__form {
  min-width: 0;
}
.al-finalcta__form .webform-embed {
  width: 100%;
}
/* =========================================================================
   EMPTY STATE
   ========================================================================= */
.rx-empty {
  text-align: center;
  padding: 64px 20px;
}
.rx-empty__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--al-navy-300, #b0c8da);
}
.rx-empty__icon svg {
  width: 100%;
  height: 100%;
}
.rx-empty h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--al-navy);
  margin: 0 0 8px;
}
.rx-empty p {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg-3, #6f97b1);
  margin: 0;
}
/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .al-rx-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  .bx-featured {
    grid-template-columns: 1fr;
  }
  .bx-featured__art {
    min-height: 240px;
  }
}
@media (max-width: 768px) {
  .al-hero__figure {
    display: none;
  }
  .al-hero__inner {
    padding: 42px 0 46px;
  }
  .al-hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 680px) {
  .al-rx-cards {
    grid-template-columns: 1fr;
  }
  .bx-featured__body {
    padding: 28px 24px;
  }
  .al-finalcta__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .al-newsband__in {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .al-newsband form {
    width: 100%;
  }
  .al-newsband input {
    min-width: 0;
    width: 100%;
  }
}
/* =========================================================================
   DARK MODE
   ========================================================================= */
body.dark .al-hero {
  background: var(--al-navy-900);
}
body.dark .rx-listing {
  background: var(--al-navy);
}
body.dark .role-intro__title {
  color: #fff;
}
body.dark .al-rx-cards .al-role-card {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
body.dark .al-rx-cards .al-role-card:hover {
  border-color: transparent;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.55);
}
body.dark .al-role-card__title {
  color: #fff;
}
body.dark .al-role-card:hover .al-role-card__title {
  color: var(--al-orange);
}
body.dark .al-role-card__desc {
  color: rgba(255, 255, 255, 0.72);
}
body.dark .al-newsband {
  background: var(--al-navy-900);
}
body.dark .al-finalcta {
  background: var(--al-navy-900);
}
body.dark .rx-empty h3 {
  color: #fff;
}
