/*
Theme Name: Woodlands
Theme URI: https://www.dancing-dog.co.uk/
Author: Neil Wakeling
Author URI: https://www.dancing-dog.co.uk/
Description: Custom mobile friendly theme for Woodlands Service Centre
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 0.22
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woodlands
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
 a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

h2{
    text-transform: uppercase;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 0px;
	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;
}

h1.logo-heading{
    font-size:4.6rem !important;
    line-height:80%;
}
h1.logo-heading .line-under {
	font-size:2rem;
    font-family: var(--wp--preset--font-family--primary) !important;
    letter-spacing:2px;
	position:relative;
	z-index:1;
	overflow:hidden;
}
h1 .line-under:after, h1 .line-under:before {
	position: absolute;
    top: 51%;
    overflow: hidden;
    width: 20%;
    height: 1px;
    content: '\a0';
    background-color: white;
}
h1 .line-under:after {
    margin-left: 5%;
    text-align: right;
}
h1 .line-under:before {
    margin-left: -25%;
    text-align: right;
}

b, strong { font-weight: 500; }

input, textarea, select {
    border-radius: 0px;
    line-height: normal;
    border: 1px solid #d2d2d2;
    background-color: #f8f8f8;
    margin: 2px 0 8px 0;
    padding: 18px 18px;
    width: 100%;
    font-size:1rem;
    outline: none;
}
input[type=checkbox]{
	width:auto;
	margin-right:20px;
}
input[type=submit], button[type=submit] {
	background-color: var(--wp--preset--color--sunflower);
  border-width: 0;
	border-radius:8px;
  color: var(--wp--preset--color--white);
  font-family: inherit;
  font-size: var(--wp--preset--font-size--medium);
  line-height: inherit;
  padding-top: 1rem;
  padding-right: 2.25rem;
  padding-bottom: 1rem;
  padding-left: 2.25rem;
  text-decoration: none;
    text-decoration-thickness: auto;
  text-transform: uppercase;
}

input[type=submit]:hover, button[type=submit]:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--sunflower) 85%, transparent);
  border-color: transparent;
  color: var(--wp--preset--color--base);
}

label{
	display:block;
}
input:focus, textarea:focus {
    border: 1px solid #ccc;
    -webkit-box-shadow: 0px 1px 5px rgba(130, 140, 150, 0.75);
    -moz-box-shadow: 0px 1px 5px rgba(130, 140, 150, 0.75);
    box-shadow: 0px 1px 5px rgba(130, 140, 150, 0.75);
}

header.site-header {
    position:sticky;
    width:100%;
    top:0;
    z-index:10000;
    background-color: var(--wp--preset--color--dusk-blue) !important;
	box-shadow: 0 2px 8px 0 rgba(0,0,0, 0.2);
	height: var(--wp--preset--spacing--header-offset);
    transition: all 0.3s ease;
}

header.scrolled.site-header {
    height:97px;
}

header .wp-block-site-logo {
  max-width:220px;
    transition: all 0.3s ease;
    overflow:hidden;
    height:auto
}
header.scrolled .wp-block-site-logo {
    max-width:140px;
}
header.site-header .custom-logo {
    display:block;
	max-width:100%;
    height:auto;
}

body,html{
    height:100%;
}
.wp-site-blocks {
  display:flex;
    flex-direction: column;
    justify-content: space-between;
    height:100%;
  height: auto;
}


.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.wp-block-navigation-submenu .wp-block-navigation-item) {
	border-bottom: 1px solid rgba(150,150,150,0.5);
	padding-bottom:20px;
	min-width:50vw;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background-color: #6F6F62;
	color:#fff;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content a[href="#"] {
	font-weight:400;
	cursor: default;
	pointer-events: none;
	text-transform:uppercase;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content a[href="#"]:after {
	display:inline-block;
	content:'';
	width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #fff;
  margin: 0 5px 0 24px;
}

.no-padding-top-content {
	margin-top:0;
	padding-top:0;
}

.fit-screen{
	min-height:calc(100vh - 125px) !important;
}

.is-layout-constrained > .alignwider {
  max-width: 1500px;
}

.wp-block-group.stretch-height{
    align-items: stretch;
  height: 100%;
}
.wp-block-group.stretch-height .wp-block-cover {
height:100%;
}


/* block spacings */
figure.wp-block-image {
	margin-block-start: 3.0rem;
	margin-block-end: 2.8rem;
}

ul.no-bullets li{
	list-style-type: none;
}
ul.has-columns {
	column-count: 3;
	font-size:1rem;
}
ul.has-columns.has-two-columns {
	column-count:2;
    			padding: 0;
}



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

.site-width {
	max-width:1440px;
}

.clickableblock, .clickableblock .value, .clickableblock a{
	position:absolute;
	width:100%;
	height:100%;
	margin:0;padding:0;
	top:0; left:0;right:0; bottom:0;
}

.clickableblock a{
	z-index:5;
}

.wp-block-button .has-sunflower-background-color:hover {
  background-color: color-mix(in srgb, var(--wp--preset--color--sunflower) 85%, transparent) !important;
 
}

.wpforms-field {
    margin-bottom:20px;
}
.wpforms-container .wpforms-field-label, .wp-core-ui div.wpforms-container .wpforms-field-label {
  font-weight: 300;
  font-style: normal;
}
.wpforms-container input.wpforms-field-medium, .wpforms-container select.wpforms-field-medium, 
.wpforms-container .wpforms-field-row.wpforms-field-medium, .wp-core-ui div.wpforms-container input.wpforms-field-medium, 
.wp-core-ui div.wpforms-container select.wpforms-field-medium, 
.wp-core-ui div.wpforms-container .wpforms-field-row.wpforms-field-medium,
.wpforms-container textarea {
  max-width: 80%;
}

nav.wp-block-query-pagination .page-numbers {
	padding: 4px;
}
.page-numbers.current {
    color: var(--wp--preset--color--obscure-olive);
}

footer{
	margin: 0;
}

@media (max-width: 980px){
    header .wp-block-site-logo {
  max-width: 200px;
}
    header .wp-block-social-links {
        display:none;
    }
    
    header.site-header{
        height: 128px;
    }
}


@media (max-width: 940px){
h1:where(.wp-block-heading).has-background, h2:where(.wp-block-heading).has-background, h3:where(.wp-block-heading).has-background, h4:where(.wp-block-heading).has-background, h5:where(.wp-block-heading).has-background, h6:where(.wp-block-heading).has-background {
  padding: 1.25em 0.5em;
}
}

/* Change the WordPress default css to a 900px media query */
@media (min-width: 900px) {
    .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;
    }
	
}

@media (max-width: 899px) {
	.wp-block-navigation__responsive-container-open svg {
 height: 42px!important;
  width: 42px!important;
    }
    header nav {
        order:2;
    }
    header .wp-block-social-links {
        display:block;
        order:1;
        margin-right:50px;
        margin-left:0 !important;
}
    header .wp-block-social-links  {
        padding-top:12px;
    }

@media (max-width: 780px){
    h1.logo-heading {
  font-size: 3.8rem !important;
  line-height: 80%;
        letter-spacing: 2px !important;
}
}

@media (max-width: 600px){
	h1:where(.wp-block-heading).has-background, h2:where(.wp-block-heading).has-background, h3:where(.wp-block-heading).has-background, h4:where(.wp-block-heading).has-background, h5:where(.wp-block-heading).has-background, h6:where(.wp-block-heading).has-background {
  padding: 1.25em 0;
}
    h1.logo-heading {
  font-size: 3.2rem !important;
  line-height: 96%;
        letter-spacing: 2px !important;
}
}

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

@media (max-width: 560px){
	 header .wp-block-social-links {
        display:none;
}
}