/*
 Theme Name:        Uptown Charity Theme
 Text Domain:       uptown-child-charity
 Author:            April Auger
 Author URI:        https://aprilauger.com
 Description:       Charity is a child theme designed to be used alongside the Uptown theme.
 Template:          uptown
 Version:           1.0.0
 Requires at least: 6.4
 Tested up to:      6.4
 Requires PHP:      8.0
 License:           GNU General Public License v2 or later
 License URI:       http://www.gnu.org/licenses/gpl-2.0.html
*/

a {
	font-weight: 500;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

.optimal-line-length {
	margin: auto;
	max-width: 1000px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header .header__wrapper .header__logo img {
	max-height: 75px;
}

@media (min-width: 1200px) {
	#header-menu {
		flex: 1;
	}

	#header-menu .dropdown-menu {
		background: var(--xui-cream);
	}

	.header__navbar-menu {
		left: 50%;
		max-width: calc(100% - 28rem);
		position: absolute;
		transform: translateX(-50%);
		z-index: 9;
	}

	#header-menu .buttons {
		margin-left: auto;
	}
}

/*--------------------------------------------------------------
# Title Block
--------------------------------------------------------------*/

#title-block.bkg-img .tb-wrapper::before {
	background: linear-gradient(264deg, rgba(250, 249, 244, 0.11) 12%, rgba(44, 77, 52, 0.95) 65%, rgba(18, 31, 21, 0.96) 100%);
	mix-blend-mode: normal;
	opacity: 0.85;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/

.btn-primary,
.wp-block-button__link {
	align-items: center;
	display: inline-flex;
	gap: 0.35em;
	justify-content: center;
}

.btn-primary::after,
.wp-block-button__link::after {
	content: '\f345';
	display: inline-block;
	font-family: dashicons;
	font-size: 0.9em;
	font-weight: 400;
	line-height: 1;
	transform: translateX(0);
	transition: transform 0.25s ease;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after,
.wp-block-button__link:hover::after,
.wp-block-button__link:focus-visible::after {
	transform: translateX(0.18em);
}

/*--------------------------------------------------------------
# Taxonomy Links
--------------------------------------------------------------*/

.cat-links a,
.post-terms a {
	border-radius: var(--xui-radius-xxl);
}

ul.post-list-terms li {
	display: inline-block;
	font-weight: var(--xui-font-weight-semibold);
	padding: var(--xui-space-2) var(--xui-space-3);
	text-decoration: none;
	transition: all 0.3s ease-in-out;
}

/*--------------------------------------------------------------
# Subtitles
--------------------------------------------------------------*/

.subtitle {
	align-items: center;
	color: var(--xui-gold);
	display: inline-flex;
	font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
	font-weight: 700;
	gap: 0.5rem;
	letter-spacing: 0.12em;
	line-height: 1.2;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.subtitle::after,
.subtitle.is-centered::before {
	background: currentColor;
	content: '';
	display: inline-block;
	height: 1px;
	opacity: 0.7;
	width: 2.25rem;
}

.subtitle.is-centered {
	justify-content: center;
	text-align: center;
}

/*--------------------------------------------------------------
# Images
--------------------------------------------------------------*/

.round-icon {
	align-items: center;
	background: var(--xui-pale-sage);
	border-radius: 999px;
	display: inline-flex;
	height: 5.5rem;
	justify-content: center;
	margin-bottom: 1.25rem;
	width: 5.5rem;
}

.foliage-bkg {
	bottom: 0;
	opacity: 0.15;
	position: absolute;
	right: 0;
}

.foliage-bkg.left {
	left: -0.75rem;
	right: auto;
}

.foliage-bkg img {
	width: 8rem;
}

/*--------------------------------------------------------------
# Staff
--------------------------------------------------------------*/

.staff-image,
.staff .staff__photo img {
	border: 0.55rem solid var(--xui-gold);
	border-radius: 999px;
}

.staff .staff__content {
	margin-bottom: 2.5rem;
	text-align: center;
}

/*--------------------------------------------------------------
# Separators
--------------------------------------------------------------*/

.wp-block-separator.divider-leaf {
	background-color: transparent !important;
	background-image: url('/wp-content/uploads/divider-leaf.png') !important;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 4.5rem auto;
	border: 0;
	height: 4.75rem;
	margin: var(--xui-space-4) auto var(--xui-space-5);
	max-width: 100%;
	overflow: visible;
	position: relative;
}

.wp-block-separator.divider-leaf::before,
.wp-block-separator.divider-leaf::after {
	background: var(--xui-neutral-300);
	content: '';
	height: 1.5px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: calc(50% - 2.25rem);
}

.wp-block-separator.divider-leaf::before {
	left: 0;
}

.wp-block-separator.divider-leaf::after {
	right: 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
}

#footer footer {
	position: relative;
	z-index: 1;
}

#footer .h4 {
	color: var(--xui-cream);
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	margin-bottom: 1.5rem;
	padding-bottom: 0.6rem;
	position: relative;
}

#footer .h4::after {
	background: var(--xui-secondary);
	border-radius: 2rem;
	bottom: .15rem;
	content: '';
	height: 0.125rem;
	left: 0;
	position: absolute;
	width: 2.25rem;
}

#footer .footer-widgets__row {
	--bs-gutter-x: 2rem;
}

#footer .footer-widgets__row > .column:first-child {
	padding-left: 0;
}

#footer .footer-widgets__row > .column:last-child {
	padding-right: 0;
}

@media (max-width: 767.98px) {
	#footer .footer-widgets__row > .column:first-child {
		padding-left: calc(var(--bs-gutter-x) * 0.5);
	}

	#footer .footer-widgets__row > .column:last-child {
		padding-right: calc(var(--bs-gutter-x) * 0.5);
	}
}

/* Decorative footer logo */
#footer footer > svg {
	height: auto;
	max-height: none;
	opacity: 0.02;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translate(12%, -50%);
	width: clamp(10rem, 28vw, 25rem);
	z-index: -1;
}

/* Keep footer content above the SVG */
#footer .footer-widgets,
#footer .ft-copy {
	position: relative;
	z-index: 2;
}

/* Footer widget column layout */
#footer .footer-widgets .row {
	align-items: start;
	display: grid;
	gap: clamp(2rem, 5vw, 6rem);
	grid-template-columns: minmax(18rem, 1.4fr) minmax(10rem, 0.75fr) minmax(10rem, 0.65fr) auto;
}

/* Override Bootstrap column widths inside the footer */
#footer .footer-widgets .column {
	flex: none;
	max-width: none;
	width: auto;
}

#footer .footer-widgets .column:nth-child(2),
#footer .footer-widgets .column:nth-child(3) {
	justify-self: start;
}

#footer .footer-widgets .column:nth-child(4) {
	justify-self: end;
}

@media (max-width: 991.98px) {
    #footer .column .h4 {
        margin-bottom: var(--xui-space-2);
    }
    
	#footer footer > svg {
		top: 58%;
		transform: translate(18%, -50%);
		width: clamp(18rem, 60vw, 28rem);
	}

	#footer .footer-widgets .row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: .75rem;
	}

	#footer .footer-widgets .column:nth-child(1) {
		grid-column: 1 / -1;
	}

	#footer .footer-widgets .column:nth-child(4) {
		justify-self: start;
	}
	
	#footer .column ul li {
        line-height: 1.5;
    }
}

@media (max-width: 767.98px) {
	#footer footer > svg {
		transform: translate(12%, -50%);
		width: clamp(16rem, 85vw, 24rem);
	}

	#footer .footer-widgets .row {
		grid-template-columns: 1fr;
	}

	#footer .footer-widgets .column:nth-child(4) {
		justify-self: start;
	}
}
