/* Header */
.ca-site-header { position: sticky; top: 0; z-index: 100; transition: transform 280ms var(--ca-ease); }
/* hidden while scrolling down, back on the first scroll up (hd.js) */
.ca-site-header.is-hidden { transform: translateY(-100%); }
/* back on the way up: only the white bar, the navy top bar stays tucked away */
.ca-site-header.is-compact { transform: translateY(calc(var(--ca-hd-top, 38px) * -1)); }
@media (prefers-reduced-motion: reduce) { .ca-site-header { transition: none; } }
body.admin-bar .ca-site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ca-site-header { top: 0; } }
.ca-site-header .elementor-section, .ca-site-header .e-con { --padding-top: 0; --padding-bottom: 0; padding: 0; }

.cas.hd { position: relative; }
.cas .hd__top { background: var(--ca-navy); color: rgb(255 255 255 / .86); font-size: var(--ca-s-1); }
.cas .hd__topin { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.cas .hd__facts { display: flex; gap: 22px; }
.cas .hd__facts span { display: inline-flex; align-items: center; gap: 8px; }
.cas .hd__facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ca-gold); }
.cas .hd__toplinks { display: flex; gap: 22px; }
.cas .hd__toplinks a { color: #fff; text-decoration: none; }
.cas .hd__toplinks a:hover { text-decoration: underline; color: #fff; }

.cas .hd__bar { background: #fff; border-bottom: 1px solid var(--ca-line); }
.cas .hd__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.cas .hd__logo { flex: none; }
.cas .hd__logo img { width: 190px; height: auto; }
/* wide screens: the menu sits in the true centre, logo left and tools right */
@media (min-width: 1181px) {
	.cas .hd__in { display: grid; grid-template-columns: 1fr auto 1fr; }
	.cas .hd__tools { justify-self: end; }
}
.cas .hd__nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.cas .hd__nav > ul > li { position: relative; }
.cas .hd__nav > ul > li > a, .cas .hd__navbtn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; font-weight: 600; font-size: .98rem; color: var(--ca-ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 8px; line-height: 1.2; }
.cas .hd__navbtn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.cas .hd__nav > ul > li > a:hover, .cas .hd__navbtn:hover, .cas .hd__navbtn[aria-expanded="true"], .cas .hd__nav > ul > li > a[aria-current] { color: var(--ca-blue); background: var(--ca-blue-50); }

.cas .hd__mega { position: absolute; top: calc(100% + 12px); left: -12px; display: none; gap: 28px; padding: 24px; background: #fff; border: 1px solid var(--ca-line); border-radius: var(--ca-r-lg); box-shadow: 0 24px 48px -24px rgb(20 35 70 / .35); }
.cas .has-mega.is-open .hd__mega { display: flex; }
.cas .hd__cols { columns: 2 210px; column-gap: 28px; min-width: 460px; }
.cas .hd__grp { display: flex; flex-direction: column; }
.cas .hd__cols a { display: block; padding: 6px 0; color: var(--ca-ink); text-decoration: none; font-size: .97rem; }
.cas .hd__cols a:hover, .cas .hd__cols a[aria-current] { color: var(--ca-blue); text-decoration: underline; }
.cas .hd__cols .hd__all { font-weight: 700; color: var(--ca-navy); margin-bottom: 4px; column-span: all; }
/* a menu item with children (Water For Life → Water Wells, Water Pumps): all links one even list */
.cas .hd__cols .hd__h, .cas .hd__cols .hd__sub { font-weight: inherit; color: var(--ca-ink); padding-left: 0; font-size: .97rem; }
.cas .hd__feat { flex: none; width: 280px; text-decoration: none; color: var(--ca-ink); border-radius: var(--ca-r); overflow: hidden; background: var(--ca-blue-50); align-self: flex-start; }
.cas .hd__feat img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.cas .hd__feat span { display: block; padding: 12px 14px; font-size: .92rem; }
.cas .hd__feat strong { display: block; color: var(--ca-navy); }
.cas .hd__feat:hover strong { text-decoration: underline; }

.cas .hd__tools { display: flex; align-items: center; gap: 4px; }
.cas .hd__ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; color: var(--ca-navy); background: none; border: 0; }
.cas .hd__ico .ico, .cas .hd__burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cas .hd__ico:hover { color: var(--ca-blue); }
.cas .ca-basket-n { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ca-gold); color: var(--ca-gold-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cas .ca-basket-n[hidden] { display: none; }
.cas .hd__donate { margin-left: 8px; }
.cas .hd__burger { display: none; width: 42px; height: 42px; background: none; border: 0; padding: 11px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.cas .hd__burger span { display: block; width: 24px; height: 2px; background: var(--ca-navy); border-radius: 2px; transition: transform var(--ca-fast), opacity var(--ca-fast); }
.cas .hd__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.cas .hd__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cas .hd__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Phone menu */
.cas .hd__pm { position: fixed; left: 0; right: 0; bottom: 0; top: 64px; z-index: 99; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.cas .hd__pm[hidden] { display: none; }
.cas .hd__pm nav { padding: 4px var(--ca-gut) 24px; flex: 1; }
.cas .hd__pm summary, .cas .hd__pm .hd__pmlink { display: flex; justify-content: space-between; padding: 16px 0; font-weight: 700; font-size: 1.1rem; color: var(--ca-navy); text-decoration: none; border-bottom: 1px solid var(--ca-line); cursor: pointer; list-style: none; }
.cas .hd__pm summary::-webkit-details-marker { display: none; }
.cas .hd__pm summary::after { content: "+"; font-weight: 500; }
.cas .hd__pm details[open] summary::after { content: "–"; }
.cas .hd__pm details a { display: block; padding: 10px 0 10px 14px; color: var(--ca-ink); text-decoration: none; }
.cas .hd__pm details a.is-sub { padding-left: 28px; color: var(--ca-muted); font-size: .95rem; }
.cas .hd__pm details[open] { padding-bottom: 8px; border-bottom: 1px solid var(--ca-line); }
.cas .hd__pmfoot { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px var(--ca-gut) calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ca-line); }
.cas .hd__pmfoot .btn { padding: 0 10px; }

@media (max-width: 1180px) {
	.cas .hd__nav, .cas .hd__donate { display: none; }
	.cas .hd__burger { display: flex; }
	.cas .hd__tools { margin-left: auto; }
}
@media (max-width: 720px) {
	.cas .hd__facts span:last-child, .cas .hd__toplinks a:not(:last-child) { display: none; }
	.cas .hd__toplinks a:last-child::before { content: "Call "; }
	.cas .hd__in { min-height: 64px; gap: 8px; }
	.cas .hd__logo img { width: 150px; }
	.cas .hd__tools { gap: 0; }
	.cas .hd__search { display: none; }
}
