/* =========================================================
   HEADER FIX — Caritas of Hope public site
   New, standalone file. Does NOT edit public.css.
   Loaded AFTER public.css (see the one line added to
   views/public/header.php) so these rules override it
   cleanly for the header only.

   What this fixes:
   1. "Caritas of Hope" wrapping/cutting mid-phrase — the
      logo text was allowed to shrink and wrap because the
      10-link main nav didn't fit inside the site’s capped
      1180px container, so flexbox squeezed the logo.
   2. Header alignment on phone / tablet / PC — nav now
      hands off to the ☰ menu earlier (at 1250px instead of
      900px) so it never fights the logo for space, and the
      logo/icon stay vertically centered at every size.

   All selectors are scoped under .site-header, so nothing
   here touches the footer's reuse of .logo/.logo-text.
   ========================================================= */

/* 1. Never let the logo block shrink or wrap — this is the
      direct fix for the text being cut in half. */
.site-header .logo {
  flex-shrink: 0;
  min-width: -moz-max-content;
  min-width: max-content;
}
.site-header .logo-text-wrap {
  min-width: -moz-max-content;
  min-width: max-content;
}
.site-header .logo-text,
.site-header .logo-tagline {
  white-space: nowrap;
}

/* Keep some breathing room between logo / nav / cta so they
   never touch once nav has room, on any screen size. */
.site-header .header-inner {
  gap: 0.75rem;
  flex-wrap: nowrap;
}

/* 2. Give the full-width nav a little less room per item so
      it reliably fits the site's 1180px container on real
      desktop/laptop screens now that the logo reads
      "Caritas of Hope Foundation" in full. */
.site-header .main-nav {
  gap: 1.1rem;
  font-size: 0.85rem;
  flex-shrink: 1;
}

/* 3. Hand off to the ☰ menu earlier (1250px) instead of
      900px, so the full 10-link nav is only ever shown where
      it's known to fit alongside the full "Caritas of Hope
      Foundation" wordmark, and tablets/small laptops always
      get the clean hamburger version instead of a squeezed
      one. */
@media (max-width: 1250px) {
  .site-header .main-nav {
    display: none;
  }
  .site-header .mob-nav-toggle {
    display: block;
  }
}
@media (min-width: 1251px) {
  .site-header .mob-nav-toggle {
    display: none;
  }
}

/* 4. Small-phone polish: keep the header compact and every
      element vertically centered without touching the org
      name — only the small tagline shrinks/hides, never the
      "Caritas of Hope" title. */
@media (max-width: 480px) {
  .site-header .header-inner {
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }
  .site-header .logo {
    gap: 0.5rem;
  }
  .site-header .logo-img {
    height: 36px;
    width: 36px;
  }
  .site-header .logo-text {
    font-size: 0.92rem;
  }
  .site-header .logo-tagline {
    font-size: 0.56rem;
    letter-spacing: 0.03em;
  }
  .site-header .header-cta {
    gap: 0.55rem;
  }
  .site-header .btn-donate {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
}

/* Extremely narrow phones (older/small devices): drop only
   the tagline so "Caritas of Hope" always has room to sit on
   a single line without shrinking further. */
@media (max-width: 360px) {
  .site-header .logo-tagline {
    display: none;
  }
}
