/* ============================================================
   יום סידורים ירושלמי — NXT
   Palette (sampled from mockup PDF):
   green #73A778 · light card #99E7A2 · accent #E35437
   text #000 · sub #545454 · logo lime #B4D467 · purple #6256B8
   Display: Ezer Solid (brand, licensed) → Rubik fallback
   ============================================================ */

/* ===== Ezer Solid (licensed web font, per brand book) =====
   כותרת = סוליד בולד · תת כותרת = רגולר · טקסט רץ = דק */
@font-face {
  font-family: "Ezer Solid";
  src: url("assets/fonts/EzerSolid-Bold.woff2") format("woff2"),
       url("assets/fonts/EzerSolid-Bold.woff") format("woff");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ezer Solid";
  src: url("assets/fonts/EzerSolid-Regular.woff2") format("woff2"),
       url("assets/fonts/EzerSolid-Regular.woff") format("woff");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ezer Solid";
  src: url("assets/fonts/EzerSolid-UltraLight.woff2") format("woff2"),
       url("assets/fonts/EzerSolid-UltraLight.woff") format("woff");
  font-weight: 100 250;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #73A778;
  --green-dark: #5F9165;
  --card: #99E7A2;
  --accent: #E35437;
  --ink: #000000;
  --sub: #545454;
  --chev: #333B34;
  --font-display: "Ezer Solid", "Rubik", "Assistant", sans-serif;
  --font-body: "Ezer Solid", "Assistant", "Rubik", sans-serif;
  --col: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; }

.skip-link {
  position: absolute; top: -48px; right: 8px;
  background: var(--ink); color: #fff; padding: 8px 16px;
  border-radius: 0 0 8px 8px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 0; }

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Top banner ===== */
.topbar {
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px clamp(16px, 4vw, 48px);
  position: relative;
}
.topbar__logo {
  width: 92px; height: auto;
  transform: rotate(-4deg);
  flex: none;
  position: absolute;
  left: clamp(14px, 3vw, 40px);
  top: 50%;
  translate: 0 -50%;
}
.topbar__text {
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.45;
  text-wrap: balance;
}
.topbar__text strong { font-weight: 800; }

/* ===== Nav ===== */
.nav {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 4.5vw, 56px);
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 17px);
  white-space: nowrap;
}
.nav a:hover { color: var(--green-dark); }
.nav__cta { color: var(--accent) !important; }
.nav__cta:hover { color: #C24327 !important; }
.nav__burger { display: none; }
.nav__quick-reg { display: none; }

/* ===== Layout column ===== */
.hero, .section {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 20px;
}
.hero { max-width: 940px; }
.hero__copy { max-width: 680px; margin-inline: auto; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: clamp(24px, 5vw, 48px);
  text-align: center;
}
.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 30px);
}
.hero__titles { margin-top: clamp(6px, 1vw, 12px); }
.hero__lion {
  width: clamp(130px, 17vw, 200px);
  height: auto;
  flex: none;
  pointer-events: none;
}

.hero__titles h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.hero__sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3.3vw, 37px);
  line-height: 1.15;
  margin-top: 4px;
  white-space: nowrap;
}

.hero__pills {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  margin-top: clamp(14px, 2.4vw, 22px);
  flex-wrap: wrap;
}
.pill {
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: clamp(14px, 1.8vw, 17px);
  padding: 10px 22px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 118px;
  font-variant-numeric: tabular-nums;
}
.pill--venue small, .pill--datetime small {
  font-weight: 600;
  font-size: 0.68em;
  margin-top: 2px;
}
.pill--datetime { display: none; }

.hero__copy {
  margin-top: clamp(22px, 4vw, 36px);
  font-weight: 700;
  font-size: clamp(15px, 2.3vw, 19px);
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 19px);
  padding: 14px 58px;
  border-radius: 16px;
  margin-top: clamp(24px, 4vw, 36px);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: scale(.98); }
.btn--bottom { margin-top: clamp(36px, 6vw, 56px); }

/* ===== Floating "talk to us" (FAB) ===== */
.fab {
  position: fixed;
  left: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}
.fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fab__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: background-color .15s ease, transform .15s ease;
}
.fab__toggle:hover { background: var(--green-dark); transform: translateY(-1px); }
.fab__icon-close { display: none; }
.fab.open .fab__icon-close { display: block; }
.fab.open .fab__icon-chat { display: none; }
.fab__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.fab.open .fab__items {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab__item {
  line-height: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: transform .15s ease;
}
.fab__item:hover { transform: scale(1.1); }

/* ===== Sections ===== */
.section {
  padding-top: clamp(40px, 7vw, 72px);
  text-align: center;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 38px);
  text-wrap: balance;
}
.section__sub {
  color: var(--sub);
  font-weight: 400;
  font-size: clamp(12px, 1.8vw, 15px);
  margin-top: 6px;
}

/* ===== Accordions ===== */
.accordions {
  margin-top: clamp(20px, 3.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc {
  background: var(--green);
  border-radius: 12px;
  overflow: hidden;
}
.acc summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  color: #fff;
  font-weight: 800;
  font-size: clamp(16px, 2.3vw, 19px);
  padding: 15px 24px;
  text-align: center;
  user-select: none;
  touch-action: manipulation;
  transition: background-color .15s ease;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--green-dark); }

.acc__chev {
  position: absolute;
  inset-inline-end: auto;
  left: 20px;
  top: 50%;
  translate: 0 -50%;
  width: 22px;
  height: 22px;
  background: currentColor;
  color: var(--chev);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M4 3.5 12 9l8-5.5v4L12 13 4 7.5zm0 7.5 8 5.5L20 11v4l-8 5.5L4 15z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M4 3.5 12 9l8-5.5v4L12 13 4 7.5zm0 7.5 8 5.5L20 11v4l-8 5.5L4 15z"/></svg>') center/contain no-repeat;
  transition: rotate .2s ease;
}
.acc[open] .acc__chev { rotate: 180deg; }

.acc__panel {
  background: #fff;
  border: 2px solid var(--green);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 18px 22px;
  text-align: right;
  font-size: 15px;
}
.acc__panel > p a { color: var(--green-dark); font-weight: 700; }

/* org list inside accordion */
.orgs { list-style: none; }
.orgs li { padding: 14px 0; border-bottom: 1px solid #E4EFE5; }
.orgs li:first-child { padding-top: 4px; }
.orgs li:last-child { border-bottom: none; padding-bottom: 4px; }
.orgs h3 { font-size: 16px; font-weight: 800; }
.orgs p { color: #333; font-size: 14px; margin-top: 3px; font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  background: #EAF5EB;
  color: var(--green-dark);
  border: 1px solid #CBE2CD;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.tag--doc {
  background: #FFF6F3;
  color: #B4492F;
  border-color: #F2D4CB;
}

/* ===== Documents card ===== */
.docs-card {
  background: var(--card);
  border-radius: 18px;
  margin-top: clamp(20px, 3.5vw, 32px);
  padding: clamp(22px, 4vw, 40px) clamp(20px, 4vw, 44px);
  text-align: right;
}
.doc + .doc { margin-top: 18px; }
.doc h3 { font-size: 15.5px; font-weight: 800; }
.doc p { font-size: 14px; color: #1F3A23; margin-top: 2px; font-weight: 400; }

/* ===== Registration modal ===== */
.reg-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  padding: 0;
  border-radius: 18px;
  width: min(680px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
}
.reg-modal:not([open]) { display: none; }
.reg-modal::backdrop {
  background: rgba(20, 30, 22, .55);
  backdrop-filter: blur(2px);
}
.reg-modal__head {
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex: none;
}
.reg-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.reg-modal__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: transform .15s ease;
}
.reg-modal__close:hover { transform: scale(1.15); }
.reg-modal__body {
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  background: #fff;
}
#reg-frame {
  display: block;
  width: 100%;
  height: min(900px, calc(100dvh - 140px));
  border: 0;
}
@media (max-width: 560px) {
  .reg-modal {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    height: 100dvh;
  }
  #reg-frame { height: calc(100dvh - 54px); }
}

/* ===== Footer ===== */
.footer {
  margin-top: clamp(48px, 8vw, 88px);
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 28px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer img { width: 120px; height: auto; transform: rotate(-3deg); }
.footer p { font-weight: 400; font-size: 14px; }

/* ===== Partners carousel ===== */
.partners {
  background: #fff;
  padding: 22px 0;
  border-top: 1px solid #eee;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  padding-inline-end: clamp(28px, 5vw, 56px);
  flex: none;
}
.marquee__group img {
  height: 56px;
  width: auto;
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  /* --- top bar: compact row, logo beside text --- */
  .topbar {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 16px;
    text-align: right;
  }
  .topbar__logo { position: static; translate: none; width: 64px; }
  .topbar__text { text-align: right; font-size: 13px; line-height: 1.4; text-wrap: pretty; }
  .topbar__text br { display: none; } /* flow into 2 lines instead of 3 */

  /* --- nav: burger + quick register --- */
  .nav {
    justify-content: space-between;
    padding: 10px 14px;
  }
  .nav__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--ink);
    padding: 8px;
    cursor: pointer;
    border-radius: 10px;
  }
  .nav__burger:hover { background: #F1F6F2; }
  .nav__quick-reg {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 20px;
    border-radius: 999px;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
    border-top: 1px solid #EEF3EF;
  }
  .nav.menu-open .nav__links { display: flex; }
  .nav__links a {
    padding: 14px 22px;
    font-size: 17px;
    text-align: right;
    border-bottom: 1px solid #F3F7F4;
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__links a:hover { background: #F6FAF7; }

  /* --- hero keeps the exact desktop composition, scaled with viewport --- */
  .hero__top { gap: 2.4vw; }
  .hero__titles { margin-top: 1vw; }
  .hero__lion { width: 23vw; }
  .hero__titles h1 { font-size: 6.9vw; }
  .hero__sub { font-size: 3.7vw; }
  .hero__pills { gap: 2vw; margin-top: 2.6vw; }
  .pill { font-size: 2.7vw; padding: 1.8vw 3.2vw; min-width: 19vw; border-radius: 2.4vw; }
  /* merge date+time into one pill → only 2 pills on mobile */
  .pill--date, .pill--time { display: none; }
  .pill--datetime { display: flex; }

  /* --- general mobile polish --- */
  .hero__copy { font-size: 15px; padding-inline: 4px; }
  .btn { width: 100%; max-width: 420px; padding: 15px 20px; }
  .acc summary { font-size: 16px; padding: 14px 18px; }
  .acc__panel { padding: 14px 16px; }
  .docs-card { padding: 20px 18px; border-radius: 14px; }
  .section { padding-top: 44px; }
  .footer { margin-top: 52px; padding-bottom: 88px; } /* leave room for FAB */
  .fab__label { font-size: 14px; }
}
