/* =========================================================
   Homepage concept C — "Big sign, then one clear list"
   Loaded after style.css. Everything new is prefixed hc-.
   Mobile first; wider layouts are added at 760px and 1040px.
   ========================================================= */

.hc { background: var(--ivory); }

/* ---------- Sections ---------- */
.hc-sec { padding-block: 40px; }
.hc-sec--paper { background: var(--paper); }
.hc-sec--flush { padding-top: 0; }
.hc-sec--photos { padding-block: 28px; }

/* Each section gets its own soft tint so you can see where one ends and the next begins. */
.hc-sec { border-top: 1px solid rgba(15, 95, 121, .10); }
#here, #news { background: #e7f5f0; }            /* 1 · mint */
#today { background: #ffffff; }                  /* 2 · white */
.hc-sec--photos { background: #d9edf1; }         /* 3 · light teal */
#find { background: #edf3fb; }                   /* 4 · light sky blue */
#give { background: #e3f3e8; }                   /* 5 · soft green */
#news { border-top: 0; }

.hc-head { margin-bottom: 18px; }
.hc-head h2 { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--brand-900); }
.hc-head p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.hc-head p b { color: var(--ink); }

.hc-sub { margin: 24px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); }

/* =========================================================
   1 · The sign
   ========================================================= */
.hc-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; background: var(--grad-hero);
  border-radius: 0 0 28px 28px;
}
/* soft translucent circles */
.hc-hero::before, .hc-hero::after, .hc-hero__ring { content: ""; position: absolute; border-radius: 50%; z-index: 3; pointer-events: none; }
/* photo slider behind, tinted with the lake-to-forest gradient so the text stays readable */
.hc-hero .bg-overlay { background: linear-gradient(115deg, rgba(10, 58, 76, .88) 0%, rgba(15, 95, 121, .74) 45%, rgba(19, 146, 127, .62) 100%); }
.hc-hero::before { width: 340px; height: 340px; right: -130px; top: -70px; background: rgba(255, 255, 255, .09); }
.hc-hero::after { width: 260px; height: 260px; left: -120px; bottom: -130px; background: rgba(255, 255, 255, .07); }
.hc-hero__ring { width: 150px; height: 150px; right: 34px; top: 190px; border: 26px solid rgba(255, 255, 255, .06); }

.hc-hero__inner {
  position: relative; z-index: 4;
  padding-top: calc(var(--header-h) + var(--topbar-h) + 14px);
  padding-bottom: 26px;
  display: grid; gap: 20px;
}
.hc-hero__he { font-size: 19px; line-height: 1.3; color: var(--accent-300); text-align: right; }
.hc-hero__title {
  margin-top: 6px;
  font-family: var(--f-hebrew); font-weight: 700; text-align: right;
  font-size: clamp(34px, 10vw, 44px); line-height: 1.15; letter-spacing: 0;
  text-wrap: balance;
}
.hc-hero__lead { margin-top: 10px; font-family: var(--f-hebrew); font-size: 18px; line-height: 1.5; text-align: right; color: rgba(255, 255, 255, .9); }
.hc-hero__title em { font-style: normal; color: var(--accent-300); }
.hc-hero__place { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.hc-hero__place .icon { width: 19px; height: 19px; color: var(--accent-300); }
.hc-hero__place b { font-weight: 800; color: #fff; }

.hc-hero__ctas { margin-top: 18px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.hc-hero__ctas .btn { min-height: 54px; padding-inline: 12px; font-size: 15px; font-weight: 700; gap: 8px; }
.hc-hero__ctas .btn--light { box-shadow: 0 10px 24px -12px rgba(5, 42, 54, .6); }

/* the slim live line */
.hc-next {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  min-height: 64px; padding: 10px 14px 10px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .26);
  transition: background-color .2s;
}
.hc-next:hover { background: rgba(255, 255, 255, .2); }
.hc-next:focus-visible, .hc-hero .btn:focus-visible { outline-color: #fff; }
.hc-next__label { grid-column: 1; display: flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-300); }
.hc-next__label .dot { width: 7px; height: 7px; }
.hc-next__main { grid-column: 1; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hc-next__main b { font-weight: 800; }
.hc-next__where { grid-column: 1; font-size: 13px; color: rgba(255, 255, 255, .78); line-height: 1.3; }
.hc-next__where:empty { display: none; }
.hc-next__until {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--brand-800);
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.hc-next__until:empty { display: none; }

/* =========================================================
   2 · What's here — one list
   ========================================================= */
.hc-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.hc-list > li + li { border-top: 1px solid var(--line); }
.hc-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 68px; padding: 11px 12px 11px 14px;
  transition: background-color .2s;
}
.hc-row:hover { background: var(--ivory); }
.hc-row:focus-visible { outline-offset: -3px; border-radius: 12px; }
.hc-row__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); }
.hc-row--green .hc-row__icon { background: var(--accent-50); color: var(--accent-700); }
.hc-row__icon .icon { width: 21px; height: 21px; }
.hc-row__text { display: grid; gap: 1px; min-width: 0; }
.hc-row__text b { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }
.hc-row__text > span { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); overflow-wrap: anywhere; }
.hc-row__text > span.is-live, #q-minyan { color: var(--accent-700); font-weight: 600; }
.hc-row__go { width: 20px; height: 20px; color: var(--line-2); transition: transform .25s var(--ease), color .2s; }
.hc-row:hover .hc-row__go { color: var(--brand-600); transform: translateX(3px); }

/* ---------- Announcements ---------- */
.hc-news { display: grid; gap: 10px; }
.hc-news .notice + .notice { margin-top: 0; }
.hc-news .notice h3 { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* =========================================================
   3 · Today
   ========================================================= */
.hc-head--today { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hc-head--today [lang="he"] { color: var(--accent-700); font-size: 17px; unicode-bidi: isolate; white-space: nowrap; }
.hc-head--today #eng-date { white-space: nowrap; }
.hc-clock { text-align: right; flex: none; line-height: 1.1; }
.hc-clock span { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--brand-800); }
.hc-clock small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
#today .notice { margin-bottom: 4px; background: var(--accent-50); border-color: var(--accent-200); }

.hc-tefs { display: grid; gap: 8px; }
.hc-tefs .empty { padding: 26px 18px; }
.hc-tef {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 12px; border-radius: var(--r); background: var(--ivory); border: 1px solid var(--line);
}
.hc-tef.has-next { background: var(--paper); border-color: var(--accent-400); box-shadow: 0 0 0 3px rgba(43, 191, 136, .14); }
.hc-tef__name { display: flex; align-items: center; gap: 9px; min-height: 34px; }
.hc-tef__icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--brand-100); color: var(--brand-700); }
.hc-tef.has-next .hc-tef__icon { background: var(--grad-hero); color: #fff; }
.hc-tef__icon .icon { width: 16px; height: 16px; }
.hc-tef__name b { display: block; font-size: 15px; font-weight: 800; line-height: 1.15; color: var(--brand-900); }
.hc-tef__name .he { display: block; font-size: 14px; line-height: 1.1; color: var(--ink-3); text-align: left; }
.hc-tef__times { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-tef__times li {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px;
  min-height: 34px; padding: 6px 10px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line); line-height: 1.25;
}
.hc-tef__times b { font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.hc-tef__times span { font-size: 12.5px; color: var(--ink-3); }
.hc-tef__times em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent-700); white-space: nowrap; }
.hc-tef__times li.is-past { opacity: .5; }
.hc-tef__times li.is-next { background: var(--accent-50); border-color: var(--accent-400); }
.hc-tef__none { align-self: center; font-size: 13.5px; color: var(--ink-3); }

.hc-zmanim.zman-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hc-zmanim .zman { padding: 8px 10px; border-color: var(--line); }
.hc-zmanim .zman__time { font-size: 16px; font-weight: 700; }
.hc-zmanim .zman.is-next { border-color: var(--accent-200); }

.hc-today__foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.hc-today__foot .link-arrow { min-height: 44px; color: var(--brand-700); }

/* =========================================================
   4 · Photos — proof the place is real, nothing else
   ========================================================= */
.hc-strip {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 2px var(--gutter); scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hc-strip::-webkit-scrollbar { display: none; }
.hc-strip > li { flex: 0 0 min(72vw, 300px); aspect-ratio: 4 / 3; scroll-snap-align: start; }
.hc-shot {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  width: 100%; height: 100%; padding: 14px 16px; border-radius: var(--r-lg);
  background-color: var(--mist); background-size: cover; background-position: center;
  color: #fff; box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s;
}
.hc-shot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 42, 54, 0) 35%, rgba(5, 42, 54, .86) 100%); }
.hc-shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.hc-shot:focus-visible { outline-offset: 3px; }
.hc-shot__he { font-family: var(--f-hebrew); font-size: 26px; font-weight: 700; line-height: 1.15; text-align: left; }
.hc-shot__en { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--accent-300); }
.hc-shot__en .icon { width: 16px; height: 16px; }

/* =========================================================
   5 · Find us
   ========================================================= */
.hc-find { display: grid; gap: 20px; }
.hc-find__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hc-find__btns .btn { padding-inline: 12px; }
.hc-map.map-frame { aspect-ratio: 16 / 10; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }

/* =========================================================
   6 · Support
   ========================================================= */
.hc-give { display: grid; gap: 14px; }
.hc-give__card { padding: 16px; display: grid; gap: 12px; align-content: start; }
.hc-give__card .amount-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hc-give__card .amount { min-height: 52px; font-size: 19px; font-weight: 700; }
.hc-give__card .amount small { font-size: 12px; }
.hc-give .sponsor-band { padding: 20px; gap: 16px; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.hc-give .sponsor-band h3 { font-size: 20px; }
.hc-give .sponsor-band p { font-size: 14.5px; line-height: 1.5; }
.hc-give .period-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.hc-give .period-pill { min-width: 0; padding: 10px 12px; }
.hc-give .period-pill small { font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.hc-give .period-pill b { font-size: 18px; }
.hc-items { margin-top: 32px; }

/* =========================================================
   Wider screens
   ========================================================= */
@media (min-width: 760px) {
  .hc-sec { padding-block: 64px; }
  .hc-sec--flush { padding-top: 0; }
  .hc-sec--photos { padding-block: 40px; }
  .hc-head { margin-bottom: 26px; }
  .hc-head h2 { font-size: 36px; }
  .hc-head p { font-size: 17px; }

  .hc-hero { border-radius: 0 0 40px 40px; }
  .hc-hero::before { width: 620px; height: 620px; right: -160px; top: -200px; }
  .hc-hero::after { width: 420px; height: 420px; left: -160px; bottom: -220px; }
  .hc-hero__ring { width: 240px; height: 240px; right: 38%; top: auto; bottom: -110px; border-width: 40px; }
  .hc-hero__inner { padding-top: calc(var(--header-h) + var(--topbar-h) + 56px); padding-bottom: 64px; gap: 28px; }
  .hc-hero__he { font-size: 24px; }
  .hc-hero__title { font-size: clamp(46px, 5.6vw, 70px); line-height: 1.12; }
  .hc-hero__lead { font-size: 22px; margin-top: 16px; }
  .hc-hero__place { font-size: 19px; margin-top: 20px; }
  .hc-hero__ctas { display: flex; flex-wrap: wrap; margin-top: 28px; gap: 12px; }
  .hc-hero__ctas .btn { min-height: 58px; padding-inline: 28px; font-size: 16.5px; }
  .hc-next { max-width: 460px; padding: 14px 18px 14px 20px; }
  .hc-next__main { font-size: 24px; }

  /* the list becomes separate tiles, still one row per thing */
  .hc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
  .hc-list > li + li { border-top: 0; }
  .hc-row { height: 100%; min-height: 84px; padding: 16px 14px 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: background-color .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease); }
  .hc-row:hover { background: var(--paper); border-color: #bfe0e6; box-shadow: var(--shadow-2); transform: translateY(-2px); }
  .hc-row:focus-visible { outline-offset: 3px; }
  .hc-row__icon { width: 48px; height: 48px; }
  .hc-row__text b { font-size: 17.5px; }
  .hc-row__text > span { font-size: 14px; }

  .hc-news { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  .hc-clock span { font-size: 30px; }
  .hc-tefs:not(.is-empty) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hc-tef { grid-template-columns: 1fr; gap: 14px; padding: 20px; border-radius: var(--r-lg); align-content: start; }
  .hc-tef__icon { width: 40px; height: 40px; border-radius: 12px; }
  .hc-tef__icon .icon { width: 20px; height: 20px; }
  .hc-tef__name b { font-size: 20px; }
  .hc-tef__name .he { font-size: 16px; margin-top: 2px; }
  .hc-tef__times { display: grid; gap: 8px; }
  .hc-tef__times li { display: flex; padding: 10px 14px; border-radius: 12px; }
  .hc-tef__times b { font-size: 19px; }
  .hc-tef__times span { font-size: 13.5px; }
  .hc-tef__times em { margin-left: auto; font-size: 12.5px; }
  .hc-zmanim.zman-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .hc-zmanim .zman { padding: 12px 14px; }
  .hc-zmanim .zman__time { font-size: 19px; }

  .hc-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; overflow: visible; max-width: var(--container); margin-inline: auto; }
  .hc-strip > li { aspect-ratio: 1 / 1; }

  .hc-find { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
  .hc-find__btns { display: flex; flex-wrap: wrap; }
  .hc-find__btns .btn { padding-inline: 26px; }
  .hc-map.map-frame { aspect-ratio: 16 / 8; }

  .hc-give { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .hc-give__card { padding: 24px; }
  .hc-give .sponsor-band { height: 100%; padding: 28px; grid-template-columns: 1fr; align-content: center; }
  .hc-give .sponsor-band h3 { font-size: 24px; }
}

@media (min-width: 1040px) {
  .hc-hero__inner { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); align-items: center; gap: 56px; padding-bottom: 84px; }
  /* on desktop the live line grows into a sign-board card */
  .hc-next {
    grid-template-columns: 1fr; justify-items: start; row-gap: 6px; max-width: none;
    padding: 30px 32px; border-radius: var(--r-xl);
    background: linear-gradient(160deg, rgba(255, 255, 255, .19), rgba(255, 255, 255, .08));
    box-shadow: var(--shadow-3);
  }
  .hc-next__label { font-size: 12.5px; }
  .hc-next__main { display: grid; margin-top: 10px; font-size: 30px; line-height: 1.1; }
  .hc-next__main > span { font-size: 60px; letter-spacing: -.04em; line-height: 1.05; }
  .hc-next__where { font-size: 15px; }
  .hc-next__until { grid-column: 1; grid-row: auto; margin-top: 12px; padding: 10px 16px; font-size: 14.5px; }

  .hc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 345px) {
  .hc-hero__ctas { grid-template-columns: 1fr; }
  .hc-tef { grid-template-columns: 1fr; }
  .hc-find__btns { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-row, .hc-row__go, .hc-next { transition: none; }
  .hc-row:hover, .hc-row:hover .hc-row__go { transform: none; }
  .hc-strip { scroll-snap-type: none; }
}
