/*
 * Child overrides loaded AFTER the design bundle — rules here win the
 * cascade without specificity tricks. Keep page-specific fine-tuning
 * (Figma alignment) in this file.
 */

/* Base fonts: design/css/reset.css applies font:inherit to body AFTER
   the theme stylesheet, wiping the global Open Sans — anything without
   an explicit font (generic content pages, CF7 output) fell back to the
   browser serif. Re-assert the site defaults here (loaded last); design
   components keep their own explicit fonts (higher specificity). */
body {
	font-family: 'Open Sans', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
	font-family: 'Raleway', sans-serif;
}
input, textarea, select, button {
	font-family: 'Open Sans', sans-serif;
}

/* Blog cards: headings/category became real links — keep the design's
   black text instead of browser default blue/purple. */
.blog-card__heading a {
	color: #000;
	text-decoration: none;
}
.blog-card__heading a:hover {
	color: #EC6807;
}

/* =====================================================================
   Program pages (missing-people / lost-pets)
   ===================================================================== */

/* --- Header: keep the nav inside the white notch of the shape, logo in
   the black block, per the design mock. --- */
@media (min-width: 1031px) {
	.program-header__top {
		padding: 0;
		display: block;
		height: 100px;
	}
	.program-header__logo {
		position: absolute;
		top: 26px;
		left: 6%;
		z-index: 2;
	}
	.program-header__nav {
		position: absolute;
		top: 0;
		left: 30%;
		right: 7%;
		height: 96px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0;
		padding: 0;
	}
	/* Design mock shows no burger on desktop — the same links live in the nav. */
	.program-header__burger-wrap {
		display: none;
	}
}

/* --- SEO text under the listings: style the raw editor content like the
   design's nfound-section typography. --- */
.nfound-section__inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 56px 24px 64px;
	font-family: 'Open Sans', sans-serif;
	color: #333;
}
.nfound-section__inner h2 {
	font-family: Raleway, sans-serif;
	font-weight: 600;
	font-size: 30px;
	line-height: 1.25;
	color: #000;
	margin: 0 0 20px;
}
.nfound-section__inner h3 {
	font-family: Raleway, sans-serif;
	font-weight: 600;
	font-size: 21px;
	line-height: 1.3;
	color: #000;
	margin: 28px 0 10px;
}
.nfound-section__inner p {
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 14px;
}
.nfound-section__inner li {
	font-size: 15px;
	line-height: 1.7;
}
.nfound-section__inner strong {
	font-weight: 700;
}

/* --- Person cards: match the design (grey values, description filling
   the body, share + SEE MORE on one row). --- */
.person-card__attr {
	color: #777;
}
.person-card__attr .person-card__attr-label {
	color: #000;
	font-weight: 600;
}
.person-card__desc {
	margin: 12px 0 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: #666;
}
.person-card__actions {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
}
.person-card__share {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #000;
	font-family: 'Raleway', sans-serif;
	font-size: 13px;
}

/* Hero video overlay: the "who we are" video is a vertical YouTube
   Short — portrait player centered in the overlay. */
.hero-video-overlay .hero-video-iframe {
	aspect-ratio: 9 / 16;
	height: min(85vh, 780px);
	width: auto;
	border: 0;
	border-radius: 12px;
	background: #000;
}

/* =====================================================================
   Overnight batch (user feedback round 2)
   ===================================================================== */

/* (6) Donate page: old theme styled the donation header dark translucent
   (body.page-is-desktop.page-template-donation header) — keep the stock
   header white like every other page. */
body.page-template-donation header.stock-header {
	background: #fff !important;
}

/* (7) Header dropdowns were painted under later sections (donations hero
   etc.) — give the header its own stacking context above content. */
.stock-header {
	position: relative;
	z-index: 400;
}

/* (4) Footer phones: stacked column instead of a row. */
.site-footer__phone {
	display: block;
	margin: 0 0 10px;
}

/* (8) Program header: center the nav vertically inside the white notch.
   The notch spans the top ~99px of the shape (114/482 of its height),
   while .program-header__top starts 24px lower (inner padding) — pull
   the nav up to align with the notch and center its items. */
@media (min-width: 1031px) {
	.program-header__nav {
		top: -24px;
		height: 100px;
		right: 13%;
	}
	/* (10) Burger visible again, at the right end of the notch. */
	.program-header__burger-wrap {
		display: block;
		position: absolute;
		right: 5%;
		top: 12px;
		z-index: 3;
	}
	.program-header__burger-wrap .program-header__hamburger span {
		background: #000;
	}
}

/* (9) Person cards: attrs no longer stretch (flex:1 inflated the gap
   before the description), and the image is absolutely positioned so
   the photo's portrait ratio no longer inflates the card — the body
   content defines the height and the photo crops to match. */
.person-card {
	min-height: 0;
}
.person-card__attrs {
	flex: 0 0 auto;
}
.person-card__body {
	padding-top: 18px;
	padding-bottom: 18px;
}
@media (min-width: 769px) {
	.person-card__img-wrap {
		position: relative;
		min-height: 280px;
	}
	.person-card__img {
		position: absolute;
		inset: 12px;
		width: calc(100% - 24px);
		height: calc(100% - 24px);
	}
}

/* (2) Mobile menu search: grey rounded box below the close button. */
@media (max-width: 768px) {
	.mobile-menu .mobile-menu-search {
		margin: 64px auto 8px;
		max-width: 300px;
		width: calc(100% - 48px);
	}
}
.mobile-menu .asl_w .probox,
.mobile-menu #ajaxsearchlite1 .probox,
.mobile-menu div[id^="ajaxsearchlite"] .probox {
	background: #2a2a2a !important;
	border: 1px solid #4a4a4a !important;
	border-radius: 999px !important;
	box-shadow: none !important;
}
.mobile-menu .asl_w .probox .proinput input,
.mobile-menu #ajaxsearchlite1 .probox .proinput input {
	color: #fff !important;
	background: transparent !important;
}
.mobile-menu .asl_w .probox .proinput input::placeholder,
.mobile-menu #ajaxsearchlite1 .probox .proinput input::placeholder {
	color: #9a9a9a !important;
	opacity: 1;
}

/* (3) Download-app sections: app store buttons on mobile (QR is not
   useful on the phone itself). */
.download-app__stores {
	display: none;
}
@media (max-width: 768px) {
	.download-app__stores {
		display: block;
		margin: 16px 0 4px;
	}
	.download-app__qr-wrap {
		display: none;
	}
	.download-app__stores .download-apps {
		display: flex;
		gap: 12px;
		justify-content: center;
		flex-wrap: wrap;
	}
	.download-app__stores .download-app {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: #000;
		color: #fff;
		text-decoration: none;
		padding: 10px 18px;
		border-radius: 999px;
		font-family: 'Raleway', sans-serif;
		font-size: 14px;
	}
	.download-app__stores .download-app img {
		height: 20px;
		width: auto;
	}
}

/* (1) Mobile map: the stats card was absolutely positioned at top:85%
   and overflowed onto the next section — put it in normal flow under
   the map so the section contains it. */
@media (max-width: 768px) {
	.map-reports__card {
		position: static !important;
		width: min(320px, 86%) !important;
		margin: 18px auto 0;
	}
}

/* (5) Single post related articles on mobile: show all three cards. */
@media (max-width: 768px) {
	.blog-open-another__grid .blog-card:nth-child(-n+3) {
		display: flex !important;
	}
}

/* =====================================================================
   Who We Help — donate-page variant (who-we-help-donate-page.html mock):
   ghost text column + dark rounded panel with three icon cards.
   ===================================================================== */
.who-we-help-icons {
	position: relative;
	display: grid;
	grid-template-columns: 280px 1fr;
	align-items: stretch;
	min-height: 520px;
	background: #fff;
	overflow: hidden;
	/* Container width — same as the map-reports block that follows. */
	max-width: 1200px;
	margin: 64px auto 0;
	padding: 0 20px;
}
.who-we-help-icons__ghost {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 44px;
	padding: 0 32px;
	margin: 0;
	font-family: 'Raleway', sans-serif;
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	color: #e7e7e7;
}
.who-we-help-icons__panel {
	display: flex;
	align-items: center;
	padding: 40px 0;
}
.who-we-help-icons__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}
.who-we-help-icons__card {
	background: #f5f4f0;
	border: 1px solid #e8e6e1;
	border-radius: 22px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.2s ease;
}
.who-we-help-icons__card:hover {
	transform: translateY(-4px);
}
.who-we-help-icons__card-icon {
	height: 220px;
	background: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.who-we-help-icons__card-icon svg {
	width: 64px;
	height: 64px;
}
.who-we-help-icons__card-body {
	padding: 20px 22px 24px;
}
.who-we-help-icons__card-excerpt {
	font-family: 'Open Sans', sans-serif;
	font-size: 13px;
	color: #8a8a8a;
	line-height: 1.6;
	margin: 0 0 12px;
}
.who-we-help-icons__card-title {
	font-family: 'Raleway', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #111;
	margin: 0;
}
@media (max-width: 900px) {
	.who-we-help-icons {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.who-we-help-icons__ghost {
		flex-direction: row;
		justify-content: flex-start;
		gap: 14px;
		padding: 0 24px 24px;
		font-size: 44px;
	}
	.who-we-help-icons__panel {
		padding: 24px 0 32px;
	}
	.who-we-help-icons__cards {
		grid-template-columns: 1fr;
	}
	.who-we-help-icons__card-icon {
		height: 160px;
	}
}

/* =====================================================================
   Contacts page — match contact.html exactly.
   ===================================================================== */

/* Intro paragraphs = the design's .contact__text (grey, Open Sans 14/20)
   instead of the white they inherited. */
.contact__intro,
.contact__intro p {
	color: #7D7C7C;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	line-height: 20px;
}

/* The CF7 form gets the design's .contact__form dark rounded card.
   flow-root contains the floated name/phone columns (old CF7 markup). */
.contact__form-wrap form.wpcf7-form {
	display: flow-root;
	background: #1a1a1a;
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
	.contact__form-wrap form.wpcf7-form {
		padding: 28px 20px;
	}
}
/* CF7 wraps every control in a <p> — drop the default margins so the
   spacing comes from the field boxes like in the design. */
.contact__form-wrap form.wpcf7-form p {
	margin: 0;
}
/* Design's .contact__form-title: 34px with a 24px gap below. */
.contact__form-wrap .contacts_page_form_headline {
	margin-bottom: 24px;
}
/* CF7 renders rows="10" — design textarea is ~80px (resize still allowed). */
.contact__form-wrap textarea {
	height: 80px;
}
/* Design's .contact__submit: rounded rect (not a pill) with a shadow. */
.contact__form-wrap input[type="submit"] {
	border-radius: 20px;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.49);
}
/* Design mobile stacks the name/phone row (.contact__form-row → 1fr);
   the CF7 markup uses 48% floats, so unfloat them. */
@media (max-width: 768px) {
	.contacts_form_input_name,
	.contacts_form_input_phone {
		width: 100%;
		float: none;
		margin: 0;
	}
}

/* =====================================================================
   CF7 modals (Leave a request / feedback) — the modal never had a
   font-family, so it fell back to the browser serif. Use the site's
   standard fonts like everywhere else.
   ===================================================================== */
.modal-form .modal-content {
	font-family: 'Open Sans', sans-serif;
}
.modal-form .modal-content form input,
.modal-form .modal-content form textarea,
.modal-form .modal-content form select {
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
}
.modal-form .modal-content h3,
.modal-form .modal-content a,
.modal-form .modal-content form input[type="submit"] {
	font-family: 'Raleway', sans-serif;
}

/* Mobile menu search: the plugin's magnifier/settings buttons keep their
   red skin — blend them into the dark box. */
.mobile-menu .asl_w .probox .promagnifier,
.mobile-menu .asl_w .probox .prosettings,
.mobile-menu #ajaxsearchlite1 .probox .promagnifier,
.mobile-menu #ajaxsearchlite1 .probox .prosettings {
	background: transparent !important;
	box-shadow: none !important;
}
.mobile-menu .asl_w .probox .promagnifier .innericon svg,
.mobile-menu #ajaxsearchlite1 .probox .promagnifier .innericon svg {
	fill: #fff !important;
}
.mobile-menu .asl_w_container,
.mobile-menu .asl_w,
.mobile-menu .asl_m {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}
