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

/* Typography */
.h1,
.h2,
.h3,
.h4 {
	font-family: var(--wp--preset--font-family--proxima-nova);
	font-weight: 700;
}

.subheading {
	font-family: var(--wp--preset--font-family--canela-deck);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: .5rem;
	position: relative;
}

@media (min-width: 768px) {
	.subheading-image:before {
		background-image: url('/wp-content/themes/uptown-child-charity/assets/img/circle-text.svg');
		background-size: contain;
		background-repeat: no-repeat;
		content: "";
		height: 120px;
		left: -60px;
		position: absolute;
		top: -65px;
		width: 120px;
		vertical-align: middle;
	}
}

/* Navigation */
.header .header__wrapper .active a {
	color: var(--wp--preset--color--primary) !important;
}

span.header__search-icon.dashicons.dashicons-search {
    margin-right: 1rem;
}

/* Buttons */
.is-style-outline .wp-block-button__link:hover {
	border: 1px solid var(--wp--preset--color--primary);
}

/* Search */
button.wp-block-search__button.wp-element-button:hover {
	background: var(--wp--preset--color--body);
	border-color: var(--wp--preset--color--body);
	color: var(--wp--preset--color--white);
}

/* Clients */
.client {
	max-width: 325px;
}

@media (max-width: 767.98px) {
/* Ensure the slider container adapts properly */
	.client-carousel .slick-slide {
		margin: 0 !important;
		padding: 0 !important;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

@media (min-width: 768px) {
	.client-carousel .slick-slide .client {
		margin-top: 2.5rem;
		padding: 0;
	}

	.client-carousel .slick-track {
		width: 100% !important;
	}

	.client-carousel .slick-slide {
		width: 33% !important;
	}
}

#uptown-clients h3 {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

/* Our work */
.post-item-wrapper {
    height: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.post-item-wrapper .post-img {
    display: block;
    height: auto;
    transition: transform 0.3s ease-in-out;
    width: 100%;
	will-change: transform;
}

/* Image zoom effect on hover */
.post-item-wrapper:hover .post-img {
    transform: scale(1.1);
}

.post-item-wrapper a {
	cursor: pointer;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Adjust post title margin */
.post-item .post-title {
    margin-top: 1.5rem;
}

/* Title Block */
#title-block.img-bkg a:hover {
	color: var(--wp--preset--color--white);
}

/* Lists */
.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.inline-list li {
    display: inline;
}

.inline-list li:not(:last-child)::after {
    content: ',';
}

.list-unstyled {
	margin: 0;
	padding: 0
}

.list-unstyled li {
	list-style: none;
}

/* Hero */
.hero__down-text {
	font-weight: 700;
	text-transform: uppercase;
}

.animate-logo {
	height: 100px;
	overflow: visible;
	position: relative;
	width: 100px;
}

.animate-logo__outer-text,
.animate-logo__inner-text {
	position: absolute;
	transform: translate(-50%, -50%);
	transform-origin: center center;
}

.animate-logo__outer-text {
	animation: rotate 30s linear infinite;
	left: 0;
	top: 0;
}

.animate-logo__inner-text {
	height: auto;
	left: 50%;
	top: 35%;
	width: 50px;
	z-index: 1;
}

@media (min-width: 767.98px) {
	.animate-logo {
		height: 200px;
		width: 200px;
	}

	.animate-logo__inner-text {
		top: 40%;
		width: 105px;
	}
}

@media (min-width: 992px) {
	.animate-logo {
		height: 275px;
		width: 275px;
	}

	.animate-logo__inner-text {
		top: 47%;
		width: 145px;
	}
}

@media (min-width: 1200px) {
	.animate-logo {
		width: 300px;
		height: 300px;
	}

	.animate-logo__inner-text {
		width: 160px;
	}
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* Content Navigation */
.sidebar-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	right: 1rem;
	text-align: right;
}

.sidebar-nav li {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	text-align: right;
	text-transform: lowercase;
}

@media (max-width: 767.98px) {
	.sidebar-nav {
		padding: 1rem;
	}

	.sidebar-nav li {
		display: inline-block;
		margin-right: 2rem;
	}
}

.sidebar-nav li a,
.sidebar-nav li a:visited {
	color: var(--wp--preset--color--medium-primary);
}

.sidebar-nav li a::after {
	color: var(--wp--preset--color--medium-primary);
	content: '|';
	margin-left: 0.5rem;
	opacity: 1;
	position: absolute;
	transition: opacity 0.3s ease;
}

.sidebar-nav li a:hover {
	color: var(--wp--preset--color--primary);
}

.sidebar-nav li a:hover::after {
	color: var(--wp--preset--color--primary);
	content: "\f345";
	font-family: dashicons;
	opacity: 1;
	margin-left: -0.15rem;
}

/* Thumbnail cover effect */
.thumbnail-cover {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.thumbnail-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

/* Title styling - positioned at the bottom, hidden by default */
.thumbnail-cover .title {
	align-items: center;
	background-color: var(--wp--preset--color--light-primary);
	bottom: 0;
	color: var(--wp--preset--color--body);
	display: flex;
	justify-content: space-between;
	left: 0;
	line-height: 1.3;
	padding: 1.5rem;
	position: absolute;
	text-align: left;
	transition: opacity 0.3s ease;
	z-index: 2;
	width: 100%;
}

@media (max-width: 767.98px) {
	.thumbnail-cover .title {
		padding: .75rem 1rem;
	}

	.thumbnail-cover .title::after {
		opacity: 1;

	}
}

@media (min-width: 768px) {
	.thumbnail-cover .title {
		opacity: 0;
	}

	.thumbnail-cover:hover .title {
		opacity: 1;
	}
}

.thumbnail-cover .title::after {
	color: var(--wp--preset--color--primary);
	content: "\f345";
	font-family: "dashicons";
	padding-left: 10px;
	font-size: var(--wp--preset--font-size--large);
	transition: opacity 0.3s ease;
}

/* Content Links */
.sidebar a:not(.wp-block-button__link),
footer a:not(.wp-block-button__link):not(.arrow-link),
.post-list-terms li {
	color: var(--wp--preset--color--body);
	position: relative;
	text-decoration: none;
}

ul.post-list-terms .term-li {
	line-height: 2rem;
}

.sidebar a:not(.wp-block-button__link)::before,
footer a:not(.wp-block-button__link):not(.arrow-link)::before,
.term-li::before {
	background-color: var(--wp--preset--color--primary);
	bottom: -2px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	transition: width 0.3s ease;
	width: 0;
}

.sidebar a:not(.wp-block-button__link):hover::before,
footer a:not(.wp-block-button__link):not(.arrow-link):hover::before,
.term-li:hover::before {
	background-color: var(--wp--preset--color--primary);
	width: 100%;
}

/* Post */
.post-meta ul.post-terms {
	display: inline;
	line-height: 1;
}

.post-meta ul.post-terms a {
	background: none;
	color: var(--wp--preset--color--body);
	font-size: inherit;
	padding: 0;
}

.post-meta ul.post-terms a:hover {
	color: var(--wp--preset--color--primary);
}

.post-meta span {
	display: inline-block;
	padding: 0 .25rem;
}

.excerpt-body .entry-title {
	margin-bottom: var(--wp--preset--spacing--3) !important;
}

.pagination.loop-pagination {
	margin: 3.5rem 0;
}

/* Blog */
.header {
	position: relative;
}

.header__text {
	padding-right: 0;
	z-index: 1;
}

.header__img {
	left: 50%;
	height: 100%;
	margin-right: -50vw;
	position: absolute;
	right: 0;
	top: 0;
	width: 100vw;
	z-index: 0;
}

/* Image Link Hover */
.image-hover-link {
	background-color: rgb(241, 237, 252);
	cursor: pointer;
	overflow: hidden;
	position: relative;
	transition: background-color 0.5s ease;
}

.image-hover-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: var(--hover-background-image);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	transition: opacity 1s ease;
	z-index: 0;
}

.image-hover-link.hover-active::before {
	opacity: 1;
}

.image-hover-link .container {
	padding: 3.5rem 1.5rem;
	position: relative;
	z-index: 1;
}

.image-hover-link .image-hover-link__content {
	bottom: 1.5rem;
	left: 0;
	opacity: 0;
	padding: 1.5rem;
	position: absolute;
	right: 0;
	top: 1.5rem;
	transition: opacity 1s ease;
}

.image-hover-link:hover::before {
	opacity: 1;
}

.image-hover-link h3 {
	color: #F79C92;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--x-large);
}

.image-hover-link__content p:last-of-type {
	margin-bottom: 0;
}

.image-hover-link__content.show {
	opacity: 1;
}

.image-hover-link__title {
	text-transform: capitalize;
	font-size: var(--wp--preset--font-size--large);
	transition: opacity 1s ease;
}

.image-hover-link__title.hide {
	opacity: 0;
}

.image-hover-link__content h3 {
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
}

@media (max-width: 767.99px) {
	h3.image-hover-link__title {
		font-size: var(--wp--preset--font-size--large);
	}

	.image-hover-link .container {
		padding: 2rem 1.5rem;
		position: relative;
		z-index: 1;
	}

	.image-hover-link.hover-active::before,
	.image-hover-link .image-hover-link__content {
		opacity: 0;
	}
}

/* Testimonials */
.testimonial-carousel,
.testimonial-carousel .testimonial-info a {
	color: #ffffff;
}

.testimonial-quote p {
	font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.75rem) !important;
	line-height: 1.2;
	text-align: center;
}

.testimonial-info h3 {
	color: #ffffff;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
	font-style: italic;
}

/* Text over image slider */
.slick-slider {
	max-width: 100%;
	margin: 0 auto;
	text-align: center;
}

.text-slider-item {
	font-size: var(--wp--preset--font-size--xx-large);
	color: var(--wp--preset--color--primary);
	display: inline-block;
	white-space: nowrap;
	padding: 0 40px;
	margin: 0;
}

.slick-center .text-slider-item {
	color: transparent;
	/* Make text color transparent when centered */
	background: url('/wp-content/themes/uptown-child-charity/assets/img/pattern.svg') no-repeat;
	background-size: 120%;
	/* Enlarged background for more visible movement */
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: slideBackground 5s linear infinite;
	/* Controls the sliding effect */
}

/* Gravity Forms */
.gform_button.button {
	--gf-local-radius: 0 !important;
	--gf-ctrl-btn-font-size: var(--wp--preset--font-size--x-small);
	--gf-local-bg-color: var(--wp--preset--color--primary) !important
}

input,
select {
	--gf-local-radius: 0 !important;
}

/* Position the label inside the input field initially */
.gform_wrapper .gfield {
    position: relative;
}

.gform-theme--api, .gform-theme--framework {
	--gf-label-space-primary: .15rem;
}

label.gfield_label.gform-field-label,
legend.gfield_label.gform-field-label.gfield_label_before_complex {
	font-weight: 700;
}

/* Input styles */
.gform_wrapper .gform_body .gform_fields .gfield input[type="text"],
.gform_wrapper .gform_body .gform_fields .gfield input[type="email"],
.gform_wrapper .gform_body .gform_fields .gfield input[type="url"],
.gform_wrapper .gform_body .gform_fields .gfield input[type="tel"],
.gform_wrapper .gform_body .gform_fields .gfield input[type="number"],
.gform_wrapper .gform_body .gform_fields .gfield input[type="password"],
.gform_wrapper .gform_body .gform_fields .gfield select,
#mc_embed_signup .mc-field-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--wp--preset--color--body);
	border-radius: 0;
    box-shadow: none;
    padding: 0;
    color: #000;
    z-index: 2;
}

.gform_wrapper .gfield_checkbox  {
	margin-top: .5rem;
}

label.gfield_label.gform-field-label {
	color: #444;
}

div#field_2_7 {
	margin-top: 1rem;
}

/* Mailchimp */
#mc_embed_signup .button {
	background-color: var(--wp--preset--color--primary);
	border: none;
	color: #fff;
	font-family: var(--wp--preset--font-family--proxima-nova-condensed);
	font-size: var(--wp--preset--font-size--x-small);
	height: auto;
	letter-spacing: .05rem;
	line-height: 1;
	padding: var(--wp--preset--spacing--3);
	text-transform: uppercase;
}

#mc_embed_signup div.mce_inline_error {
	background: none !important;
	color: var(--wp--preset--color--primary) !important;
	padding: 0 !important;
	margin-top: .25rem !important;
}

.indicates-required {
	text-align: right;
	font-size: var(--wp--preset--font-size--x-small);
}

#mc_embed_signup .button:hover {
	background: var(--wp--preset--color--body);
}

.mc-field-group {
	margin-bottom: 1.5rem;
}
.mc-field-group label {
	display: block;
}

.mc-field-group input {
	width: 100%
}

div#mce-responses {
    background: #e7f0f1;
    margin-bottom: 1rem;
	padding: 1rem;
}

/* General Reset for Vimeo Embed */
.wp-block-embed {
	margin: 0 !important;
	padding: 0 !important;
}

.wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	overflow: hidden;
}

.wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 55%;
    overflow: hidden;
	margin-bottom: 1.5rem;
}

.video-wrapper iframe,
.video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Accordion */
.ordered-accordion {
	counter-reset: accordion-counter 0;
	/* Start counter at 0 */
}

.ordered-accordion .kt-accordion-pane .kt-blocks-accordion-title::before {
	content: "0" counter(accordion-counter) " ";
	/* Add leading zero */
	counter-increment: accordion-counter;
	/* Increment the counter */
	font-family: var(--wp--preset--font-family--canela-deck);
	color: var(--wp--preset--color--medium-primary);
	font-weight: 900;
	margin-right: 1rem;
	font-size: var(--wp--preset--font-size--medium);
}

.ordered-accordion .kt-accordion-pane .kt-blocks-accordion-title {
	font-size: var(--wp--preset--font-size--medium);
}

/* Other */
.max-width-800 {
	margin: auto;
}

.red-border {
	background: var(--wp--preset--color--light-primary);
	border: 1px solid var(--wp--preset--color--primary);
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Start slightly moved down */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Move into position */
    }
}

body {
	font-family: var(--wp--preset--font-family--proxima-nova);
}

.wp-block-kadence-iconlist.no-icon .kb-svg-icon-wrap {
	display: none !important;
}

/* Load more posts */
.post-list-wrapper .post-item {
    display: inline-block;
    max-width: 450px; /* Optional: Prevent excessive stretching */
    overflow: hidden;
    position: relative;
    width: 100%;
}

.post-item-wrapper {
	margin-bottom: 1rem;
	position: relative;
}

.post-item-wrapper::before {
    background: linear-gradient(to top, rgba(18, 49, 58, 1) 0%, rgba(18, 49, 58, 0.55) 50%, rgba(18, 49, 58, 0) 100%);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
    transition: opacity 0.6s ease-in-out;
}

.post-item-wrapper::after {
    background: rgba(18, 49, 58, 0.45);
    content: "";
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.6s ease-in-out;
    width: 100%;
    z-index: 2;
}

.post-item-wrapper:hover::after {
    opacity: 1;
}

.post-list-wrapper .post-title {
    bottom: 0;
    color: #fff;
    font-size: var(--wp--preset--font-size--small);
    left: 50%;
    padding: .5rem;
    position: absolute;
    text-align: center;
    text-decoration: none;
    transform: translateX(-50%);
    width: 90%;
    z-index: 3;
}

.post-list-wrapper .post-item {
	text-align: center;
}

.post-list-wrapper .post-item .post-terms li {
	font-size: var(--wp--preset--font-size--x-small);
	padding-bottom: 0;
}

.post-list-wrapper .post-item h4 {
	font-weight: 700;
	margin-bottom: 0;
}

.post-list-wrapper a h3.post-title {
	color: #fff;
}
