/*
Theme Name: iBUILDiT Child
Theme URI: https://iplanit.ie
Description: Child theme for iBUILDiT
Author: iPLANiT Ltd.
Author URI: https://iplanit.ie
Template: iBUILDiT
Version: 1.0.0
Text Domain: ibuildit-child
*/

/* Add your child theme styles here */

html {
    scroll-behavior: smooth;
}


ol,ul{
    padding-left: 20px;
}
.site-header {
    padding: 18px 0;
}
.site-header__inner {
    width: 80%;
    max-width: var(--ib-container, 1200px);
}
.row {
    padding-left: 0;
    padding-right: 0;
} 

.sbtn {
    --sbtn-background: #b02020;
    --sbtn-hover-background: #941a1a;
    --sbtn-text: #ffffff;

    display: inline-flex;
    width: fit-content;
    min-height: 60px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    border: 2px solid var(--sbtn-background);
    border-radius: 0;
    color: var(--sbtn-text);
    background: var(--sbtn-background);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1);
    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.sbtn::before,
.sbtn::after {
    content: none;
}

.sbtn:hover {
    border-color: var(--sbtn-hover-background);
    color: var(--sbtn-text);
    background: var(--sbtn-hover-background);
    text-decoration: underline;
    text-underline-offset: 3px;
    transform: scale(1.03);
}

.sbtn:focus-visible {
    color: var(--sbtn-text);
    background: var(--sbtn-hover-background);
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #000000;
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .sbtn {
        transition: none;
    }

    .sbtn:hover,
    .sbtn:focus-visible {
        transform: none;
    }
}



/* ==========================================
   GLOBAL GRAVITY FORMS
   ========================================== */

.gform_wrapper,
.gform_wrapper.gravity-theme {
    width: 100%;
    margin: 0;
    color: var(--ib-text);
    font-family: var(--ib-font);
    font-size: var(--ib-font-size);
}

.gfield_time_ampm > select {
	line-height: 1;
    display: flex;
    align-items: center;
}
/* Form heading */

.gform_wrapper .gform_heading {
    margin-bottom: 20px;
}

.gform_wrapper .gform_title {
    margin-top: 0;
    color: var(--ib-text);
    font-family: var(--ib-font);
    font-size: var(--ib-h3-size);
}

.gform_wrapper .gform_description {
    color: var(--ib-text);
}


/* Field spacing */

.gform_wrapper .gform_fields {
    row-gap: 16px;
}


/* Labels and supporting text */

.gform_wrapper .gfield > .gfield_label,
.gform_wrapper .ginput_complex label,
.gform_wrapper .gsection_title,
.gform_wrapper .gform_subtitle,
.gform_wrapper .gfield_consent_label,
.gform_wrapper .gform_required_legend,
.gform_wrapper .gfield_description,
.gform_wrapper .instruction,
.gform_wrapper .gform_fields .description,
.gform_wrapper .gfield_checkbox label,
.gform_wrapper .gfield_radio label,
.gform_wrapper .ginput_container_consent .gfield_consent_label {
    color: var(--ib-text);
}


/* Required indicator */

.gform_wrapper .gfield_required {
    color: var(--ib-primary);
}


/* Links */

.gform_wrapper a {
    color: var(--ib-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gform_wrapper a:hover {
    text-decoration: none;
}


/* Text fields */

.gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    border: 1px solid #767676;
    border-radius: 0 !important;
    color: #232426;
    background-color: #ffffff;
    font-family: var(--ib-font);
    font-size: var(--ib-font-size);
}

.gform_wrapper textarea {
    min-height: 140px;
    resize: vertical;
}


/* Placeholders */

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
    color: #595959;
    opacity: 1;
}


/* Field focus */

.gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus-visible,
.gform_wrapper textarea:focus-visible,
.gform_wrapper select:focus-visible {
    border-color: var(--ib-primary);
    outline: 3px solid var(--ib-primary);
    outline-offset: 2px;
}


/* Checkbox and radio controls */

.gform_wrapper input[type="checkbox"],
.gform_wrapper input[type="radio"] {
    accent-color: var(--ib-primary);
}


/* Form footer */

.gform_wrapper .gform_footer {
    margin-top: 20px;
    padding: 0;
}


/* Submit button */

.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"] {
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid var(--ib-primary);
    border-radius: 0;
    color: #ffffff;
    background-color: var(--ib-primary) !important;
    font-family: var(--ib-font);
    font-size: var(--ib-font-size);
    font-weight: 700;
    cursor: pointer;
    transition:
        color 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover,
.gform_wrapper button[type="submit"]:hover {
    border-color: var(--ib-secondary);
    color: #ffffff;
    background-color: var(--ib-secondary);
    text-decoration: underline;
    transform: scale(1.02);
}

.gform_wrapper .gform_button:focus-visible,
.gform_wrapper input[type="submit"]:focus-visible,
.gform_wrapper button[type="submit"]:focus-visible {
    outline: 3px solid var(--ib-text);
    outline-offset: 3px;
}


/* Validation summary */

.gform_wrapper .gform_validation_errors {
    padding: 16px;
    border: 2px solid var(--ib-primary);
    border-radius: 0;
    color: #232426;
    background-color: #ffffff;
}

.gform_wrapper .gform_validation_errors h2,
.gform_wrapper .gform_submission_error {
    color: #232426;
}


/* Individual field errors */

.gform_wrapper .gfield_error input:not([type="checkbox"]):not([type="radio"]),
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
    border-color: var(--ib-primary);
}

.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message {
    padding: 10px 12px;
    color: #ffffff;
    background-color: var(--ib-primary);
}


/* Multi-page form buttons */

.gform_wrapper .gform_previous_button,
.gform_wrapper .gform_next_button {
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid var(--ib-primary);
    border-radius: 0;
    color: #ffffff;
    background-color: var(--ib-primary);
    font-family: var(--ib-font);
    font-size: var(--ib-font-size);
    font-weight: 700;
    cursor: pointer;
}

.gform_wrapper .gform_previous_button:hover,
.gform_wrapper .gform_next_button:hover {
    border-color: var(--ib-secondary);
    background-color: var(--ib-secondary);
    text-decoration: underline;
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .gform_wrapper .gform_button,
    .gform_wrapper input[type="submit"],
    .gform_wrapper button[type="submit"],
    .gform_wrapper .gform_previous_button,
    .gform_wrapper .gform_next_button {
        transition: none;
    }

    .gform_wrapper .gform_button:hover,
    .gform_wrapper input[type="submit"]:hover,
    .gform_wrapper button[type="submit"]:hover {
        transform: none;
    }
}



/* FOOTER */

/* ==========================================================
   SITE FOOTER
   ========================================================== */

.site-footer {
	width: 100%;
	margin: 0;
	padding: 0;
	color: #c8c8c8;
	background-color: var(--ib-footer-bg);
	font-family: var(--ib-font);
}

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

.site-footer__inner {
	width: 80%;
	max-width: 1500px;
	margin: 0 auto;
	padding: 70px 0 45px;
}


/* ==========================================================
   SOCIAL AREA
   Currently hidden because the footer design does not use it
   ========================================================== */

.site-footer__top {
	display: none;
}


/* ==========================================================
   FOOTER COLUMNS
   ========================================================== */

.site-footer__widgets {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0 0 45px;
	gap: 55px;
	align-items: flex-start;
	justify-content: space-between;
}

.site-footer__widgets > .footer-col {
	width: 20%;
	margin: 0;
	padding: 0;
}

.site-footer__widgets > .footer-col--company {
	width: 28%;
}


/* ==========================================================
   COMPANY COLUMN
   ========================================================== */

.site-footer__brand {
	display: block;
	width: 100%;
	margin: 0 0 22px;
	padding: 0;
}

.site-footer__logo {
	display: inline-block;
	max-width: 250px;
	text-decoration: none;
}

.site-footer__logo-image {
	display: block;
	width: 100%;
	max-width: 250px;
	height: auto;
	margin: 0;
}

.site-footer__company-details {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	flex-direction: column;
	align-items: flex-start;
	color: #c8c8c8;
	line-height: 1.6;
    font-size: 18px;
}

.site-footer__address {
	max-width: 370px;
	margin: 0 0 17px;
	padding: 0;
	color: #c8c8c8;
	font-style: normal;
	line-height: 1.6;
}

.site-footer__phones {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	flex-direction: column;
	gap: 8px;
}

.site-footer__contact-line {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 5px;
	color: #c8c8c8;
	line-height: 1.5;
}

.site-footer__email {
	margin-top: 8px;
}

.site-footer__contact-label {
	color: #c8c8c8;
	font-weight: 400;
}

.site-footer__contact-line a,
.site-footer__directions-link {
	color: #ffffff;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition:
		color 0.2s ease,
		text-decoration-color 0.2s ease;
}

.site-footer__contact-line a:hover,
.site-footer__directions-link:hover {
	color: #ffffff;
	text-decoration-color: #b02020;
}

.site-footer__contact-line a:focus-visible,
.site-footer__directions-link:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 4px;
}

.site-footer__directions {
	margin-top: 12px;
}

.site-footer__directions-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.site-footer__directions-link span {
	display: inline-block;
	color: inherit;
	transition: transform 0.2s ease;
}

.site-footer__directions-link:hover span {
	transform: translate(3px, -3px);
}


/* ==========================================================
   WIDGET COLUMNS
   ========================================================== */

.site-footer .widget {
	width: 100%;
	margin: 0;
	padding: 0;
}

.site-footer .widget-title {
	width: 100%;
	margin: 0 0 18px;
	padding: 0 0 13px;
	border-bottom: 2px solid #b02020;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 700;
	text-transform: none;
    font-size: 18px;
    letter-spacing: unset;
}

.site-footer .widget_nav_menu > div {
	width: 100%;
	margin: 0;
	padding: 0;
}

.site-footer .widget_nav_menu ul,
.site-footer .widget_nav_menu .menu {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	flex-direction: column;
	gap: 13px;
	list-style: none;
}

.site-footer .widget_nav_menu li,
.site-footer .widget_nav_menu .menu-item {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .widget_nav_menu li::before,
.site-footer .widget_nav_menu .menu-item::before {
	content: none;
	display: none;
}

.site-footer .widget_nav_menu a {
	display: inline;
	color: #c8c8c8;
	line-height: 1.45;
	font-weight: 400;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition:
		color 0.2s ease,
		text-decoration-color 0.2s ease;
    font-size: 18px;
}

.site-footer .widget_nav_menu a:hover {
	color: #ffffff;
	text-decoration-color: #b02020;
}

.site-footer .widget_nav_menu a:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 4px;
}


/* ==========================================================
   FOOTER EXTRA / COPYRIGHT AREA
   ========================================================== */

.site-footer__extra {
	width: 100%;
	margin: 0;
	padding: 30px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	color: #c8c8c8;
}

.site-footer__extra .widget {
	margin: 0;
	padding: 0;
}

.site-footer__extra .textwidget {
	margin: 0;
	padding: 0;
	color: #c8c8c8;
	line-height: 1.6;
}

.site-footer__extra p {
	margin: 0;
	color: inherit;
}

.site-footer__extra a {
	color: #ffffff;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.site-footer__extra a:hover {
	text-decoration-color: #b02020;
}

.site-footer__extra a:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 4px;
}


.footer-extra-content-container{
	display: flex;
    justify-content: space-between;
}


/* ==========================================================
   FOOTER BAR
   Hidden while its widget contains no content
   ========================================================== */

.site-footer__bar {
	display: none;
}


/* ==========================================================
   SMALL DESKTOP AND TABLET
   ========================================================== */

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

	.site-footer__inner {
		width: 85%;
	}

	.site-footer__widgets {
		flex-wrap: wrap;
		gap: 50px 40px;
	}

	.site-footer__widgets > .footer-col,
	.site-footer__widgets > .footer-col--company {
		width: calc(50% - 20px);
	}

	.site-footer__logo,
	.site-footer__logo-image {
		max-width: 230px;
	}

}

@media only screen and (max-width: 1040px) {
	.footer-extra-content-container{
		flex-direction: column;
    	align-items: center;
	}
	.footer-extra-content-container > div{
		text-align: center;
	}
}

@media only screen and (max-width: 991px) {
    #primary.site-main > .page > section,
	#primary.site-main > .page > section.global_section_module > section{
        padding-bottom: 50px !important;
        padding-top: 50px !important; 
    }
    #primary.site-main > .page > section:first-child,
	#primary.site-main > .page > section.global_section_module:first-child > section{
        padding-top: 0px !important; 
    }
	#primary.site-main > .page > section.global_section_module{
		padding-bottom: 0 !important;
		padding-top: 0 !important;
	}
}


/* ==========================================================
   MOBILE
   ========================================================== */

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

	.site-footer__inner {
		width: 90%;
		padding: 55px 0 35px;
	}

	.site-footer__widgets {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 42px;
		padding-bottom: 40px;
		text-align: center;
	}

	.site-footer__widgets > .footer-col,
	.site-footer__widgets > .footer-col--company {
		width: 100%;
	}

	.site-footer__brand {
		margin-bottom: 20px;
	}

	.site-footer__logo,
	.site-footer__logo-image {
		max-width: 220px;
	}

	.site-footer__address {
		max-width: none;
	}

	.site-footer__extra {
		padding-top: 25px;
	}

	.site-footer__company-details{
		align-items: center;
	}
	.site-footer__contact-line{
		justify-content: center;
	}

	.site-footer .widget {
		width: 60%;
		margin: 0 auto;
	}
	.site-footer__extra{
		justify-content: center;
    	display: flex;
	}
	.site-footer__extra .textwidget{
		text-align: center;
	}

}





/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

	.site-footer a,
	.site-footer__directions-link span {
		transition: none;
	}

}

.site-footer__brand .site-logo img {
    max-height: none;
    width: auto;
}


/* END OF FOOTER */