/* ============================================================
   COMPONENTS — cards, buttons, filter pills, modals, etc.
   Depends on: style.css (design tokens)
   ============================================================ */

/* Beat reset.css on HA controls only — :where() keeps specificity low so page CSS wins */
:where(button)[class*="ha-"],
:where([type="button"])[class*="ha-"],
:where([type="submit"])[class*="ha-"] {
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
  text-align: inherit;
  transition: none;
  width: auto;
  white-space: normal;
}
:where(button)[class*="ha-"]:hover,
:where(button)[class*="ha-"]:focus,
:where([type="button"])[class*="ha-"]:hover,
:where([type="button"])[class*="ha-"]:focus,
:where([type="submit"])[class*="ha-"]:hover,
:where([type="submit"])[class*="ha-"]:focus {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
}
:where(.ha-search-wrap) input[type="text"] {
  border: none;
  border-radius: 0;
  width: auto;
  transition: none;
}
:where(.ha-search-wrap) input[type="text"]:focus {
  border-color: transparent;
  outline: none;
}

/* ── HEADER ──────────────────────────────────────────────── */
.ha-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.ha-nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ha-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ha-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fields Display', 'DM Serif Display', Georgia, serif;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.ha-logo-text {
  font-family: 'Fields Display', 'DM Serif Display', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--green);
}
.ha-nav-menu {
  display: flex;
  gap: 34px;
  list-style: none;
}
.ha-nav-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ha-nav-menu a:hover,
.ha-nav-menu a.active,
.ha-nav-menu .current-menu-item > a { color: var(--green); }
.ha-nav-menu a.active,
.ha-nav-menu .current-menu-item > a { font-weight: 600; }
.ha-nav-caret { width: 13px; height: 13px; opacity: 0.6; }
.ha-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.ha-search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}
.ha-search-icon-btn:hover { color: var(--green); }
.ha-search-icon-btn svg { width: 22px; height: 22px; }
.ha-elementor-search-icon-btn {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  transition: color var(--transition-fast);
}
.ha-elementor-search-icon-btn:hover { color: var(--green); }
.ha-elementor-search-icon-btn svg { width: 22px; height: 22px; }
.ha-donate-btn {
  background: var(--pink);
  color: white;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  white-space: nowrap;
}
.ha-donate-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(216, 20, 115, 0.5);
}

/* Beat hello-elementor reset.css button:hover/focus without editing reset.css */
button.ha-donate-btn:hover,
button.ha-donate-btn:focus,
button.ha-donate-btn:focus-visible {
  background: var(--pink);
  color: #fff;
  text-decoration: none;
}
button.ha-menu-toggle:hover,
button.ha-menu-toggle:focus,
button.ha-menu-toggle:focus-visible {
  background: transparent;
  color: var(--text);
  text-decoration: none;
}
button.ha-filter-pill:hover,
button.ha-filter-pill:focus,
button.ha-filter-pill:focus-visible {
  background: var(--green-light);
  color: var(--green);
  text-decoration: none;
}
button.ha-filter-pill.campaign-active:hover,
button.ha-filter-pill.campaign-active:focus,
button.ha-filter-pill.campaign-active:focus-visible {
  background: var(--campaign-accent);
  color: #fff;
  text-decoration: none;
}
button.ha-search-btn {
  border-radius: 0;
}
button.ha-search-btn:hover,
button.ha-search-btn:focus,
button.ha-search-btn:focus-visible {
  background: var(--green-dark);
  color: #fff;
  border-color: transparent;
  border-radius: 0;
  text-decoration: none;
}
button.ha-clear-all:hover,
button.ha-clear-all:focus,
button.ha-clear-all:focus-visible {
  background: none;
  color: var(--pink);
  border-color: transparent;
  text-decoration: underline;
}
button.ha-amount-btn:hover,
button.ha-amount-btn:focus,
button.ha-amount-btn:focus-visible {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}
button.ha-amount-btn.selected:hover,
button.ha-amount-btn.selected:focus,
button.ha-amount-btn.selected:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  text-decoration: none;
}
button.ha-qty-btn:hover:not(:disabled),
button.ha-qty-btn:focus:not(:disabled),
button.ha-qty-btn:focus-visible:not(:disabled) {
  background: var(--green-faint);
  color: var(--green-dark);
  text-decoration: none;
}
button.ha-donate-cta:hover,
button.ha-donate-cta:focus,
button.ha-donate-cta:focus-visible {
  background: var(--pink);
  color: #fff;
  text-decoration: none;
}
button.ha-country-select-btn:hover,
button.ha-country-select-btn:focus,
button.ha-country-select-btn:focus-visible {
  background: var(--green-faint);
  color: var(--text);
  text-decoration: none;
}
button.ha-start-strip-btn:hover,
button.ha-start-strip-btn:focus,
button.ha-start-strip-btn:focus-visible {
  background: var(--green-dark);
  color: #fff;
  border-color: transparent;
  text-decoration: none;
}

/* Mobile menu toggle */
.ha-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}
@media (max-width: 1024px) {
  .ha-nav-menu { display: none; }
  .ha-menu-toggle { display: flex; margin-left: auto; }
  .ha-nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px var(--container-pad) 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
}
@media (max-width: 600px) {
  .ha-logo-text { display: none; }
  .ha-donate-btn { padding: 10px 16px; font-size: 14px; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.ha-footer {
  background: var(--green-dark);
  color: #fff;
  padding: 56px var(--container-pad) 24px;
  margin-top: 40px;
}
.ha-footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 900px) { .ha-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .ha-footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.ha-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.ha-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fields Display', 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}
.ha-footer-mark {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ha-footer-abn { font-size: 12px; opacity: 0.85; margin-top: 0; line-height: 1.6; }

.ha-footer-col h3 {
  font-family: 'Oakes Grotesk', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.ha-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.ha-footer-col a {
  color: white;
  text-decoration: none;
  opacity: 0.92;
  font-size: 13.5px;
  transition: opacity var(--transition-fast);
}
.ha-footer-col a:hover { opacity: 1; text-decoration: underline; }
.ha-footer-contact-info { font-size: 13.5px; margin-bottom: 8px; opacity: 0.92; }

.ha-footer-socials { display: flex; gap: 10px; margin: 12px 0 20px; }
.ha-footer-socials a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
}
.ha-footer-socials a:hover { background: rgba(255,255,255,0.3); }
.ha-footer-stay-heading { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 10px; }

.ha-newsletter {
  display: flex;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
}
.ha-newsletter input {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  color: var(--text);
}
.ha-newsletter input::placeholder { color: var(--text-muted); }
.ha-newsletter button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ha-copyright {
  max-width: var(--container-max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 12px;
  opacity: 0.85;
}

/* ── HERO (shared) ───────────────────────────────────────── */
.ha-hero {
  height: 250px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: white;
  transition: height var(--transition-slow);
}
.ha-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease;
}
.ha-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--campaign-hero-wash);
  transition: background 0.6s ease;
  z-index: 1;
}
.ha-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 2;
}
.ha-hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
  position: relative;
  z-index: 3;
}
.ha-hero h1 {
  font-size: clamp(40px, 6vw, 65px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 10px;
  transition: opacity 0.3s ease, font-size 0.4s ease;
}
.ha-hero-byline {
  font-size: 20px;
  opacity: 0.95;
  max-width: 600px;
  transition: opacity 0.3s ease;
}
/* ── PROGRESS BAR (Fundraisers) ──────────────────────────── */
.ha-progress-bar-wrap {
  background: var(--border-light);
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
  margin: 10px 0;
}
.ha-progress-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: var(--radius-pill);
  transition: width 0.8s ease;
  min-width: 2px;
}

/* ── RESPONSIVE UTILITIES ────────────────────────────────── */
@media (max-width: 768px) {
  .ha-modal-overlay { padding: 0.75rem; }
  .ha-modal {
    padding: 24px 18px;
    max-width: 360px;
    /* On mobile, no max-height restriction — the overlay scrolls */
  }
  .ha-modal h1 { font-size: 22px; margin-bottom: 1rem; }
}

/* ============================================================
   SHARED NEWS CARD — used by homepage + news landing page
   ============================================================ */
.ha-news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}
.ha-news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ha-news-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.ha-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.ha-news-card:hover .ha-news-card-img img {
  transform: scale(1.04);
}
.ha-news-card-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ha-news-cat-badge {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  align-self: flex-start;
  text-decoration: none;
}
.ha-news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-2);
  line-height: 1.35;
  text-decoration: none;
  display: block;
  transition: color var(--transition-fast);
}
.ha-news-card-title:hover { color: var(--green); }
.ha-news-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.ha-news-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
  flex: 1;
}
.ha-news-card-readmore {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition-fast);
  align-self: flex-start;
}
.ha-news-card-readmore:hover { color: var(--green-dark); }

/* Stretched-link: makes the entire card clickable */
.ha-news-card-readmore::after {
  position: absolute;
  inset: 0;
  content: '';
  z-index: 1;
}
