/*
Theme Name: WP Dave
Author: Dave McCourt
Author URI: https://www.bananadesign.co.uk/
Text Domain: wpdave
*/


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

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: AmicaProRegular !important;
}

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-family: AmicaProBold;
	font-weight: 700;
}

mark {
	background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary) 100%);
	background-position: 0 85%;
	background-repeat: repeat-x;
	background-size: 100% 15%;
}

/* 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;
}

/* Group
--------------------------------------------- */

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

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

/* Image
--------------------------------------------- */

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

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

/* List
--------------------------------------------- */

.is-style-no-disc {
	list-style-type: none;
	padding-left: 0;
}

/* Navigation
--------------------------------------------- */

.wp-block-navigation__responsive-container.is-menu-open {
	padding-bottom: 30px;
	padding-top: 30px
}

.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--contrast);
	border: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
	padding: 2px 10px;
}

/* Quote
--------------------------------------------- */

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

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

/* Custom styles
---------------------------------------------------------------------------- */

H2 + h2 {
	margin-top: 0 !important;
}

body .is-layout-flow > * + * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.chevrons {
	background-image: url(assets/images/chevron2.svg);
	background-repeat: repeat-x;
	background-position-y: bottom;
}

.services-list h3 {
	margin-bottom: 0.125rem !important;
}

.services-list p {
	font-size: 1rem !important;
}

.services-list .wp-block-column {
	padding-left: 1rem;
	margin-bottom: 1.25rem;
	border-left: solid 1px var(--wp--preset--color--primary);
}


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

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

	/* Columns
	--------------------------------------------- */

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

}

@media only screen and (min-width: 800px) {

	/* Navigation Link
	--------------------------------------------- */

	.wp-block-navigation-item.is-style-outline a {
		border: 1px solid currentColor;
		padding: 8px 15px;
	}

}
	
.faqs h3 {
	position: relative;
	display: block;
	cursor: pointer;
	padding: 1rem 1.5rem;
	margin: 0;
	border-left: solid 1px var(--wp--preset--color--primary);
	border-right: solid 1px var(--wp--preset--color--primary);
	border-bottom: solid 1px var(--wp--preset--color--primary);	
	border-top: none;	
}

.faqs h3.active:after {
	transform: rotate(0);
}

.faqs h3:after {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	display: block;
	content: '';
	width: 1rem;
	height: 1rem;
	background: url(./assets/images/toggle-arrow.svg) no-repeat;
	-webkit-transform: rotate(-90deg);
	-moz-transform: rotate(-90deg);
	-ms-transform: rotate(-90deg);
	-o-transform: rotate(-90deg);
	transform: rotate(-90deg);

}

.faqs .accordiony {   
	display: none;
	background-color: #eff0fc;
	margin: 0;
	padding: 1.5rem 1.5rem 1rem 1.5rem;
	border-top: none;
	border-left: solid 1px var(--wp--preset--color--primary);
	border-right: solid 1px var(--wp--preset--color--primary);
	border-bottom: solid 1px var(--wp--preset--color--primary);
}

.faqs h3:first-of-type {
	border-top: solid 1px var(--wp--preset--color--primary);
	margin-top: 0 !important;
}

.faqs h4:first-of-type {
	margin-top: 0;
}

.faqs h4,
.faqs h5 { 
	margin: 2.5rem 0 1rem 0;
	padding: 0;
}

.faqs p {
	margin: 0 0 1rem 0;
	padding: 0;
	line-height: 1.5;
}
