/* Home page (Ash, 6 Dec 2026): photos on the service cards, latest jobs at the bottom. Made for migration/home_jobs.py.
   Change it later? Make barwon-home-2.css (Cloudflare caches CSS for 7 days by URL). */

/* service cards: photo across the top of the card */
.hs-card { overflow: hidden; }
.hs-img { display: block; width: calc(100% + 5.2rem); max-width: none; height: 19rem; object-fit: cover;
  margin: -2.8rem -2.6rem 2rem; border-bottom: 1px solid rgba(var(--color-foreground), .1); transition: transform .35s ease; }
.hs-card:hover .hs-img { transform: scale(1.03); }

/* latest jobs */
.hj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; max-width: 132rem; margin: 0 auto; padding: 0 2rem; }
@media screen and (max-width: 989px) { .hj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 76rem; } }
.hj-card { display: flex; flex-direction: column; background: rgb(var(--color-background)); border: 1px solid rgba(var(--color-foreground), .14);
  border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .25s ease, transform .25s ease; }
.hj-card:hover { border-color: rgba(var(--accent-gold), .5); transform: translateY(-3px); }
.hj-card img { display: block; width: 100%; height: 20rem; object-fit: cover; }
.hj-when { margin: 1.4rem 1.6rem 0; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.hj-t { margin: .5rem 1.6rem 1.2rem; font-family: var(--font-heading-family); font-weight: var(--font-heading-weight);
  font-size: 1.6rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hj-go { margin: auto 1.6rem 1.5rem; font-size: 1.3rem; color: rgb(var(--accent-gold)); }
.hj-card:hover .hj-t { color: rgb(var(--accent-gold)); }

@media screen and (max-width: 749px) {
  /* phone service tiles (barwon-compact-1.css makes them 2 per row with padding 1.5rem 1.3rem) */
  .hs-card { justify-content: flex-start !important; }
  .hs-img { width: calc(100% + 2.6rem); height: 10.5rem; margin: -1.5rem -1.3rem 1.1rem; }
  .hs-card:last-child:nth-child(odd) .hs-img { height: 14rem; }
  .hj-grid { gap: 1rem; padding: 0 1.2rem; }
  .hj-card img { height: 12rem; }
  .hj-when { margin: 1rem 1.1rem 0; font-size: 1.05rem; }
  .hj-t { margin: .3rem 1.1rem .8rem; font-size: 1.35rem; }
  .hj-go { margin: auto 1.1rem 1.1rem; font-size: 1.2rem; }
}
