/* Homepage-only information hierarchy refinements.
 * Detailed service scope, resources and professional boundaries remain on their
 * existing destination pages; this layer reduces first-visit cognitive load. */

body[data-page="home"] .home-hero-simplified .hero-copy {
  max-width: 680px;
}

body[data-page="home"] .home-hero-simplified .hero-copy > p {
  max-width: 620px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

body[data-page="home"] .home-hero-simplified .hero-actions {
  margin-top: 28px;
}

body[data-page="home"] .home-hero-simplified .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 35%, rgba(245, 184, 46, 0.18), transparent 24%),
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.05) 42% 43%, transparent 43% 56%, rgba(255, 255, 255, 0.04) 56% 57%, transparent 57%);
}

body[data-page="home"] .home-hero-simplified .hero-grid {
  z-index: 1;
}

.home-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(6, 42, 91, 0.2);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}

.home-nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.home-value-section {
  border-bottom: 1px solid rgba(16, 55, 74, 0.12);
  background: #fff;
  padding: clamp(38px, 5vw, 64px) 0;
}

.home-value-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.home-value-heading h2,
.home-why-intro h2,
.home-output-copy h2 {
  margin: 8px 0 12px;
}

.home-value-grid,
.home-why-grid,
.home-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-value-grid {
  gap: 0;
  border-top: 1px solid rgba(16, 55, 74, 0.12);
  border-bottom: 1px solid rgba(16, 55, 74, 0.12);
}

.home-value-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 26px clamp(18px, 2.4vw, 32px);
}

.home-value-grid article + article {
  border-left: 1px solid rgba(16, 55, 74, 0.12);
}

.home-why-card,
.home-situation-card {
  min-width: 0;
  border: 1px solid rgba(16, 55, 74, 0.14);
  border-radius: 18px;
  background: #fff;
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 14px 36px rgba(19, 53, 70, 0.06);
}

.home-value-grid h3,
.home-why-card h3,
.home-process-grid h3,
.home-output-preview h3,
.home-situation-card h3 {
  margin: 10px 0 8px;
}

.home-value-grid p,
.home-why-card p,
.home-process-grid p,
.home-output-preview p,
.home-situation-card p {
  margin-bottom: 0;
}

.home-card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--navy);
  background: rgba(181, 139, 62, 0.12);
}

.home-card-icon svg {
  width: 23px;
  height: 23px;
}

.home-boundary-note,
.home-output-boundary,
.home-final-boundary {
  color: rgba(26, 48, 61, 0.78);
  font-size: 0.94rem;
  line-height: 1.65;
}

.home-boundary-note {
  max-width: 900px;
  margin: 20px 0 0;
}

.home-compact-head {
  max-width: 800px;
}

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

.home-situation-card {
  display: flex;
  flex-direction: column;
}

.home-situation-card .resource-read {
  display: inline-flex;
  margin-top: auto;
  padding-top: 18px;
}

.home-situation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 18px;
}

.home-situation-actions .resource-read {
  margin: 0;
  padding: 0;
}

.home-why-intro {
  max-width: 870px;
  margin-bottom: 30px;
}

.home-section-action {
  margin-top: 28px;
}

.home-process-grid {
  position: relative;
  gap: 0;
  border-top: 2px solid rgba(47, 111, 219, 0.18);
}

.home-process-grid article {
  position: relative;
  min-width: 0;
  padding: 30px clamp(18px, 2.8vw, 36px) 0 0;
}

.home-process-grid article::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(47, 111, 219, 0.25);
}

.home-step-number {
  display: inline-block;
  color: rgba(16, 55, 74, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-output-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.home-output-copy {
  min-width: 0;
}

.home-output-copy .button {
  margin-top: 18px;
}

.home-output-preview {
  overflow: hidden;
  border: 1px solid rgba(16, 55, 74, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(19, 53, 70, 0.1);
}

.home-output-preview-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(110deg, var(--deep), var(--navy));
}

.home-output-preview-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-output-preview-head strong {
  font-size: 15px;
}

.home-output-preview-head small {
  color: #dbe8f7;
  font-size: 11px;
  font-weight: 750;
}

.home-output-preview article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(180deg, #fff 0%, rgba(246, 249, 250, 0.82) 100%);
}

.home-output-preview article + article {
  border-top: 1px solid rgba(16, 55, 74, 0.12);
}

.home-output-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(245, 184, 46, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.home-output-preview article div > span {
  display: block;
  color: rgba(16, 55, 74, 0.62);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-output-boundary {
  margin: 22px 0 0;
}

.home-resources-compact .section-head {
  max-width: 780px;
}

.home-final-cta-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr) !important;
  align-items: center !important;
}

.home-final-cta-layout > :first-child {
  max-width: 660px !important;
}

.home-final-boundary {
  max-width: 430px;
  margin: 0;
  padding: 20px 0 20px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.82);
}

/* At narrower desktop widths the report preview needs the full content width. */
@media (max-width: 1180px) {
  .home-output-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) and (max-width: 1020px) {
  .home-value-grid,
  .home-why-grid,
  .home-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-value-grid article:nth-child(3),
  .home-why-grid article:nth-child(3),
  .home-process-grid article:nth-child(3) {
    grid-column: 1 / -1;
  }

  .home-value-grid article:nth-child(3) {
    border-top: 1px solid rgba(16, 55, 74, 0.12);
    border-left: 0;
  }

  .home-process-grid {
    border-top: 0;
    border-left: 2px solid rgba(47, 111, 219, 0.18);
  }

  .home-process-grid article {
    padding: 6px 24px 30px 34px;
  }

  .home-process-grid article::before {
    top: 8px;
    left: -7px;
  }
}

@media (max-width: 1020px) {
  .home-output-layout,
  .home-final-cta-layout {
    grid-template-columns: 1fr !important;
  }

  .home-final-boundary {
    max-width: 720px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 700px) {
  body[data-page="home"] .topbar {
    position: sticky;
    top: 0;
  }

  body[data-page="home"] .topbar .nav {
    position: relative;
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 8px 0;
  }

  body[data-page="home"] .topbar .brand {
    max-width: min(190px, calc(100% - 58px));
  }

  body[data-page="home"] .topbar .brand img {
    width: auto !important;
    max-width: 100%;
    max-height: 48px !important;
  }

  body[data-page="home"] .home-nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    flex: 0 0 auto;
  }

  body[data-page="home"] .topbar .home-header-cta {
    display: none;
  }

  body[data-page="home"] .topbar .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    width: 100%;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(11, 31, 58, 0.14);
  }

  body[data-page="home"] .topbar[data-mobile-nav-open="true"] .nav-links {
    display: grid;
  }

  body[data-page="home"] .topbar .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
  }

  body[data-page="home"] .topbar .nav-links a:hover,
  body[data-page="home"] .topbar .nav-links a:focus-visible {
    background: var(--soft);
  }

  body[data-page="home"] .home-hero-simplified .hero-slides,
  body[data-page="home"] .home-hero-simplified .hero-slide,
  body[data-page="home"] .home-hero-simplified .hero-grid {
    min-height: 590px;
  }

  body[data-page="home"] .home-hero-simplified .hero-copy {
    padding: 46px 0 104px;
  }

  body[data-page="home"] .home-hero-simplified .hero-carousel h1,
  body[data-page="home"] .home-hero-simplified .hero-carousel h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
  }

  body[data-page="home"] .home-hero-simplified .hero-copy > p {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.55;
  }

  body[data-page="home"] .home-hero-simplified .hero-actions {
    gap: 10px;
    margin-top: 18px;
  }

  body[data-page="home"] .home-hero-simplified .hero-slide::after {
    inset: 45% 0 0;
    background: radial-gradient(circle at 75% 60%, rgba(245, 184, 46, 0.16), transparent 32%);
  }

  .home-value-grid,
  .home-why-grid,
  .home-process-grid,
  .home-situation-grid {
    grid-template-columns: 1fr;
  }

  .home-value-grid {
    border: 0;
  }

  .home-value-grid article {
    padding: 20px 0;
    border-top: 1px solid rgba(16, 55, 74, 0.12);
  }

  .home-value-grid article + article {
    border-left: 0;
  }

  .home-value-grid article:last-child {
    border-bottom: 1px solid rgba(16, 55, 74, 0.12);
  }

  .home-process-grid {
    border-top: 0;
    border-left: 2px solid rgba(47, 111, 219, 0.18);
  }

  .home-process-grid article {
    padding: 4px 0 32px 30px;
  }

  .home-process-grid article::before {
    top: 6px;
    left: -7px;
  }

  .home-why-card,
  .home-situation-card {
    border-radius: 14px;
    padding: 20px;
  }

  .home-output-preview-head {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .home-output-preview article {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 18px;
  }

  .home-situation-actions {
    display: grid;
    gap: 10px;
  }

  .home-situation-actions .resource-read {
    width: fit-content;
  }
}
