/* ==========================================================================
   Aspire redesign theme. Loaded after Bootstrap 5.3 (see includes/head-v2.html).
   1 Tokens  2 Base  3 Buttons  4 Header  5 Hero  6 Sections  7 Components
   8 Footer  9 Cookie banner overrides  10 Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --a-navy: #0a1b32;
  --a-blue: #0057ff;
  --a-blue-dark: #0046cc;
  --a-blue-light: #39a2ff;
  --a-ink: #0b1225;
  --a-muted: #526279;
  --a-tint: #edf3f8;
  --a-surface: #fbfcfd;
  --a-border: #d8e0eb;
  --a-radius: 8px;
  --a-radius-btn: 6px;

  --bs-body-font-family: "Aspire Inter", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bs-body-color: var(--a-ink);
  --bs-body-bg: var(--a-surface);
  --bs-primary: #0057ff;
  --bs-primary-rgb: 0, 87, 255;
  --bs-link-color: #0057ff;
  --bs-link-color-rgb: 0, 87, 255;
  --bs-link-hover-color: #0046cc;
  --bs-link-hover-color-rgb: 0, 70, 204;
  --bs-border-color: #d8e0eb;
}

/* Inter ships as a variable font; declare the full weight range. */
@font-face {
  font-family: "Aspire Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/css/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Base ------------------------------------------------------------------ */
body { font-size: 1rem; line-height: 1.55; }

h1, h2, h3, h4, h5 {
  color: var(--a-ink);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
/* Share words evenly between lines, so a heading never strands one word at the end. */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }

@media (min-width: 1400px) {
  .container { max-width: 1284px; }
}

.a-eyebrow {
  display: block;
  color: var(--a-blue);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.a-link { font-weight: 700; text-decoration: none; }
.a-link:hover, .a-link:focus-visible { text-decoration: underline; }

.a-smallprint { color: var(--a-muted); font-size: 0.875rem; }

.a-skip {
  position: absolute;
  left: -9999px;
}
.a-skip:focus {
  left: 1rem;
  top: 0.5rem;
  z-index: 2000;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--a-radius-btn);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--a-blue-light);
  outline-offset: 2px;
}

/* 3. Buttons --------------------------------------------------------------- */
.btn {
  --bs-btn-border-radius: var(--a-radius-btn);
  --bs-btn-font-weight: 700;
  --bs-btn-padding-x: 1.375rem;
  --bs-btn-padding-y: 0.7rem;
}
.btn-primary {
  --bs-btn-bg: var(--a-blue);
  --bs-btn-border-color: var(--a-blue);
  --bs-btn-hover-bg: var(--a-blue-dark);
  --bs-btn-hover-border-color: var(--a-blue-dark);
  --bs-btn-active-bg: var(--a-blue-dark);
  --bs-btn-active-border-color: var(--a-blue-dark);
}
.btn-outline-light {
  --bs-btn-hover-color: var(--a-navy);
}

/* 4. Header ---------------------------------------------------------------- */
.a-utility {
  background: var(--a-navy);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.35rem 0;
}
.a-utility a { color: #fff; text-decoration: none; }
.a-utility a:hover { text-decoration: underline; }
.a-utility-sep { opacity: 0.5; margin: 0 0.75rem; }

.a-header {
  background: #fff;
  border-bottom: 1px solid var(--a-border);
}
.a-header .navbar { padding: 0.85rem 0; }
.a-header .navbar-brand { padding: 0; }
.a-header .navbar-brand img { display: block; width: 165px; height: auto; }
.a-header .nav-link {
  --bs-nav-link-color: var(--a-ink);
  --bs-nav-link-hover-color: var(--a-blue);
  --bs-navbar-active-color: var(--a-blue);
  --bs-navbar-nav-link-padding-x: 0.8rem;
  color: var(--a-ink);
  font-size: 0.9375rem;
  font-weight: 700;
}
.a-header .nav-link:hover, .a-header .nav-link.a-accent { color: var(--a-blue); }
.a-header .dropdown-menu {
  --bs-dropdown-border-color: var(--a-border);
  --bs-dropdown-border-radius: var(--a-radius);
  --bs-dropdown-link-active-bg: var(--a-blue);
  --bs-dropdown-link-hover-bg: var(--a-tint);
  box-shadow: 0 16px 40px rgba(10, 27, 50, 0.12);
  font-size: 0.9375rem;
}

.a-mega { padding: 1.25rem; }
.a-mega-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: var(--a-radius-btn);
  color: var(--a-ink);
  text-decoration: none;
  height: 100%;
}
.a-mega-item:hover, .a-mega-item:focus-visible { background: var(--a-tint); color: var(--a-ink); }
.a-mega-item i { color: var(--a-blue); font-size: 1.35rem; line-height: 1.2; }
.a-mega-item strong { display: block; font-size: 0.9375rem; }
.a-mega-item span span { display: block; color: var(--a-muted); font-size: 0.8125rem; }
.a-mega-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  border-top: 1px solid var(--a-border);
  margin-top: 0.75rem;
  padding: 0.85rem 0.65rem 0;
  font-size: 0.875rem;
}
.a-mega-foot a { font-weight: 600; text-decoration: none; }

@media (min-width: 1200px) {
  .a-header .nav-item.a-has-mega { position: static; }
  .a-header .navbar > .container { position: relative; }
  .a-header .dropdown-menu.a-mega { left: auto; right: 12px; width: 780px; }
}

/* 5. Hero ------------------------------------------------------------------ */
.a-hero {
  position: relative;
  background: var(--a-navy);
  color: #fff;
  overflow: hidden;
}
.a-hero > .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 608px;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.a-hero-text { max-width: 575px; }
.a-hero h1 {
  color: #fff;
  font-size: 4rem;
  line-height: 1.07;
  letter-spacing: -0.035em;
  max-width: 560px;
  margin-bottom: 1.5rem;
}
.a-hero-headline { display: block; text-wrap: balance; }
.a-hero h1 .a-eyebrow { color: var(--a-blue-light); margin-bottom: 1.25rem; }
.a-hero-lead { font-size: 1.125rem; margin-bottom: 1.75rem; }
@media (min-width: 576px) {
  .a-hero-actions { width: max-content; }
}
.a-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 43%;
  clip-path: polygon(19% 0, 100% 0, 100% 100%, 0 100%);
}
.a-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 40%;
}

/* Wide screens: keep the image's diagonal edge clear of the text column. */
@media (min-width: 1400px) {
  .a-hero-text { max-width: 540px; }
  .a-hero-media { left: max(43%, calc(50% - 90px)); }
}

/* Hexagon texture on the left edge of every navy band (heroes, blog post
   headers, outcomes and call-to-action bands). It fades out to the right and
   sits behind the content (z-index -1 inside the isolated section). */
.a-hero, .a-outcomes, .a-cta, .page-hero, .page-cta, .blog-post-header {
  position: relative;
  isolation: isolate;
}
.a-hero::before, .a-outcomes::before, .a-cta::before,
.page-hero::before, .page-cta::before, .blog-post-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(55%, 760px);
  z-index: -1;
  pointer-events: none;
  background: url("/img/texture/hexagons.svg") left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 15%, transparent);
  mask-image: linear-gradient(to right, #000 15%, transparent);
}
@media (max-width: 767.98px) {
  .a-hero::before, .a-outcomes::before, .a-cta::before,
  .page-hero::before, .page-cta::before, .blog-post-header::before { width: 100%; opacity: 0.7; }
}

.a-trust { background: #fff; border-bottom: 1px solid var(--a-border); }
.a-trust ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}
.a-trust li { text-align: center; font-weight: 700; padding: 0.2rem 0.5rem; }
.a-trust li + li { border-left: 1px solid var(--a-border); }

/* 6. Sections -------------------------------------------------------------- */
.a-section { padding: 4rem 0; background: var(--a-surface); }
.a-section-tint { background: var(--a-tint); }
.a-section-fade { background: linear-gradient(105deg, #fff 0%, #eaf4ff 100%); }

/* 7. Components ------------------------------------------------------------ */
.a-card {
  background: #fff;
  border: 1px solid var(--a-border);
  border-radius: var(--a-radius);
  overflow: hidden;
  height: 100%;
}
a.a-card {
  color: var(--a-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.a-card:hover, a.a-card:focus-visible {
  color: var(--a-ink);
  border-color: var(--a-blue);
  box-shadow: 0 10px 28px rgba(10, 27, 50, 0.09);
  transform: translateY(-2px);
}

.a-service { display: flex; gap: 1.25rem; padding: 1.35rem 1.25rem; }
.a-service i { color: var(--a-blue); font-size: 2.5rem; line-height: 1.1; flex: 0 0 auto; }
.a-service p { margin: 0; font-size: 0.9375rem; }

.a-photo { width: 100%; height: auto; border-radius: var(--a-radius); }

.a-ticks { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.a-ticks li { display: flex; gap: 0.85rem; margin-bottom: 0.4rem; }
.a-ticks i { color: var(--a-blue); font-size: 1.35rem; line-height: 1.2; -webkit-text-stroke: 1px; }

.a-outcomes { background: var(--a-navy); color: #fff; padding: 2rem 0; }
.a-outcomes h2 { color: #fff; font-size: 1.9rem; margin: 0; }
.a-outcomes ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.a-outcomes li {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 0.25rem 0.5rem;
}
.a-outcomes i { display: block; color: #0785ff; font-size: 2.5rem; margin-bottom: 0.25rem; }

.a-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0.5rem;
  border: 0;
  padding-top: 3rem;
  margin-bottom: 2.5rem;
}
.a-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: none;
  border: 0;
  border-radius: var(--a-radius);
  color: var(--a-ink);
  font-weight: 700;
  line-height: 1.4;
  padding: 0.25rem;
}
.a-step-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1.5px solid var(--a-blue);
  border-radius: 50%;
  color: var(--a-blue);
  font-size: 1.75rem;
  background: #fff;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.a-step:hover .a-step-icon { background: #eaf2ff; }
.a-step.active .a-step-icon { background: #d6e8ff; box-shadow: 0 0 0 5px #b3d4ff; }
@media (min-width: 576px) {
  .a-steps li:nth-child(1) { transform: translateY(45px); }
  .a-steps li:nth-child(2) { transform: translateY(30px); }
  .a-steps li:nth-child(3) { transform: translateY(15px); }
  .a-steps { margin-bottom: 4.5rem; padding-top: 0; }
}
.a-panel {
  background: #fff;
  border-left: 4px solid var(--a-blue);
  border-radius: 2px var(--a-radius) var(--a-radius) 2px;
  padding: 1rem 1.25rem;
  min-height: 106px;
}
.a-panel h3 { font-size: 1rem; }
.a-panel p { margin: 0; }

.a-case { display: grid; grid-template-columns: 1fr 1fr; }
.a-case img { width: 100%; height: 100%; min-height: 214px; object-fit: cover; }
.a-case-body { padding: 1.25rem; }
.a-case-body .a-eyebrow { margin-bottom: 0.35rem; }
.a-case-body p { font-size: 0.9375rem; }

.a-review { display: flex; flex-direction: column; padding: 1.5rem; margin: 0; }
.a-review blockquote { flex: 1; margin-bottom: 1rem; }
.a-review figcaption { font-weight: 700; font-size: 0.9375rem; }
.a-stars { color: #d97706; letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.a-award { width: 175px; height: auto; border-radius: var(--a-radius); }

.a-promo { padding: 1.5rem; }
.a-promo > i { color: var(--a-blue); font-size: 2.5rem; }
.a-promo p { color: var(--a-muted); margin: 0; }

.a-logos {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.25rem;
}
.a-logos li {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--a-border);
  border-radius: var(--a-radius);
}
.a-logos img { max-width: 100%; height: auto; }

.a-insight { display: flex; flex-direction: column; }
.a-insight img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.a-insight-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.a-insight-body h3 { font-size: 1.125rem; line-height: 1.3; flex: 1; }
.a-insight-body span { color: var(--a-blue); font-weight: 700; font-size: 0.9375rem; }

.a-cta { background: var(--a-navy); color: #fff; padding: 2rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.a-cta h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.15rem); max-width: 640px; margin: 0; }

/* 8. Footer: see css/footer.css */

/* 9. Cookie banner overrides (base styles in css/cookie.css) --------------- */
#aspire-cookie-banner { background: rgba(10, 27, 50, 0.98); }
#aspire-cookie-banner .btn-danger,
.aspire-cookie-modal-footer .btn-danger {
  --bs-btn-bg: var(--a-blue);
  --bs-btn-border-color: var(--a-blue);
  --bs-btn-hover-bg: var(--a-blue-dark);
  --bs-btn-hover-border-color: var(--a-blue-dark);
  --bs-btn-active-bg: var(--a-blue-dark);
  --bs-btn-active-border-color: var(--a-blue-dark);
}
.grecaptcha-badge { visibility: hidden !important; }

/* 10. Responsive ----------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .a-service { gap: 1rem; padding-left: 1rem; padding-right: 1rem; }
  .a-service h3 { font-size: 1.0625rem; }
}
@media (max-width: 1399.98px) {
  .a-hero h1 { font-size: 3.5rem; }
  .a-hero-text { max-width: 500px; }
  .a-hero-media { left: 46%; }
  .a-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1199.98px) {
  .a-hero h1 { font-size: 2.875rem; }
  .a-hero-text { max-width: 440px; }
  .a-hero-media { left: 50%; }
  .a-hero-media img { object-position: 92% 40%; }
  .a-hero-actions .btn { --bs-btn-padding-x: 0.9rem; --bs-btn-font-size: 0.9375rem; }
  .a-header .navbar-collapse { max-height: calc(100vh - 90px); overflow-y: auto; padding-top: 0.75rem; }
  .a-mega { padding: 0.5rem; }
}

@media (max-width: 991.98px) {
  .a-hero > .container { min-height: 0; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .a-hero-text { max-width: 620px; }
  .a-hero-media { position: static; clip-path: none; aspect-ratio: 16 / 10; max-height: 460px; width: 100%; }
  .a-outcomes h2 { margin-bottom: 1.5rem; }
  .a-section { padding: 3rem 0; }
}

@media (max-width: 767.98px) {
  .a-trust ul, .a-outcomes ul { grid-template-columns: repeat(2, 1fr); }
  .a-trust li { padding: 0.5rem; font-size: 0.9375rem; }
  .a-trust li:nth-child(3) { border-left: 0; }
  .a-trust li:nth-child(n + 3) { border-top: 1px solid var(--a-border); }
  .a-outcomes li { padding: 0.75rem 0.5rem; }
  .a-outcomes li:nth-child(odd) { border-left: 0; }
}

@media (max-width: 575.98px) {
  .a-hero h1 { font-size: 2.5rem; }
  .a-hero-actions .btn { width: 100%; }
  .a-steps { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; }
  .a-case { grid-template-columns: 1fr; }
  .a-case img { height: 200px; }
  .a-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-cta .btn { width: 100%; }
  .a-utility .a-utility-place, .a-utility .a-utility-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  a.a-card, .a-step-icon { transition: none; }
  a.a-card:hover { transform: none; }
}

/* Touch targets: on phones and tablets every link or button gets at least 24px of height
   (WCAG 2.2 target size). Links inside running text are exempt and left alone. */
@media (max-width: 991.98px) {
  .a-utility a,
  .navbar-brand,
  .a-link,
  .promo-link,
  .breadcrumb-list a,
  .blog-side .card a,
  .footer-links a,
  .footer-contact-line a,
  .footer-utility a,
  .footer-link-button,
  .recaptcha-attribution a { display: inline-block; min-height: 24px; padding-top: 3px; padding-bottom: 3px; }
  .blog-side .card a[aria-label] { min-width: 24px; text-align: center; }
  .footer-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}

/* Latest insights cards: thumbnails carry width/height, so keep their 16:9 shape. */
.a-insight img { height: auto; }
.a-insight img[src$=".svg"] { object-fit: contain; padding: 2rem; background: var(--a-tint); }

/* Latest articles ticker (homepage, above "Why Aspire") ------------------- */
.a-ticker { background: #fff; border-top: 1px solid var(--a-border); border-bottom: 1px solid var(--a-border); padding: 0.75rem 0; }
.a-ticker-inner { display: flex; align-items: center; gap: 0.75rem; }
.a-ticker-label {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 32px;
  padding-right: 0.75rem; border-right: 1px solid var(--a-border);
  color: var(--a-ink); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.a-ticker-label i { color: var(--a-blue); font-size: 1rem; }
.a-ticker-label:hover { color: var(--a-blue); }
.a-ticker-viewport {
  flex: 1 1 auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.a-ticker-track { display: flex; gap: 0.6rem; width: max-content; animation: a-ticker 70s linear infinite; }
.a-ticker:hover .a-ticker-track, .a-ticker:focus-within .a-ticker-track, .a-ticker.is-paused .a-ticker-track { animation-play-state: paused; }
@keyframes a-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.a-ticker-chip {
  flex: 0 0 auto; white-space: nowrap; padding: 0.4rem 0.95rem; border: 1px solid var(--a-border); border-radius: 999px;
  background: var(--a-tint); color: var(--a-ink); font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.a-ticker-chip:hover, .a-ticker-chip:focus-visible { border-color: var(--a-blue); color: var(--a-blue); }
.a-ticker-toggle {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid var(--a-border); border-radius: 50%; background: #fff; color: var(--a-ink);
}
.a-ticker-toggle:hover, .a-ticker-toggle:focus-visible { border-color: var(--a-blue); color: var(--a-blue); }
/* No motion wanted: the strip becomes a row you can swipe or scroll instead. */
@media (prefers-reduced-motion: reduce) {
  .a-ticker-track { animation: none; }
  .a-ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .a-ticker-chip[aria-hidden="true"], .a-ticker-toggle { display: none; }
}
@media (max-width: 575.98px) {
  .a-ticker-label { font-size: 0; gap: 0; padding-right: 0.6rem; }
  .a-ticker-label i { font-size: 1.1rem; }
  .a-ticker-label::after { content: ""; }
}
