/* ==========================================================
   Homepage feature area (_partials/home-feature.twig)
   Loaded by the partial itself via view.registerCssFile
   ========================================================== */

.hf-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.hf-sermon a, .hf-cards a, .hf-live { transform: none; }  /* site nudges every link up 5px */
.hf-sermon p, .hf-cards p { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Livestream strip (shown only during service windows) ---- */
.hf-live {
  display: block;
  background: #0c3f52;
  color: #fff;
  text-decoration: none;
}
.hf-live[hidden] { display: none; }
.hf-live__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
}
.hf-live__icon { flex-shrink: 0; color: #ff6b5e; }
.hf-live__text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  border-bottom: 2px solid rgba(255, 255, 255, .35);
  line-height: 1.3;
}
.hf-live:hover .hf-live__text,
.hf-live:focus-visible .hf-live__text { border-bottom-color: #fff; }
.hf-live:hover { color: #fff; background: #0a3546; }
.hf-live:focus-visible { outline: 3px solid #dea14b; outline-offset: -3px; }

.hf-live__arc1 { animation: hf-pulse 1.6s ease-in-out infinite; }
.hf-live__arc2 { animation: hf-pulse 1.6s ease-in-out .3s infinite; }
@keyframes hf-pulse {
  0%, 100% { opacity: .15; }
  40% { opacity: 1; }
}

/* ---- Latest sermon band ---- */
.hf-sermon {
  background: #f6f4ef;
  padding: 48px 0 56px;
  color: #4a5361;
  font-size: 15px;
  line-height: 1.5;
}
.hf-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hf-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0c3f52;
  box-shadow: 0 1px 0 #e6e2d8, 0 12px 28px rgba(12, 63, 82, .16);
}
.hf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hf-media:hover img { transform: scale(1.02); }
.hf-media:focus-visible { outline: 3px solid #dea14b; outline-offset: 3px; }

.hf-media__play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 7px;
  border-radius: 999px;
  background: rgba(12, 63, 82, .92);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.hf-media__disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hf-media__disc svg { width: 16px; height: 16px; fill: #0c3f52; margin-left: 2px; }

.hf-media--audio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
}
.hf-media__mic { width: 64px; height: 64px; color: #dea14b; }
.hf-media__title { font-family: Oswald, sans-serif; font-size: 34px; line-height: 1.15; max-width: 480px; margin-bottom: 70px; }
.hf-media__play--light { background: #fff; color: #0c3f52; }
.hf-media__play--light .hf-media__disc { background: #0c3f52; }
.hf-media__play--light .hf-media__disc svg { fill: #fff; }

.hf-feature__text { display: flex; flex-direction: column; gap: 16px; }
.hf-kicker { font-size: 15px; font-weight: 700; color: #8a5a14; }
.hf-sermon h2.hf-feature__title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.12;
  text-transform: none;
}
.hf-feature__title a { color: #044d64; text-decoration: none; }
.hf-feature__title a:hover { text-decoration: underline; }

.hf-speaker { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.hf-speaker img,
.hf-speaker__initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.hf-speaker__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6e2d8;
  color: #0c3f52;
  font-weight: 700;
  font-size: 15px;
}
.hf-speaker__name { color: #0c3f52; font-weight: 600; font-size: 16px; }
.hf-speaker a.rtBibleRef { color: inherit; }

.hf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hf-feature .hf-actions { margin-top: 8px; }
.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color .15s, border-color .15s;
}
.hf-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.hf-btn:focus-visible { outline: 3px solid #dea14b; outline-offset: 2px; }
.hf-btn--primary { background: #0c3f52; color: #fff; }
.hf-btn--primary:hover { background: #044d64; color: #fff; }
.hf-btn--secondary { background: #fff; color: #0c3f52; border: 1px solid #cfd8dc; }
.hf-btn--secondary svg { color: #2e7d9b; }
.hf-btn--secondary:hover { border-color: #2e7d9b; color: #0c3f52; }
.hf-btn--gold { background: #dea14b; color: #0c3f52; }
.hf-btn--gold:hover { background: #de9f50; color: #0c3f52; }

.hf-series { font-size: 14px; }
.hf-series a { color: #076c8b; font-weight: 600; }

/* ---- Recent sermons ---- */
.hf-recent { margin-top: 40px; }
.hf-recent__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #ddd7ca;
}
.hf-recent__head a { color: #076c8b; font-weight: 600; font-size: 15px; }
.hf-sermon .hf-h3,
.hf-cards .hf-h3 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  color: #044d64;
  text-transform: none;
}
.hf-recent__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hf-recent__list li { margin: 0; }
.hf-recent__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #4a5361;
  text-decoration: none;
}
.hf-recent__thumb {
  width: 136px;
  height: 77px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.hf-recent__thumb--audio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0c3f52;
  color: #f4dfc2;
  font-size: 12px;
  font-weight: 600;
}
.hf-recent__thumb--audio svg { width: 18px; height: 18px; color: #dea14b; }
.hf-recent__text { display: flex; flex-direction: column; gap: 4px; }
.hf-recent__title { color: #076c8b; font-weight: 600; font-size: 15px; line-height: 1.35; }
.hf-recent__item:hover .hf-recent__title { text-decoration: underline; }
.hf-recent__meta { font-size: 13px; }
.hf-recent__item:focus-visible { outline: 3px solid #dea14b; outline-offset: 4px; border-radius: 6px; }

/* ---- Cards row ---- */
.hf-cards {
  background: #fff;
  padding: 56px 0 64px;
  color: #4a5361;
  font-size: 15px;
  line-height: 1.5;
}
.hf-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.hf-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid #e6e2d8;
  border-radius: 10px;
}
.hf-cards .hf-card .hf-h3 { font-size: 24px; }
.hf-card__icon { width: 34px; height: 34px; color: #dea14b; }
.hf-card__foot { margin-top: auto; }
.hf-more { color: #076c8b; font-weight: 600; font-size: 15px; align-self: flex-start; }

.hf-times {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  row-gap: 6px;
  margin: 0;
}
.hf-times dt { color: #0c3f52; font-weight: 600; }
.hf-times dd { margin: 0; }

.hf-reading__title { color: #0c3f52; font-weight: 600; }
.hf-reading__body { font-size: 14px; line-height: 1.45; }
.hf-reading__body p,
.hf-reading__body li {
  margin: 0;
  padding: 6px 0;
  border-top: 1px solid #efece4;
}
.hf-reading__body ul, .hf-reading__body ol { margin: 0; padding: 0; list-style: none; }
.hf-reading__body strong, .hf-reading__body b { color: #0c3f52; font-weight: 600; }

/* ---- Events ---- */
.hf-event {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: #f6f4ef;
  text-decoration: none;
}
.hf-event:hover .hf-event__title { text-decoration: underline; }
.hf-event:focus-visible { outline: 3px solid #dea14b; outline-offset: 2px; }
.hf-date {
  flex-shrink: 0;
  min-width: 64px;
  padding: 8px 10px 9px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-radius: 6px;
  background: #0c3f52;
  color: #fff;
  white-space: nowrap;
}
.hf-date__month { font-size: 13px; font-weight: 600; line-height: 1.2; color: #f4dfc2; }
.hf-date__days { font-family: Oswald, sans-serif; font-size: 26px; line-height: 1.05; }
.hf-date--range { min-width: 84px; }
.hf-date--range .hf-date__days { font-size: 21px; letter-spacing: .01em; }
.hf-event__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hf-event__label { font-size: 12px; font-weight: 700; color: #5f6675; }
.hf-event__label.is-now { color: #1e6b3a; }
.hf-event__title { color: #076c8b; font-weight: 600; font-size: 16px; line-height: 1.3; }
.hf-event__past { font-size: 14px; }
.hf-event__past a { color: #076c8b; }
.hf-nowrap { white-space: nowrap; }

/* ---- Tablet ---- */
@media (max-width: 991px) {
  .hf-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hf-recent__list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hf-recent__item { align-items: center; padding: 8px 0; }
  .hf-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-card--visit { grid-column: 1 / -1; }
}

/* ---- Phone ---- */
@media (max-width: 767px) {
  .hf-wrap { padding: 0 20px; }
  .hf-live__text { font-size: 17px; }
  .hf-sermon { padding: 24px 0 36px; }
  /* Kicker moves above the image on phones */
  .hf-feature { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .hf-feature__text { display: contents; }
  .hf-kicker { order: -1; }
  .hf-sermon h2.hf-feature__title { font-size: 30px; line-height: 1.15; }
  .hf-media__play { left: 14px; bottom: 14px; height: 44px; padding: 0 18px 0 6px; font-size: 15px; }
  .hf-media__disc { width: 32px; height: 32px; }
  .hf-media--audio { padding: 22px; }
  .hf-media__mic { width: 44px; height: 44px; }
  .hf-media__title { font-size: 24px; margin-bottom: 52px; }
  .hf-feature .hf-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; }
  .hf-btn { padding: 0 12px; white-space: nowrap; }
  .hf-feature .hf-actions .hf-btn:only-child { grid-column: 1 / -1; }
  .hf-recent { margin-top: 30px; }
  .hf-recent__thumb { width: 104px; height: 59px; }
  .hf-cards { padding: 32px 0 40px; }
  .hf-cards__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hf-card { padding: 22px; }
  .hf-card--events { order: 2; }
  .hf-card--reading { order: 3; }
  .hf-card--visit .hf-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hf-live__arc1, .hf-live__arc2 { animation: none; opacity: 1; }
  .hf-media img { transition: none; }
  .hf-media:hover img { transform: none; }
}
