/*
Theme Name: DS Blocks
Theme URI: 
Author: expotype
Author URI: 
Description: Custom Block Theme
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.01
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dsblocks
Tags: Block Editor Patterns, Site Editor

/*  Smooth Scroll */

html {
  scroll-behavior: smooth;
}

b,
strong,
th {
	font-weight: 600;
}

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

/* Wrap headlines */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}


/* Remove padding WP adds by default */
:where(.wp-block-columns.has-background) {
  padding: initial;
}

/* Pull Quote */
.wp-block-pullquote blockquote {
  display: grid;
  gap: 20px;
}

.wp-block-pullquote cite {
  font-size: 80%;
  font-weight: 600;
}

/* Search Block */
.wp-block-search__input {
  border: 1px solid;
}

.wp-block-search__button {
  box-shadow: none;
  border: 1px solid var(--wp--preset--color--custom-off-black);
  border-radius: 0;
  color: white;
  padding: 0.4rem 1rem 0.5rem 1rem;
  font-weight: 500;
}

/* Comments */
.comment-form-cookies-consent {
  font-size: 14px;
  line-height: 2;
}

.wp-block-post-title :where(a) {
  color: var(--wp--preset--color--custom-off-black);
}

/* Button hover state  - core button block still does not have this and I can't figure out how to do it in theme.json! */
.wp-block-button__link,
a {
  transition: 0.25s;
  cursor: pointer;
}


.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--wp--preset--color-transparent);
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
  border-width: 1px;
  border-radius: 50px;
  box-shadow: none;
  padding-top: 0.75rem;
  padding-right: 3.5rem;
  padding-bottom: 0.75rem;
  padding-left: 3.5rem;


}

.wp-block-button.is-style-fill .wp-block-button__link:hover,
#commentform .form-submit.wp-block-button input:hover {
  background: var(--wp--preset--color--custom-orange);
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--custom-orange);
}

.wp-block-button .wp-block-button__link:hover {
  background: var(--wp--preset--color--custom-orange);
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--custom-orange);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--transparent);
  background: rgba(0,0,0,0.075);
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
}
/*
a:hover:not(.wp-block-site-title a, .wp-block-button__link.wp-element-button) {
  text-decoration: underline !important;
}
*/

ul {
    padding: 0;
}
ul.checkmark li {
    list-style-type: "\2713";
	padding-left: .5em;
    margin-bottom: .25em;

}
.checkmark li::marker {
    color: #d97d3c;
	font-weight: 700;
	-webkit-font-smoothing: antialiased;
}

/* -- Forms -- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--off-black);
	border-radius: 1px;
	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: 0.25em 1em;
	width: 100%;
  margin-bottom: 1em;
  display: flex;
	box-sizing: border-box;
}
textarea {
  height: 120px;
}

input:focus,
textarea:focus {
	background-color: var(--wp--preset--color--off-white);
  background-color: #eaeaea;
	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;
}

.flex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

 .flex-grid span {
	flex-basis: 47.5%;
}
.wp-block-buttons>.wp-block-button {
  position: relative;
}
.wpcf7-spinner {
position: absolute;
top: 30%;
}
.wpcf7-not-valid-tip {
  position: relative;
  top: -1em;
}
/* moved from enhancements */

.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 {
  min-width: 240px;
}

/* TEMP FIX */
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container {
  width: 100%;
}

.img-width-100 img {
  width: 100%;
}

.wpcf7-not-valid-tip,
.wpcf7 form .wpcf7-response-output {
    color: #ffb900;
}

.breadcrumb--first,
.breadcrumb--first + .breadcrumbs__separator
{
  display: none;
}

input[type="submit"] {
  width: auto;
  justify-self: center;
  padding: 0.5em 5em !important;
 }

/* media-text block full-width content fix */
.wp-block-media-text>.wp-block-media-text__content {
max-width: calc(1280px /2);

}

.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content  {
margin-left: auto;
padding-left: 8%;
margin-right: 8%;
}

.wp-block-buttons {
margin: 2rem 0;
}

.round-corner-right-top {
  border-radius: 0 220px 0 0;
 }

.wp-block-columns.view-tablet .round-corner-right-top {
	padding: 2.5em;
	}	

@media (max-width: 782px) {

.flex-grid {
    display: block;
  }
	
  .wp-block-media-text__media img {
    margin-bottom: 2em;
  }		
	
.round-corner-right-top {
  border-radius: 0 !important;
 }
.wp-block-columns.view-tablet .round-corner-right-top {
	padding-top: 2em;
	padding-bottom: 2em;	
	padding-left: 8%;
	padding-right: 8%;	
	}
}

@media only screen and (max-width: 991px) {
 .wp-block-columns.view-tablet {
flex-wrap: wrap !important;
} 
	    .wp-block-columns.view-tablet:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 100% !important;
    }
		.wp-block-columns.view-tablet .round-corner-right-top {
		padding-left: 4%;
		padding-right: 2em;	
	}
}

/*  Reduced motion prefs  */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
