/*
Theme Name: Tree City Fall Festival Theme
Author: Josh Bower/Scheidler Web Solutions
Theme URI: https://scheidlerwebsolutions.com/
Tags: full-site-editing, block-patterns
Text Domain: tree-city-fall-festival
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 2026.05.11.16

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

p:empty {
    display: none;
}

/* ALIGNMENTS */
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ALERT BAR */
section#alert {
    text-align: center;
	color: #fff;
}

section#alert p {
    margin-block-start: 0;
    margin-block-end: 0;
    padding: 0.5em;
    font-weight: bold;
}


/* HEADER, FOOTER BORDER */
.stripe-border {
	width: 100%;
	height: 30px;
	background: repeating-linear-gradient(
		to right,
		var(--wp--preset--color--tertiary) 0%,
		var(--wp--preset--color--tertiary) 16.66%,
		var(--wp--preset--color--secondary) 16.66%,
		var(--wp--preset--color--secondary) 33.33%,
		var(--wp--preset--color--red) 33.33%,
		var(--wp--preset--color--red) 50%
	);
}


/* HEADER */
.wp-block-cover .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--content-size);
}

.wp-block-cover .wp-block-cover__inner-container h1 {
	line-height: 1.1;
	margin-top: 0;
	font-size: clamp(4rem, 3.6359rem + 0.9709vw, 5.5rem);
}

.wp-block-cover .wp-block-cover__inner-container p.cover-block-dates {
	font-size: 1.9rem;
	font-weight: 700;
	text-align: center;
	margin: 5rem 0;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}


/* HEADINGS */
h2.wp-block-heading::after {
    content: '';
    display: block;
	position: relative;
    margin-top: 15px;
    width: 50px;
    border-bottom: 2px solid var(--wp--preset--color--primary);
}


/* FOOTER */
footer {
    position: relative;
    background-color: var(--wp--preset--color--cream); /* Footer background */
    text-align: center;
}

/* Target footer when main contains a SWS block as its last descendant */
main:has(.content-section:last-child) + footer,
main:has(.call-to-action:last-child) + footer,
main:has(.members:last-child) + footer,
main:has(.icons-row:last-child) + footer, 
main:has(.locations-map:last-child) + footer, 
main:has(.parallax-scroll:last-child) + footer { 
	margin-top: 0;
}

.footer-copyright-bar {
    padding: 1.625rem 0 1.25rem;
    gap: 14px;
}

.footer-copyright-bar .is-layout-flex {
    gap: 14px;
}

.footer-sws-bar figure.wp-block-image {
    line-height: 0; /* Fix height issue for SWS Icon in Footer */
}

footer ul {
	list-style-type: none;
}

footer .wp-block-image img.wp-image-501 {
	background-color: var(--wp--preset--color--base);
}


/* NAVIGATION */
.wp-block-navigation {
    z-index: 2;
}


/* CONTACT FORM */
input.wpcf7-text {
    height: 25px;
}

input.wpcf7-submit {
    border: none;
    font-weight: bold;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base)!important;
    padding: 10px 15px;
}


/* PHOTO GALLERY */
.foogallery-album-gallery-list .foogallery-pile {
    margin: 10px 15px 15px 35px !important;
}

.foogallery-album-gallery-list .foogallery-pile h3 {
    position: relative;
    bottom: auto;
    padding-top: 10px;
    font-family: var(--wp--preset--font-family--nunito-sans);
    font-size: 1.0em;
    line-height: 1.2em;
    opacity: 1.0;
}

.foogallery-album-gallery-list .foogallery-pile h3 span {
    padding-top: 0;
	font-size: 0.65em;
}

.foogallery-album-gallery-list .foogallery-pile-inner a {
    text-decoration: none;
}

/* PDFs */
a[href$=".pdf"]::before {
    content: "";
	margin-right: 5px;
	background: url(../../plugins/download-manager/assets/file-type-icons/pdf.svg) no-repeat 0 0;
    display: inline-block;
	height: 36px;
	width: 36px;
}

.w3eden .wpdm_icon {
	min-width: 36px;
	max-width: 36px;
	width: 36px;
}

.w3eden [class*=col-] {
    padding-bottom: 15px;
}

.w3eden [class*=col-]:last-of-type {
    padding-bottom: 0;
}

/* Download Manager Update Fix 2/6/2026 */
.w3eden a {
    color: var(--wp--preset--color--primary)!important;
    text-decoration: underline!important;
	font-family: var(--wp--preset--font-family--nunito-sans)!important;
	font-size: var(--wp--preset--font-size--medium)!important;
}
.w3eden a:hover {
    color: var(--wp--preset--color--contrast)!important;
    text-decoration: none!important;
}

/*****************************************************************/
/* SWS PLUGIN BLOCKS */
/* Call To Action */
.call-to-action h2.wp-block-heading::after {
    content: '';
    display: block;
	position: relative;
    margin: 15px auto 0 auto;
    width: 120px;
    border-bottom: 4px solid var(--wp--preset--color--primary);
}

.call-to-action.has-secondary-background-color h2.wp-block-heading::after {
    border-bottom: 4px solid var(--wp--preset--color--tertiary);
}
.call-to-action.has-quaternary-background-color h2.wp-block-heading::after {
    border-bottom: 4px solid var(--wp--preset--color--tertiary);
}

/* Content Section*/
.content-section h2::after {
	margin: 0;
	border-bottom: 0;
}

.content-section.home-schedule, 
.content-section.home-downloads {
	padding: 0;
	background-color: var(--wp--preset--color--base);
	border-radius: 30px;
	border: 10px solid var(--wp--preset--color--red);
	min-height: 100%;
}

.content-section.home-schedule .wp-block-heading, 
.content-section.home-schedule p, 
.content-section.home-downloads .wp-block-heading, 
.content-section.home-downloads p, 
.home .content-section .w3eden {
	padding-left: var(--wp--preset--spacing--70);
	padding-right: var(--wp--preset--spacing--70);
}

.content-section.home-schedule h2.wp-block-heading, 
.content-section.home-downloads h2.wp-block-heading {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-align: center;
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--40);
}

.content-section.home-schedule p:first-of-type::after, 
.content-section.home-downloads p:first-of-type::after {
    content: '';
    display: block;
    position: relative;
    margin-top: 15px;
    width: 50px;
    border-bottom: 2px solid var(--wp--preset--color--primary);
}

.content-section.home-schedule h2::before, 
.content-section.home-schedule h2::after,
.content-section.home-downloads h2::before, 
.content-section.home-downloads h2::after {
    background-color: var(--wp--preset--color--base);
}

.content-section .sws-content-image img {
    max-width: 500px; /* Change based on design */
	border-radius: 35px;
}

.content-section.has-contrast-background-color *, 
.content-section.has-primary-background-color *, 
.content-section.has-secondary-background-color * {
    color: var(--wp--preset--color--base);
}

.content-section.has-secondary-background-color h2.wp-block-heading {
    color: var(--wp--preset--color--contrast);
}

.content-section:nth-child(odd) {
	background-color: var(--wp--preset--color--base);
}

.content-section:nth-child(even) {
	background-color: var(--wp--preset--color--light-gray);
}

.content-section h2 {
	color: var(--wp--preset--color--primary);
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.content-section:nth-child(odd) h2 {
	color: var(--wp--preset--color--secondary);
}

.content-section h2::before, 
.content-section h2::after {
	content: "";
	flex-grow: 0;
	width: 50px;
	height: 2px;
	background-color: var(--wp--preset--color--secondary);
}

.content-section:nth-child(odd) h2::before, 
.content-section:nth-child(odd) h2::after {
	background-color: var(--wp--preset--color--primary);
}

/* Events Schedule */
.content-section.events-schedule {
	padding: var(--wp--preset--spacing--70);
}

.content-section.has-primary-background-color.events-schedule *:not(h2):not(a) {
	color: var(--wp--preset--color--contrast)!important;
}

.content-section.has-primary-background-color.events-schedule a {
	color: var(--wp--preset--color--primary)!important;
}

.content-section.has-primary-background-color.events-schedule a:hover {
	color: var(--wp--preset--color--contrast)!important;
}

.content-section.events-schedule .sws-content-inner {
	background-color: var(--wp--preset--color--base);
	border-radius: 0 30px;
	border: 8px solid var(--wp--preset--color--red);
}

.content-section.events-schedule h2::before, 
.content-section.events-schedule h2::after {
	display: none;
}

.content-section.events-schedule h2 {
    color: var(--wp--preset--color--base)!important;
	background-color: var(--wp--preset--color--primary)!important;
	text-align: center;
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}

.footer-contact * {
	text-align: center;
}

.footer-contact ul.address {
    padding-left: 0;
}

.footer-contact ul.address li {
    line-height: 1.5rem;
}

.footer-contact ul.address li a {
    text-decoration: none;
}

.footer-contact ul.address li a:hover {
    color: var(--wp--preset--color--base);
    text-decoration: underline;
}

/* Applies to all SWS Blocks */
/* Hide empty space if a SWS Block is directly after header */
main:has(.entry-content):has(.content-section:first-child), 
main:has(.entry-content):has(.members:first-child), 
main:has(.entry-content):has(.call-to-action:first-child), 
main:has(.entry-content):has(.icons-row:first-child), 
main:has(.entry-content):has(.locations-map:first-child), 
main:has(.entry-content):has(.parallax-scroll:first-child) {
    padding-top: 0!important;
    margin-block-start: 0;
}

/* Hide empty space if a SWS block is followed by another SWS block */
.content-section ~ .content-section, 
.content-section ~ .members, 
.content-section ~ .call-to-action, 
.content-section ~ .icons-row, 
.content-section ~ .locations-map, 
.content-section ~ .parallax-scroll,
.members ~ .members, 
.members ~ .content-section, 
.members ~ .call-to-action, 
.members ~ .icons-row, 
.members ~ .locations-map,
.members ~ .parallax-scroll,
.call-to-action ~ .call-to-action, 
.call-to-action ~ .content-section, 
.call-to-action ~ .members, 
.call-to-action ~ .icons-row, 
.call-to-action ~ .locations-map, 
.call-to-action ~ .parallax-scroll,
.icons-row ~ .icons-row, 
.icons-row ~ .content-section, 
.icons-row ~ .members, 
.icons-row ~ .call-to-action, 
.icons-row ~ .locations-map, 
.icons-row ~ .parallax-scroll,
.locations-map ~ .locations-map, 
.locations-map ~ .content-section, 
.locations-map ~ .members, 
.locations-map ~ .call-to-action, 
.locations-map ~ .icons-row, 
.locations-map ~ .parallax-scroll, 
.parallax-scroll ~ .parallax-scroll, 
.parallax-scroll ~ .content-section, 
.parallax-scroll ~ .members, 
.parallax-scroll ~ .call-to-action, 
.parallax-scroll ~ .icons-row,  
.parallax-scroll ~ .locations-map {
    margin-block-start: 0;
}


@media screen and ( max-width: 600px ) {
    
    /* Change min height of cover block to make it smaller */
    .wp-block-cover {
        min-height: 130px!important;
		padding-top: var(--wp--preset--spacing--50)!important;
		padding-bottom: var(--wp--preset--spacing--50)!important;
    }

	/* Events Schedule, Entry Forms */
	.content-section.events-schedule {
		padding: 0;
	}

	.content-section.events-schedule .sws-content-inner {
		border: 0px;
	}

	iframe[src*="facebook.com"] {
		min-width: 320px !important;
		width: 320px !important;
	}

	.content-section.home-schedule h2::before, 
	.content-section.home-schedule h2::after, 
	.content-section.home-downloads h2::before, 
	.content-section.home-downloads h2::after {
		display: none;
	}

	.content-section.home-schedule .wp-block-heading, 
	.content-section.home-schedule p, 
	.content-section.home-downloads .wp-block-heading, 
	.content-section.home-downloads p, 
	.home .content-section .w3eden {
		padding-left: var(--wp--preset--spacing--50);
		padding-right: var(--wp--preset--spacing--50);
	}

	/* PHOTO GALLERY */
	.foogallery-album-gallery-list .foogallery-pile {
		margin: 10px 0px 15px 0px !important;
	}

}

@media screen and ( max-width: 768px ) {
    .footer-sep {
        display: none;
    }

	a.privacy-policy-link {
		display: block;
	}
}

@media screen and ( max-width: 921px ) {
    
    /* NAVIGATION */
	header > .wp-block-group {
		align-items: start;
		gap: unset;
		/*justify-content: center;*/
	}

	header > .wp-block-cover {
		margin-top: 0 !important;
	}

	/* Change icon from 2 lines to 3 lines in WP Editor */
	.wp-block-navigation__responsive-container-close, 
	.wp-block-navigation__responsive-container-open {
		background: var(--wp--preset--color--primary);
		padding: 5px;
		border-radius: 5px;
		color: var(--wp--preset--color--base);
		position: fixed;
		top: 10px;
		right: 10px;
		box-shadow: 0 0 0.50em 0.15em rgba(40, 59, 146, 0.25);
	}
	.wp-block-navigation__responsive-container-close svg, 
	.wp-block-navigation__responsive-container-open svg {
		height: 35px;
		width: 35px;
	}

	/* Mobile navigation menu block when open */
	.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
		animation: overlay-menu__fade-in-animation 0.5s ease-out;
		animation-fill-mode: forwards;
		left: unset;
		margin: 0;
		padding: 0;
		height: 100%;
		transition: transform 0.5s;
		overflow: auto;
		display: block;
		width: 75%;
		max-width: 350px;
		min-width: 320px;
		background-color: var(--wp--preset--color--light-gray);
		transform: translateX(-100%);
        z-index: 9998;
	}
	
	/* Adjust width mobile navigation shows from default of 600 to 700 */
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	
	/* Add padding to each link */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
		width: 100%;
		overflow: hidden;
	}
	
	/* Remove spacing beween main links */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
		gap: 0;
		width: 100%;
	}
	
	/* Add site logo before navigation links */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container::before {
		content: "";
		max-width: 100%;
		display: block;
		margin: auto auto 20px;
		height: 110px; /* Adjust based on logo size */
		width: 78px; /* Adjust based on logo size */
		background-image: url(/wp-content/uploads/2026/02/tree-city-fall-festival-2022.webp);
		background-size: contain;
		background-repeat: no-repeat;
	}
	
	/* Submenu Block */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
		padding: 0;
		width: 100%;
	}
	
	/* a tags */
	.wp-block-navigation a:where(:not(.wp-element-button)) {
		width: 100%;
		font-weight: 400;
	}
    
	/* set link color */
	.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
		color: var(--wp--preset--color--contrast);
	}
	
	/* link hover and current page */
	.wp-block-navigation a:where(:not(.wp-element-button)):hover, 
	.wp-block-navigation-item.current-menu-item > a:first-child {
		text-decoration: none;
		background-color: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--base)!important;
	}
	
	/* padding for all links */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
		padding: 5px 10px;
		padding-top: 5px!important;
		padding-bottom: 5px!important;
		width: calc(100% - 20px);
	}
	
	/* more padding for submenu links */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		padding-left: 30px;
		width: calc(100% - 40px);
	}
    
    /* add extra margin on top when admin-bar is present */
    .admin-bar .wp-block-navigation__responsive-container-close, 
	.admin-bar .wp-block-navigation__responsive-container-open, 
    .admin-bar .wp-block-navigation__container {
		margin-top: 46px !important;
    }

	/* add extra margin right to alert for menu button */
	section#alert p {
		margin-right: 55px;
	}
	
	/* FooGallery */
	.foogallery-album-gallery-list .foogallery-pile {
		z-index:1!important;
	}

	/* Home Blocks (Schedule, Entry Forms) */
	.wp-block-columns:has(.home-schedule) {
        flex-direction: column !important;
		margin-bottom: 0 !important;
    }

    .wp-block-columns:has(.home-schedule) .wp-block-column {
        flex-basis: 100% !important;
        width: 100%;
    }
}

@media screen and ( min-width: 922px ) {
    
    /* NAVIGATION */
    .wp-block-navigation {
        row-gap: 12px;
		column-gap: 2rem;
    }

	/* Divider between nav links - exclude last child */
    .wp-block-navigation ul:first-child > li:not(:last-child) {
        position: relative;
    }
    
	/* Divider between nav links - exclude last child */
    .wp-block-navigation ul:first-child > li:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -1rem; /* Half of column-gap */
        top: 50%;
        transform: translateY(-50%);
        height: 20px; /* Adjust height as needed */
        width: 1px;
        background-color: var(--wp--preset--color--primary); /* Change color as needed */
    }
    
    /* Make last link blue background, white text, round corners */
	.wp-block-navigation ul:first-child > li:last-child a {
		background-color: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--base)!important;
		font-weight: 700;
		text-transform: uppercase;
		padding: 0.2rem 1.0rem;
		border-radius: 8px;
	}
    
	/* Link hover */
	.wp-block-navigation li:where(:not(.wp-element-button)):hover {
        z-index: 3;
	}
    
	/* Z-index fix for dropdown not covering other links in nav */
    .wp-block-navigation li:where(:not(.wp-element-button)):not(:hover) {
		animation: z-index-fix 0.1s;
	}

	/* Nav link hover - exclude last-child */
	.wp-block-navigation li:not(:last-child) a:where(:not(.wp-element-button)):hover {
		text-decoration: none;
		transition: color 0.3s ease;
		border-bottom: none;
	}

	/* Animated border using ::after pseudo-element - exclude last-child */
	.wp-block-navigation li:not(:last-child) a:where(:not(.wp-element-button))::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 0;
		height: 2px;
		background-color: var(--wp--preset--color--primary);
		transition: width 0.3s ease;
	}

	/* Expand border on hover - exclude last-child */
	.wp-block-navigation li:not(:last-child) a:where(:not(.wp-element-button)):hover::after {
		width: 100%;
	}

	/* Submenu Dropdown Link */
	.wp-block-navigation li.wp-block-navigation-submenu ul li:where(:not(.wp-element-button)) {
		line-height: 1.2;
		padding: 0.6rem 0;
	}

	/* Submenu Dropdown Link Hover */
	.wp-block-navigation li.wp-block-navigation-submenu ul li:where(:not(.wp-element-button)):hover {
		transform: none;
		background-color: var(--wp--preset--color--primary);
        color: var(--wp--preset--color--base);
	}

	/* Submenu Dropdown Container */
	.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
		border-top: 0px solid var(--wp--preset--color--primary);
        min-width: 250px;
	}
    
    .wp-block-navigation .wp-block-page-list {
		row-gap: 10px;
	}



	/* STICKY NAVIGATION */
	/* Base header styles */
	header > .wp-block-group {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 999;
		background-color: var(--wp--preset--color--base);
		gap: 72px;
		transition: padding 0.3s ease, box-shadow 0.3s ease;
		padding: var(--wp--preset--spacing--50) 20px;
	}

	/* Push the hero image down so it's not hidden behind the fixed nav */
	header > .wp-block-cover {
		margin-top: var(--nav-height, 120px); /* we'll set this dynamically in JS */
		transition: margin-top 0.3s ease;
		background-color: var(--wp--preset--color--primary);
	}

	/* Smooth logo transition */
	.custom-logo {
		width: 110px;
		height: auto;
		transition: width 0.3s ease;
	}

	/* Scrolled state */
	header > .wp-block-group.scrolled {
		padding-top: var(--wp--preset--spacing--30) !important;
		padding-bottom: var(--wp--preset--spacing--30) !important;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	}

	header > .wp-block-group.scrolled .custom-logo {
		width: 65px;
	}

}

@media screen and ( max-width: 900px ) {
    footer .footer-copyright-bar {
        row-gap: 5px;
    }
    
    footer .footer-copyright-bar .is-layout-flex{
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0;
    }    
    
    footer .footer-divider {
        flex-basis: 100%;
        height: 0;
        line-height: 0;
        color: transparent;
    }
    
    footer .footer-copyright-bar * {
        text-align: center;
    }
}


@media screen and ( min-width: 950px ) {
	/* Footer Contact */
	.footer-contact .wp-block-column:nth-child(1) {
		text-align: center;
	}

	.footer-contact .wp-block-column:nth-child(2) {
		text-align: center;
	}

	.footer-contact .wp-block-column:nth-child(3) {
		text-align: center;
	}
}


@keyframes z-index-fix {
	0%, 100% {
		z-index: 1;
	}
}