/* ==========================================================
   Real Helping Hands – child theme styles
   Tokens first; components below. Mobile-first.
   ========================================================== */
:root {
	--rhh-pink: #e94b86;
	--rhh-pink-dark: #c92f6a;   /* hover / text on white (AA contrast) */
	--rhh-yellow: #ffc900;
	--rhh-ink: #1d2024;
	--rhh-text: #3d4250;
	--rhh-muted: #6b7280;
	--rhh-line: #e7e8ec;
	--rhh-bg: #ffffff;
	--rhh-footer-bg: #242729;
	--rhh-footer-text: #c9ccd1;
	--rhh-radius: 999px;
	--rhh-max: 1200px;
	--rhh-header-h: 76px;
	--rhh-font: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rhh-focus: 0 0 0 3px #fff, 0 0 0 5px var(--rhh-ink);
}

/* ---------- Base helpers ---------- */
.rhh-container { max-width: var(--rhh-max); margin-inline: auto; padding-inline: 20px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rhh-skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--rhh-ink); color: #fff !important; border-radius: 6px; }
.rhh-skip-link:focus { top: 12px; }
.rhh a:focus-visible, .rhh button:focus-visible, .rhh input:focus-visible { outline: none; box-shadow: var(--rhh-focus); border-radius: 6px; }
.rhh-icon { display: block; flex: none; }

/* ---------- Buttons ---------- */
.rhh-btn {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	padding: 11px 24px; border-radius: var(--rhh-radius); border: 2px solid transparent;
	font: 700 15px/1.2 var(--rhh-font); letter-spacing: .01em; text-decoration: none !important;
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.rhh-btn--primary { background: var(--rhh-pink); color: #fff !important; }
.rhh-btn--primary:hover { background: var(--rhh-pink-dark); }
.rhh-btn .rhh-icon { width: 18px; height: 18px; transition: transform .2s; }
.rhh-btn:hover .rhh-icon--arrow { transform: translateX(3px); }
.rhh-icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--rhh-ink); cursor: pointer;
}
.rhh-icon-btn:hover { background: #f3f4f6; }

/* ---------- Header ---------- */
.rhh-header {
	position: sticky; top: 0; z-index: 100; font-family: var(--rhh-font);
	background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background-color .25s;
}
.rhh-header.is-scrolled { background: rgba(255,255,255,.94); border-color: var(--rhh-line); box-shadow: 0 6px 24px rgba(29,32,36,.06); }
.admin-bar .rhh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rhh-header { top: 0; } }

/* Neutralise Backer/Bootstrap styles inside our header */
.rhh-header ul, .rhh-header li { margin: 0; padding: 0; list-style: none; float: none; background: none; }
.rhh-header a { text-decoration: none !important; }
.rhh-header button { font-family: inherit; line-height: 1; }

.rhh-header__inner { display: flex; align-items: center; gap: 20px; height: var(--rhh-header-h); transition: height .25s; }
.rhh-header.is-scrolled .rhh-header__inner { height: 64px; }
.rhh-header__brand { display: flex; align-items: center; flex: none; }
.rhh-header__brand img { height: 44px; width: auto; transition: height .25s; }
.rhh-header.is-scrolled .rhh-header__brand img { height: 38px; }
.rhh-header__name { font-weight: 700; font-size: 20px; color: var(--rhh-ink); }
.rhh-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.rhh-header__login {
	display: none; padding: 10px 14px; border-radius: 999px;
	color: var(--rhh-ink) !important; font-weight: 600; font-size: 15px; transition: background-color .2s;
}
.rhh-header__login:hover { background: rgba(29,32,36,.06); }
.rhh-header__cta { display: none; margin-left: 8px; padding: 10px 20px; font-size: 14px; box-shadow: 0 6px 16px rgba(233,75,134,.3); }
.rhh-header__cta:hover { box-shadow: 0 8px 20px rgba(233,75,134,.4); transform: translateY(-1px); }

/* Account dropdown */
.rhh-account { position: relative; }
.rhh-account__toggle {
	display: flex; align-items: center; gap: 8px; height: 44px; padding: 4px 10px 4px 4px;
	border: 1px solid var(--rhh-line); border-radius: 999px; background: #fff; color: var(--rhh-ink); cursor: pointer;
}
.rhh-account__toggle:hover { border-color: #cfd2d8; }
.rhh-account__avatar { width: 34px; height: 34px; border-radius: 50%; }
.rhh-account__name { display: none; font-weight: 600; font-size: 14px; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rhh-account__toggle .rhh-icon { width: 16px; height: 16px; transition: transform .2s; }
.rhh-account__toggle[aria-expanded="true"] .rhh-icon { transform: rotate(180deg); }
.rhh-header .rhh-account__menu {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px;
	background: #fff; border: 1px solid var(--rhh-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(29,32,36,.12);
}
.rhh-account__menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--rhh-ink) !important; font-weight: 600; font-size: 14px; }
.rhh-account__menu a:hover { background: #fdf0f5; color: var(--rhh-pink-dark) !important; }
.rhh-header .rhh-account__sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rhh-line); }

/* Nav – mobile panel */
.rhh-nav { display: none; }
.rhh-nav.is-open {
	display: block; position: absolute; inset: 100% 0 auto 0; background: #fff;
	border-top: 1px solid var(--rhh-line); box-shadow: 0 24px 40px rgba(29,32,36,.12);
	max-height: calc(100vh - var(--rhh-header-h)); overflow-y: auto; padding: 8px 20px 24px;
	animation: rhh-drop .2s ease-out;
}
@keyframes rhh-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rhh-nav__list > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--rhh-line); }
.rhh-nav__list a { display: block; flex: 1; padding: 15px 4px; color: var(--rhh-ink) !important; font-weight: 600; font-size: 17px; }
.rhh-nav__list a:hover, .rhh-nav__list .current-menu-item > a { color: var(--rhh-pink-dark) !important; }
.rhh-nav__sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--rhh-ink); }
.rhh-nav__sub-toggle .rhh-icon { width: 18px; height: 18px; transition: transform .2s; }
.rhh-nav__sub-toggle[aria-expanded="true"] .rhh-icon { transform: rotate(180deg); }
.rhh-nav__list .sub-menu { display: none; flex-basis: 100%; padding: 0 0 10px 8px; }
.rhh-nav__list .is-sub-open > .sub-menu { display: block; }
.rhh-nav__list .sub-menu a { padding: 10px 4px; font-weight: 500; font-size: 15px; color: var(--rhh-text) !important; }
.rhh-nav__mobile-actions { display: grid; gap: 10px; padding-top: 20px; }
.rhh-nav__mobile-actions .rhh-btn { width: 100%; }
.rhh-menu-toggle__close { display: none; }
.rhh-menu-toggle[aria-expanded="true"] .rhh-menu-toggle__open { display: none; }
.rhh-menu-toggle[aria-expanded="true"] .rhh-menu-toggle__close { display: block; }

@media (min-width: 640px) {
	.rhh-header__login { display: inline-flex; }
	.rhh-header__signup { display: none; }
	.rhh-account__name { display: inline; }
}

/* Desktop */
@media (min-width: 1100px) {
	.rhh-menu-toggle, .rhh-nav__mobile-actions { display: none; }
	.rhh-header__cta, .rhh-header__signup { display: inline-flex; }
	.rhh-nav, .rhh-nav.is-open { display: block; position: static; box-shadow: none; border: 0; padding: 0; max-height: none; overflow: visible; animation: none; background: none; margin-inline: auto; }
	.rhh-nav__list { display: flex; align-items: center; gap: 2px; }
	.rhh-nav__list > li { border: 0; flex-wrap: nowrap; }
	.rhh-nav__list > li > a { padding: 9px 14px; border-radius: 999px; font-size: 15px; transition: background-color .2s, color .2s; }
	.rhh-nav__list > li > a:hover, .rhh-nav__list > li:focus-within > a { background: rgba(29,32,36,.05); color: var(--rhh-ink) !important; }
	.rhh-nav__list > .current-menu-item > a, .rhh-nav__list > .current-menu-ancestor > a { color: var(--rhh-pink-dark) !important; }
	.rhh-nav__list > .menu-item-has-children > a { padding-right: 4px; }
	.rhh-nav__sub-toggle { width: 26px; height: 26px; margin-left: 0; }
	.rhh-nav__sub-toggle .rhh-icon { width: 15px; height: 15px; }

	/* Dropdown card */
	.rhh-nav__list .sub-menu {
		position: absolute; top: calc(100% + 10px); left: 50%; min-width: 220px; padding: 8px;
		background: #fff; border: 1px solid var(--rhh-line); border-radius: 16px; box-shadow: 0 24px 48px rgba(29,32,36,.12);
		opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
		display: block;
	}
	.rhh-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
	.rhh-nav__list > li:hover > .sub-menu,
	.rhh-nav__list > li:focus-within > .sub-menu,
	.rhh-nav__list .is-sub-open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
	.rhh-nav__list .sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--rhh-ink) !important; }
	.rhh-nav__list .sub-menu a:hover { background: #fdf0f5; color: var(--rhh-pink-dark) !important; }

	/* Categories mega dropdown: two columns */
	.rhh-nav__list .rhh-mega > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 2px; width: 440px; }
	.rhh-nav__list .rhh-mega__all { grid-column: 1 / -1; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rhh-line) !important; }
	.rhh-nav__list .rhh-mega__all a { color: var(--rhh-pink-dark) !important; }
}

/* Search panel */
.rhh-search { border-top: 1px solid var(--rhh-line); background: rgba(250,250,251,.96); padding: 18px 0; animation: rhh-drop .2s ease-out; }
.rhh-search__form { display: flex; gap: 10px; }
.rhh-search__form input[type="search"] {
	flex: 1; min-width: 0; height: 52px; padding: 0 22px; font: 500 16px var(--rhh-font);
	border: 1px solid #cfd2d8; border-radius: var(--rhh-radius); background: #fff;
}

/* ---------- Footer ---------- */
.rhh-footer { background: var(--rhh-footer-bg); color: var(--rhh-footer-text); font-family: var(--rhh-font); margin-top: 64px; }
.rhh-footer a { color: var(--rhh-footer-text) !important; }
.rhh-footer a:hover { color: #fff !important; }
.rhh-footer__grid { display: grid; gap: 40px; padding-block: 56px; grid-template-columns: 1fr; }
.rhh-footer__brand { display: inline-block; margin-bottom: 12px; color: #fff !important; font-size: 22px; font-weight: 700; }
.rhh-footer__about p { max-width: 34ch; margin: 0 0 20px; line-height: 1.6; }
.rhh-footer__heading { margin: 0 0 16px; color: #fff; font: 700 16px/1.3 var(--rhh-font); letter-spacing: .02em; }
.rhh-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rhh-footer__list a { font-size: 15px; }
.rhh-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.rhh-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 20px; }
.rhh-footer__copy { margin: 0; font-size: 14px; }
.rhh-social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rhh-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); }
.rhh-social a:hover { background: var(--rhh-pink); }

@media (min-width: 640px) { .rhh-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rhh-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } .rhh-footer__grid:has(.rhh-footer__newsletter) { grid-template-columns: 1.3fr repeat(3, 1fr) 1.3fr; } }

@media (prefers-reduced-motion: reduce) { .rhh * { transition: none !important; } }

/* ==========================================================
   Shared components (used on homepage and beyond)
   ========================================================== */
.rhh-eyebrow { margin: 0 0 10px; color: var(--rhh-pink-dark); font: 700 13px/1.3 var(--rhh-font); letter-spacing: .08em; text-transform: uppercase; }
.rhh-btn--lg { padding: 15px 28px; font-size: 16px; }
.rhh-btn--ghost { background: #fff; color: var(--rhh-ink) !important; border-color: var(--rhh-line); }
.rhh-btn--ghost:hover { border-color: var(--rhh-ink); }
.rhh-btn--light { background: #fff; color: var(--rhh-pink-dark) !important; }
.rhh-btn--light:hover { background: var(--rhh-ink); color: #fff !important; }
.rhh-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rhh-pink-dark) !important; white-space: nowrap; }
.rhh-link-arrow .rhh-icon { width: 18px; height: 18px; transition: transform .2s; }
.rhh-link-arrow:hover .rhh-icon { transform: translateX(3px); }

/* Campaign cards */
.rhh-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.rhh-card {
	display: flex; flex-direction: column; overflow: hidden; background: #fff;
	border: 1px solid var(--rhh-line); border-radius: 16px; font-family: var(--rhh-font);
	transition: transform .25s, box-shadow .25s;
}
.rhh-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(29,32,36,.1); }
.rhh-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f2f4; }
.rhh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rhh-card:hover .rhh-card__media img { transform: scale(1.04); }
.rhh-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #fde3ee, #fff4cc); }
.rhh-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.rhh-card__cat { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #fdf0f5; color: var(--rhh-pink-dark) !important; font-size: 12px; font-weight: 700; }
.rhh-card__title { margin: 0; font: 700 18px/1.35 var(--rhh-font); }
.rhh-card__title a { color: var(--rhh-ink) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rhh-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.rhh-card { position: relative; }
.rhh-card__cat { position: relative; z-index: 1; }
.rhh-card__author { margin: 0; color: var(--rhh-muted); font-size: 14px; }
.rhh-progress { height: 8px; margin-top: auto; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.rhh-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rhh-pink), #f47aa8); }
.rhh-card__stats { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 0; }
.rhh-card__stats dt { color: var(--rhh-muted); font-size: 12px; font-weight: 600; }
.rhh-card__stats dd { margin: 0; color: var(--rhh-ink); font-weight: 700; font-size: 15px; }
.rhh-card__days { margin: 0; color: var(--rhh-muted); font-size: 13px; }

/* Footer: "Become an Affiliate" link */
.rhh-footer__aff { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 16px; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.rhh-footer__aff .rhh-icon { width: 18px; height: 18px; color: var(--rhh-yellow); }
.rhh-footer__aff .rhh-icon:last-child { color: currentColor; transition: transform .2s; }
.rhh-footer__aff:hover .rhh-icon:last-child { transform: translateX(3px); }
.rhh-footer__aff:hover { text-decoration: underline !important; }
