/* Home page (design J1+). Shared pieces (font, cards, buttons, inspection grid) are in ../brand.css. */

/* ── Hero ───────────────────────────────────────── */
.hj-hero {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  margin: -0.5rem 0 1.5rem;
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  background-color: #020617;
  background-size: cover;
  background-position: center 35%;
}
.hj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,.5) 0%, rgba(2,6,23,.78) 60%, rgba(2,6,23,.96) 100%);
}
.hj-hero > * { position: relative; }
.hj-hero h1 {
  margin: 0 auto 1.1rem;
  max-width: 15em;
  font-size: clamp(2.3rem, 5.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0,0,0,.4), 0 2px 18px rgba(0,0,0,.35);
}
.hj-sub {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #e2e8f0;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* Inspection chips */
.hj-types { list-style: none; margin: 0 auto; padding: 0; max-width: 58rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.hj-type {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; box-sizing: border-box;
  padding: .45rem .85rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(2,6,23,.8); border: 1px solid rgba(148,163,184,.5); color: #f1f5f9; text-decoration: none;
}
.hj-type .nc-type-icon { flex: 0 0 auto; }
a.hj-type.is-bookable { background: rgba(5,46,22,.88); border-color: rgba(34,197,94,.75); color: #f0fdf4; }
a.hj-type.is-bookable .nc-type-icon { color: #86efac; }
a.hj-type.is-bookable:hover { background: rgba(20,83,45,.92); }
.hj-tag { padding: .1rem .45rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hj-tag.is-now { background: #22c55e; color: #052e16; }
.hj-tag.is-soon { border: 1px solid rgba(203,213,225,.6); color: #e2e8f0; }

/* ── Two doors ──────────────────────────────────── */
.hj-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); gap: 1.25rem; margin-bottom: 4.5rem; }
.hj-door {
  display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem; border-radius: 1.4rem;
  text-decoration: none; color: inherit; box-sizing: border-box;
}
.hj-door:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hj-door.is-owner { background: #0f2a20; border: 1px solid rgba(134,239,172,.28); }
.hj-door.is-owner:hover { border-color: rgba(134,239,172,.6); }
.hj-door.is-manager { background: #0b1222; border: 1px solid rgba(148,163,184,.28); }
.hj-door.is-manager:hover { border-color: rgba(148,163,184,.6); }
.hj-door-for { font-size: .92rem; }
.is-owner .hj-door-for { color: #bbf7d0; }
.is-manager .hj-door-for { color: #94a3b8; }
.hj-door-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; color: #f8fafc; }
.hj-door-text { font-size: 1.05rem; line-height: 1.6; }
.is-owner .hj-door-text { color: #cfe0d5; }
.is-manager .hj-door-text { color: #cbd5e1; }
.hj-door .hj-btn { align-self: flex-start; margin-top: .25rem; }

/* ── Every inspection ───────────────────────────── */
.hj-section-head { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
.hj-section-head > div { max-width: 40rem; }
.hj-link-btn { padding: .85rem 1.3rem; border-radius: 999px; border: 1px solid rgba(148,163,184,.6); color: #f8fafc; text-decoration: none; font-weight: 600; }
.hj-link-btn:hover { border-color: var(--accent); }

/* ── Utility rules ──────────────────────────────── */
.hj-utils { display: flex; flex-wrap: wrap; gap: 2.5rem; border-top: 1px solid rgba(148,163,184,.2); padding-top: 2.5rem; }
.hj-utils > .hj-h2 { flex: 1 1 18rem; min-width: 0; margin: 0; }
.hj-util-list { flex: 2 1 30rem; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1.25rem; }
.hj-util-list a { font-weight: 600; color: #f8fafc; text-decoration: none; }
.hj-util-list a:hover { text-decoration: underline; text-underline-offset: 2px; }
.hj-util-list p { margin: .25rem 0 0; font-size: .92rem; line-height: 1.55; color: #cbd5e1; }
.hj-more { display: inline-block; margin-top: 1.5rem; font-weight: 600; color: #4ade80; }
.hj-tester { margin: 0 0 2.5rem; font-size: .95rem; color: #cbd5e1; }
.hj-tester a { color: #4ade80; }

/* ── Kept from the old page ─────────────────────── */
.hp-section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; color: #f9fafb; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.hp-disclaimer { font-size: 0.8rem; color: #94a3b8; line-height: 1.5; max-width: 640px; margin-bottom: 1rem; }

/* Backflow testing by city: links to the city pages */
.hp-cities { margin: 0 0 2rem; text-align: center; }
.hp-city-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.hp-city-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1px solid rgba(148,163,184,.35); color: var(--text-main); text-decoration: none; font-size: .92rem; }
.hp-city-list a:hover { border-color: var(--accent); }
.hp-cities-more { margin: .9rem 0 0; font-size: .88rem; color: var(--text-muted); }
.hp-cities-more a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  .hj-hero { padding: 3.5rem 1.1rem 3rem; }
  .hj-door { padding: 1.6rem; }
}
