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


/* LAYOUT */

main, footer {
margin-block-start: 0;
margin-block-end: 0;
}
.entry-content.wp-block-post-content {
margin-block-start: 0;
}
.wp-site-blocks {
padding-top: 0;
padding-bottom: 0;
}
.has-global-padding > .alignfull {
margin-right: 0 !important;
margin-left: 0 !important;
}
.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: #17b363 #262e381a;
}
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;
}
strong, b {
font-weight: 600;
}
ul, ol {
padding-left: 1.1em;
}
ul li, ol li {
margin-block-end: 0.35rem;
}
.relative {
position: relative;
}
.absolute {
position: absolute;
}
.overflow-hidden {
overflow: hidden;
}


/* COLOR REFERENCE */

.has-base-color path {
fill: var(--wp--preset--color--base);
}
.white-filter > img {
filter: brightness(0) saturate(100%) invert(100%) sepia(93%) saturate(27%) hue-rotate(241deg) brightness(105%) contrast(103%);
}
.has-contrast-color path {
fill: var(--wp--preset--color--contrast);
}
.has-green04-color path {
fill: var(--wp--preset--color--green-04);
}
.has-green03-color path{
fill: var(--wp--preset--color--green-03);
}
.green03-filter > img {
filter: brightness(0) saturate(100%) invert(73%) sepia(56%) saturate(4737%) hue-rotate(104deg) brightness(87%) contrast(82%);
}
.has-green02-color path {
fill: var(--wp--preset--color--green-02);
}
.has-green01-color path {
fill: var(--wp--preset--color--green-01);
}
.has-white30-color path {
fill: var(--wp--preset--color--white-30);
}


/* BREADCRUMBS */

.breadcrumbs a {
color: var(--wp--preset--color--contrast);
}
.breadcrumbs span a {
padding: 0 5px;
}
.breadcrumbs span > span:first-child > a {
padding-left: 0;
}
.breadcrumb_last {
padding-left: 5px;
}
.breadcrumbs a:hover {
color: var(--wp--preset--color--green-04);
}


/* QUOTE */

blockquote.wp-block-quote {
margin-left: 0;
margin-right: 0;
}
blockquote.wp-block-quote::after {
content: open-quote no-close-quote;
display: block;
line-height: 0.9;
font-family: serif;
font-weight: 700;
color: currentColor;
position: relative;
font-size: 200px;
height: 60px;
bottom: 30px;
opacity: 0.3;
}


/* READ MORE LINK */

.wp-block-read-more, .read-more a {
padding-right: 1.5rem;
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
}
.wp-block-read-more::before, .read-more a::before {
content: "";
display: block;
width: 15px;
height: 10px;
top: 50%;
right: 1.5rem;
position: absolute;
transform: translateY(-50%);
background: url('/wp-content/uploads/TD-arrow.svg');
background-size: contain;
background-position: center;
background-repeat: no-repeat;
transition: all 0.5s;
z-index: 1;
filter: brightness(0) saturate(100%) invert(51%) sepia(48%) saturate(3735%) hue-rotate(117deg) brightness(99%) contrast(82%);
opacity: 0;
}
.wp-block-read-more:hover::before, .read-more a:hover::before {
right: 0;
opacity: 1;
}
.dark-bg .wp-block-read-more::before, .dark-bg .read-more a::before {
filter: brightness(0) saturate(100%) invert(52%) sepia(96%) saturate(594%) hue-rotate(107deg) brightness(101%) contrast(102%);
} 


/* HEADING DECOR */

.title-line {
position: relative;
line-height: 1;
align-items: center;
flex-direction: row;
display: flex;
width: 100%;
}
.title-line::after {
content: "";
display: inline-block;
border-bottom: 1px solid var(--wp--preset--color--green-03);
width: 20%;
flex-grow: 1;
margin-left: 20px;
}
.dark-bg .title-line::after {
border-bottom-color: var(--wp--preset--color--green-01);
}


/* HEADER */

header, #site-header {
width: 100% !important;
}
#site-header {
z-index: 9999;
transition: 0.5s all;
}
body.home header, body.home #site-header {
position: absolute;
}
.wp-block-navigation ul li {
margin-block-end: 0;
}
.wp-block-navigation ul.wp-block-navigation__container:hover > li.wp-block-navigation-item > .wp-block-navigation-item__content {
opacity: 0.6;
}
.wp-block-navigation ul.wp-block-navigation__container > li.wp-block-navigation-item > a.wp-block-navigation-item__content:hover {
opacity: 1;
}
#site-header #mysticky-nav .myfixed {
margin: 0 var(--wp--preset--spacing--30) 0 auto;
}


/* LOGO */

#header-logo .icon-container {
max-width: clamp(110px, calc(6.25rem + ((1vw - 4.8px) * 8.5526)), 230px);
}
body.home #header-logo #TD, #footer-logo #TD {
fill: var(--wp--preset--color--base);
}


/* FORM */

.wpcf7-form .input-group {
margin-block-end: 1rem;
}
.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--barlow-condensed);
text-align: left;
line-height: 1.3;
}
.wpcf7-list-item-label {
font-weight: 400;
font-family: var(--wp--preset--font-family--barlow-condensed);
}
.req-symbol {
font-weight: 400;
color: red;
}
.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--barlow-condensed);
font-size: var(--wp--preset--font-size--small);
color: var(--wp--preset--color--contrast);
border: 1px solid var(--wp--preset--color--light-grey);
padding: 0.7em;
margin: 5px 0 10px;
background-color: var(--wp--preset--color--base);
box-sizing: border-box;
transition: all 0.5s;
}
textarea {
min-height: 1em;
}
textarea:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus {
border-color: var(--wp--preset--color--green-03);
}
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;
}
input[type="reset"], input[type="submit"], button:not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation-overlay-close):not(.wp-block-accordion-heading__toggle):not(.cn-close-icon) {
font-family: var(--wp--preset--font-family--barlow-condensed);
font-size: var(--wp--preset--font-size--small);
text-transform: uppercase;
font-weight: 600;
background: var(--wp--preset--gradient--green-gradient);
color: var(--wp--preset--color--base);
border: 0;
padding: 1em 1.5em;
margin: 0 auto;
width: auto;
display: block;
box-sizing: border-box;
appearance: none;
transition: all 0.5s;
}
input[type="reset"]:hover, input[type="submit"]:hover, button:not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation-overlay-close):not(.wp-block-accordion-heading__toggle):not(.cn-close-icon):hover {
background: var(--wp--preset--color--contrast);
color: var(--wp--preset--color--base);
}
.newsletter input[type="text"], .newsletter input[type="email"], .newsletter input[type="submit"] {
height: 50px;
margin: 0;
}
.newsletter input[type="text"], .newsletter input[type="email"] {
color: var(--wp--preset--color--base);
background-color: transparent;
border-color: var(--wp--preset--color--white-30);
}
.newsletter input[type="text"]:focus, .newsletter input[type="email"]:focus {
border-color: var(--wp--preset--color--green-02);
}
.wpcf7-form-control::-moz-placeholder  {
color: var(--wp--preset--color--contrast);
opacity: 1;
}
.wpcf7-form-control::-moz-placeholder  {
color: var(--wp--preset--color--contrast);
opacity: 1;
}
.wpcf7-form-control::-moz-placeholder  {
color: var(--wp--preset--color--contrast);
opacity: 1;
}
.newsletter .wpcf7-form-control::-moz-placeholder, .newsletter .wpcf7-form-control::-moz-placeholder, .newsletter .wpcf7-form-control::-moz-placeholder {
color: var(--wp--preset--color--white-30);
}
.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--green-04);
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--light-grey) !important;
color: var(--wp--preset--color--green-04);
font-size: 0.9em;
font-weight: 700;
margin: 1em 0;
padding: 1em 0;
font-style: oblique;
text-align: center;
}


/* BUTTON */

.wp-block-buttons .wp-block-button__link {
transition: all 0.8s;
}
.wp-block-buttons .wp-block-button__link:hover {
transform: scale(1.05);
}
.wp-block-button.is-style-outline .wp-block-button__link.has-base-color:hover {
background: var(--wp--preset--color--base) !important;
color: var(--wp--preset--color--green-04) !important;
border-color: var(--wp--preset--color--base) !important;
}


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


/* COVER UPDATES */

.wp-block-cover.bg-overlay::after {
content: "";
display: block;
position: absolute;
width: 100%;
height: 50%;
left: 0;
bottom: 0;
background: linear-gradient(0deg,rgba(38, 46, 56, 1) 0%, rgba(38, 46, 56, 0) 100%);
transform-origin: 50% 100%;
transition: height 0.3s ease-in-out;
z-index: 1;
}
.wp-block-cover.bg-overlay > .wp-block-cover__inner-container {
z-index: 2 !important;
}
.wp-block-cover.bg-overlay:has(a:hover)::after {
height: 100%;
}
.wp-block-cover.contain > .wp-block-cover__image-background {
object-fit: contain;
}
.wp-block-cover.width75 > .wp-block-cover__image-background {
max-width: 75%;
}
.wp-block-cover.width75.sml > .wp-block-cover__image-background {
max-width: 500px;
}
.wp-block-cover.height75 > .wp-block-cover__image-background {
height: 75%;
max-height: 500px;
}
.wp-block-cover.large > .wp-block-cover__image-background {
height: 85%;
max-width: 85%;
}
.wp-block-cover.flip > .wp-block-cover__image-background {
transform: scaleX(-1);
}
.wp-block-cover.right > .wp-block-cover__image-background {
right: 0;
left: unset;
}
.wp-block-cover.bottom > .wp-block-cover__image-background {
bottom: 0;
top: unset;
}
.wp-block-cover.multiply > .wp-block-cover__background {
mix-blend-mode: multiply;
}
.wp-block-cover.opacity3 > .wp-block-cover__image-background {
opacity: 0.3;
}
.wp-block-cover.content100 > .wp-block-cover__inner-container {
height: 100%;
}


/* SCROLLING BOX */

.wp-block-group.yscroll {
max-height: clamp(150px, calc(9.375rem + ((1vw - 4.8px) * 4.2763)), 215px);
overflow-y: scroll;
scrollbar-color: #262e3899 #ffffff1a;
}


/* ACCORDION */

.wp-block-accordion-item:hover .wp-block-accordion-heading, .wp-block-accordion-item.is-open .wp-block-accordion-heading {
color: var(--wp--preset--color--contrast);
}
.wp-block-accordion-item .wp-block-accordion-heading__toggle {
border-bottom: 1px solid var(--wp--preset--color--light-grey);
border-radius: 0 !important;
transition: all 0.5s;
}
.wp-block-accordion-item:hover .wp-block-accordion-heading__toggle, .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle {
border-bottom: 1px solid var(--wp--preset--color--green-03);
background: transparent !important;
}
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
text-decoration: none;
}
.wp-block-accordion-heading__toggle-icon {
color: var(--wp--preset--color--green-03);
height: 1.5em;
width: 1.5em;
}


/* CAROUSEL */

.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 {
color: var(--wp--preset--color--base);
background-color: var(--wp--preset--color--green-03);
height: 30px;
width: 30px;
transition: all 0.5s;
}
.cb-carousel-block .cb-button-prev {
left: 20px;
}
.cb-carousel-block .cb-button-next {
right: 20px;
}
.cb-carousel-block.top-arrows .cb-button-prev, .cb-carousel-block.top-arrows .cb-button-next {
top: 30px;
margin: 0;
}
.cb-carousel-block .cb-button-next::after, .cb-carousel-block .cb-button-prev::after {
content:"";
opacity: 1;
display: block;
width: 18px;
height: 18px;
margin: auto;
background-image: url('/wp-content/uploads/TD-arrow.svg');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(1%) hue-rotate(357deg) brightness(111%) contrast(101%);
}
.cb-carousel-block .cb-button-prev::after {
transform: scale(-1,-1);
}
.cb-carousel-block .cb-button-prev:hover, .cb-carousel-block .cb-button-next:hover {
color: var(--wp--preset--color--base);
background: var(--wp--preset--color--contrast);
}
.cb-carousel-block.bottom-arrows {
padding-bottom: 3.5em;
}
.cb-carousel-block.bottom-arrows .cb-button-next, .cb-carousel-block.bottom-arrows .cb-button-prev {
top: auto;
bottom: 0;
}
.cb-carousel-block .cb-pagination .cb-pagination-bullet {
background: var(--wp--preset--color--green-03);
opacity: 0.3;
width: 8px;
height: 8px;
border-radius: 0;
transition: all 0.5s;
}
.cb-carousel-block .cb-pagination .cb-pagination-bullet:hover {
background: var(--wp--preset--color--green-04) !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--green-03);
width: 35px;
opacity: 0.8;
}


/* POSTS */

.home-news .wp-block-query, .home-news ul.wp-block-post-template {
height: 100%
}
.home-news .post-box.wp-block-group {
height: 100%;
}
.wp-block-post-terms a {
pointer-events: none;
}


/* BOXES EFFECTS */

.icons.wp-block-group, .post-box.wp-block-group, .contact-box .box.wp-block-group, .logos.wp-block-group .wp-block-group {
transition: all 0.5s;
}
.icons.wp-block-group:has(a:hover) {
background-color: var(--wp--preset--color--green-02) !important;
}
.post-box.wp-block-group:has(a:hover) {
background-color: var(--wp--preset--color--light-grey) !important;
border-top-color: var(--wp--preset--color--green-02) !important;
}
.team.wp-block-group .icon-container:hover path {
fill: var(--wp--preset--color--contrast) !important;
}
.logos.wp-block-group .wp-block-group:has(a:hover) {
box-shadow: 0px 0px 20px rgba(165,155,148,0.35);
}
.contact-box .box.wp-block-group:has(a:hover) {
background: var(--wp--preset--color--green-04) !important;
}


/* FOOTER */

#site-footer a:hover {
text-decoration: underline;
}
.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;
filter: brightness(0) saturate(100%) invert(100%) sepia(22%) saturate(2%) hue-rotate(317deg) brightness(111%) contrast(100%);
}


/* COOKIES */

.cn-close-icon {
background: transparent !important;
}


/* MEDIA */

@media screen and (min-width:782px) {
div.form-row {
display: flex;
gap: 10px;
}
div.form-row .input-group {
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
#main-nav, #header-icons .icons {
min-height: 45px !important;
}
#header-icons > .wp-block-outermost-icon-block .icon-container {
width: 45px !important;
}
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
height: 45px;
line-height: 45px;
}
}

@media screen and (min-width: 1201px) {
.wp-block-navigation li.wp-block-navigation-item.current-menu-item a.wp-block-navigation-item__content {
color: var(--wp--preset--color--green-02) !important;
}
}


@media screen and (max-width: 1200px) {
.wp-block-navigation__responsive-container-open svg {
transform: scaleX(1.5);
pointer-events: all;
}
	
/* mobile viewport */
.wp-block-navigation__responsive-container-open:not(.always-shown) {
display: flex !important;
}
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close {
display: block;
}
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { 
display: none;
}
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="false"] ~ .wp-block-navigation__submenu-container {
position: absolute;
visibility: hidden;
opacity: 0;
height: 0;
width: auto;
display: none;
}
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
display: block;
opacity: 1;
overflow: visible;
visibility: visible;
width: 95%;
height: auto;
padding: 0 0 1.5rem 0;
}
/* end mobile viewport */
	
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
top: 0;
max-width: 100%;
height: 100vh;
box-sizing: border-box;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
ul.wp-block-navigation__container {
max-width: 300px;
margin: 2rem auto 0;
width: 100%;
text-align: left;
gap: 0;
position: relative;
z-index: 1000;
}
 ul.wp-block-navigation__container > .wp-block-navigation-item {
border-bottom: 1px solid #0000001a;
width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
padding: 1em 0;
width: 100%;
}
.wp-block-navigation-overlay-close path {
fill: var(--wp--preset--color--base) !important;
}
.wp-block-navigation__overlay-container > .wp-block-group::before {
content:"";
display: block;
width: 100%;
max-width: 80%;
height: 500px;
position: absolute;
left: 0;
bottom: 0;
background-image: url('/wp-content/uploads/TD-cubes-bg.svg');
background-size: cover;
background-repeat: no-repeat;
background-position: right top;
z-index: 1;
}
.main-banner.wp-block-cover {
min-height: 100dvh !important;
max-height: 100dvh;
}
}

@media screen and (max-width: 781px) {	
.invert {
order: -1;
}
#header-details #main-nav, #header-details #header-icons .icons {
padding-right: 10px !important;
padding-left: 10px !important;
}
#header-details #header-icons .icons {
gap: 15px
}
.page-banner.wp-block-cover {
min-height: 200px !important;
}
.projects.wp-block-group {
margin-top: 0 !important;
}
.projects.wp-block-group .wp-block-cover, .banner.wp-block-cover {
min-height: 250px !important;
}
.footer-text.wp-block-group {
flex-direction: column;
}
}

