/*
Theme Name: Opus Piano Academy
Template: powell
Author: Stellaractive
Version: 1.0.1
Description: A child theme for the Powell parent theme.
Text Domain: powell-child
*/


/* General  Utils */

[id] {
    scroll-margin-top: 110px;
}
/* accounts for the height of the mobile menu dropdown */
@media(max-width: 860px) {
    [id] {
        scroll-margin-top: 325px;
    }
}

a:not(.wp-element-button):hover {
    text-decoration-line: underline;
    text-decoration-color: var(--wp--preset--color--gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}
/* honestly not sure if this is necessary but on some emulators there is a slight line between
last row and the prefooter wave effect */
.margin-bottom-neg-1 {
    margin-bottom: -1px !important;
}
.black-on-gold-buttons .wp-block-button__link{
    background-color: var(--wp--preset--color--black) !important;
    color: var(--wp--preset--color--gold);
    border: solid 1px var(--wp--preset--color--black);
}

.wp-block-button__link {
    border: solid 1px var(--wp--preset--color--gold);
}

.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--black) !important;
    color: var(--wp--preset--color--gold);
    border: solid 1px var(--wp--preset--color--gold);
}

.black-on-gold-buttons .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--gold) !important;
    color: var(--wp--preset--color--black);
    border: solid 1px var(--wp--preset--color--black);
}
/* Header */
@media(max-width: 1260px) {
    header {
        padding: 0 30px;
    }
}

/* Mobile Menu */
@media (max-width: 1026px) {
	.header-row {
		height: 80px;
	}
	.desktop-main-nav {
		display: none !important;
	}
	.header-nav-group {
		display: flex;
		width: 100%;
	}
    .topbar-nav {
        display: none;
    }

	/* Mobile Menu toggle */
	#mobile-menu-toggle {
		width: 48px;
		height: 48px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		background: none;
		border: none;
		cursor: pointer;
		padding: 10px;
		position: relative;
	}

	#mobile-menu-toggle span {
		width: 100%;
		height: 4px;
		background: var(--wp--preset--color--black);
		transition: transform 0.3s, opacity 0.3s;
	}

	/* When menu is open, create an "X" effect */
	#mobile-menu-toggle.open span:nth-child(1) {
		transform: translateY(12px) rotate(45deg);
	}
	#mobile-menu-toggle.open span:nth-child(2) {
		display: none;
	}
	#mobile-menu-toggle.open span:nth-child(3) {
		transform: translateY(-12px) rotate(-45deg);
	}
	#mobile-menu-toggle.open span:nth-child(4) {
		display: none;
	}

	.mobile-nav .wp-block-buttons {
		margin: 20px 30px;
	}
	.mobile-nav ul, 
	.mobile-nav li {
		width: 100%;
	}
	.mobile-nav button,
	.mobile-nav a {
		padding: 10px 30px !important;
	}
	.mobile-nav li.current-menu-item {
		color: var(--wp--preset--color--black);
		background-color: var(--wp--preset--color--white);
	}
	.mobile-header.active {
		display: block;
	}
	header .header-btn-container {
		display: none;
	}
	.wp-block-site-logo a img {
		max-width: 150px;
	}
	.wp-block-navigation__responsive-container-content ul {
		line-height: 0.2 !important;
	}
	.footer-info a {
		text-decoration: none;
	}

	/* Mobile submenu dropdowns */
	.wp-block-navigation-submenu__toggle {
		width: 100%;
	}
	.wp-block-navigation__submenu-icon {
		position: absolute;
    	right: 20px;
	}
	.mobile-header .wp-block-navigation-submenu {
		flex-wrap: wrap;
	}
	.mobile-header .wp-block-navigation-submenu.open {
		color: var(--wp--preset--color--black);
		background-color: var(--wp--preset--color--white);
	}
	.mobile-header .wp-block-navigation-submenu.open .wp-block-navigation__submenu-icon {
		top: 18px;
    	right: 20px;
	}
	.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		position: relative;
		width: 100% !important;
		font-weight: 300;
    	padding-left: 15px;
		border: none;
	}
	.wp-block-navigation .has-child .wp-block-navigation__submenu-container [aria-expanded="true"] {
		color: #000;
	}
	.mobile-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		padding: 5px 30px !important;
		font-weight: 300;
	}
	.mobile-header .wp-block-navigation__submenu-container .wp-block-navigation-item:last-of-type .wp-block-navigation-item__content {
		padding-bottom: 10px !important;
	}
}

/* Desktop Menu */
@media (min-width: 1027px) {
	#mobile-menu-toggle {
		display: none;
	}
	.wp-block-navigation__submenu-container li:first-of-type {
        margin-top: 20px;
    }
	.wp-block-navigation__submenu-container li:last-of-type {
        padding-bottom: 10px;
    }
}
/* Home hero */
#home-hero {
    --hero-wave-height: clamp(24px, 2.25vw, 46px);
    background-color: #000;
}

#home-hero::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--hero-wave-height);
    background: url("assets/svgs/Soundwave-pattern-gold.svg?v=1") center top / 100% 100% no-repeat;
    pointer-events: none;
}

#home-hero > .wp-block-cover__image-background {
    left: auto;
    right: -10vw;
    width: 68%;
    object-position: 65% 51% !important;
}

#home-hero > .wp-block-cover__background {
    background: linear-gradient(
        90deg,
        #000 0%,
        #000 42%,
        rgba(0, 0, 0, 0.9) 50%,
        rgba(0, 0, 0, 0.45) 62%,
        transparent 78%
    ) !important;
    opacity: 1 !important;
}

@media (max-width: 781px) {
    #home-hero > .wp-block-cover__image-background {
        left: 0;
        right: 0;
        width: 100%;
        object-position: 65% 51% !important;
    }

    #home-hero > .wp-block-cover__background {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.72) 60%,
            rgba(0, 0, 0, 0.35) 100%
        ) !important;
    }
}


/* Footer */

main.wp-block-group {
    display: flex;
    flex-direction: column;
    /* dynamic view height, new to me but controls for address bar/nav controls */
    min-height: 100dvh; 
}

main.wp-block-group > .wp-block-post-content {
    flex: 1;
    width: 100%;
}


.site-footer,
footer.site-footer {
    --footer-wave-height: clamp(24px, 2.25vw, 46px);
}

.site-footer::before,
footer.site-footer::before {
    content: "";
    display: block;
    width: 100%;
    height: var(--footer-wave-height);
    background-color: var(--wp--preset--color--gold);
    /* We'll see how this goes, if they want this to go "over" pre-footer content we'll work from there
    and add a negative margin or something with a trans background */
    /* background-color: transparent; */
    background-image: url("assets/svgs/Soundwave-pattern-black.svg?v=2");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    pointer-events: none;
}
/* thank you page */
.page-id-207 footer.site-footer::before {
    background-color: transparent;
}
.footer-links {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 0;
    padding-left: 0;
    margin: 0;
}
.footer-links li {
    display: flex;
    align-items: center;
}

.footer-links li a {
    text-decoration: none;
}
.footer-links li:not(:last-child)::after {
    content: "|";
    margin: 0 10px;
    flex: 0 0 auto;
}

.copyright {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}
.copyright a {
    color: var(--wp--preset--color--gold);
    text-decoration: none;
}
.copyright a:hover {
    color: var(--wp--preset--color--gold);
}
/* Gravity form */
.gfield_required {
    color: var(--wp--preset--color--black) !important;
}
/* og maintenance form */
#gform_submit_button_1 {
    background-color: #770006 !important;
}

/*  Request Info form*/
#gform_2 .gform_footer {
    display: flex;
    justify-content: center;
}
#gform_submit_button_2 {
    border-radius: 0;
    border: 1px solid var(--wp--preset--color--black);
}
#gform_submit_button_2:hover {
    background-color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--black);
    color: var(--wp--preset--color--black);
}