/* ============================================================
   ChampOS homepage overrides.

   The homepage inherits the full visual system from styles.css:
   navy background, dotted grid, noise, particle field, hero wave,
   gradient headline, and button styling.

   This file is loaded ONLY by index.html and is deliberately an
   override layer, not a second design system. styles.css is never
   edited, which is what keeps operator-home.html safe and keeps the
   restore a pure copy.
   ============================================================ */

/* --- Header: wordmark left, social right --- */
.hero-champos .hero-mark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding-top: 28px;
  z-index: 3;
}
.hero-mark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero-champos .hero-mark img {
  height: 30px;
  width: auto;
}

/* Deliberately quiet: muted, monochrome, no fill, no badge. Sits well
   below the wordmark in contrast so it never competes with it. */
.hero-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--text-muted);
  opacity: 0.7;
  transition: color var(--transition), opacity var(--transition);
}
.hero-social:hover {
  color: var(--text-secondary);
  opacity: 1;
}
.hero-social svg { width: 24px; height: 24px; }

/* --- Centered hero --- */
.hero-champos .hero-content {
  margin: 0 auto;
  text-align: center;
}
.hero-champos .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.hero-champos .hero-ctas {
  justify-content: center;
  margin-bottom: 0 !important;
}

/* --- Headline ---
   styles.css pins the hero headline to a single line with
   white-space: nowrap and width: max-content, sized for the short
   operator headline. This one is a full sentence, so it has to wrap.
   The gradient, font, and weight are inherited untouched. */
@media (min-width: 768px) {
  .hero-champos .hero-content {
    max-width: 900px !important;
    width: auto !important;
  }
  .hero-champos .hero-title {
    white-space: normal !important;
    width: auto !important;
    max-width: 17ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.9rem, 5.4vw, 4.4rem) !important;
    line-height: 1.06 !important;
  }
  .hero-champos .hero-subtitle {
    max-width: 560px !important;
  }
}

/* --- Contact line under the buttons --- */
.hero-contact {
  margin-top: 28px;
  font-size: 0.92rem;
}
.hero-contact a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.hero-contact a:hover { color: var(--blue); }

/* External-link arrow should not slide sideways like the forward arrow */
.hero-champos .btn-secondary .btn-arrow { width: 13px; height: 13px; }

@media (max-width: 767.98px) {
  .hero-champos .hero-mark { padding-top: 20px; }
  .hero-champos .hero-mark img { height: 26px; }
  .hero-social { width: 30px; height: 30px; }
  .hero-social svg { width: 21px; height: 21px; }
  .hero-champos .hero-title { max-width: 20ch; margin-left: auto; margin-right: auto; }
  /* styles.css stacks hero CTAs left-aligned on mobile; center them here */
  .hero-champos .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-contact { margin-top: 22px; font-size: 0.85rem; }
}
