/* Shared marketing look (home, property managers, booking): Fraunces headings, forest photo,
   rounded cards, pill buttons, the inspection grid. Page-specific layout stays in pages/*.css. */

/* Fraunces (SIL Open Font License, see ../fonts/Fraunces-OFL.txt), headings only. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-500-normal.2285bacdef39.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.hj-serif { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 500; }
.hj-h2 { margin: 0 0 .6rem; font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.15; color: #f8fafc; }
.hj-lead { margin: 0; font-size: 1.05rem; line-height: 1.55; color: #cbd5e1; }
.hj-section { margin-bottom: 4.5rem; }

/* Forest photo behind dark text-safe shading. The page sets the photo as an inline background-image. */
.hj-photo { position: relative; overflow: hidden; border-radius: 1.2rem; background-color: #020617; background-size: cover; background-position: center 40%; }
.hj-photo::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-photo.is-side::before { background: linear-gradient(90deg, rgba(2,6,23,.93) 0%, rgba(2,6,23,.72) 55%, rgba(2,6,23,.5) 100%); }
.hj-photo > * { position: relative; }

/* Cards */
.hj-card { border-radius: 1.4rem; padding: 2rem; box-sizing: border-box; }
.hj-card.is-green { background: #0f2a20; border: 1px solid rgba(134,239,172,.28); }
.hj-card.is-navy { background: #0b1222; border: 1px solid rgba(148,163,184,.28); }
.hj-card.is-green .hj-muted { color: #cfe0d5; }
.hj-card .hj-muted, .hj-muted { color: #cbd5e1; }

/* Pill buttons (links or buttons) */
.hj-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; box-sizing: border-box;
  padding: .85rem 1.45rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.hj-btn.is-primary { background: #22c55e; color: #052e16; border: 0; }
.hj-btn.is-primary:hover { background: #16a34a; color: #052e16; }
.hj-btn.is-ghost { border: 1px solid rgba(148,163,184,.6); color: #f8fafc; background: rgba(2,6,23,.35); font-weight: 600; }
.hj-btn.is-ghost:hover { border-color: #22c55e; color: #f8fafc; }

/* Inspection grid (scheduling/_inspection_grid.html) */
.hj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13.5rem, 100%), 1fr)); gap: .85rem; }
.hj-cell { display: flex; gap: .85rem; align-items: flex-start; padding: 1.2rem; border-radius: 1rem; background: #0b1222; border: 1px solid rgba(148,163,184,.22); }
.hj-cell.is-bookable { border-color: rgba(34,197,94,.45); }
.hj-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #111b2e; color: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; }
.hj-cell.is-bookable .hj-ico { background: rgba(34,197,94,.14); color: #86efac; }
.hj-cell-name { display: block; font-weight: 600; color: #f8fafc; }
.hj-cell-sub { display: block; margin-top: .15rem; font-size: .88rem; color: #cbd5e1; }
.hj-note { margin: 1rem 0 0; font-size: .88rem; color: #94a3b8; }

/* Example portfolio rows */
.hj-sample { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: .9rem; background: #111b2e; font-size: .88rem; }
.hj-sample-row { display: flex; justify-content: space-between; gap: .75rem; }
.hj-sample-label { font-size: .75rem; color: #94a3b8; }
.hj-overdue { color: #fca5a5; font-weight: 600; }
.hj-soon { color: #fcd34d; font-weight: 600; }
.hj-ok { color: #86efac; font-weight: 600; }

@media (max-width: 640px) {
  .hj-card { padding: 1.5rem; }
  .hj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .hj-cell { flex-direction: column; gap: .6rem; padding: 1rem; }
}
