/*
Theme Name: Delco PA ABSW
Theme URI: https://example.com/themes/delco-pa-absw
Author: Delco PA ABSW Web Team
Author URI: https://example.com
Description: Delco PA ABSW is a classic WordPress theme built for community and advocacy organizations, including social work associations and chapters. It ships with a mission-forward front page layout, program/get-involved highlights, an events-ready archive layout, and a bold red, black, and green accent palette. Delco PA ABSW is fully translatable, accessible, and built to WordPress coding standards.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: delco-pa-absw
Tags: blog, one-column, two-columns, three-columns, grid-layout, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready, accessibility-ready

Delco PA ABSW is distributed under the terms of the GNU General Public License v2 or later.
This program is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 2 of the License, or (at your option) any later version.

Delco PA ABSW bundles Underscores-style HTML5 semantics and normalize-inspired base
resets; all bundled code is either original to this theme or released under a
GPL-compatible license.
*/

/* -----------------------------------------------------------------------
   0.0 Custom Properties
----------------------------------------------------------------------- */
:root {
	--delcoabsw-color-red: #b3202c;
	--delcoabsw-color-red-dark: #8a1822;
	--delcoabsw-color-black: #1a1a1a;
	--delcoabsw-color-green: #0a6b3d;
	--delcoabsw-color-green-dark: #084f2d;
	--delcoabsw-color-cream: #faf7f2;
	--delcoabsw-color-white: #ffffff;
	--delcoabsw-color-gray-100: #f4f2ef;
	--delcoabsw-color-gray-300: #d9d5cf;
	--delcoabsw-color-gray-600: #5a5652;
	--delcoabsw-color-text: #201d1b;
	--delcoabsw-font-heading: Georgia, 'Times New Roman', Times, serif;
	--delcoabsw-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	--delcoabsw-container-width: 1160px;
	--delcoabsw-radius: 6px;
}

/* -----------------------------------------------------------------------
   1.0 Reset & Base
----------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--delcoabsw-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--delcoabsw-color-text);
	background-color: var(--delcoabsw-color-white);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

a {
	color: var(--delcoabsw-color-red);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--delcoabsw-color-green);
	text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--delcoabsw-font-heading);
	line-height: 1.25;
	color: var(--delcoabsw-color-black);
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1.4em;
}

ul,
ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
}

blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.5em;
	border-left: 4px solid var(--delcoabsw-color-green);
	background: var(--delcoabsw-color-gray-100);
	font-style: italic;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

th,
td {
	padding: 0.6em 0.8em;
	border: 1px solid var(--delcoabsw-color-gray-300);
	text-align: left;
}

hr {
	border: none;
	border-top: 1px solid var(--delcoabsw-color-gray-300);
	margin: 2.5em 0;
}

/* Forms */
input,
textarea,
select,
button {
	font-family: inherit;
	font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: 0.65em 0.8em;
	border: 1px solid var(--delcoabsw-color-gray-300);
	border-radius: var(--delcoabsw-radius);
	background: var(--delcoabsw-color-white);
	color: var(--delcoabsw-color-text);
}

input:focus,
textarea:focus,
select:focus {
	outline: 3px solid var(--delcoabsw-color-green);
	outline-offset: 1px;
}

.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-block;
	background-color: var(--delcoabsw-color-red);
	color: var(--delcoabsw-color-white);
	border: 2px solid var(--delcoabsw-color-red);
	padding: 0.7em 1.6em;
	border-radius: var(--delcoabsw-radius);
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover,
.button:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
	background-color: var(--delcoabsw-color-black);
	border-color: var(--delcoabsw-color-black);
	color: var(--delcoabsw-color-white);
	text-decoration: none;
}

.button--outline {
	background-color: transparent;
	color: var(--delcoabsw-color-white);
	border-color: var(--delcoabsw-color-white);
}

.button--outline:hover,
.button--outline:focus {
	background-color: var(--delcoabsw-color-white);
	color: var(--delcoabsw-color-black);
}

.button--green {
	background-color: var(--delcoabsw-color-green);
	border-color: var(--delcoabsw-color-green);
}

.button--green:hover,
.button--green:focus {
	background-color: var(--delcoabsw-color-green-dark);
	border-color: var(--delcoabsw-color-green-dark);
}

/* -----------------------------------------------------------------------
   2.0 Accessibility
----------------------------------------------------------------------- */
.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--delcoabsw-color-black);
	color: var(--delcoabsw-color-white);
	padding: 0.8em 1.4em;
	z-index: 100000;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 0;
	color: var(--delcoabsw-color-white);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--delcoabsw-color-white);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--delcoabsw-color-black);
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 1em 1.4em;
	text-decoration: none;
	top: 6px;
	width: auto;
	z-index: 100000;
}

/* -----------------------------------------------------------------------
   3.0 Layout
----------------------------------------------------------------------- */
.site-container {
	max-width: var(--delcoabsw-container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

#content {
	padding: 3rem 0;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
}

.content-layout.has-sidebar {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 782px) {
	.content-layout.has-sidebar {
		grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
	}
}

/*
 * The "full-width" modifier is applied by the Full Width page template.
 * The single-column grid above already spans the entire .site-container,
 * so no extra rule is needed here — this comment documents that
 * intentionally rather than leaving the class a silent no-op.
 */

/* -----------------------------------------------------------------------
   4.0 Header
----------------------------------------------------------------------- */
.top-bar {
	background: var(--delcoabsw-color-black);
	color: var(--delcoabsw-color-white);
	font-size: 0.85rem;
}

.top-bar .site-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	gap: 0.5rem;
}

.top-bar__tagline {
	color: var(--delcoabsw-color-gray-300);
}

.top-bar__social a {
	color: var(--delcoabsw-color-white);
	margin-left: 0.9rem;
	font-weight: 700;
}

.top-bar__social a:first-child {
	margin-left: 0;
}

.site-header {
	border-bottom: 6px solid var(--delcoabsw-color-green);
	background: var(--delcoabsw-color-white);
	position: relative;
}

.site-header::before {
	content: "";
	display: block;
	height: 6px;
	background: var(--delcoabsw-color-red);
}

.site-branding-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1.25rem 0;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.custom-logo-link img {
	max-height: 72px;
	width: auto;
}

.site-title {
	font-size: 1.7rem;
	margin: 0;
	line-height: 1.15;
}

.site-title a {
	color: var(--delcoabsw-color-black);
	text-decoration: none;
}

.site-description {
	margin: 0.15rem 0 0;
	color: var(--delcoabsw-color-gray-600);
	font-size: 0.95rem;
	font-family: var(--delcoabsw-font-body);
}

/* Primary navigation */
.main-navigation {
	background: var(--delcoabsw-color-green);
}

.main-navigation .site-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: var(--delcoabsw-color-white);
	padding: 0.9rem 0;
	font-weight: 700;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.main-navigation .menu > li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 0.95rem 1.1rem;
	color: var(--delcoabsw-color-white);
	font-weight: 600;
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	background: var(--delcoabsw-color-black);
	color: var(--delcoabsw-color-white);
}

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--delcoabsw-color-black);
	z-index: 50;
	flex-direction: column;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	display: flex;
}

.main-navigation ul ul a {
	padding: 0.8rem 1.1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 781px) {
	.menu-toggle {
		display: inline-block;
	}

	.main-navigation .site-container {
		flex-wrap: wrap;
	}

	.main-navigation ul.menu {
		display: none;
		flex-direction: column;
		width: 100%;
	}

	.main-navigation.toggled ul.menu {
		display: flex;
	}

	.main-navigation ul ul {
		position: static;
		min-width: 0;
	}
}

/* -----------------------------------------------------------------------
   5.0 Hero / Front page
----------------------------------------------------------------------- */
.hero {
	background: linear-gradient(135deg, var(--delcoabsw-color-black) 0%, #2a2320 55%, var(--delcoabsw-color-red-dark) 100%);
	color: var(--delcoabsw-color-white);
	padding: 4.5rem 0;
	text-align: center;
}

.hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--delcoabsw-color-gray-300);
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.hero__heading {
	color: var(--delcoabsw-color-white);
	font-size: clamp(2rem, 4vw, 3rem);
	max-width: 850px;
	margin-left: auto;
	margin-right: auto;
}

.hero__subheading {
	max-width: 700px;
	margin: 1.2rem auto 2rem;
	font-size: 1.15rem;
	color: var(--delcoabsw-color-gray-300);
}

.hero__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.section {
	padding: 4rem 0;
}

.section--muted {
	background: var(--delcoabsw-color-gray-100);
}

.section__header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 2.5rem;
}

.section__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--delcoabsw-color-red);
}

.section__heading {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.value-grid,
.cta-grid,
.card-grid {
	display: grid;
	gap: 1.75rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.value-card,
.cta-card,
.info-card {
	background: var(--delcoabsw-color-white);
	border: 1px solid var(--delcoabsw-color-gray-300);
	border-top: 4px solid var(--delcoabsw-color-green);
	border-radius: var(--delcoabsw-radius);
	padding: 1.75rem;
}

.value-card:nth-child(3n+2),
.cta-card:nth-child(3n+2) {
	border-top-color: var(--delcoabsw-color-red);
}

.value-card:nth-child(3n+3),
.cta-card:nth-child(3n+3) {
	border-top-color: var(--delcoabsw-color-black);
}

.value-card h3,
.cta-card h3 {
	font-size: 1.2rem;
}

.cta-card {
	text-align: center;
	background: var(--delcoabsw-color-black);
	color: var(--delcoabsw-color-white);
	border-top-color: var(--delcoabsw-color-red);
}

.cta-card h3 {
	color: var(--delcoabsw-color-white);
}

.cta-card p {
	color: var(--delcoabsw-color-gray-300);
}

.impact-strip {
	background: var(--delcoabsw-color-green);
	color: var(--delcoabsw-color-white);
	padding: 3rem 0;
}

.impact-strip .card-grid {
	text-align: center;
}

.impact-strip strong {
	display: block;
	font-family: var(--delcoabsw-font-heading);
	font-size: 2.4rem;
	color: var(--delcoabsw-color-white);
}

/* -----------------------------------------------------------------------
   6.0 Posts / Archive / Single
----------------------------------------------------------------------- */
.post-list {
	display: grid;
	gap: 2.5rem;
}

.entry {
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--delcoabsw-color-gray-300);
}

.entry:last-child {
	border-bottom: 0;
}

.entry-thumbnail {
	margin-bottom: 1rem;
	border-radius: var(--delcoabsw-radius);
	overflow: hidden;
}

.entry-title {
	font-size: 1.6rem;
}

.entry-title a {
	color: var(--delcoabsw-color-black);
}

.entry-meta {
	color: var(--delcoabsw-color-gray-600);
	font-size: 0.9rem;
	margin-bottom: 0.8rem;
}

.entry-meta a {
	color: var(--delcoabsw-color-gray-600);
}

.entry-meta .cat-links a {
	color: var(--delcoabsw-color-red);
}

.entry-summary,
.entry-content {
	color: var(--delcoabsw-color-text);
}

.entry-footer {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: var(--delcoabsw-color-gray-600);
}

.page-header {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 3px solid var(--delcoabsw-color-green);
}

.page-title {
	font-size: 2rem;
}

.page-links a,
.page-numbers {
	display: inline-block;
	margin: 0 0.3rem 0.3rem 0;
	padding: 0.5em 0.9em;
	border: 1px solid var(--delcoabsw-color-gray-300);
	border-radius: var(--delcoabsw-radius);
	color: var(--delcoabsw-color-black);
}

.page-numbers.current {
	background: var(--delcoabsw-color-green);
	border-color: var(--delcoabsw-color-green);
	color: var(--delcoabsw-color-white);
}

.navigation.pagination {
	margin-top: 2rem;
}

/* Comments */
.comments-area {
	margin-top: 3rem;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 2rem;
}

.comment-body {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--delcoabsw-color-gray-300);
}

.comment-author .fn {
	font-weight: 700;
	font-style: normal;
}

.comment-metadata {
	font-size: 0.85rem;
	color: var(--delcoabsw-color-gray-600);
	margin-bottom: 0.5rem;
}

.comment-metadata a {
	color: var(--delcoabsw-color-gray-600);
}

.comment-reply-link {
	font-size: 0.85rem;
	font-weight: 700;
}

#respond {
	margin-top: 2rem;
}

.comment-form p {
	margin-bottom: 1.1rem;
}

.comment-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

/* -----------------------------------------------------------------------
   6.5 Staff Grid
----------------------------------------------------------------------- */
.staff-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	margin: 2rem 0 3rem;
}

.staff-card {
	text-align: center;
	background: var(--delcoabsw-color-white);
	border: 1px solid var(--delcoabsw-color-gray-300);
	border-radius: var(--delcoabsw-radius);
	padding: 1.75rem 1.25rem 2rem;
}

.staff-photo {
	width: 140px;
	height: 140px;
	margin: 0 auto 1.1rem;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid var(--delcoabsw-color-green);
	background: var(--delcoabsw-color-gray-100);
	display: flex;
	align-items: center;
	justify-content: center;
}

.staff-card:nth-child(3n+2) .staff-photo {
	border-color: var(--delcoabsw-color-red);
}

.staff-card:nth-child(3n+3) .staff-photo {
	border-color: var(--delcoabsw-color-black);
}

.staff-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.staff-photo__placeholder {
	font-family: var(--delcoabsw-font-heading);
	font-size: 3rem;
	font-weight: 700;
	color: var(--delcoabsw-color-gray-600);
}

.staff-name {
	font-size: 1.15rem;
	margin-bottom: 0.2rem;
}

.staff-role {
	color: var(--delcoabsw-color-red);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.9rem;
}

.staff-bio {
	text-align: left;
	font-size: 0.95rem;
	color: var(--delcoabsw-color-gray-600);
	margin-bottom: 0.9rem;
}

.staff-bio p:last-child {
	margin-bottom: 0;
}

.staff-links {
	font-size: 0.85rem;
	font-weight: 700;
	margin: 0;
}

/* -----------------------------------------------------------------------
   7.0 Sidebar & Widgets
----------------------------------------------------------------------- */
.widget {
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--delcoabsw-color-gray-300);
}

.widget:last-child {
	border-bottom: 0;
}

.widget-title {
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--delcoabsw-color-red);
	margin-bottom: 1rem;
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget li {
	padding: 0.4rem 0;
	border-bottom: 1px dotted var(--delcoabsw-color-gray-300);
}

/* -----------------------------------------------------------------------
   8.0 Footer
----------------------------------------------------------------------- */
.site-footer {
	background: var(--delcoabsw-color-black);
	color: var(--delcoabsw-color-gray-300);
	margin-top: 3rem;
}

.footer-widgets {
	padding: 3.5rem 0 2.5rem;
	border-top: 4px solid var(--delcoabsw-color-red);
}

.footer-widgets .footer-grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-widgets .widget {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.footer-widgets .widget-title {
	color: var(--delcoabsw-color-white);
}

.footer-widgets a {
	color: var(--delcoabsw-color-gray-300);
}

.footer-widgets a:hover,
.footer-widgets a:focus {
	color: var(--delcoabsw-color-white);
}

.site-info {
	padding: 1.5rem 0;
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-info__social a {
	color: var(--delcoabsw-color-gray-300);
	margin-left: 1rem;
	font-weight: 700;
}

.site-info__social a:hover,
.site-info__social a:focus {
	color: var(--delcoabsw-color-white);
}

/* -----------------------------------------------------------------------
   9.0 Alignment & WP core blocks
----------------------------------------------------------------------- */
.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
.gallery-caption {
	font-size: 0.85rem;
	color: var(--delcoabsw-color-gray-600);
}

/* -----------------------------------------------------------------------
   10.0 Utility
----------------------------------------------------------------------- */
.visually-hidden {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	overflow: hidden;
	height: 1px;
	width: 1px;
}
