/* The main menu, the same on every page (gnav = Galayr navigation). Loaded after each page's own styles.
   Computer: links in a row, Contact Us as the green button, the current page underlined in green.
   Phone (950px and less): the logo line, then all pages as one row of small tabs (gnav.js makes the text fit). */
header nav.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
header nav.gnav ul li { position: static; width: auto; }
header nav.gnav ul li a { display: inline-block; color: #000; text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 6px 0;
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; text-align: left; transition: color .2s, border-color .2s, background .2s; }
header nav.gnav ul li a:hover { color: var(--brand-light-blue, #155B9E); }
header nav.gnav ul li a[aria-current="page"] { color: var(--brand-blue, #0A3A6A); border-bottom-color: var(--brand-green, #639B36); }
header nav.gnav ul li a.gnav-cta { background: var(--brand-green, #639B36); color: #fff; padding: 10px 20px; border-radius: 50px; border-bottom: 0; font-weight: 800; }
header nav.gnav ul li a.gnav-cta:hover { background: var(--brand-green-hover, #4e7d28); box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
header nav.gnav ul li a.gnav-cta[aria-current="page"] { box-shadow: 0 0 0 3px rgba(99, 155, 54, .3); }

@media (max-width: 950px) {
  header .header-container { flex-direction: column; gap: 8px; padding: 8px 8px 10px; }
  header .brand { justify-content: center; width: 100%; }
  header .brand .logo { max-width: 38px; }
  header .brand h2 { font-size: 1.05rem; margin: 0; }
  header nav.gnav { width: 100%; }
  header nav.gnav ul { display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px; width: 100%; grid-template-columns: none;
    font-size: var(--gnavfs, clamp(11px, 3.3vw, 14px)); }
  header nav.gnav ul.two { flex-wrap: wrap; row-gap: 6px; }
  header nav.gnav .gnav-long { display: none; }   /* "About Us" -> "About", "Contact Us" -> "Contact" on phones */
  header nav.gnav ul li, header nav.gnav ul li:last-child { flex: none; width: auto; grid-column: auto; }
  header nav.gnav ul li a, header nav.gnav ul li a.gnav-cta { font-size: 1em; padding: .45em .64em; margin: 0; width: auto; line-height: 1.2;
    background: #fff; color: var(--brand-blue, #0A3A6A); border: 1px solid #dbe3ee; border-radius: 999px; box-shadow: none; white-space: nowrap; }
  header nav.gnav ul li a[aria-current="page"], header nav.gnav ul li a.gnav-cta[aria-current="page"] {
    background: var(--brand-green, #639B36); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(99, 155, 54, .35); }
  header nav.gnav ul li a.gnav-cta:not([aria-current="page"]) { border-color: var(--brand-green, #639B36); color: var(--brand-green, #4e7d28); }
}

/* phones: long email addresses may wrap, so no box is wider than the screen (Contact page) */
@media (max-width: 950px) {
  .contact-container > *, .contact-info, .info-card, .leadership-profile { min-width: 0; }
  .info-card, .leadership-profile { overflow-wrap: anywhere; }
}

/* floating WhatsApp button (all pages): green, pops in, a soft ring glows around it */
.wa-float { position: fixed; z-index: 1001; right: max(18px, calc(env(safe-area-inset-right, 0px) + 18px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45); animation: wa-pop .8s cubic-bezier(.34, 1.56, .64, 1) 1.5s both; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 31px; height: 31px; }
.wa-float::before, .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-ring 2.4s ease-out 2.5s infinite; pointer-events: none; }
.wa-float::after { animation-delay: 3.7s; }
.wa-float .wa-tip { position: absolute; right: 70px; white-space: nowrap; background: #fff; color: #0A3A6A; font: 700 14px/1 inherit; font-family: inherit;
  padding: 10px 14px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: none; }
@keyframes wa-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 950px) { .wa-float { width: 56px; height: 56px; } .wa-float .wa-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::before, .wa-float::after { animation: none; } }

/* front page: the buttons under the big picture sit on one line on phones (gnav.js makes them fit) */
@media (max-width: 950px) {
  .hero-action-bar { flex-direction: row !important; flex-wrap: nowrap !important; justify-content: center; gap: 6px !important; padding: 1.4rem 8px 0 !important;
    font-size: var(--herofs, clamp(11px, 3.4vw, 15px)); }
  .hero-action-bar .btn-green { width: auto !important; flex: none; font-size: 1em !important; padding: .7em 1em !important; white-space: nowrap; box-sizing: border-box; margin: 0 !important; transition: none !important; }
}
