/* Track chooser (/), care home (/care/) and skills home (/skills/). Shared
   components live in components.css. */

/* ---------- Track chooser ---------- */
.chooser {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 30%, var(--sky-50) 0, rgba(238, 245, 252, 0) 38%),
    radial-gradient(circle at 88% 70%, var(--sky-50) 0, rgba(238, 245, 252, 0) 40%),
    var(--surface);
  padding-block: var(--space-7) var(--space-6);
}

.chooser__head {
  text-align: center;
  margin-bottom: var(--space-6);
}

.chooser__title {
  margin: 0;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.chooser__subtitle {
  margin: var(--space-2) 0 0;
  font-size: 20px;
  color: var(--ink-body);
}

.chooser__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 1040px;
  margin: 0 auto;
}

.track-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5) var(--space-5);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-raised);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(3, 37, 92, 0.18);
}

.track-card--care {
  background: linear-gradient(180deg, var(--sky-50), var(--surface));
  border: 1px solid #b9d3f1;
  color: var(--ink);
}

.track-card--skills {
  background: var(--navy-950);
  border: 1px solid var(--gold-500);
  color: var(--on-navy);
}

.track-card__art {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 190px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
}

.track-card--care .track-card__art {
  background: radial-gradient(circle, var(--surface) 0 55%, var(--sky-100) 56% 100%);
  border: 1px solid #f1d9a6;
  color: var(--navy-900);
}

.track-card--skills .track-card__art {
  background: radial-gradient(circle, var(--navy-900) 0 55%, rgba(8, 54, 118, 0.55) 56% 100%);
  border: 1px solid rgba(235, 187, 78, 0.5);
  color: var(--gold-300);
}

.track-card__art .icon {
  width: 96px;
  height: 96px;
  stroke-width: 1.2;
}

.track-card--skills .track-card__art .icon .accent {
  stroke: var(--on-navy);
}

.track-card--skills .track-card__art .icon {
  stroke: var(--gold-300);
}

.track-card__art .track-card__art-2 {
  position: absolute;
  top: 36px;
  inset-inline-end: 34px;
  width: 52px;
  height: 52px;
  color: var(--on-navy);
}

.track-card__title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  color: inherit;
}

.track-card__list {
  margin: var(--space-2) 0 0;
  font-size: 18px;
  font-weight: 600;
}

.track-card__list i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 var(--space-3);
  border-radius: 50%;
  background: var(--gold-500);
  vertical-align: middle;
}

.track-card__text {
  margin: 0 0 var(--space-4);
  font-size: 16px;
  opacity: 0.85;
}

.track-card--care .track-card__text {
  color: var(--ink-body);
  opacity: 1;
}

.track-card__btn {
  width: 100%;
  margin-top: auto;
}

.chooser__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.chooser__note::before,
.chooser__note::after {
  content: "";
  width: 80px;
  height: 1px;
  background: var(--border-strong);
}

@media (max-width: 860px) {
  .chooser__title {
    font-size: 36px;
  }

  .chooser__cards {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .track-card__art {
    width: 140px;
    height: 140px;
  }

  .track-card__art .icon {
    width: 70px;
    height: 70px;
  }

  .track-card__title {
    font-size: 24px;
  }
}

/* ---------- Track homes ---------- */
.home-hero {
  min-height: 400px;
}

.home-hero .ds-hero__inner {
  min-height: 400px;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.home-hero__slide.is-active {
  opacity: 1;
}

.home-hero--skills .ds-hero__photo {
  width: 55%;
}

.home-hero__pattern {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--navy-900);
}

.home-hero__bars rect {
  fill: var(--navy-700);
  opacity: 0.85;
}

.home-hero__bars rect:nth-child(3n) {
  fill: var(--gold-500);
  opacity: 0.55;
}

.home-hero__arrow {
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-hero__perks {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  max-width: 600px;
}

.home-hero__perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
  font: 700 13px/1.4 var(--font-sans);
  color: var(--ink);
}

.home-hero__perks .icon {
  width: 30px;
  height: 30px;
  color: var(--navy-900);
}

.home-hero__ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: rgba(255, 255, 255, 0.5);
}

.home-hero__ghost:hover {
  border-color: var(--on-navy);
}

.home-cats-section {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.home-concerns {
  padding-top: var(--space-4);
}

.home-concerns__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.home-chip {
  padding: var(--space-1) var(--space-4);
  font-size: 14px;
}

.home-chip:hover {
  background: var(--navy-900);
  color: var(--on-navy);
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.home-wall {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.home-wall__item {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-card);
  background: var(--sky-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-weight: 800;
  font-size: 26px;
}

.home-wall__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-wall__item:hover {
  border-color: var(--gold-500);
}

.home-why .ds-section__title {
  margin-bottom: var(--space-5);
}

.home-videos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.home-video__thumb {
  position: relative;
}

.home-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(1, 22, 54, 0.6);
  color: var(--on-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-video__play .icon {
  width: 30px;
  height: 30px;
}

.home-video__play .icon .accent {
  stroke: var(--gold-300);
}

.home-video__duration {
  position: absolute;
  bottom: var(--space-2);
  inset-inline-start: var(--space-2);
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  background: rgba(1, 22, 54, 0.75);
  color: var(--on-navy);
  font-size: 12px;
}

/* Ad banners (panel-managed) */
.home-ad-wrap {
  padding-block: var(--space-4);
}

.home-ad-banner {
  position: relative;
  display: block;
  min-height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
}

.home-ad-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-ad-banner__body {
  position: relative;
  padding: var(--space-5);
}

.home-ad-banner__title {
  margin-top: var(--space-2);
  max-width: 520px;
  font-size: 24px;
  font-weight: 800;
  color: var(--on-navy);
  text-shadow: 0 1px 8px rgba(1, 22, 54, 0.6);
}

.home-small-ads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.home-small-ad {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.home-small-ad__badge {
  position: absolute;
  top: var(--space-2);
  inset-inline-start: var(--space-2);
}

.home-small-ad__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-small-ad__title {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .home-steps,
  .home-videos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .home-hero,
  .home-hero .ds-hero__inner {
    min-height: 0;
  }

  .home-hero--skills .ds-hero__photo {
    width: 100%;
  }

  .home-hero__perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-small-ads-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-steps,
  .home-videos {
    grid-template-columns: 1fr;
  }
}

/* ---------- Care home hero: photo (end) · copy · round collage (start) ---------- */
.home-hero--care {
  min-height: 420px;
  background: linear-gradient(90deg, #f6f9fd 0%, #fff 60%, #f3f7fc 100%);
}

.home-hero__photo {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 46%;
}

.home-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0.6) 12%, rgba(255, 255, 255, 0) 40%);
}

[dir="ltr"] .home-hero__photo::after {
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0.6) 12%, rgba(255, 255, 255, 0) 40%);
}

.home-hero__photo .home-hero__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__collage {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 19%;
  max-width: 260px;
  z-index: 1;
}

.home-hero__collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

[dir="ltr"] .home-hero__collage img {
  transform: scaleX(-1);
}

.home-hero--care .ds-hero__inner {
  grid-template-columns: 1fr;
  min-height: 420px;
  padding-inline-start: calc(min(19%, 260px) + var(--space-6));
}

.home-hero--care .ds-hero__copy {
  max-width: 470px;
}

.home-hero--care .ds-hero__title {
  font-size: 48px;
  margin-bottom: var(--space-2);
}

.home-hero__lead {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 8px;
  margin-bottom: var(--space-4);
}

.home-hero--care .ds-hero__text {
  font-size: 14px;
  line-height: 1.9;
}

.home-hero__brand {
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.home-cats-section {
  padding-block: var(--space-3);
  background: #f7f9fc;
}

.home-promos {
  padding-top: var(--space-3);
}

@media (max-width: 900px) {
  .home-hero__photo {
    position: relative;
    width: 100%;
    height: 240px;
  }

  .home-hero__photo::after {
    background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 40%);
  }

  .home-hero__collage {
    display: none;
  }

  .home-hero--care .ds-hero__inner {
    padding-inline: var(--space-4);
    min-height: 0;
  }

  .home-hero--care .ds-hero__title {
    font-size: 34px;
  }
}

/* ---------- Skills home: light photo hero ---------- */
.home-hero--skills {
  background: linear-gradient(90deg, #eaf1fb 0%, #f7faff 55%, #fff 100%);
}

.home-hero--skills .ds-hero__photo {
  width: 52%;
}

.home-hero--skills .ds-hero__photo::after {
  background: linear-gradient(to left, #f7faff 0%, rgba(247, 250, 255, 0.7) 14%, rgba(247, 250, 255, 0) 38%);
}

[dir="ltr"] .home-hero--skills .ds-hero__photo::after {
  background: linear-gradient(to right, #f7faff 0%, rgba(247, 250, 255, 0.7) 14%, rgba(247, 250, 255, 0) 38%);
}

.home-hero--skills .ds-hero__copy {
  max-width: 600px;
}

.home-hero--skills .ds-hero__title {
  font-size: 44px;
  white-space: nowrap;
}

.home-hero--skills .ds-hero__lead {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.home-hero--skills .home-hero__perks li {
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.home-hero__perks .picon {
  width: 38px;
  height: 38px;
}

.home-hero__video {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  color: var(--ink);
}

.home-hero__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--navy-900);
}

.home-hero__play .icon {
  width: 16px;
  height: 16px;
}

/* Why-us: coloured squares + photo */
.home-why {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.home-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.home-why__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.home-why__item .picon {
  width: 44px;
  height: 44px;
}

.home-why__item b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.home-why__item span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
}

.home-why__photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  transform: skewX(-4deg);
}

@media (max-width: 1000px) {
  .home-why {
    grid-template-columns: 1fr;
  }

  .home-why__photo {
    display: none;
  }

  .home-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .home-hero--skills .ds-hero__title {
    font-size: 32px;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .home-why__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Chooser: 3D art cards + light footer ---------- */
.track-card {
  overflow: hidden;
  padding-top: 0;
}

.track-card__photo {
  display: block;
  width: calc(100% + 2 * var(--space-5));
  margin: 0 calc(var(--space-5) * -1) var(--space-1);
  max-width: none;
  aspect-ratio: 840 / 520;
  object-fit: cover;
  object-position: center top;
}

.chooser-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chooser-footer__inner {
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-4);
}

.chooser-footer__inner img {
  display: block;
  height: 44px;
  width: auto;
}

.chooser-footer__tagline {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--ink-body);
  font-size: 15px;
}

.chooser-footer__tagline::before,
.chooser-footer__tagline::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold-500);
}

.chooser-footer__links {
  display: flex;
  gap: var(--space-3);
  color: var(--ink-muted);
  font-size: 14px;
}

.chooser-footer__links a {
  color: var(--ink);
}

.chooser-footer__social {
  display: flex;
  gap: var(--space-2);
}

.chooser-footer__social .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .chooser-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
