/* ==========================================================================
   Hillel Ontario site chrome
   Standalone header + footer for microsites. No jQuery, no Elementor.
   Confirm the four values in the CONFIRM block below against the live site
   (DevTools > Computed) before shipping.
   ========================================================================== */

:root {
  /* ---- CONFIRMED against live hillelontario.org, 2026-08-19 -------------- */
  /* The live site is on the new brand (Thrive theme): Gilroy 700 nav in
     near-black on a seasalt header, black Donate, black footer. No navy,
     no orange, no Poppins anywhere. */
  --ho-navy: #0a0a0a;        /* header text (measured); live footer bg is #000 */
  --ho-blue: #52A9F9;        /* live nav has NO colour hover; this is the brand
                                accent (tekhelet) from the design system */
  --ho-donate: #000000;      /* measured: black fill, white Gilroy text, 0 radius */
  --ho-font: "Gilroy", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Gilroy is licensed but must be @font-face'd by the host page —
     files in Downloads/Hillel Ontario Design System/fonts/. */
  /* ----------------------------------------------------------------------- */

  --ho-ink: #1a1a1a;
  --ho-paper: #f8f9fa;   /* live header/footer-text tone is seasalt, not pure white */
  --ho-rule: rgba(255, 255, 255, 0.18);
  --ho-muted: rgba(255, 255, 255, 0.72);

  --ho-header-h: 62px;
  --ho-max: 1240px;
  --ho-pad: 24px;
}

.ho-scope,
.ho-scope * {
  box-sizing: border-box;
}

/* ========================= HEADER ========================= */

.ho-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--ho-paper);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--ho-font);
}

.ho-header__inner {
  max-width: var(--ho-max);
  margin: 0 auto;
  padding: 0 var(--ho-pad);
  height: var(--ho-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ho-logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.ho-logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* ---- desktop nav ---- */

.ho-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.ho-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ho-nav__item {
  position: relative;
}

.ho-nav__link,
.ho-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ho-navy);
  background: none;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.ho-nav__link:hover,
.ho-nav__toggle:hover,
.ho-nav__link:focus-visible,
.ho-nav__toggle:focus-visible {
  color: var(--ho-blue);
}

.ho-nav__caret {
  width: 9px;
  height: 9px;
  transition: transform 0.18s ease;
}

.ho-nav__item[data-open="true"] .ho-nav__caret {
  transform: rotate(180deg);
}

/* ---- dropdown ---- */

.ho-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 248px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.ho-nav__item[data-open="true"] > .ho-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ho-submenu a {
  display: block;
  padding: 15px 18px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ho-navy);
  text-decoration: none;
}

.ho-submenu a:hover,
.ho-submenu a:focus-visible {
  /* live site: the hovered row fills solid blue, text goes white */
  background: var(--ho-blue);
  color: #ffffff;
}

/* ---- donate button ---- */

.ho-donate {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  margin-left: 10px;
  font-size: 15px;
  font-weight: 700;
  /* live site screenshot: tekhelet blue, rounded */
  color: #ffffff;
  background: var(--ho-blue);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.16s ease;
}

.ho-donate:hover {
  background: #2E8FE4;
}

/* ---- report chip (live site: grey rounded, white text) ---- */

.ho-report {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  margin-left: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: #969696;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease;
}

.ho-report:hover {
  background: #7f7f7f;
}

/* ---- hamburger ---- */

.ho-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ho-navy);
}

.ho-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ho-header[data-menu="open"] .ho-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ho-header[data-menu="open"] .ho-burger span:nth-child(2) {
  opacity: 0;
}
.ho-header[data-menu="open"] .ho-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================= MOBILE ========================= */

@media (max-width: 1000px) {
  .ho-burger {
    display: block;
  }

  .ho-nav {
    position: fixed;
    top: var(--ho-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    margin: 0;
    padding: 12px var(--ho-pad) 48px;
    background: var(--ho-paper);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.24s ease;
  }

  .ho-header[data-menu="open"] .ho-nav {
    transform: translateX(0);
  }

  .ho-nav__list {
    display: block;
  }

  .ho-nav__link,
  .ho-nav__toggle {
    width: 100%;
    justify-content: space-between;
    padding: 15px 4px;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 0;
  }

  .ho-submenu {
    position: static;
    min-width: 0;
    padding: 0 0 8px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .ho-nav__item[data-open="true"] > .ho-submenu {
    display: block;
  }

  .ho-submenu a {
    padding: 11px 6px;
    font-size: 16px;
  }

  .ho-donate,
  .ho-report {
    width: 100%;
    justify-content: center;
    margin: 16px 0 0;
    padding: 15px 22px;
  }
}

/* ========================= FOOTER ========================= */

.ho-footer {
  /* live footer: charcoal onyx, not black */
  background: #343A40;
  color: var(--ho-paper);
  font-family: var(--ho-font);
  font-size: 16px;
  line-height: 1.7;
}

.ho-footer__inner {
  max-width: var(--ho-max);
  margin: 0 auto;
  padding: 64px var(--ho-pad) 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
}

.ho-footer__logo img {
  width: 250px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 22px;
}

.ho-footer__mission {
  margin: 0;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.92);
}

.ho-footer__heading {
  /* live footer: lime serif heading with a short dash beneath */
  margin: 0 0 22px;
  font-family: 'TT Rationalist', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #DBFE87;
}

.ho-footer__heading::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.ho-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.ho-footer a {
  color: var(--ho-paper);
  text-decoration: none;
}

.ho-footer__list a:hover,
.ho-footer__list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ho-footer__contact {
  grid-template-columns: 1fr;
}

.ho-footer__contact li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.ho-footer__contact svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 4px;
  color: #E38CDC;   /* live footer: pink contact icons */
}

.ho-social {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.ho-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ho-rule);
  border-radius: 50%;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ho-social a:hover,
.ho-social a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.ho-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.ho-footer__bar {
  border-top: 1px solid var(--ho-rule);
}

.ho-footer__bar-inner {
  max-width: var(--ho-max);
  margin: 0 auto;
  padding: 22px var(--ho-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ho-muted);
}

.ho-footer__bar a:hover,
.ho-footer__bar a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .ho-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }
}

/* ========================= A11Y FLOOR ========================= */

.ho-scope :focus-visible {
  outline: 2px solid var(--ho-blue);
  outline-offset: 3px;
}

.ho-footer :focus-visible {
  outline-color: #ffffff;
}

.ho-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--ho-navy);
  color: #fff;
  font-family: var(--ho-font);
  font-weight: 600;
  text-decoration: none;
}

.ho-skip:focus {
  left: 12px;
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .ho-scope *,
  .ho-scope *::before,
  .ho-scope *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
