/*
 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
*/

.semibold {
	font-weight: 600;
}

:root {
	--wp--preset--shadow--natural: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#footer {
	position: relative;
	overflow: hidden;
}

#footer footer {
	position: relative;
	z-index: 2;
}
#footer #menu-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: clamp(0.75rem, 3vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: clamp(0.95rem, 1.5vw, 1.25rem);
}

#footer #menu-footer li {
	margin: 0;
}

#footer #menu-footer a {
	display: inline-block;
	text-decoration: none;
	line-height: 1.4;
	padding: 0.25rem 0;
	text-align: center;
}

/* Optional: stack neatly on very small screens */
@media (max-width: 480px) {
	#footer #menu-footer {
		flex-direction: column;
		gap: 0.75rem;
	}
}

/* Desktop only */
@media (min-width: 1200px) {
	.header__navbar-container {
		display: flex;
		align-items: center;
	}

	/* logo left */
	.header__logo {
		flex: 0 0 auto;
	}

	/* collapsed area takes remaining width */
	#header-menu.navbar-collapse {
		display: flex !important;
		align-items: center;
		flex: 1;
	}

	/* menu centered */
	.header__navbar-menu {
		display: flex;
		justify-content: center;
		flex: 1;
		margin: 0;
	}

	/* button right */
	#header-menu .buttons {
		margin-left: auto;
		flex: 0 0 auto;
	}
}

.wp-block-button__link.has-white-background-color:hover {
	background: transparent !important;
	border: 2px solid var(--xui-white);
	color: var(--xui-white) !important;
}

/* =========================
   GRAVITY FORM
   ========================= */
#gform_wrapper_2 .gfield_label,
#gform_wrapper_2 .gform_required_legend,
#gform_wrapper_2 .gfield_description {
	font-size: 0.95rem;
	line-height: 1.35;
	color: #24346b;
	font-weight: 600;
}

.gform_required_legend {
	display: none;
}

#gform_wrapper_2 .gform_fields {
	row-gap: 1.25rem;
	column-gap: 1.25rem;
}

#gform_wrapper_2 .gform_footer {
	margin-top: 1.5rem;
	padding: 0;
}

#gform_wrapper_2 input[type='text'],
#gform_wrapper_2 input[type='email'],
#gform_wrapper_2 input[type='tel'],
#gform_wrapper_2 input[type='number'],
#gform_wrapper_2 input[type='url'],
#gform_wrapper_2 input[type='password'],
#gform_wrapper_2 textarea,
#gform_wrapper_2 select {
	appearance: none;
	-webkit-appearance: none;
	background: #ffffff;
	border: 1px solid #d8dceb;
	border-radius: 0.25rem;
	min-height: 3.5rem;
	padding: 1rem;
	font-size: 1rem;
	line-height: 1.3;
	color: #24346b;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}

#gform_wrapper_2 input::placeholder,
#gform_wrapper_2 textarea::placeholder {
	color: #7c88b8;
}

#gform_wrapper_2 input:focus,
#gform_wrapper_2 textarea:focus,
#gform_wrapper_2 select:focus {
	outline: none;
	border-color: #556cc9;
	box-shadow: 0 0 0 0.25rem rgba(85, 108, 201, 0.14);
}

/* Select arrow */
#gform_wrapper_2 select {
	padding-right: 3rem;
	background-image:
		linear-gradient(45deg, transparent 50%, #4a5eab 50%),
		linear-gradient(135deg, #4a5eab 50%, transparent 50%);
	background-position:
		calc(100% - 1.15rem) calc(50% - 0.1rem),
		calc(100% - 0.85rem) calc(50% - 0.1rem);
	background-size: 0.4rem 0.4rem;
	background-repeat: no-repeat;
}

#gform_wrapper_2 .gform_button.button,
#gform_wrapper_2 input[type='submit'] {
	appearance: none;
	background: var(--xui-secondary);
	border-radius: 0.25rem;
	min-height: 2rem;
	padding: 0.9rem 1.35rem;
}

#gform_wrapper_2 input[type='submit']:hover {
	background: var(--xui-secondary-dark);
}

.gform_confirmation_message {
	background: #f2f5ff;
	padding: 1.5rem;
	font-style: italic;
	border-radius: 0.5rem;
}

/* Hero slant */
@media (min-width: 992px) {
	.hero-section,
	#title-block {
		position: relative;
		overflow: hidden;
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 36px));
	}

	/* Footer */
	#footer,
	.slant {
		position: relative;
		background: var(--xui-secondary);
		margin-top: 4rem;
		clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
		padding-top: 3rem;
		color: #fff;
	}
}

@media (max-width: 991.98px) {
	.footer-logo {
		text-align: center;
		margin: 0 auto;
	}
}

/* Logo */
#footer .kadence-columnf8b1bc-3a img {
	width: 220px !important;
	margin: 0 auto;
	display: block;
}

/* Footer nav */
#footer .menu-footer-container .menu a {
	text-decoration: none;
	font-size: 1.05rem;
	font-weight: 500;
}

#footer a:hover,
#footer a:focus {
	color: #ffffff !important;
	opacity: 0.75;
}

/* Footer bottom row */
#footer .ft-copy {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 1.25rem;
	padding-top: 1.25rem;
}

#footer .ft-copy .d-flex {
	align-items: center;
	gap: 1rem 1.5rem;
}

#footer .site-info {
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.98rem;
	line-height: 1.5;
	text-align: left;
}

#footer .site-info a {
	color: #fff;
	text-decoration: underline;
}

/* Social icons */
#footer .social-media {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
}

#footer .social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	transition: all 160ms ease;
}

#footer .social-icon:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.34);
	background: rgba(255, 255, 255, 0.06);
}

#footer .social-icon svg {
	width: 0.95rem;
	height: 0.95rem;
	fill: currentColor;
}

#footer .social-link:first-child svg {
	width: 0.82rem;
	height: 0.82rem;
}

@media (max-width: 991.98px) {
	#footer .ft-copy .d-flex {
		text-align: center;
	}

	#footer .site-info {
		text-align: center;
	}

	#footer .social-media {
		justify-content: center;
		margin-top: 0.75rem;
	}
}

@media (max-width: 767px) {
	#footer .social-media {
		gap: 0.625rem;
	}
}
