/**
 * @file
 * Styles for the Certifications listing page.
 *
 * Server-rendered page — no JS, no JSON embed.
 */
/**
 * @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
   Drupal's highlighted region and .main-content both sit between the
   sticky header and hero section. Kill all their vertical spacing.
   ========================================================================= */
.path-certifications .highlighted {
  display: none;
}
.path-certifications main.main-content {
  margin-top: -8px !important;
  padding-top: 0 !important;
}
.path-certifications .row {
  --bs-gutter-y: 0;
}
.path-certifications #main-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow-x: clip;
}
.cert-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}
.iso-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.cert-newsband {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.cert-finalcta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.cert-page {
  margin-top: 0;
}
/* =========================================================================
   HERO
   ========================================================================= */
.cert-hero {
  background: #003050;
  color: #fff;
  position: relative;
  overflow: visible;
  margin-top: 0;
}
.cert-hero .container {
  position: relative;
}
.cert-hero__figure {
  position: absolute;
  right: 0;
  bottom: -60px;
  width: 380px;
  z-index: 3;
  pointer-events: none;
}
.cert-hero__figure svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1080px) {
  .cert-hero__figure {
    display: none;
  }
}
.cert-hero__inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 80px;
  max-width: 880px;
}
/* ---------- Breadcrumb (inside hero) ---------- */
.cert-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);
}
.cert-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.12s;
}
.cert-hero .breadcrumb a:hover {
  color: #fff;
}
.cert-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}
.cert-hero .breadcrumb__current {
  color: var(--al-orange-300, #f3c993);
  font-weight: 600;
}
/* ---------- Hero title, standfirst, CTAs ---------- */
.cert-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 60px 0 0;
  text-wrap: balance;
  max-width: 640px;
}
.cert-hero__title .accent {
  color: var(--al-orange);
}
.cert-hero__standfirst {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  color: #cfe0ec;
  max-width: 62ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.cert-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
/* =========================================================================
   ISO CARDS BAND & GRID
   ========================================================================= */
.iso-band {
  background: var(--bg-page);
  padding: var(--space-20) 0;
  margin-top: 130px;
  margin-bottom: 130px;
}
.iso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
/* Views wrapper must flex so iso-card fills row height */
.iso-grid > .views-row {
  display: flex;
}
.iso-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl, 14px);
  padding: 36px;
  transition: box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.iso-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--al-navy-100);
  transform: translateY(-3px);
}
.iso-card__seal {
  color: var(--al-orange);
  margin-bottom: 18px;
}
.iso-card__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 4px;
}
.iso-card__since {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--al-orange-700);
  background: var(--al-orange-50);
  border: 1px solid var(--al-orange-100);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.iso-card__since::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--al-orange);
}
.iso-card__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.34;
  color: var(--fg-1);
  margin: 16px 0 8px;
}
.iso-card__lead {
  font-family: var(--font-sans);
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--fg-2);
  margin: 0;
}
.iso-card__rule {
  height: 1px;
  background: var(--border-1);
  margin: 20px 0;
}
.iso-card__block + .iso-card__block {
  margin-top: 16px;
}
.iso-card__label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--al-orange);
  margin-bottom: 6px;
}
.iso-card__block p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}
.iso-card__view {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--al-navy) !important;
  border: 1px solid var(--al-orange) !important;
  border-radius: var(--radius-md) !important;
  padding: 9px 18px !important;
  text-decoration: none !important;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.iso-card__view svg {
  width: 17px;
  height: 17px;
  color: var(--al-orange);
  transition: transform 0.12s ease;
}
.iso-card__view:hover {
  border-color: var(--al-orange);
  color: var(--al-navy);
  text-decoration: none;
  background: var(--al-orange-50);
}
.iso-card__view:hover svg {
  transform: translateX(2px);
}
.iso-card__spacer {
  flex: 1;
}
/* Drupal field body inside iso-card: match design's iso-card__lead and iso-card__label */
.iso-card .field--name-field-card-body .field__item > p:first-of-type {
  font-family: var(--font-sans) !important;
  font-size: 17.5px !important;
  line-height: 1.62 !important;
  color: var(--fg-2) !important;
  margin: 0 !important;
}
.iso-card .field--name-field-card-body h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--al-orange);
  margin: 16px 0 6px;
}
/* =========================================================================
   NEWSLETTER BAND
   ========================================================================= */
.cert-newsband {
  background: var(--al-navy-dark, #002640);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cert-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;
}
.cert-newsband__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  padding: 56px 0;
}
.cert-newsband h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  max-width: 20ch;
}
.cert-newsband p {
  font-family: var(--font-sans);
  font-size: 16px;
  color: #bcd6e7;
  margin: 9px 0 0;
  max-width: 48ch;
}
.cert-newsband form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cert-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;
}
.cert-newsband input::-moz-placeholder {
  color: #8fb1c8;
}
.cert-newsband input::placeholder {
  color: #8fb1c8;
}
.cert-newsband input:focus {
  outline: none;
  border-color: var(--al-orange);
  background: rgba(255, 255, 255, 0.12);
}
.cert-newsband form {
  flex: none;
}
/* =========================================================================
   FINAL CTA
   ========================================================================= */
.cert-finalcta {
  background: var(--al-navy-800, #08334d);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cert-finalcta::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -200px;
  width: 500px;
  height: 500px;
  border: 2px solid var(--al-orange);
  border-radius: 50%;
  transform: rotate(-15deg) scale(1, 0.34);
  opacity: 0.18;
  pointer-events: none;
}
.cert-finalcta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.cert-finalcta__copy {
  max-width: 620px;
  padding-top: 8px;
}
.cert-finalcta h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 20px;
  max-width: 16ch;
  text-wrap: balance;
}
.cert-finalcta p {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
  max-width: 58ch;
}
.cert-finalcta__microcopy {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 24px !important;
}
.cert-finalcta__form {
  /* The webform itself provides its own card, grid, and field styling
     via webform.less (.webform-submission-quote-request-form).
     This container stays transparent. */
}
/* =========================================================================
   BUTTONS
   ========================================================================= */
.cert-hero .al-btn,
.cert-newsband .al-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.cert-hero .al-btn--primary {
  background: var(--al-orange);
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
}
.cert-hero .al-btn--primary:hover {
  background: var(--al-orange-700);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.cert-hero .al-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 16px 32px;
  font-size: 16px;
}
.cert-hero .al-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  text-decoration: none;
}
.cert-newsband .al-btn--primary {
  background: var(--al-orange);
  color: #fff;
  padding: 13px 26px;
  font-size: 15px;
}
.cert-newsband .al-btn--primary:hover {
  background: var(--al-orange-700);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .iso-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-finalcta__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .cert-hero__inner {
    padding: 48px 0 60px;
  }
  .cert-hero__cta {
    flex-direction: column;
    gap: 12px;
  }
  .cert-hero__cta .al-btn {
    align-self: flex-start;
  }
}
@media (max-width: 640px) {
  .iso-grid {
    grid-template-columns: 1fr;
  }
  .iso-card {
    padding: 28px;
  }
  .cert-hero__title {
    margin-top: 40px;
  }
}
@media (max-width: 480px) {
  .cert-hero__inner {
    padding: 36px 0 44px;
  }
  .cert-hero__cta .al-btn {
    width: 100%;
    justify-content: center;
  }
  .cert-newsband__in {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 0;
  }
  .cert-newsband form {
    width: 100%;
  }
  .cert-newsband input {
    min-width: 0;
    width: 100%;
  }
  .cert-newsband .al-btn {
    width: 100%;
    justify-content: center;
  }
  .cert-finalcta {
    padding: 48px 0;
  }
  .cert-finalcta__inner {
    gap: 28px;
  }
}
/* =========================================================================
   DARK MODE (ISO cards)
   ========================================================================= */
body.dark .iso-card {
  background: var(--al-navy-800);
  border-color: var(--al-navy-700);
}
body.dark .iso-card:hover {
  border-color: var(--al-navy-500);
}
body.dark .iso-card__code,
body.dark .iso-card__sub {
  color: #fff;
}
body.dark .iso-card__lead,
body.dark .iso-card__block p {
  color: rgba(255, 255, 255, 0.78);
}
body.dark .iso-card__rule {
  background: var(--al-navy-700);
}
body.dark .iso-card__since {
  background: rgba(224, 144, 48, 0.14);
  border-color: rgba(224, 144, 48, 0.3);
  color: var(--al-orange-300);
}
body.dark .iso-card__view {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
body.dark .iso-card__view:hover {
  border-color: var(--al-orange-300);
  background: rgba(224, 144, 48, 0.12);
  color: #fff;
}
