/*
Theme Name: twentytwentyfive-child
Theme URI: 
Author: Jeremi Lashua
Author URI: 
Description: Child theme of Twenty Twenty-Five Theme
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: twentytwentyfive-child
Tags: 
*/

/* Utility Styles */
.align-items-center .swiper-wrapper {
	align-items: center;
}
/* Hide Google Recaptcha Badge */
.grecaptcha-badge {
	display: none !important;
}
/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}
h3 strong {
	font-weight: 600;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}
/* Set the width of the header logo */
.custom-logo {
	width: 190px;
}
/* removes random 18px margin on top of paragraphs - find where that's coming from and remove this */
p {
	margin-top: 0;
}
/* Close gap above ul when after a paragraph */
p + ul.wp-block-list {
	margin-top: -15px;
}

/* Client Customizations */
#header-button,
#header-spacer {
    display: none;
}



@media (max-width: 960px) {
	/* Mobile nav hack :( */

	.wp-block-navigation__container.is-responsive.items-justified-right.wp-block-navigation {
		width: 100%;
	}
	#modal-1-content {
		padding: 12%;
	}
	.wp-block-navigation .wp-block-navigation-item__content {
		display: block;
		padding: 20px 40px;
		width: 100%;
	}	
	.wp-block-navigation-item.wp-block-navigation-link {
		display: block;
		font-size: 2rem;
		text-align: left;
		width: 100%;
	}
	.wp-block-navigation.items-justified-right {
		--navigation-layout-justification-setting: flex-start;
		--navigation-layout-justify: flex-start;
	}
	.wp-block-navigation .wp-block-navigation-item__label {
		width: 100%;
		border-bottom: 1px dotted rgba(255,255,255,.3);
		display: block;
	}
	
	.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
		fill: currentColor;
		display: block;
		height: 40px;
		pointer-events: none;
		width: 40px;
	}  
}



    
/* Change the WordPress default css to a 960px media query */
@media (min-width: 960px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block !important;
        width: 100%;
        position: relative;
        z-index: auto;
        background-color: inherit;
    }
	#header-button,
	#header-spacer {
	    display: flex;
    }
}
/* Remove the WordPress default for 600px */
@media (min-width: 600px) {
    .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;
    }
}

/* WP Overrides
--------------------------------------- */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .2em;
}

:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: dotted;
}



/* Navigation - all screen widths */
.wp-block-navigation-item.current-menu-item.wp-block-navigation-link {
	border-bottom: 2px solid #517891;
}
.wp-block-navigation-item.wp-block-navigation-link:hover {
	text-decoration: none;
}
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 0;
}

/* Force button hover */
:root :where(.wp-element-button:hover,
.wp-block-button__link:hover) {
	background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 100%, transparent) !important;
	border-color: transparent;
	color: var(--wp--preset--color--base);
}

/* Plugins 
------------------------------ */

/* Contact Form 7 */

.contact-form p {
	padding-bottom: 0;
	margin-bottom: 0;
}
.wpcf7-form-control {
	margin: 10px 0;
	padding: 10px 0;
	border: 1px solid #ddd;
	border-radius: 0;
	background-color: #f5f5f5;
	width: 100%;
}
.wpcf7-form-control.wpcf7-radio {
	background-color: transparent;
	border: 0;
}
.wpcf7-form-control.wpcf7-submit {
	padding: 15px 40px;
	border-radius: 10px;
	border: 0;
	background: #517891;
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
}
.wpcf7-form-control.wpcf7-submit:hover {
	background: #222;
}
.wpcf7-form-control.wpcf7-checkbox {
	display: block;
	margin: 5px 0;
	padding: 10px 0;
	border: 0px solid #ddd;
	border-radius: 0;
	background-color: transparent;
	width: auto;
}
body input.wpcf7-form-control.wpcf7-submit {
	width: auto;
}
