/* Page-specific overrides can live here. Core site styling is in base.css. */

.template-homepage .home-hero {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: 26px;
}

.template-homepage .home-hero h1 {
  max-width: 1040px;
  font-size: clamp(44px, 5.4vw, 62px);
  line-height: 0.98;
}

.template-homepage .home-hero .lede {
  margin-top: 18px;
}

.template-homepage .home-banner {
  margin-top: 24px;
  max-height: clamp(320px, 32vw, 420px);
}

.template-homepage .home-banner img {
  height: clamp(320px, 32vw, 420px);
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

.template-homepage .home-hero .hero__actions {
  margin-top: 22px;
}

.template-homepage .system-browse {
  width: calc(100% - 48px);
  max-width: var(--max-page);
  margin: 0 auto 20px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(19, 62, 98, 0.11);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 252, 0.96)),
    #fff;
  box-shadow: 0 20px 58px rgba(15, 38, 68, 0.08);
}

.template-homepage .system-browse__head {
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
  gap: 24px;
  align-items: end;
}

.template-homepage .system-browse__head h2 {
  margin: 0;
  color: #10202d;
}

.template-homepage .system-browse__head p {
  max-width: 460px;
  margin: 0;
  justify-self: end;
  color: #5d6770;
  text-align: right;
}

.template-homepage .system-browse__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.template-homepage .system-card {
  position: relative;
  min-height: 132px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(19, 62, 98, 0.12);
  border-radius: 16px;
  background: #fff;
  color: #10202d;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 38, 68, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.template-homepage .system-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--system-accent, #0a84ff);
}

.template-homepage .system-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--system-accent, #0a84ff) 34%, transparent);
  border-radius: 50%;
  opacity: 0.55;
}

.template-homepage .system-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--system-accent, #0a84ff) 42%, rgba(19, 62, 98, 0.12));
  box-shadow: 0 18px 42px rgba(15, 38, 68, 0.12);
}

.template-homepage .system-card span,
.template-homepage .system-card strong {
  position: relative;
  z-index: 1;
}

.template-homepage .system-card span {
  color: color-mix(in srgb, var(--system-accent, #0a84ff) 74%, #10202d);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.template-homepage .system-card strong {
  margin-top: 22px;
  color: #34424d;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.35;
}

.template-homepage .system-card--connectivity {
  --system-accent: #0a84ff;
}

.template-homepage .system-card--cyber {
  --system-accent: #19b88f;
}

.template-homepage .system-card--it {
  --system-accent: #255fb8;
}

.template-homepage .system-card--av {
  --system-accent: #7c5cff;
}

.template-homepage .system-card--electrical {
  --system-accent: #ffb545;
}

.template-homepage .system-card--navigation {
  --system-accent: #0e9fb4;
}

.template-homepage .system-card--ot {
  --system-accent: #d05a2a;
}

.template-homepage .system-card--safety {
  --system-accent: #3b7d2f;
}

.template-homepage .system-card--incidents {
  --system-accent: #10202d;
}

.template-homepage .system-card--training {
  --system-accent: #b34d8a;
}

.template-homepage .operational-focus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: calc(100% - 48px);
  max-width: var(--max-page);
  margin: 20px auto 18px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(28, 91, 127, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(12, 83, 112, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 83, 112, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f6fbfc 48%, #eef8f5 100%);
  background-size: 42px 42px, 42px 42px, auto;
  color: #10202d;
  box-shadow: 0 24px 70px rgba(19, 62, 98, 0.12);
}

.template-homepage .operational-focus::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #ffb545 0%, #19b88f 48%, #0a84ff 100%);
  z-index: -1;
}

.template-homepage .operational-focus::after {
  content: "";
  position: absolute;
  right: clamp(22px, 4vw, 62px);
  top: clamp(74px, 8vw, 104px);
  width: min(31vw, 430px);
  height: min(31vw, 430px);
  border: 1px solid rgba(25, 184, 143, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(25, 184, 143, 0.16) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(25, 184, 143, 0.16) 50%, transparent calc(50% + 1px));
  opacity: 0.62;
  z-index: -1;
}

.template-homepage .operational-focus__header {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}

.template-homepage .operational-focus .eyebrow {
  color: #0c6f62;
}

.template-homepage .operational-focus h2,
.template-homepage .operational-focus h3 {
  margin: 0;
  color: #10202d;
}

.template-homepage .operational-focus h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.template-homepage .operational-focus__controls {
  display: flex;
  gap: 10px;
}

.template-homepage .operational-focus__controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 32, 45, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #10202d;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 38, 68, 0.08);
}

.template-homepage .operational-focus__controls button:hover {
  border-color: rgba(12, 111, 98, 0.36);
  color: #0c6f62;
}

.template-homepage .operational-focus__controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-homepage .operational-focus__viewport,
.template-homepage .operational-focus__slide {
  position: relative;
  z-index: 1;
}

.template-homepage .operational-focus__slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: stretch;
}

.template-homepage .operational-focus__slide[hidden] {
  display: none;
}

.template-homepage .operational-focus__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.template-homepage .operational-focus__kicker {
  margin: 0 0 12px;
  color: #0c6f62;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.template-homepage .operational-focus h3 {
  max-width: 780px;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.template-homepage .operational-focus__copy p:not(.operational-focus__kicker):not(.operational-focus__article-details) {
  max-width: 700px;
  margin: 18px 0 0;
  color: #53606a;
  font-size: 18px;
  line-height: 1.55;
}

.template-homepage .operational-focus__article-details {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  color: #7a8790;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.template-homepage .operational-focus__article-details span {
  display: inline-flex;
  align-items: center;
}

.template-homepage .operational-focus__article-details span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 10px;
  border-radius: 50%;
  background: #c5ced5;
}

.template-homepage .operational-focus .button {
  margin-top: 16px;
  border-color: #10202d;
  background: #10202d;
  color: #fff;
  box-shadow: 0 14px 30px rgba(16, 32, 45, 0.16);
}

.template-homepage .operational-focus .button:hover {
  border-color: #0c6f62;
  background: #0c6f62;
  color: #fff;
}

.template-homepage .operational-focus__dots {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  display: flex;
  gap: 8px;
}

.template-homepage .operational-focus__dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 32, 45, 0.18);
  cursor: pointer;
}

.template-homepage .operational-focus__dots button.is-active {
  background: #10202d;
}

.template-homepage .operational-focus__empty {
  position: relative;
  z-index: 1;
  padding: 20px;
  border: 1px solid rgba(28, 91, 127, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #53606a;
  font-size: 16px;
}

@media (max-width: 900px) {
  .template-homepage .system-browse__head,
  .template-homepage .system-browse__grid {
    grid-template-columns: 1fr 1fr;
  }

  .template-homepage .system-browse__head p {
    justify-self: start;
    text-align: left;
  }

  .template-homepage .operational-focus__slide {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .template-homepage .home-hero {
    padding-top: 34px;
    padding-bottom: 22px;
  }

  .template-homepage .home-hero h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .template-homepage .home-banner {
    margin-top: 24px;
    max-height: none;
  }

  .template-homepage .home-banner img {
    max-height: none;
    object-fit: contain;
  }

  .template-homepage .system-browse {
    width: min(342px, calc(100vw - 32px));
    max-width: min(342px, calc(100vw - 32px));
    padding: 24px 18px 20px;
    border-radius: 18px;
  }

  .template-homepage .system-browse__head,
  .template-homepage .system-browse__grid {
    grid-template-columns: 1fr;
  }

  .template-homepage .system-browse__head {
    gap: 10px;
  }

  .template-homepage .system-browse__head h2 {
    font-size: 30px;
  }

  .template-homepage .system-browse__head p {
    font-size: 15px;
    line-height: 1.45;
  }

  .template-homepage .system-browse__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .template-homepage .system-card {
    min-height: 82px;
    padding: 14px;
  }

  .template-homepage .system-card strong {
    margin-top: 0;
    font-size: 0;
    line-height: 0;
  }

  .template-homepage .system-card span {
    font-size: 12px;
    line-height: 1.2;
  }

  .template-homepage .operational-focus {
    width: min(342px, calc(100vw - 32px));
    max-width: min(342px, calc(100vw - 32px));
    padding: 24px 20px 22px;
    border-radius: 18px;
  }

  .template-homepage .operational-focus::before {
    width: 6px;
  }

  .template-homepage .operational-focus::after {
    right: -132px;
    top: 28px;
    width: 230px;
    height: 230px;
  }

  .template-homepage .operational-focus__header {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
  }

  .template-homepage .operational-focus h2 {
    font-size: 30px;
  }

  .template-homepage .operational-focus h3 {
    font-size: 29px;
    line-height: 1.06;
  }

  .template-homepage .operational-focus__copy p:not(.operational-focus__kicker):not(.operational-focus__article-details) {
    font-size: 15px;
  }

  .template-homepage .operational-focus__article-details {
    margin-top: 16px;
    font-size: 13px;
  }

  .template-homepage .operational-focus__controls {
    gap: 6px;
  }

  .template-homepage .operational-focus__controls button {
    width: 36px;
    height: 36px;
  }

  .template-homepage .operational-focus__slide {
    gap: 20px;
  }

  .template-homepage .operational-focus .button {
    width: 100%;
  }

  .template-homepage .operational-focus__dots {
    justify-content: center;
  }

}
