/* ==========================================================================
   Niños En Acción — theme styles
   Every color here comes from the theme palette (Appearance → Editor →
   Styles → Colors), so changing a palette color restyles the whole site.
   ========================================================================== */

:root {
	--nea-primary: var(--wp--preset--color--primary);
	--nea-accent: var(--wp--preset--color--accent);
	--nea-secondary: var(--wp--preset--color--secondary);
	--nea-surface: var(--wp--preset--color--surface);
	--nea-placeholder: var(--wp--preset--color--placeholder);
	--nea-muted: var(--wp--preset--color--muted);
	--nea-base: var(--wp--preset--color--base);
	--nea-footer: var(--wp--preset--color--footer);
	--nea-on-dark: var(--wp--preset--color--on-dark);
	--nea-radius: 24px;
}

body { -webkit-font-smoothing: antialiased; }

:where(a, button, input, select, textarea, .wp-element-button):focus-visible {
	outline: 3px solid var(--nea-secondary);
	outline-offset: 3px;
}

/* ---------- Announcement bar (top of every page) ---------- */
.nea-announce {
	background: var(--nea-primary);
	color: var(--nea-base);
	padding-top: 0.6rem !important;
	padding-bottom: 0.6rem !important;
	font-size: 0.875rem;
}
.nea-announce p { margin: 0; }
.nea-announce a { color: var(--nea-accent); font-weight: 600; text-decoration: none; }
.nea-announce a:hover { text-decoration: underline; color: var(--nea-accent); }
.nea-pill {
	display: inline-block;
	background: var(--nea-accent);
	color: var(--nea-primary);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	border-radius: 999px;
	padding: 0.15rem 0.65rem;
	margin-right: 0.5rem;
	vertical-align: 1px;
}

/* ---------- Header ---------- */
.nea-header {
	background: var(--nea-base);
	border-bottom: 1px solid color-mix(in srgb, var(--nea-primary) 12%, transparent);
	padding-top: 0.75rem !important;
	padding-bottom: 0.75rem !important;
}
.nea-header-inner { gap: 1rem 2rem; }
.nea-brand { gap: 0.85rem; align-items: center; }
.nea-brand-text { gap: 0 !important; }
.nea-brand-name { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.nea-brand-name a { color: var(--nea-primary); text-decoration: none; }
.nea-brand-tag { margin: 0; font-size: 0.78rem; color: var(--nea-muted); }
.nea-menu { gap: 0.75rem 1.75rem; align-items: center; }
.nea-nav a { text-decoration: none; color: var(--nea-primary); }
.nea-nav a:hover { color: var(--nea-secondary); }
.nea-nav .current-menu-item > a,
.nea-nav a[aria-current="page"] { color: var(--nea-secondary); font-weight: 600; }
.nea-header .wp-block-button__link { padding: 0.7rem 1.4rem; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.nea-section { padding-top: clamp(3.5rem, 8vw, 5.5rem) !important; padding-bottom: clamp(3.5rem, 8vw, 5.5rem) !important; }
.nea-section-tight { padding-top: clamp(2.5rem, 5vw, 4rem) !important; padding-bottom: clamp(1rem, 3vw, 1.5rem) !important; }
.nea-section.nea-flush-top { padding-top: 0 !important; }
.nea-band-surface { background: var(--nea-surface); }
.nea-band-dark { background: var(--nea-primary); color: var(--nea-base); }
.nea-band-dark :where(h1, h2, h3, h4) { color: var(--nea-base); }

.nea-eyebrow {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nea-secondary);
}
.nea-band-dark .nea-eyebrow { color: var(--nea-accent); }
.nea-display { max-width: 15ch; }
.nea-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.7; color: var(--nea-muted); max-width: 40rem; }
.nea-band-dark .nea-lead, .nea-band-dark .nea-muted { color: var(--nea-on-dark); }
.nea-muted { color: var(--nea-muted); }
.nea-small { font-size: 0.875rem; }
.nea-section-head { max-width: 44rem; gap: 0.75rem !important; }
.nea-section-head > * { margin: 0 !important; }
.nea-row-head { gap: 1rem; align-items: flex-end !important; }
.nea-more a { font-weight: 600; text-decoration: none; }
.nea-more a:hover { text-decoration: underline; }

/* ---------- Grids & cards ---------- */
.nea-grid { gap: 1.5rem !important; }
.nea-card {
	background: var(--nea-surface);
	border-radius: var(--nea-radius);
	padding: 2rem !important;
}
.nea-band-surface .nea-card { background: var(--nea-base); }
.nea-card > * { margin-top: 0 !important; margin-bottom: 0.75rem !important; }
.nea-card > *:last-child { margin-bottom: 0 !important; }
.nea-card h3 { font-size: 1.4rem; }
.nea-card p { color: var(--nea-muted); }

/* Icons (drawn with CSS masks so they take the palette color) */
[class*="nea-icon-"]::before {
	content: "";
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 1rem;
	background-color: var(--nea-secondary);
	-webkit-mask: var(--nea-icon) center / contain no-repeat;
	mask: var(--nea-icon) center / contain no-repeat;
}

/* Impact stats */
.nea-stat { border-top: 3px solid var(--nea-accent); padding-top: 1.25rem !important; gap: 0.35rem !important; }
.nea-stat > * { margin: 0 !important; }
.nea-stat-num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(2.25rem, 4vw, 2.75rem); line-height: 1.05; color: var(--nea-primary); }

/* Photo placeholders / covers */
.nea-photo { border-radius: var(--nea-radius); overflow: hidden; }
.nea-photo .nea-photo-label { color: var(--nea-muted); font-size: 0.875rem; }
.nea-photo.nea-photo-sm { border-radius: 20px; }

/* ---------- Events ---------- */
.nea-event {
	background: var(--nea-base);
	border: 1px solid color-mix(in srgb, var(--nea-primary) 12%, transparent);
	border-radius: var(--nea-radius);
	padding: 1.75rem !important;
	gap: 1.5rem !important;
	align-items: flex-start !important;
}
.nea-band-surface .nea-event { border-color: transparent; }
.nea-event-body { gap: 0.4rem !important; flex: 1 1 18rem; }
.nea-event-body > * { margin: 0 !important; }
.nea-event-body h3 { font-size: 1.4rem; }
.nea-date {
	flex: 0 0 auto;
	width: 5.25rem;
	min-height: 5.75rem;
	border-radius: 18px;
	background: var(--nea-primary);
	color: var(--nea-base);
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0 !important;
	padding: 0.5rem !important;
	text-align: center;
}
.nea-date > * { margin: 0 !important; }
.nea-date-month { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--nea-accent); }
.nea-date-day { font-family: var(--wp--preset--font-family--heading); font-size: 2rem; font-weight: 800; line-height: 1.05; color: var(--nea-base); }

.nea-feature {
	border: 1px solid color-mix(in srgb, var(--nea-primary) 12%, transparent);
	border-radius: 28px;
	overflow: hidden;
	gap: 0 !important;
}
.nea-feature > .wp-block-column:last-child { padding: clamp(1.5rem, 4vw, 2.5rem); }
.nea-feature .nea-photo { border-radius: 0; height: 100%; }
.nea-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.nea-tag {
	display: inline-block;
	background: var(--nea-surface);
	color: var(--nea-secondary);
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.25rem 0.75rem;
}
.nea-tag-hot { background: var(--nea-accent); color: var(--nea-primary); }
.nea-details { color: var(--nea-muted); line-height: 1.9; }
.nea-details strong { color: var(--nea-primary); }

/* ---------- Call-to-action band ---------- */
.nea-cta {
	background: var(--nea-primary);
	color: var(--nea-base);
	border-radius: 32px;
	padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3.5rem) !important;
	gap: 1.5rem 2rem !important;
}
.nea-cta :where(h2, h3) { color: var(--nea-base); margin: 0; }
.nea-cta p { color: var(--nea-on-dark); margin: 0.75rem 0 0; }
.nea-cta-text { flex: 1 1 22rem; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--nea-primary);
	border: 2px solid currentColor;
	padding: calc(0.95rem - 2px) calc(1.75rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--nea-primary); color: var(--nea-base); border-color: var(--nea-primary); }
.nea-band-dark .wp-block-button.is-style-outline > .wp-block-button__link,
.nea-cta .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--nea-base); }
.nea-band-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.nea-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--nea-base); color: var(--nea-primary); border-color: var(--nea-base); }
.wp-block-button.nea-btn-dark > .wp-block-button__link { background: var(--nea-primary); color: var(--nea-base); }
.wp-block-button.nea-btn-dark > .wp-block-button__link:hover { background: var(--nea-secondary); color: var(--nea-base); }
.nea-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--nea-base); color: var(--nea-primary); }

/* ---------- About ---------- */
.nea-mission {
	background: var(--nea-primary);
	color: var(--nea-base);
	border-radius: 28px;
	padding: clamp(1.75rem, 4vw, 2.75rem) !important;
}
.nea-mission > * { margin-top: 0 !important; }
.nea-mission .nea-eyebrow { color: var(--nea-accent); }
.nea-mission-quote { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 600; line-height: 1.3; }
.nea-mission p:not(.nea-eyebrow):not(.nea-mission-quote) { color: var(--nea-on-dark); }
.nea-person { background: var(--nea-surface); border-radius: 20px; padding: 1.5rem !important; gap: 0.4rem !important; }
.nea-person > * { margin: 0 !important; }
.nea-initials {
	width: 3.5rem; height: 3.5rem; border-radius: 999px;
	background: var(--nea-primary); color: var(--nea-accent);
	display: flex; align-items: center; justify-content: center;
	font-weight: 600; margin-bottom: 0.6rem !important;
}
.nea-person-name { font-weight: 600; }

/* ---------- Gallery ---------- */
.nea-album { border-top: 1px solid color-mix(in srgb, var(--nea-primary) 12%, transparent); padding-top: 2rem !important; gap: 0.25rem !important; }
.nea-album > h2 { font-size: var(--wp--preset--font-size--x-large); margin: 0; }
.nea-album > .nea-muted { margin: 0 0 1rem; }
.nea-album .wp-block-gallery img { border-radius: 14px; }
.nea-album .wp-block-gallery:empty::after {
	content: "Photos coming soon";
	display: flex; align-items: center; justify-content: center;
	width: 100%; min-height: 10rem; border-radius: 18px;
	background: var(--nea-placeholder); color: var(--nea-muted); font-size: 0.875rem;
}

/* ---------- Donate ---------- */
.nea-give {
	background: var(--nea-base);
	border-radius: 28px;
	padding: clamp(1.5rem, 4vw, 2.25rem) !important;
	box-shadow: 0 16px 40px color-mix(in srgb, var(--nea-primary) 12%, transparent);
}
.nea-give > * { margin-top: 0 !important; }
.nea-amounts { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem !important; }
.nea-amounts .wp-block-button { width: 100%; }
.nea-amounts .wp-block-button__link {
	width: 100%; border-radius: 16px; font-size: 1.125rem; padding: 1rem 0.5rem;
	background: var(--nea-base); color: var(--nea-primary);
	border: 2px solid color-mix(in srgb, var(--nea-primary) 18%, transparent);
}
.nea-amounts .wp-block-button__link:hover { background: var(--nea-primary); color: var(--nea-base); border-color: var(--nea-primary); }
.nea-give-main .wp-block-button { width: 100%; }
.nea-give-main .wp-block-button__link { width: 100%; font-size: 1.125rem; padding: 1.1rem 1.5rem; }
.nea-checks { list-style: none; padding-left: 0; }
.nea-checks li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
.nea-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.3rem; height: 1.3rem;
	background-color: var(--nea-secondary);
	-webkit-mask: var(--nea-icon-check-svg) center / contain no-repeat;
	mask: var(--nea-icon-check-svg) center / contain no-repeat;
}

/* ---------- Contact ---------- */
.nea-contact-item {
	position: relative;
	background: var(--nea-surface);
	border-radius: 22px;
	padding: 1.5rem 1.5rem 1.5rem 5.75rem !important;
	gap: 0.15rem !important;
	min-height: 6rem;
	justify-content: center;
}
.nea-contact-item > * { margin: 0 !important; }
.nea-contact-item[class*="nea-icon-"]::before {
	-webkit-mask: none; mask: none;
	position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%);
	width: 3rem; height: 3rem; margin: 0; border-radius: 14px;
	background: var(--nea-primary);
}
.nea-contact-item[class*="nea-icon-"]::after {
	content: "";
	position: absolute; left: 2.3rem; top: 50%; transform: translateY(-50%);
	width: 1.4rem; height: 1.4rem;
	background-color: var(--nea-accent);
	-webkit-mask: var(--nea-icon) center / contain no-repeat;
	mask: var(--nea-icon) center / contain no-repeat;
}
.nea-contact-label { font-size: 0.8rem; color: var(--nea-muted); }
.nea-contact-value { font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
.nea-contact-value a { color: var(--nea-primary); text-decoration: none; }
.nea-form-card { border: 1px solid color-mix(in srgb, var(--nea-primary) 12%, transparent); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem) !important; }
.nea-form-card > * { margin-top: 0 !important; }
.nea-form iframe { display: block; width: 100%; min-height: 900px; border: 0; border-radius: 12px; }
.nea-form-fallback { font-size: 0.875rem; color: var(--nea-muted); margin-top: 0.75rem; }

/* ---------- Footer ---------- */
.nea-footer { background: var(--nea-footer); color: var(--nea-on-dark); font-size: 0.95rem; line-height: 1.7; padding-top: 3.5rem !important; padding-bottom: 2rem !important; }
.nea-footer p { margin: 0 0 0.35rem; }
.nea-footer a { color: var(--nea-on-dark); text-decoration: none; }
.nea-footer a:hover { color: var(--nea-base); text-decoration: underline; }
.nea-footer .nea-footer-name { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.25rem; color: var(--nea-base); }
.nea-footer .nea-footer-head { color: var(--nea-base); font-weight: 600; }
.nea-footer .nea-phone a { color: var(--nea-accent); }
.nea-footer-legal { border-top: 1px solid color-mix(in srgb, var(--nea-on-dark) 20%, transparent); padding-top: 1.25rem; margin-top: 2rem !important; font-size: 0.8125rem; }

/* ---------- Blog ---------- */
.nea-post-card { background: var(--nea-surface); border-radius: var(--nea-radius); padding: 1.5rem !important; height: 100%; }
.nea-post-card .wp-block-post-featured-image img { border-radius: 16px; }
.nea-post-card .wp-block-post-title a { color: var(--nea-primary); text-decoration: none; }
.nea-post-card .wp-block-post-date { color: var(--nea-muted); font-size: 0.875rem; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.nea-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nea-feature .nea-photo { min-height: 240px !important; }
	.nea-header-inner { justify-content: center !important; }
}

/* ---------- Icon shapes (generated) ---------- */
:root {
	--nea-icon-check-svg: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12l5 5 9-10%22/%3E%3C/svg%3E");
}
.nea-icon-backpack { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 8a6 6 0 0 1 12 0v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1z%22/%3E%3Cpath d=%22M9 4.5V3h6v1.5M6 13h12M10 13v3h4v-3%22/%3E%3C/svg%3E"); }
.nea-icon-basket { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 11h18l-2 9H5z%22/%3E%3Cpath d=%22M7 11l3-6M17 11l-3-6M9 15v2M15 15v2%22/%3E%3C/svg%3E"); }
.nea-icon-gift { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%228%22 width=%2218%22 height=%2213%22 rx=%222%22/%3E%3Cpath d=%22M12 8v13M3 12h18M12 8c-2-4-6-4-6-1s6 1 6 1zM12 8c2-4 6-4 6-1s-6 1-6 1z%22/%3E%3C/svg%3E"); }
.nea-icon-heart { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21s-8-4.6-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6.4-8 11-8 11z%22/%3E%3C/svg%3E"); }
.nea-icon-flag { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 21V4M5 4l12 4-12 4%22/%3E%3Ccircle cx=%2217%22 cy=%2219%22 r=%222%22/%3E%3C/svg%3E"); }
.nea-icon-briefcase { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%227%22 width=%2218%22 height=%2213%22 rx=%222%22/%3E%3Cpath d=%22M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2%22/%3E%3C/svg%3E"); }
.nea-icon-building { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 21h18M5 21V10l7-5 7 5v11M9 21v-6h6v6%22/%3E%3C/svg%3E"); }
.nea-icon-mail { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22M3 7l9 6 9-6%22/%3E%3C/svg%3E"); }
.nea-icon-phone { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2%22/%3E%3C/svg%3E"); }
.nea-icon-pin { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222.5%22/%3E%3C/svg%3E"); }
.nea-icon-users { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%223%22/%3E%3Cpath d=%22M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M16 11a3 3 0 1 0 0-6M21 20c0-2.6-1.7-4.8-4-5.6%22/%3E%3C/svg%3E"); }
.nea-icon-check { --nea-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12l5 5 9-10%22/%3E%3C/svg%3E"); }
