/*
Theme Name: FD Framework
Theme URI: 
Author: Frieze Design
Author URI: 
Description: Base theme for development
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: fd-framework
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks

/* Defaults
---------------------------------------- */

/* Defaults
---------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
	transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--medium);
}

/* -- Forms -- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--body);
	padding: 10px 20px;
	width: 100%;
}

input:focus,
textarea:focus {
	background-color: var(--wp--preset--color--neutral);
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

/* Blocks
---------------------------------------- */

/* -- Code -- */

*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--neutral);
	font-size: var(--wp--preset--font-size--small);
	padding: 5px 8px;
}

/* -- Navigation -- */
.current-menu-ancestor{     
	border-bottom: 2px solid var(--wp--preset--color--secondary);
}
.wp-block-navigation__responsive-close .current-menu-item {       
	border-bottom: 2px solid var(--wp--preset--color--secondary);
}
.nav-overlay .current-menu-item > a {       
	border-bottom: 2px solid var(--wp--preset--color--secondary);
}
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
    padding-block-end: 6px;
}
.nav-overlay ul li {
	font-weight: 600;
	padding-top: 8px;
	padding-bottom: 4px;
}
.nav-overlay ul li li {
	font-weight: 500;
}
.nav-overlay ul li li li{
	font-weight: 400;
}

.wp-block-navigation__responsive-container.is-menu-open.disable-default-overlay {
	background-color: var(--wp--preset--color--base);
}
.wp-block-navigation.is-vertical .wp-block-navigation .wp-block-navigation-item, .wp-block-navigation.is-vertical .wp-block-navigation__submenu-container {
	display: block !important;
}
/* Nav Breakpoint */
@media screen and (max-width: 800px) {
	.nav-overlay .current-menu-ancestor {     
	border-bottom: none !important;
	}
	.wp-block-navigation__responsive-close .current-menu-item {       
	border-bottom: none;
	}
  /* Show the hamburger button */
  .wp-block-navigation__responsive-container-open {
    display: block !important;
  }
  /* Hide the full menu, but only when the modal is closed */
  .wp-block-navigation__responsive-container:not(.is-menu-open.has-modal-open) {
    display: none !important;
  }
}
/*
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	border: 1px solid currentColor;
	padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
	color: var(--wp--preset--color--base);
}
*/
/* -- Navigation Submenu -- */
/*
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--neutral);
	color: var(--wp--preset--color--contrast);
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
	padding: 2px 10px;
	border-bottom: 1px solid var(--wp--preset--color--neutral);
}
*/
/* Containers */

.ctr, .ctr-r {
  container-type: inline-size;
  display: flex;
  width: 100%;
}
.ctr > * {
	flex-direction: column;
}
.ctr-r > * {
		flex-direction: column;
		flex-basis: 100%;
	}
/*
.ctr .ctr-left {
	flex-basis: 100%;
	min-width: 100%;
}
*/
.l-child {
	display: flex;
	flex-direction: column !important;
}
.l-child:last-child div.wp-block-buttons {
    margin-top: auto;
	padding-top: 28px;
}
@container (min-width: 520px) {
	.ctr > * {
		flex-direction: row;
		flex-basis: 100%;
	}
	/*
	.ctr .ctr-left {
		flex-basis: 38%;
		min-width: 50%;
		min-height: 100%;
	}
	*/
}
@container (min-width: 920px) {
	.ctr-r > * {
		flex-direction: row !important;
	}
}
/* Utility
---------------------------------------- */

/* -- Box Shadow -- */

.is-style-shadow-light {
	box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--solid);
}

/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 600px) {

	/* -- Utility -- */

	.is-style-hidden-mobile {
		display: none !important;
	}

}

@media only screen and (max-width: 782px) {

	/* -- Columns -- */

	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}

}
