/* ---------------------------------------------------------------------------------------------

	Theme Name: Davis Blocks
    Text Domain: davis-blocks
	Version: 0.2.3
	Description: Davis Blocks is a clean, simple and fast block theme built for Full Site Editing. It can be used out of the box as a lightweight blog theme, or as a foundation for greater things when customized in the Site Editor.
	Tags: blog, one-column, custom-background, custom-colors, custom-menu, editor-style, featured-images, sticky-post, threaded-comments, translation-ready, block-styles, wide-blocks, full-site-editing
	Author: Anders Norén
	Author URI: https://andersnoren.se
	Theme URI: https://andersnoren.se/teman/davis-blocks-wordpress-theme/
	License: GNU General Public License version 2.0
	License URI: https://gnu.org/licenses/gpl-2.0.html
	Requires PHP: 5.6
	Tested up to: 6.5

/* --------------------------------------------------------------------------------------------- */

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

a { text-underline-offset: .15em; }

/* Input styles */

input, textarea, select, button {
	background-color: inherit;
	border-radius: 0;
	font-family: inherit;
	font-size: inherit;
}

input, textarea, select {
	background-color: var( --wp--preset--color--background );
	border: .1rem solid var( --wp--preset--color--secondary );
	color: var( --wp--preset--color--foreground );
	padding: .5em;
}

/* Editor Post Title */

.editor-post-title__input { text-align: center; }

/* Block: Navigation */

.wp-block-navigation__responsive-container-close {
	right: 50%;
	transform: translateX( 50% );
}

/* Block: Search Form */

.wp-block-search__input,
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	border-color: var(--wp--preset--color--secondary) !important;
}

/* Block: Separator */

hr.is-style-davis-separator {
	border: none;
	border-bottom: .5px solid;
	border-top: .5px solid;
	overflow: visible !important;
	position: relative;
}

hr.is-style-davis-separator:before,
hr.is-style-davis-separator:after {
	background-color: var( --wp--preset--color--background );
	border: 1px solid;
	box-sizing: border-box;
	content: "";
	height: 12px;
	position: absolute;
		top: calc( 50% - 6px );
	transform: rotate( 45deg );
	width: 12px;
}

hr.is-style-davis-separator:before { left: calc( 50% - 14px ); }
hr.is-style-davis-separator:after { left: calc( 50% + 2px ); }

/* tinker */

.nav-main-top a {
	text-decoration: none;
	font-weight: 500;
	padding: 5px 5px;
}

.nav-main-top>li>a :hover {
	color: #0094b6;
}

.nav-main-top li:hover {
	background-image: url('assets/images/link-hov.png');
	background-repeat: no-repeat;
	background-size: auto;
	background-position: bottom;
}

.nav-main-top li:nth-of-type(2):hover,
.nav-main-top li:nth-of-type(3):hover,
.nav-main-top li:last-of-type:hover {
	background-image: none;
}

.contact-us-nav a {
	padding: 5px 15px;
}

.contact-us-nav {
	background: #0853ae !important;
	color: #fff;
}

.contact-us-nav :hover {
	background: #146ad5 !important;
}

.contact-us-nav>a :hover {
	color: #fff !important;
}

.learn-more-card .learn-more-btn > :hover,
.home-license-col .learn-more-btn > :hover {
	background: #00819E !important;
}

.learn-more-card .learn-more-btn > a:hover,
.home-license-col .learn-more-btn > a:hover {
	color: #fff !important;
}

.home-cards-header {
	text-shadow: 1px 5px 5px #0000008c;
}

.home-waves-container {
	background-color: #6f6f6f;
}

.footer-links a {
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.form-submit {
	background: #0853ae;
	color: #fff;
	padding: 10px 30px;
	font-weight: 600;
}

/* Submenu styles */
.wp-block-navigation__submenu-container>li {
	color: #000;
	text-transform: uppercase;
}

.wp-block-navigation__submenu-container>li:hover {
	background: #0853ae;
	color: #fff;
}

.wp-block-navigation__submenu-container>li:hover {
	background-image: none;
}

/* mobile */
body>div.wp-site-blocks>header>div>div>div:nth-child(2)>nav>button>svg {
	width: 36px;
	height: 36px;
}

@media (max-width: 781px) {
	.footer-links {
		justify-items: center;
		align-items: center;
		border-right: none;
	}

	.footer-logo-cont {
		display: flex;
		justify-content: center;
	}

	.footer-social {
		display: flex !important;
		justify-content: center !important;
	}
	
	.wp-block-navigation__submenu-container>li {
		margin: 0;
		padding: 0;
	}
	
/* 	.home-hero-header {
		height: 60vh;
	} */
	
	/* Target mobile submenu items */
	.wp-block-navigation__submenu-container {
	  padding-left: 1rem; /* or more depending on your design */
	}

	/* Optional: Slight spacing between submenu items */
	.wp-block-navigation__submenu-container .wp-block-navigation-item {
	  margin-top: 2rem;
	}

	/* Optional: You can style the parent label if it's not a link */
	.wp-block-navigation .wp-block-navigation-submenu__toggle {
	  font-weight: bold;
	}
}


@media screen and (max-width: 1125px) {
	.nav-main-top a {
		font-size: .8em;
	}

	.home-hero-header {
		min-height: 350px !important;
		width: auto;
	}
}

/* hide recaptcha badge */
.grecaptcha-badge { visibility: hidden; }

/* header shape */
.home-hero-header {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.home-hero-header::after {
  content: "";
  position: absolute;
  bottom: -30px; /* Pull down to create dome effect */
  left: 50%;
  transform: translateX(-50%);
  width: 150%; /* Wider than container to smooth the curve */
  height: 80px; /* Dome height */
  background-color: white;
  border-top-left-radius: 100% 150px;
  border-top-right-radius: 100% 150px;
  z-index: 2;
}