/*
Theme Name: WD Child – Gecomtherm
Theme URI: https://wd.ancorathemes.com/
Description: Child theme for the local Gecomtherm website, based on WD by AncoraThemes.
Author: Gecomtherm
Author URI: https://gecomtherm.ro/
Template: wd
Version: 1.0.0
Text Domain: wd-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/*
 * Project-specific styles belong below this line.
 * The WD parent theme loads this stylesheet automatically after wd/style.css.
 */

/* Keep the square Gecomtherm logo legible in every theme layout. */
.top_panel .sc_layouts_logo,
.top_panel .custom-logo-link,
.menu_mobile .sc_layouts_logo,
.footer_wrap .sc_layouts_logo,
.footer_wrap .custom-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.top_panel .sc_layouts_logo img.logo_image,
.top_panel .custom-logo-link img.custom-logo {
	width: auto !important;
	height: auto !important;
	max-width: 108px !important;
	max-height: 108px !important;
	border-radius: 4px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
}

.top_panel .sc_layouts_row_fixed_on .sc_layouts_logo img.logo_image,
.top_panel .sc_layouts_row_fixed_on .custom-logo-link img.custom-logo {
	max-width: 64px !important;
	max-height: 64px !important;
}

.footer_wrap .sc_layouts_logo img.logo_image,
.footer_wrap .custom-logo-link img.custom-logo {
	width: auto !important;
	height: auto !important;
	max-width: 160px !important;
	max-height: 160px !important;
	border-radius: 4px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
}

.menu_mobile .sc_layouts_logo img {
	width: 80px !important;
	height: 80px !important;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
}

@media (max-width: 767px) {
	.top_panel .sc_layouts_logo img.logo_image,
	.top_panel .custom-logo-link img.custom-logo {
		max-width: 78px !important;
		max-height: 78px !important;
	}
}

/* Global child-theme header: only the requested primary navigation. */
.gecom-header {
	position: relative;
	z-index: 1000;
	border-bottom: 1px solid rgba(18, 31, 25, 0.1);
	background: #fff;
}

.gecom-header__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1220px, calc(100% - 48px));
	min-height: 112px;
	margin-inline: auto;
	gap: 32px;
}

.gecom-header__logo {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.gecom-header__logo img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 4px;
	object-fit: contain;
/* 	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); */
}

.gecom-header__desktop-nav {
	margin-left: auto;
}

.gecom-header__menu,
.gecom-header__mobile-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gecom-header__menu {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.8vw, 30px);
}

.gecom-header__menu > li {
	margin: 0;
	padding: 0;
}

.gecom-header__menu a {
	position: relative;
	display: block;
	padding: 12px 0;
	color: #171b18;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.gecom-header__menu a::after {
	position: absolute;
	right: 0;
	bottom: 5px;
	left: 0;
	height: 2px;
	background: #00633f;
	content: '';
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 180ms ease;
}

.gecom-header__menu a:hover::after,
.gecom-header__menu a:focus-visible::after,
.gecom-header__menu .current-menu-item > a::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.gecom-header__mobile-nav {
	display: none;
	position: relative;
}

.gecom-header__mobile-nav summary {
	display: grid;
	place-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid #d9dfdb;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	list-style: none;
}

.gecom-header__mobile-nav summary::-webkit-details-marker {
	display: none;
}

.gecom-header__mobile-nav summary span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 2px 0;
	background: #171b18;
}

.gecom-header__mobile-nav nav {
	position: absolute;
	top: calc(100% + 16px);
	right: 0;
	width: min(330px, calc(100vw - 30px));
	padding: 16px 22px;
	border: 1px solid #e1e6e2;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(12, 35, 25, 0.16);
}

.gecom-header__mobile-menu li {
	margin: 0;
}

.gecom-header__mobile-menu li + li {
	border-top: 1px solid #edf0ed;
}

.gecom-header__mobile-menu a {
	display: block;
	padding: 12px 0;
	color: #171b18;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.gecom-header__mobile-menu .current-menu-item > a {
	color: #00633f;
}

/* Keep the navigation readable over the homepage hero image. */
body.home .gecom-header {
	border-bottom-color: rgba(255, 255, 255, 0.2);
	background: transparent;
}

body.home .gecom-header__menu a {
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

body.home .gecom-header__menu a::after {
	background: #fff;
}

body.home .gecom-header__mobile-nav summary {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(0, 0, 0, 0.12);
}

body.home .gecom-header__mobile-nav summary span {
	background: #fff;
}

body.home .gecom-header__mobile-menu a {
	color: #171b18;
	text-shadow: none;
}

@media (max-width: 1120px) {
	.gecom-header__desktop-nav {
		display: none;
	}

	.gecom-header__mobile-nav {
		display: block;
	}
}

@media (max-width: 767px) {
	.gecom-header__container {
		width: calc(100% - 30px);
		min-height: 88px;
	}

	.gecom-header__logo img {
		width: 68px;
		height: 68px;
	}
}

/* Global footer copied and adapted from the current Gecomtherm website. */
.gecom-footer__container {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.gecom-footer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	margin-top: 34px;
	padding: 12px 26px;
	border: 1px solid #00633f;
	border-radius: 999px;
	background: #00633f;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gecom-footer__cta:hover,
.gecom-footer__cta:focus-visible {
	border-color: #043b2b;
	background: #043b2b;
	transform: translateY(-2px);
}

/* Testimonial examples on the quote request page. */
.gecom-quote-testimonials {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.gecom-quote-testimonial {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 270px;
	margin: 0;
	padding: clamp(28px, 3vw, 42px);
	border: 1px solid rgba(20, 25, 22, 0.09);
	background: #fff;
	box-shadow: 0 18px 48px rgba(26, 35, 30, 0.06);
}

.gecom-quote-testimonial blockquote {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #252925;
	font-size: clamp(17px, 1.45vw, 20px);
	font-style: normal;
	line-height: 1.65;
}

.gecom-quote-testimonial blockquote::before,
.gecom-quote-testimonial blockquote::after {
	display: none;
}

.gecom-quote-testimonial footer {
	color: #6f746f;
	font-size: 13px;
	font-style: normal;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gecom-footer {
	background: #0a0300;
	color: #83827f;
	font-size: 17px;
}

.gecom-footer__grid {
	display: grid;
	grid-template-columns: 1.05fr 1.2fr 1fr 1.1fr;
	gap: clamp(30px, 5vw, 72px);
	padding: 76px 0 60px;
}

.gecom-footer__brand img {
	display: block;
	width: min(170px, 100%);
	height: auto;
	border-radius: 4px;
}

.gecom-footer__column h2 {
	margin: 0 0 22px;
	color: #fff;
	font-size: 19px;
	line-height: 1.25;
}

.gecom-footer__column p,
.gecom-footer__column address {
	margin: 0;
	font-style: normal;
	line-height: 1.65;
}

.gecom-footer__column address p + p {
	margin-top: 8px;
}

.gecom-footer__column a {
	color: #d1d1d1;
	text-decoration: none;
}

.gecom-footer__column a:hover,
.gecom-footer__column a:focus-visible,
.gecom-footer__bottom a:hover,
.gecom-footer__bottom a:focus-visible {
	color: #fff;
}

.gecom-footer__column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gecom-footer__column li + li {
	margin-top: 7px;
}

.gecom-footer__cta {
	min-height: 46px;
	margin-top: 22px;
	padding: 9px 19px;
	border-color: #fff;
	background: transparent;
	font-size: 14px;
}

.gecom-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gecom-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding: 22px 0;
	font-size: 15px;
}

.gecom-footer__bottom a {
	color: #d1d1d1;
	text-decoration: none;
}

@media (max-width: 1023px) {
	.gecom-quote-testimonials {
		grid-template-columns: 1fr;
	}

	.gecom-quote-testimonial {
		min-height: 0;
	}

	.gecom-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.gecom-footer__container {
		width: min(100% - 30px, 1180px);
	}

	.gecom-footer__grid {
		grid-template-columns: 1fr;
		padding: 58px 0 42px;
	}

	.gecom-footer__brand img {
		width: 140px;
	}

	.gecom-footer__bottom-inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

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

/* Legal pages: readable long-form content inside the existing site chrome. */
body.page-template-templatespage-legal-php .page_content_wrap,
body.page-template-templatespage-legal-php .content_wrap_fullscreen,
body.page-template-templatespage-legal-php .content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.gecom-legal {
	color: #27312c;
	background: #fff;
}

.gecom-legal__container {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

.gecom-legal__hero {
	padding: clamp(72px, 9vw, 132px) 0;
	background: #f5f2ea;
}

.gecom-legal__eyebrow {
	margin: 0 0 16px;
	color: #00633f;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.gecom-legal__hero h1 {
	max-width: 900px;
	margin: 0;
	color: #171b18;
	font-size: clamp(40px, 6vw, 76px);
	line-height: 1.04;
}

.gecom-legal__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: clamp(45px, 7vw, 90px);
	padding-top: clamp(60px, 8vw, 100px);
	padding-bottom: clamp(70px, 9vw, 120px);
}

.gecom-legal__content {
	min-width: 0;
	font-size: 17px;
	line-height: 1.75;
}

.gecom-legal__content > :first-child {
	margin-top: 0;
}

.gecom-legal__content h2 {
	margin: 2.6em 0 0.75em;
	padding-top: 1em;
	border-top: 1px solid #dce3de;
	color: #171b18;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.2;
}

.gecom-legal__content h3 {
	margin: 2em 0 0.65em;
	color: #17392b;
	font-size: clamp(20px, 2vw, 25px);
	line-height: 1.3;
}

.gecom-legal__content p,
.gecom-legal__content ul,
.gecom-legal__content ol {
	margin-top: 0;
	margin-bottom: 1.2em;
}

.gecom-legal__content li + li {
	margin-top: 0.45em;
}

.gecom-legal__content a {
	color: #00633f;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.gecom-legal__content strong {
	color: #171b18;
}

.gecom-legal__content code {
	padding: 0.12em 0.35em;
	border-radius: 3px;
	background: #edf3ef;
	font-size: 0.9em;
}

.gecom-legal__table-wrap {
	max-width: 100%;
	margin: 1.6em 0 2.2em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.gecom-legal__content table {
	width: 100%;
	min-width: 690px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.gecom-legal__content th,
.gecom-legal__content td {
	padding: 14px 16px;
	border: 1px solid #dce3de;
	text-align: left;
	vertical-align: top;
}

.gecom-legal__content th {
	color: #17392b;
	background: #edf3ef;
}

.gecom-legal__nav {
	position: sticky;
	top: 100px;
	align-self: start;
	padding: 28px;
	border: 1px solid #dce3de;
	background: #f8faf8;
}

.gecom-legal__nav h2 {
	margin: 0 0 16px;
	font-size: 19px;
}

.gecom-legal__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gecom-legal__nav li + li {
	border-top: 1px solid #dce3de;
}

.gecom-legal__nav a {
	display: block;
	padding: 12px 0;
	color: #33423b;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.gecom-legal__nav a:hover,
.gecom-legal__nav a:focus-visible,
.gecom-legal__nav .is-current a {
	color: #00633f;
}

@media (max-width: 900px) {
	.gecom-legal__layout {
		grid-template-columns: 1fr;
	}

	.gecom-legal__nav {
		position: static;
		grid-row: 1;
	}
}

@media (max-width: 600px) {
	.gecom-legal__container {
		width: min(100% - 30px, 1120px);
	}

	.gecom-legal__hero {
		padding: 58px 0;
	}

	.gecom-legal__content {
		font-size: 16px;
	}

	.gecom-legal__content h2 {
		font-size: 27px;
	}
}
