/*
Theme Name: LANDX
Description: LANDX theme
Version: 1.0
Author: Andy
*/

/* General styles                                   */
/* ------------------------------------------------ */

/* fix issues with the WP admin bar messing with sticky/absolute header items */
body.admin-bar #branding-wrap{ top: 28px; }
body.admin-bar #wrapper{ margin-top: 145px; }

td {
	vertical-align: top;
}

a {
	color: var(--secondary);
	text-decoration: underline;
	outline: none;
}

a:hover {
	color: var(--secondary);
}

ul {
	margin: 8px 0 18px 18px;
	padding: 0;
}

li {
	padding-left: 4px;
	line-height: 180%;
}

h1, h1 a, h2, h2 a, h3, h3 a, h4, h4 a {
	line-height: 120%;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
	font-size: 2.8em;
	margin-top: 0;
}

h2 {
	font-size: 2.6em;
}

h3 {
	font-size: 2.0em;
}

h4 {
    font-size: 1.6em;
}

hr {
	height: 1px;
	border: 0;
	width: 100%;
	background: #eee;
	color: #eee;
	margin: 30px 0;
    clear: both;
}

.roundcorner {
    border-radius: 12px; /* Adjust this number to make corners more or less round */
}

/* Content                                          */
/* ------------------------------------------------ */
.content {
	padding: 40px 0 0 0;
	overflow: hidden;
	font-size: 1.1em;
	min-height: 200px;
    clear: both;
    background: var(--dark);
}

.content, .content p, .content li {
	line-height: 160%;
}

.content img {
	max-width: 100%;
	height: auto;
}

.content a {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/*body.home .content p:first-of-type {
    font-size: larger;
}*/

/*body.home .content h1 {
    font-size: 3.4em;
    margin-bottom: 16px;
}

body.home .content h1 + h2 {
    margin-top: -20px;
    font-weight: 300;
}*/

.readmore, input[type="submit"] {
	background: var(--main) url(images/chevron-right.svg) right 10px center no-repeat;
    background-size: 16px;
	padding: 14px 40px 14px 26px;
	text-decoration: none;
	display: inline-block;
	margin: 15px 0;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 700;
	text-shadow: none;
	line-height: 100%;
	border: 0;
	cursor: pointer;
    border-radius: 4px;
    color: #0a0d0e;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
}

.readmore:hover, input[type="submit"]:hover {
	background: var(--secondary) url(images/chevron-right.svg) right 10px center no-repeat;
    background-size: 16px;
    color: #0a0d0e;
}


.readmore, .content a, input[type="submit"] {
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

.landx-highlight {
    font-weight: bold;
    color: var(--main);
}

.yellow {
    color: var(--main);
}

.centered {
    text-align: center;
}

.centered {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* the left line styling */
.centered::before {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--main);
}

/* the right line styling */
.centered::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--secondary);
}

/* Columns                                          */
/* ------------------------------------------------ */
.columns-container {
    display: grid;
    gap: 40px;
    align-items: stretch;
    padding: 40px 0;
}

.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.four-columns {
    grid-template-columns: repeat(4, 1fr);
}

.one-column-two-columns {
    grid-template-columns: 1fr 2fr;
}

.column-twothirds {
    display: flex;
    height: 100%;
}

.column-twothirds img {
    width: 100%;
    object-fit: cover;
    object-fit-position: center;
}


.clearfix {
    clear: both;
}

/* homepage two column roundey bits */
/* force the nested card grid layout to stretch 100% vertically */
.homepage-mulching .column-half .columns-container.two-columns {
    height: 100%;
    align-items: stretch; /* Forces inner columns to stretch */
}

.inner-card, .request-quote {
    background-color: #0c0d0e;
    border: 1px solid var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    gap: 0;
    padding: 0;
}

.homepage-mulching .text-side {
    padding: 30px;
}

.homepage-mulching .image-side img, .request-quote img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.homepage-mulching h2 {
    margin: 0;
}

.text-side p {
    color: var(--main);
}

/* homepage mulching ul list styling */
.homepage-mulching ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 0 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.homepage-mulching ul li {
    position: relative;
    padding-left: 35px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.4;
}

.homepage-mulching ul li::before {
    content: url(images/check.svg);
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* homepage icon bits */
.homepage-icons {
    text-align: center;
}

.homepage-icons img {
    max-width: 120px;
    padding-bottom: 10px;
}

.homepage-icons .column-quarter {
    border-right: 1px solid var(--secondary);
    padding: 20px;
}

.homepage-icons .column-quarter:last-child {
    border-right: none;
}

.homepage-icons h4, .homepage-icons p {
    margin: 0 0 10px 0;
}


.request-quote {
    margin: 30px 0 80px 0;
}

.quote-image {
    background: url(images/mountains2.jpg) 50% 50% no-repeat;
    background-size: cover;
    position: relative;
}

.quote-image::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,1) 10%, rgba(0,0,0,0.5) 100%);
}

.quote-text {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
}

.quote-text h2 {
    margin: 0;
}

/* Forminator styling */
.forminator-ui input, .forminator-ui textarea, .forminator-ui .selection span {
    background: var(--dark);
    color: #fff !important;
    border-radius: 4px !important;
}

.forminator-button-submit {
    background: var(--main);
    font-weight: bold !important;
}

/* Footer                                           */
/* ------------------------------------------------ */
footer {
	font-size: 0.9em;
	padding: 60px 0;
	background: #010000;
    overflow: hidden;
}

footer a, footer, footer p {
	color: #c4c4c4;
}

a.scrollup {
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    text-indent: -9999px;
    background: url(images/top.svg) no-repeat;
    background-size: 100%;
    opacity: 0.7;
    border-radius: 4px;
    overflow: hidden;
}

.footerlogo {
    max-width: 300px;
    height: auto;
    display: block;
}

footer a {
    text-decoration: none;
}

.tagline {
    color: var(--main);
}


footer .column-third {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
}

footer .column-third {
    border-right: 1px solid var(--secondary);
}

footer .column-third:last-child {
    border-right: none;
}

.footer-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.footer-icon::before {
    content: "";
    display: inline-block;
    background-size: 100%;
    width: 30px;
    height: 30px;

}

.phone::before {
    background: url(images/phone.svg) 50% 50% no-repeat;
    background-size: 100%;
}

.email::before {
    background: url(images/email.svg) 50% 50% no-repeat;
    background-size: 100%;
}

.web::before {
    background: url(images/web.svg) 50% 50% no-repeat;
    background-size: 100%;
}

.facebook::before {
    background: url(images/facebook.svg) 50% 50% no-repeat;
    height: 26px;
}

.copyright {
    clear: both;
    padding-top: 40px;
    opacity: 0.4;
    text-align: center;
}

/* Responsive elements                              */
/* ------------------------------------------------ */
@media screen and (max-width: 1200px) {
    /* homepage two column roundey bits */
    .homepage-mulching.columns-container.two-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        align-items: stretch !important; /* Forces the two cards to always match heights */
    }

    .homepage-mulching .column-half .columns-container.two-columns {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .homepage-mulching .column-half .text-side {
        flex: 1; /* Pushes the image section down uniformly */
    }

    .homepage-mulching .column-half .image-side {
        height: 280px !important;
        flex-shrink: 0;
    }
}

@media screen and (max-width: 1000px) {
    footer .three-columns {
        grid-template-columns: repeat(1, 1fr);
    }

    footer .column-third {
        border-right: none;
    }
}


@media screen and (max-width: 800px) {
    .column-twothirds img {
        width: 100%;
        height: 100%;
    }

    /* homepage two column roundey bits */
    .homepage-mulching.columns-container.two-columns {
        grid-template-columns: 1fr !important;
        gap: 30px !important; /* Adds space between the stacked cards */
    }

    .homepage-mulching .column-half .columns-container.two-columns {
        height: auto !important;
    }

    .homepage-mulching .column-half .column-half:last-child {
        height: 350px !important;
    }

    .request-quote.two-columns {
        grid-template-columns: 1fr;
    }

    .four-columns, .three-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .one-column-two-columns {
        grid-template-columns: 1fr;
    }

    .homepage-icons .column-quarter {
        border-right: none;
    }


    .centered {
        display: block;
    }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 2.0em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.3em;
    }

    h4 {
        font-size: 1.1em;
    }


    .two-columns, .three-columns, .four-columns {
        grid-template-columns: 1fr;
    }
}

/* iOS */
@media screen and (max-width: 380px) {
	#footer img {
		width: 150px;
		height: auto;
	}
}


/* WP Common Styles */
/*figure {
    display: table;
}*/

.wp-block-image figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

figure.wp-block-image {
    margin-left: 0;
    margin-right: 0;
}

figure.wp-block-image img {
    max-width: none !important;
    width: 100%;
    height: auto;
}

.wp-caption {
    width: 100% !important;
}

.aligncenter {
   display: block;
   text-align: center;
   margin: 0 auto;
   padding-bottom: 10px;
}

.alignright {
   text-align: right;
   display: block;
   float: right;
   margin: 10px 0px 5px 15px;
}

.alignleft {
   text-align: left;
   display: block;
   float: left;
   margin: 10px 20px 5px 0px;
}

.wp-caption-text,.wp-caption-dd {
   margin: 0;
   font-weight: bold;
   font-size: smaller;
   text-align: center;
}

.wp-caption {
   margin-right: 5px;
}

.wp-caption img {
	padding-bottom: 5px;
}

.alignleft, .alignright {
	margin-bottom: 20px;
}

.aligncenter, dl.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
}

.alignright {
	float: right;
}


@media screen and (max-width: 600px) {
    img.alignleft, img.alignright {
        float: none;
        display: block;
        margin: 20px auto;
    }
}