/*
Theme Name: LD Block Theme
Author: Lawrence Davis
Author URI: https://lawrencedavis.co.uk
Requires at least: 6.1
Tested up to: 6.3
Requires PHP: 5.6
Version: 0.1
Text Domain: ld_block_theme
*/


:root {
--white-filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(1%) hue-rotate(106deg) brightness(104%) contrast(102%);
}


/* LAYOUT */

main, footer {
margin-block-start: 0;
margin-block-end: 0;
}
.has-global-padding > .alignfull > .has-global-padding, .has-global-padding, .wp-block-group.fixed-after {
padding-right: 0;
padding-left: 0;
}


/* GENERAL */

* {
box-sizing: border-box;
scroll-behavior: smooth;
scrollbar-width: thin;
scrollbar-color: #000000 #0000001a;
}
html {
scroll-behavior: smooth;
}
body {
backface-visibility: hidden;
overflow-x: clip;
}
section {
scroll-margin-top: var(--wp--preset--spacing--60);
}
a {
position: relative;
transition: all .5s;
}
a:focus {
outline: 0 !important;
}
a:focus-visible {
outline: none;
}
a:where(:not(.wp-element-button):not(.wp-block-post-title a):not(.wp-block-navigation-item__content)) {
text-decoration-thickness: 0.08em;
text-underline-offset: .15em;
}
a:where(:not(.wp-element-button):not(.wp-block-post-title a):not(.wp-block-navigation-item__content)):hover {
text-decoration-thickness: 0.08em;
text-underline-offset: .25em;
}
strong, b {
font-weight: 700;
}
ul, ol {
padding-left: 1.1em;
}
ul ul, ul ol, ol ol, ol ul {
margin-block-start: 0.5rem;
}
ul li:not(.wp-block-navigation-item):not(.blablablock-tab-btn), ol li {
margin-block-end: 0.25rem;
}


/* BLOCKS POSITIONS */

.relative {
position: relative;
}
.absolute {
position: absolute;
}
.overflow-hidden {
overflow: hidden;
}
.overflow-visible {
overflow: visible;
}
.zindex1 {
z-index: 1;
}
.zindex2 {
z-index: 2;
}


/* BREADCRUMBS */

.wp-block-breadcrumbs a {
text-decoration: none;
}
.wp-block-breadcrumbs span[aria-current="page"] {
font-weight: 700;
}


/* COLOR REFERENCE */

.has-base-color > svg path {
fill: var(--wp--preset--color--base);
}
.white-filter > img {
filter: var(--white-filter);
}
.has-gold-color > svg path {
fill: var(--wp--preset--color--gold);
}


/* HEADER */

header, #site-header {
width: 100%;
}
#site-header {
z-index: 999;
position: absolute;
}
#site-header a {
text-decoration: none;
}


/* LOGO */

#header-logo .icon-container {
max-width: clamp(200px, calc(12.5rem + ((1vw - 4.8px) * 3.2895)), 250px);
}


/* MAIN NAV */

.wp-block-navigation__responsive-container-open svg {
transform: scaleX(1.5);
pointer-events: all;
}
.wp-block-navigation a.wp-block-navigation-item__content:hover {
color: var(--wp--preset--color--contrast);
}
#main-nav .wp-block-navigation > ul.wp-block-navigation__container {
gap: 0;
}
#main-nav ul.wp-block-navigation__container li.wp-block-navigation-item {
width: 100%;
}
#main-nav ul.wp-block-navigation__container > li.wp-block-navigation-item {
border-bottom: 1px solid #ffffff66;
}
#main-nav ul.wp-block-navigation__container > li.wp-block-navigation-item.current-menu-item {
border-bottom-color: var(--wp--preset--color--gold);
border-bottom-width: 2px;
}
#main-nav ul.wp-block-navigation__container > li.wp-block-navigation-item > .wp-block-navigation-item__content {
padding: .8em 0;
width: 100%;
}
ul.wp-block-navigation__container > li.wp-block-navigation-item.wp-block-navigation-submenu {
flex-direction: column;
align-items: stretch;
}
li.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
padding: 0 1em 0 0;
}
li.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
display: block;
margin: 0;
right: 0;
top: 15px;
position: absolute;
height: 0.8em;
width: 0.8em;
transition: all 0.3s;
}
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
display: block;
width: 100%;
height: auto;
padding: 0 0 0.5em;
position: static;
border: 0 !important;
background: transparent;
}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
padding: .3em 0;
font-weight: 300;
}
#mobile-nav.wp-block-group {
width: 100%;
bottom: 0;
position: fixed;
z-index: 999999;
}


/* FORM */

.wpcf7-form p {
font-size: var(--wp--preset--font-size--small);
font-weight: 400;
margin-block-start: 0;
margin-block-end: 0.3rem;
position: relative;
}
.wpcf7-form .gdpr {
text-align: center;
}
.wpcf7-form .gdpr p {
font-size: var(--wp--preset--font-size--x-small);
}
.wpcf7-form a {
font-weight: 700;
}
.wpcf7-form label {
font-family:var(--wp--preset--font-family--league-spartan);
text-align: left;
line-height: 1.3;
}
.wpcf7-list-item-label {
font-weight: 400;
font-family:var(--wp--preset--font-family--league-spartan);
}
.req-symbol {
font-weight: 400;
color: var(--wp--preset--color--gold);
}
.wpcf7-spinner {
bottom: 0;
right: 0;
position: absolute;
margin: 0;
}
select, textarea, input[type="text"], input[type="email"], input[type="number"], input[type="tel"] {
width: 100%;
max-width: 100%;
font-family: var(--wp--preset--font-family--prata);
font-size: var(--wp--preset--font-size--small);
color: var(--wp--preset--color--contrast);
border: 0;
border-bottom: 1px solid var(--wp--preset--color--contrast);
padding: 0.5em 0;
margin: 0.3em 0 1em;
background-color: transparent;
box-sizing: border-box;
transition: all 0.5s;
}
textarea {
min-height: 1em;
}
.newsletter input[type="text"], .newsletter input[type="email"] {
border-bottom-color: var(--wp--preset--color--base);
}
textarea:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus {
border-bottom-color: var(--wp--preset--color--gold);
}
.newsletter input[type="text"]:focus, .newsletter input[type="email"]:focus {
border-bottom-color: #ffffff99;
}
textarea:focus-visible, input[type="text"]:focus-visible, input[type="email"]:focus-visible, input[type="tel"]:focus-visible, input[type="number"]:focus-visible, button:focus-visible {
outline: transparent;
}
.wpcf7-form input[type="reset"], .wpcf7-form input[type="submit"], .wpcf7-form button {
font-family: var(--wp--preset--font-family--prata);
font-size: var(--wp--preset--font-size--small);
text-transform: capitalize;
font-weight: 400;
color: var(--wp--preset--color--base);
background: var(--wp--preset--color--gold);
border: 0;
padding: 0.8em 1.2em;
margin: 0 auto;
width: auto;
display: block;
box-sizing: border-box;
appearance: none;
transition: all 0.5s;
}
.wpcf7-form input[type="reset"]:hover, .wpcf7-form input[type="submit"]:hover, .wpcf7-form button:hover {
background: var(--wp--preset--color--contrast);
color: var(--wp--preset--color--base);
}
.wpcf7-form-control::-moz-placeholder  {
color: var(--wp--preset--color--contrast);
opacity: 1;
}
.newsletter .wpcf7-form-control::-moz-placeholder {
color: var(--wp--preset--color--base);
}
.wpcf7-acceptance .wpcf7-list-item {
width: 100%;
margin-left: 0 !important;
}
.wpcf7-acceptance .wpcf7-list-item-label a {
font-weight: 700;
}
.wpcf7-form .wpcf7-not-valid-tip {
font-size: 0.9em;
font-style: oblique;
color: var(--wp--preset--color--gold);
text-transform: initial;
margin-top: 0.3em;
font-weight: 700;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output, .wpcf7 form.sent .wpcf7-response-output {
border: none;
border-top: 1px solid var(--wp--preset--color--gold) !important;
color: var(--wp--preset--color--contrast);
font-size: 0.9em;
font-weight: 700;
margin: 1em 0;
padding: 1em 0;
font-style: oblique;
text-align: center;
}


/* BLOCK UPDATES */

.wp-block-outermost-icon-block svg, .wp-block-outermost-icon-block .icon-container, .wp-block-social-links .wp-social-link,  .wp-block-social-links .wp-social-link svg, .wp-block-social-links .wp-social-link span {
transition: all 0.5s;
}
.icon-container path {
transition: all 0.5s;
}
.wp-block-outermost-icon-block a:hover {
transform: scale(1.1) !important;
}
.wp-block-separator {
border-top-width: 1px;
}
.wp-block-image.multiply img {
mix-blend-mode: multiply;
}


/* COVER UPDATES */

.wp-block-cover.contain > .wp-block-cover__image-background {
object-fit: contain;
}


/* BANNERS */

.mask.wp-block-cover {
position: relative;
}
.top-mask.wp-block-cover::before, .bottom-mask.wp-block-cover::after, .right-mask.wp-block-cover::after, .left-mask.wp-block-cover::after {
content: "";
display: block;
left: 0;
position: absolute;
width: 100%;
height: 50%;
z-index: 1;
transition: all 0.5s;
}
.top-mask.wp-block-cover::before {
top: 0;
background: linear-gradient(180deg,rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
}
.bottom-mask.wp-block-cover::after {
bottom: 0;
background: linear-gradient(180deg,rgba(0,0,0,0) 70%, rgba(0,0,0,0.8) 100%);
}
.right-mask.wp-block-cover::after {
left: unset;
right: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg,rgba(0,0,0,0) 30%, rgba(0,0,0,0.9) 100%);
}
.left-mask.wp-block-cover::after {
width: 100%;
height: 100%;
background: linear-gradient(-90deg,rgba(0,0,0,0) 30%, rgba(0,0,0,0.9) 100%);
}
.mask.wp-block-cover .wp-block-cover__inner-container {
z-index: 2;
}


/* OVERLAP */

.overlap {
position: relative;
z-index: 1;
}
.overlap.wp-block-columns {
margin-bottom: 0;
}
.overlap.right.wp-block-columns > .wp-block-column:nth-child(2),
.overlap.left.wp-block-columns > .wp-block-column:nth-child(1) {
position: relative;
z-index: 2;
}


/* ACCORDION */

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
text-decoration: none !important;
}


/* TABS */

.tabs-carousel {
overflow: clip;
}
.gutena-tabs-block > .gutena-tabs-content > .gutena-tab-block {
padding: 0;
white-space: wrap;
scroll-snap-align: end;
box-sizing: content-box;
}


/* CAROUSEL */

.cb-carousel-block {
padding-bottom: 3.5em;
}
.cb-carousel-block.overflow-carousel .swiper {
display: flex;
justify-content: center;
width: 110%;
overflow: visible;
}
.cb-carousel-block.overflow-carousel .swiper-wrapper {
/*flex: 0 0 100%;*/
width: 110%;
/*transform: translateX(-10%);*/
}
.cb-carousel-block.overflow-carousel .swiper-slide {
transition: all 0.5s;
}
.cb-carousel-block.overflow-carousel .swiper-slide:hover {
transform: scale(1.05);
}
.cb-carousel-block.overflow-carousel .wp-block-group.content {
opacity: 0;
transition: all 0.5s;
}
.cb-carousel-block.overflow-carousel .swiper-slide:hover .wp-block-group.content {
opacity: 1;
}
.cb-carousel-block.overflow-carousel .swiper-slide:hover .top-mask.wp-block-cover::before {
height: 100%;
}
.cb-carousel-block[data-cb-pagination="true"] {
padding-bottom: 2em;
}
.cb-carousel-block[data-cb-pagination="true"] .swiper-horizontal {
margin-bottom: 0;
padding-bottom: 1.5em;
}
.cb-carousel-block .cb-button-prev, .cb-carousel-block .cb-button-next {
background-color: transparent;
border: 1px solid var(--wp--preset--color--gold);
height: 40px;
width: 40px;
transition: all 0.5s;
}
.cb-carousel-block .cb-button-next, .cb-carousel-block .cb-button-prev {
top: unset;
bottom: 0;
}
.cb-carousel-block .cb-button-prev {
left: 60px;
}
.cb-carousel-block .cb-button-next {
right: unset;
left: 120px;
}
.cb-carousel-block.overflow-carousel .cb-button-prev {
left: calc(60px + 5%);
}
.cb-carousel-block.overflow-carousel .cb-button-next {
left: calc(120px + 5%);
}
.cb-carousel-block .cb-button-next::after, .cb-carousel-block .cb-button-prev::after {
margin: auto;
color: var(--wp--preset--color--gold);
}
.cb-carousel-block .cb-button-prev:hover, .cb-carousel-block .cb-button-next:hover {
background: var(--wp--preset--color--gold);
}
.cb-carousel-block .cb-button-next:hover::after, .cb-carousel-block .cb-button-prev:hover::after {
color: var(--wp--preset--color--base);
}
.cb-carousel-block .cb-pagination .cb-pagination-bullet {
background: var(--wp--preset--color--gold);
opacity: 0.5;
width: 10px;
height: 10px;
border-radius: 30em;
transition: all 0.5s;
}
.cb-carousel-block .cb-pagination .cb-pagination-bullet:hover {
background: var(--wp--preset--color--gold) !important;
opacity: 0.5 !important;
}
.cb-carousel-block .cb-pagination.swiper-pagination-horizontal {
bottom: 0;
top: unset;
}
.cb-carousel-block .cb-pagination .cb-pagination-bullet.swiper-pagination-bullet-active {
background: var(--wp--preset--color--gold);
opacity: 1;
}
.cb-carousel-block[data-cb-navigation="true"] .cb-pagination.swiper-pagination-horizontal {
bottom: 10px;
justify-content: flex-start;
}
.cb-pagination.swiper-pagination-bullets.swiper-pagination-lock {
display: none;
}


/* FOOTER */

#site-footer a {
text-decoration: none;
}
#site-footer .wp-block-social-link:hover {
opacity: 0.6;
}
#footer-logo .icon-container {
max-width: clamp(250px, calc(15.625rem + ((1vw - 4.8px) * 6.5789)), 350px);
}
.footer-text .ld::before {
content: "";
background-image: url("https://lawrencedavis.co.uk/wp-content/uploads/LD-icon.svg");
background-repeat: no-repeat;
background-size: contain;
display: inline-block;
width: 12px;
height: 9px;
margin: 0 7px 0 0;
vertical-align: baseline;
}


/* MEDIA */

@media screen and (min-width:782px) {
.overlap.right.wp-block-columns > .wp-block-column:nth-child(2) {
margin-left: -5%;
}
.tabs-carousel {
transform: translateX(10%);;
}
.gutena-tabs-block.vertical {
gap: 3em;
flex-direction: row;
}
.gutena-tabs-block.vertical .gutena-tabs-tab {
width: 30%;
flex-direction: column;
}
.gutena-tabs-block > .gutena-tabs-tab > .gutena-tab-title {
text-align: left;
flex: 0 !important;
}
.tabs-carousel .gutena-tabs-block .gutena-tabs-content {
width: 110%;
display: flex;
gap: 1em;
flex-wrap: nowrap;
white-space: nowrap;
overflow-x: scroll;
position: relative;
scroll-snap-type: x mandatory;
scroll-snap-align: start;
scrollbar-width: none;
}
.gutena-tabs-block > .gutena-tabs-content > .gutena-tab-block {
min-width: 600px;
}
.tabs-carousel .gutena-tabs-block > .gutena-tabs-content > .gutena-tab-block:not(.active) {
display: block;
}
.tabs-carousel .gutena-tabs-block > .gutena-tabs-content > .gutena-tab-block.active {
order: -1;
}
}

@media screen and (min-width: 1201px) {
.wp-block-navigation__overlay-container::before {
content:"";
display: block;
width: 75%;
height: 500px;
position: absolute;
left: -15%;
bottom: -15%;
background-image: url('/wp-content/uploads/DS-icon-bg01.svg');
background-size: cover;
background-repeat: no-repeat;
background-position: right top;
z-index: 1;
}
}

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

}

@media screen and (min-width: 901px) {
.tabs-carousel > .wp-block-heading {
transform: translateY(60px);
}
.tabs-carousel .gutena-tabs-block.vertical {
margin-block-start: 0;
}
.tabs-carousel .gutena-tabs-block.vertical .gutena-tabs-tab {
transform: translateY(70px);
}
.tabs-carousel > .wp-block-buttons {
margin-block-start: 0;
transform: translateY(-60px);
}
}

@media screen and (max-width: 781px) {
.invert {
order: -1;
}
.header.wp-block-group {
flex-direction: column;
}
.main-banner .wp-block-cover {
min-height: 500px !important;
}
.tabs-carousel {
padding-right: var(--wp--preset--spacing--30);
padding-left: var(--wp--preset--spacing--30);
}
.gutena-tabs-block.vertical {
gap: 15px;
}
.gutena-tabs-block > .gutena-tabs-tab {
flex-wrap: nowrap;
white-space: nowrap;
overflow-x: scroll;
scroll-behavior: smooth;
scrollbar-width: none;
}
.gutena-tabs-block > .gutena-tabs-tab > .gutena-tab-title {
min-width: auto;
width: fit-content;
display: flex;
}
.overlap.left.wp-block-columns > .wp-block-column:nth-child(2),
.overlap.right.wp-block-columns > .wp-block-column:nth-child(1) {
margin-bottom: -20px;
}
.overlap.left.wp-block-columns > .wp-block-column:nth-child(1),
.overlap.right.wp-block-columns > .wp-block-column:nth-child(2) {
max-width: 90%;
margin: 0 auto;
}
#site-footer, #site-footer .wp-block-social-links, .footer-text {
text-align: center;
justify-content: center;
}
.footer-text > .wp-block-group {
flex-direction: column;
align-items: center;
}
#footer-logo .icon-container {
margin: 0 auto;
}
}

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

}