/* ==========================================================================
   HCOS — inner-page components
   Extends assets/css/styles.css. Same tokens, same card language; nothing here
   introduces a new visual system.
   ========================================================================== */

/* ---------- Page hero ------------------------------------------------------ */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  padding-block: calc(var(--nav-h) + 72px) 64px;
  background: var(--charcoal);
  overflow: hidden;
  isolation: isolate;
}

/* Ambient orange glow so text-only heroes still feel lit, not flat. */
.page-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 50%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(242, 107, 33, 0.20) 0%, rgba(242, 107, 33, 0) 68%);
  z-index: -1;
  pointer-events: none;
}

.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.62) 0%, rgba(17,17,17,0.30) 40%, rgba(17,17,17,0.86) 100%),
    linear-gradient(101deg, rgba(17,17,17,0.86) 0%, rgba(17,17,17,0.52) 46%, rgba(17,17,17,0.24) 100%);
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.page-hero__title {
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 16ch;
}

.page-hero__deck {
  max-width: 560px;
  margin-top: 22px;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Breadcrumbs ---------------------------------------------------- */

.crumbs {
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: rgba(17, 17, 17, 0.22);
}
.crumbs a { transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current="page"] {
  color: var(--charcoal);
  font-weight: 500;
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Two-column split ----------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}
.split--narrow { grid-template-columns: 1.15fr 1fr; align-items: start; }

.split__figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.split__figure:hover img { transform: scale(1.035); }

/* ---------- Prose ---------------------------------------------------------- */

.prose { max-width: 62ch; }
.prose p {
  margin-top: 20px;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--muted);
}
.prose p:first-child { margin-top: 26px; }
.prose strong { color: var(--charcoal); font-weight: 600; }

/* ---------- Mission / Vision ----------------------------------------------- */

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.mv-card {
  padding: clamp(30px, 3.4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.mv-card__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  background: rgba(242, 107, 33, 0.09);
  color: var(--orange);
}
.mv-card__title {
  margin-top: 22px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.mv-card__text {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- Value cards ---------------------------------------------------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(44px, 5vw, 68px);
}

.value-card {
  position: relative;
  padding: 30px 26px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(17,17,17,0.32); }
.value-card:hover::before { transform: scaleX(1); }

.value-card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(242, 107, 33, 0.09);
  color: var(--orange);
}
.value-card__title { margin-top: 20px; font-size: 1.0625rem; letter-spacing: -0.005em; }
.value-card__text { margin-top: 12px; font-size: 0.9375rem; line-height: 1.72; color: var(--muted); }

/* ---------- Trusted partners ----------------------------------------------- */

.partners { margin-top: clamp(36px, 4vw, 52px); }
.partners__placeholder {
  max-width: 720px;
  margin-inline: auto;
  padding: 26px 28px;
  border: 1px dashed rgba(17, 17, 17, 0.20);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
  text-align: center;
}
.partners__placeholder strong { display: block; margin-bottom: 6px; color: var(--charcoal); }
.partners__placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--off-white);
  color: var(--charcoal);
}

/* ---------- Services list -------------------------------------------------- */

.service-rows { display: grid; gap: clamp(56px, 6vw, 92px); }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.service-row:nth-child(even) .service-row__media { order: 2; }

.service-row__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-row__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.service-row:hover .service-row__media img { transform: scale(1.04); }

.service-row__index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.28);
  font-variant-numeric: tabular-nums;
}
.service-row__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-top: 18px;
  border-radius: 16px;
  background: rgba(242, 107, 33, 0.09);
  color: var(--orange);
}
.service-row__title {
  margin-top: 22px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.28;
}
.service-row__text {
  margin-top: 18px;
  max-width: 54ch;
  font-size: 1.0625rem;
  line-height: 1.82;
  color: var(--muted);
}

/* ---------- Detail pages --------------------------------------------------- */

.detail__inner { max-width: 860px; }
.detail__head { text-align: center; }
.detail__head .section-rule { margin-inline: auto; }

.detail__title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.detail__figure {
  margin: clamp(40px, 5vw, 60px) 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.detail__figure img { width: 100%; height: auto; }

.detail__body { max-width: none; margin-top: clamp(32px, 4vw, 46px); }
.detail__body .lead { font-size: 1.1875rem; line-height: 1.8; color: var(--charcoal); }

/* ---------- Placeholder block ---------------------------------------------- */

.placeholder {
  margin-top: clamp(40px, 4.5vw, 56px);
  padding: clamp(28px, 3.4vw, 40px);
  border: 1px dashed rgba(17, 17, 17, 0.20);
  border-radius: var(--r-lg);
  background: var(--off-white);
}
.placeholder__badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(242, 107, 33, 0.12);
  color: #8A3B0B;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.placeholder__title { margin-top: 16px; font-size: 1.125rem; line-height: 1.4; }
.placeholder__text { margin-top: 12px; font-size: 0.9375rem; line-height: 1.75; color: var(--muted); }
.placeholder__text a { color: var(--orange); font-weight: 500; }
.placeholder__text a:hover { text-decoration: underline; }

/* ---------- Newsroom grid -------------------------------------------------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.news-card__media {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
}
.news-card__media img {
  width: 100%;
  aspect-ratio: 1600 / 766;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.news-card:hover .news-card__media img { transform: scale(1.045); }

.news-card__title {
  margin-top: 14px;
  font-size: 1.25rem;
  line-height: 1.32;
  letter-spacing: -0.015em;
  transition: color 0.35s var(--ease);
}
.news-card:hover .news-card__title { color: var(--orange); }
.news-card .link-arrow { margin-top: 20px; }

/* ---------- Careers empty state -------------------------------------------- */

.empty-state {
  padding: clamp(32px, 3.6vw, 44px);
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.empty-state__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 18px;
  background: rgba(242, 107, 33, 0.09);
  color: var(--orange);
}
.empty-state__title { margin-top: 22px; font-size: 1.25rem; letter-spacing: -0.01em; }
.empty-state__text { margin-top: 14px; font-size: 0.9375rem; line-height: 1.78; color: var(--muted); }
.empty-state .btn { margin-top: 26px; }
.empty-state__note { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.empty-state__note a { color: var(--orange); font-weight: 500; }

/* ---------- CTA band ------------------------------------------------------- */

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band .section-sub { margin-top: 14px; max-width: 46ch; }

/* ---------- Contact map + form notice -------------------------------------- */

.contact__map {
  margin-top: clamp(32px, 4vw, 44px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.contact__map iframe { width: 100%; height: 300px; border: 0; }
.contact__maplink { margin-top: 14px; font-size: 0.875rem; }
.contact__maplink a { color: var(--orange); font-weight: 500; }
.contact__maplink a:hover { text-decoration: underline; }

.form__notice {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(242, 107, 33, 0.08);
  border: 1px solid rgba(242, 107, 33, 0.26);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--charcoal);
}
.form__notice a { color: var(--orange); font-weight: 600; }
.form__notice a:hover { text-decoration: underline; }

/* ---------- Footer: disabled social placeholders --------------------------- */

.footer__social a[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }
.footer__social a[aria-disabled="true"]:hover { color: rgba(255, 255, 255, 0.6); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--narrow { grid-template-columns: 1fr; gap: 44px; }
  .split__figure { order: -1; }
  .service-row { grid-template-columns: 1fr; gap: 30px; }
  .service-row:nth-child(even) .service-row__media { order: -1; }
  .service-row__media { order: -1; }
  .news-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .page-hero { min-height: 0; padding-block: calc(var(--nav-h) + 52px) 48px; }
  .page-hero__title { max-width: none; }
  .page-hero::after { display: none; }

  .mv-grid { grid-template-columns: 1fr; gap: 20px; }
  .values-grid { grid-template-columns: 1fr; gap: 18px; }

  .crumbs [aria-current="page"] { max-width: 22ch; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; justify-content: center; }

  .contact__map iframe { height: 240px; }
  .empty-state .btn { width: 100%; justify-content: center; }
}
