/* =========================================================
   HIRE / DEVELOPER PAGES — Shared template family
   Global navigation, breadcrumbs, buttons, FAQ and footer remain
   in continuum-pages.css.
   ========================================================= */

.page-hire {
  color: var(--navy, #0d1b44);
}

/* Hero */
.hire-hero {
  overflow: hidden;
  background: linear-gradient(120deg, #101943 0%, #172a62 68%, #243a71 100%);
  color: #fff;
}

.hire-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 540px;
  padding-block: clamp(4rem, 7vw, 7rem);
}

.hire-hero__copy {
  max-width: 670px;
}

.hire-hero .eyebrow {
  color: #ffbb97;
}

.hire-hero h1 {
  max-width: 15ch;
  margin: 1rem 0 1.25rem;
  color: #fff;
  font-size: clamp(2.7rem, 4.4vw, 4.5rem);
  line-height: 1.12;
  overflow-wrap: normal;
}

.hire-hero__copy > p:not(.eyebrow) {
  max-width: 58ch;
  color: #e7eaf5;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.hire-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hire-text-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #ff6d2c;
  text-underline-offset: 0.4em;
}

.hire-hero__visual {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(3, 11, 38, 0.32);
  background: #21366c;
}

.hire-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  object-fit: cover;
}

/* Source-preserving editorial content */
.hire-section {
  padding-block: clamp(3.75rem, 5.5vw, 5.5rem);
}

.hire-section--tint {
  background: #f6f8fc;
}

.hire-section--warm {
  background: #fff8f4;
}

.hire-prose,
.hire-narrow {
  max-width: 950px;
}

.hire-prose > h2,
.hire-prose > h3 {
  max-width: 950px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: #101943;
}

.hire-prose > h3:not(:first-child),
.hire-prose > h4,
.hire-prose > h5 {
  max-width: 950px;
  margin: 2rem auto 0.75rem;
  text-align: left;
}

.hire-prose > p,
.hire-prose > .hire-list {
  max-width: 950px;
  margin: 0 auto 1.35rem;
  line-height: 1.7;
}

.hire-prose > p:last-child {
  margin-bottom: 0;
}

.hire-prose strong,
.hire-prose b {
  font-weight: 700;
}

.hire-prose a {
  color: #d84d18;
  text-underline-offset: 0.2em;
}

.hire-list {
  padding-left: 1.6rem;
}

.hire-list li {
  padding: 0.22rem 0;
}

.hire-quote-note {
  text-align: center;
}

.hire-prose > .btn {
  display: table;
  margin: 1.25rem auto 0;
}

.hire-benefit-grid {
  max-width: 1160px;
  margin-inline: auto;
}

.hire-benefit-card {
  min-height: 100%;
}

.hire-benefit-card h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.hire-source-image {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.hire-source-image img {
  max-width: 100%;
  height: auto;
}

/* Capabilities, development process and engagement cards */
.hire-offering-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
  max-width: 1180px;
  margin-inline: auto;
}

.hire-offering-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e7f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 30, 65, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hire-offering-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 30, 65, 0.12);
}

.hire-offering-card > img {
  display: block;
  width: 100%;
  height: 205px;
  object-fit: contain;
  background: #f6f8fc;
}

.hire-offering-card > div {
  padding: 1.7rem;
}

.hire-offering-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hire-offering-card p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

.hire-offering-card p:last-child {
  margin-bottom: 0;
}

.hire-offering-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 1.5rem 0 0 1.5rem;
  border-radius: 16px;
  background: #fff0e9;
  color: #ef5a24;
  font-size: 1.8rem;
}

/* Hiring steps share the capability card shell but have sequential markers. */
.hire-process-grid {
  counter-reset: hire-step;
}

.hire-process-grid .hire-offering-card {
  position: relative;
  overflow: visible;
  border-top: 3px solid var(--orange, #f2652b);
}

.hire-process-grid .hire-offering-card:not(:nth-child(3n))::after {
  position: absolute;
  top: 51px;
  right: -24px;
  z-index: 2;
  width: 24px;
  height: 2px;
  background: var(--orange, #f2652b);
  content: '';
}

.hire-process-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 1.5rem 0 0 1.7rem;
  border-radius: 50%;
  background: var(--orange, #f2652b);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
}

.hire-engagement-grid .hire-offering-card {
  border-top: 3px solid #172a62;
}

/* Location cards retain the source city's icon family. */
.hire-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.hire-city-card {
  display: block;
  min-width: 0;
  padding: 1.7rem;
  border: 1px solid #e2e7f1;
  border-radius: 18px;
  background: #fff;
  color: #101943;
  box-shadow: 0 10px 28px rgba(15, 30, 65, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hire-city-card:hover,
.hire-city-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 30, 65, 0.12);
}

.hire-city-card img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.hire-city-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
}

.hire-city-card p {
  min-height: 3.25em;
  margin: 0 0 1rem;
  color: #536180;
  line-height: 1.65;
}

.hire-city-card span {
  color: #df541e;
  font-weight: 700;
}

.hire-service-area-map {
  max-width: 850px;
  margin: 0 auto 2.5rem;
}

.hire-service-area-map img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.hire-city-note {
  margin: 2rem 0 0;
  text-align: center;
}

/* Internal hierarchy */
.hire-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hire-related-grid a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid #e2e7f1;
  border-radius: 14px;
  background: #fff;
  color: #101943;
  font-weight: 700;
}

.hire-related-grid a:hover,
.hire-related-grid a:focus-visible {
  border-color: #f2652b;
  color: #dc5520;
}

.hire-related-master {
  margin: 2rem 0 0;
  text-align: center;
}

.hire-related-master a {
  color: #c94a19;
  font-weight: 700;
}

/* Hire overview directory — kept on the hub, never inside the mega menu. */
.hire-hub-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hire-hub-group {
  min-width: 0;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e7f1;
  border-radius: 14px;
  background: #fff;
}

.hire-hub-group summary {
  color: #101943;
  font-weight: 700;
  cursor: pointer;
}

.hire-hub-group__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.2rem;
  padding-top: 1rem;
}

.hire-hub-group__links a {
  color: #193064;
  text-decoration: underline;
  text-decoration-color: #f2652b;
  text-underline-offset: 0.2em;
}

.hire-hub-group summary:focus-visible,
.hire-hub-group__links a:focus-visible {
  outline: 3px solid #f2652b;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .hire-hub-groups,
  .hire-hub-group__links {
    grid-template-columns: 1fr;
  }
}

/* Existing live Hire forms: semantic static preview, connected to WPForms in WordPress. */
.hire-form-section {
  background: #f4f7fc;
}

.hire-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1200px;
}

.hire-form-copy {
  max-width: none;
}

.hire-form-copy > h2,
.hire-form-copy > h3 {
  margin-left: 0;
  text-align: left;
}

.hire-form-card {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid #dde5f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 30, 65, 0.08);
}

.hire-form-card > h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
}

.hire-form-card > .eyebrow {
  color: #c74617;
}

.hire-form {
  display: grid;
  gap: 1.25rem;
}

.hire-form-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hire-form-field > label,
.hire-form-field > legend,
.hire-form-label {
  display: block;
  margin: 0 0 0.55rem;
  color: #101943;
  font-size: 0.93rem;
  font-weight: 700;
}

.hire-form-required {
  color: #bd3d12;
}

.hire-form-name-grid,
.hire-form-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.hire-form-name-grid label {
  display: block;
  margin-bottom: 0.35rem;
  color: #52607e;
  font-size: 0.82rem;
}

.hire-form input:not([type='checkbox']),
.hire-form select,
.hire-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd5e4;
  border-radius: 9px;
  background: #fff;
  color: #101943;
  font: inherit;
}

.hire-form textarea {
  min-height: 112px;
  resize: vertical;
}

.hire-form input:focus-visible,
.hire-form select:focus-visible,
.hire-form textarea:focus-visible,
.hire-form .hire-form-option:focus-within {
  outline: 3px solid #ffab73;
  outline-offset: 2px;
}

.hire-form-option {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: flex-start;
  gap: 0.6rem;
  color: #27365d;
  font-size: 0.88rem;
  line-height: 1.4;
}

.hire-form-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0.1rem 0 0;
  accent-color: #c74617;
}

.hire-form-submit {
  width: 100%;
  cursor: not-allowed;
}

.hire-form-preview-note {
  margin: -0.25rem 0 0;
  color: #52607e;
  font-size: 0.83rem;
  line-height: 1.5;
}

.hire-form-preview-note a {
  color: #a9360f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* The approved global CTA styling remains authoritative. */
.hire-cta .eyebrow {
  color: #ffbe9f;
}

.hire-cta {
  position: relative;
  overflow: hidden;
}

.hire-cta__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}

.hire-cta .cta-banner__inner {
  position: relative;
  z-index: 1;
}

.hire-cta__copy {
  max-width: 850px;
  margin: 1.25rem auto 1.75rem;
}

.hire-cta__copy p {
  margin: 0 auto 0.9rem;
  color: #f3f5fb;
  line-height: 1.7;
}

.hire-cta__copy p:last-child {
  margin-bottom: 0;
}

.page-hire .btn.btn-primary.btn--primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9px;
  color: #fff;
  background: #c74617;
  font-weight: 700;
  text-decoration: none;
}

.page-hire .btn.btn-primary.btn--primary:hover,
.page-hire .btn.btn-primary.btn--primary:focus-visible {
  color: #fff;
  background: #a9360f;
}

.page-hire .btn.btn-primary.btn--primary:focus-visible,
.page-hire .hire-text-link:focus-visible,
.page-hire .hire-related-grid a:focus-visible {
  outline: 3px solid #ffab73;
  outline-offset: 3px;
}

.hire-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.hire-cta__secondary {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

@media (max-width: 992px) {
  .hire-form-layout {
    grid-template-columns: 1fr;
  }

  .hire-form-copy {
    max-width: 950px;
  }

  .hire-form-card {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }
  .hire-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hire-hero__visual {
    max-width: 750px;
  }

  .hire-offering-grid,
  .hire-city-grid,
  .hire-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hire-process-grid .hire-offering-card:nth-child(3n)::after {
    content: none;
  }

  .hire-process-grid .hire-offering-card:not(:nth-child(2n))::after {
    content: '';
  }

  .hire-process-grid .hire-offering-card:nth-child(2n)::after {
    content: none;
  }
}

@media (max-width: 576px) {
  .hire-form-name-grid,
  .hire-form-options-grid {
    grid-template-columns: 1fr;
  }

  .hire-hero__grid {
    gap: 2rem;
    padding-block: 3.6rem 4.5rem;
  }

  .hire-hero h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .hire-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hire-offering-grid,
  .hire-city-grid,
  .hire-related-grid {
    grid-template-columns: 1fr;
  }

  .hire-process-grid .hire-offering-card::after {
    content: none !important;
  }

  .hire-section {
    padding-block: 4rem;
  }

  .hire-city-card p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hire-city-card,
  .hire-offering-card {
    transition: none;
  }
}
