/* Homepage-only visual hierarchy. Loaded only by candidate/index.html. */
body.homepage {
  background: #fffdf2;
}

/* Named utility replacing the Tailwind class `col-span-2`, which does not exist
   in the pre-compiled theme.css and therefore failed silently. Used by the last
   Industries dropdown link so it spans both columns of the two-column panel.
   Only applies once the panel is actually two-column (>= 640px, matching
   sm:grid-cols-2); below that the panel is a single column and spanning is a
   no-op that would otherwise be wrong. */
@media (min-width: 640px) {
  .homepage .nav-panel-span-full {
    grid-column: 1 / -1;
  }
}

.homepage {
  overflow-x: clip;
}

.homepage main > section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.homepage h1,
.homepage h2,
.homepage h3 {
  text-wrap: balance;
}

/* The display scale stays below a 2.5x min/max ratio so it remains usable at zoom. */
.homepage main > section h1 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 4vw, 3.75rem) !important;
  line-height: 1.04 !important;
}

.homepage main > section > div > h2,
.homepage #about h2 {
  max-width: 23ch;
  margin-inline: auto;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.1;
  text-align: center;
}

/* Each section deck is constrained but intentionally left aligned. */
.homepage main > section > div > h2 + p,
.homepage #about h2 + p {
  max-width: 52rem;
  margin-inline: auto;
  text-align: left;
}

.homepage main > section > div > h2 + p::before,
.homepage #about h2 + p::before {
  display: block;
  width: 3rem;
  height: .25rem;
  margin-bottom: 1rem;
  background: #ff0000;
  content: "";
}

/* Keep the introduction's follow-on copy on the same readable deck measure. */
.homepage #introduction > div > div {
  max-width: 52rem;
  margin-inline: auto;
}

.homepage #introduction > div > div > p {
  max-width: 52rem;
  margin-inline: auto;
  text-align: left;
}

.homepage main > section > div > div > article,
.homepage main > section > div > ul > li,
.homepage #about > div > div {
  min-width: 0;
}

/* Hero: compact, readable copy beside a controlled image panel. */
.homepage main > section:first-child {
  background: linear-gradient(116deg, #fff8bf 0%, #fff4a3 58%, #f7e987 100%);
}

.homepage main > section:first-child > div {
  gap: clamp(2rem, 5vw, 5rem);
}

.homepage main > section:first-child img {
  aspect-ratio: 1 / 1;
  min-height: 20rem;
  object-position: center;
  box-shadow: 1.25rem 1.25rem 0 #171a42;
}

.homepage main > section:first-child p:first-child {
  letter-spacing: .03em;
}

.homepage main > section:first-child > div > div > p:not(:first-child) {
  max-width: 42rem;
}

.homepage main > section:first-child a {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Services: the approved dark field and light, high-contrast cards. */
.homepage #services,
.homepage #process,
.homepage #trust {
  background-color: #11145c;
  background-image: linear-gradient(135deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 22px 22px;
}

.homepage #services > div > div {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.25rem;
}

.homepage #services article {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 .8rem 0 rgba(255,255,0,.82);
}

.homepage #services article h3::after {
  display: block;
  width: 2.5rem;
  height: .2rem;
  margin-top: .8rem;
  background: #ff0000;
  content: "";
}

.homepage #services article ul {
  margin-top: auto;
  padding-top: 1rem;
}

/* Industries: uniform, source-ordered cards with preserved accent sequence. */
.homepage #industries {
  background: #fff9cc;
}

.homepage #industries > div > div {
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.homepage #industries article {
  display: flex;
  min-height: 13.25rem;
  flex-direction: column;
  box-sizing: border-box;
  border-top: .35rem solid #171a42;
  box-shadow: 0 .75rem 0 rgba(201,0,0,.16);
}

.homepage #industries article:nth-child(3n + 2) {
  border-top-color: #c90000;
}

.homepage #industries article:nth-child(3n) {
  border-top-color: #0000d6;
}

@media (min-width: 48rem) {
  .homepage #industries > div > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .homepage #industries > div > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Compact local coverage panel. */
.homepage #service-areas > div {
  max-width: 68rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid #d9d7ba;
  border-radius: 1.5rem;
  background: #fffdf2;
  box-shadow: 0 1rem 0 #fff4a3;
}

.homepage #service-areas ul {
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
}

.homepage #service-areas li {
  border-left: .3rem solid #ff0000;
}

/* Process: numbered sequence on a dark field. */
.homepage #process > div > div {
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1rem;
}

.homepage #process article {
  position: relative;
  overflow: hidden;
  min-height: 13rem;
  border: 1px solid rgba(255,255,255,.14);
}

.homepage #process article > p:first-child {
  font-size: 1.65rem;
  line-height: 1;
}

.homepage #process article::after {
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  color: rgba(255,255,255,.07);
  font-family: Sora, sans-serif;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  content: attr(data-step);
}

/* Benefits: outcome cards with a brighter hierarchy. */
.homepage #benefits {
  background: linear-gradient(180deg, #fffdf2 0%, #fff9cc 100%);
}

.homepage #benefits > div > div {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.homepage #benefits article {
  border: 1px solid #d9d7ba;
  border-radius: 1.25rem;
  background: #fffdf2;
  box-shadow: 0 .6rem 0 rgba(17,20,92,.12);
}

.homepage #benefits article h3 {
  color: #c90000;
}

/* Differentiated value, pricing, trust, about, and closing callouts. */
.homepage #why-choose-us > div > div {
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}

.homepage #why-choose-us article {
  border-left: .35rem solid #0000d6;
}

.homepage #pricing > div {
  max-width: 68rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.5rem;
  background: #171a42;
  color: #fffdf2;
  box-shadow: 1rem 1rem 0 #ffff00;
}

.homepage #pricing h2,
.homepage #pricing p {
  color: inherit;
}

.homepage #pricing h2 + p::before {
  background: #ffff00;
}

.homepage #pricing a {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.homepage #trust figure {
  display: grid;
  align-content: space-between;
  min-height: 16rem;
  border-top: .35rem solid #ffff00;
  box-shadow: 0 .7rem 0 rgba(255,255,255,.12);
}

.homepage #about {
  background: #fff4a3;
}

.homepage #about > div {
  align-items: stretch;
}

.homepage #about img {
  min-height: 20rem;
  height: 100%;
  box-shadow: -.9rem .9rem 0 #c90000;
}

.homepage #about > div > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid #d9d7ba;
  border-radius: 1.25rem;
  background: #fffdf2;
}

.homepage #final-cta {
  background: linear-gradient(120deg, #a80000, #c90000 48%, #e20b0b);
}

.homepage #final-cta > div {
  max-width: 66rem;
  padding: clamp(2.5rem, 6vw, 5rem);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 1.5rem;
  background: rgba(23,26,66,.16);
}

.homepage #final-cta h2 {
  max-width: 21ch;
  margin-inline: auto;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.1;
}

.homepage #final-cta a {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 47.99rem) {
  .homepage main > section:first-child img {
    min-height: 17rem;
    box-shadow: .6rem .6rem 0 #171a42;
  }

  .homepage #service-areas > div,
  .homepage #pricing > div,
  .homepage #final-cta > div {
    border-radius: 1.1rem;
  }
}

@media (hover: hover) {
  .homepage #services article,
  .homepage #industries article,
  .homepage #benefits article,
  .homepage #why-choose-us article,
  .homepage #trust figure {
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .homepage #services article:hover,
  .homepage #industries article:hover,
  .homepage #benefits article:hover,
  .homepage #why-choose-us article:hover,
  .homepage #trust figure:hover {
    transform: translateY(-.35rem);
  }
}

/* service-area-nav-drawer-scroll: the mobile drawer lives in a sticky header, so it cannot
   scroll with the document. Cap it to the viewport and let it scroll
   internally so every entry stays reachable. Homepage-scoped only. */
@media (max-width: 1023.98px) {
  .homepage header nav[aria-label="Mobile navigation"] {
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* nav-parity-defect-1-homepage */
/* Navigation whole-block highlight (Defect 1) — homepage copy of the shared
   rule so the homepage matches the non-homepage nav exactly. */
header nav[aria-label="Primary navigation"] details[open] > summary {
  background-color: #fff9cc !important;
  color: #c90000 !important;
}
header nav[aria-label="Primary navigation"] details > div > a:hover {
  background-color: #fffdf2 !important;
  color: #c90000 !important;
}
