/* ==========================================================
   Header mega menus (Services / Industries)
   Menu items: parent has class "tt-mega" (+ "tt-mega-services" or
   "tt-mega-industries"); children use "fas fa-..." for the icon and the
   menu item Description field for the grey line under the name.
   ========================================================== */

header#masthead ul#menu-main-menu .dropdown-menu li { padding-left: 0; }
header#masthead ul#menu-main-menu .dropdown-menu a.dropdown-item { font-family: 'DM Sans', sans-serif; }
header#masthead .dropdown-menu .mm-text { display: block; }
header#masthead .dropdown-menu .mm-name { display: block; font-weight: 700; font-size: 15px; color: #fff; line-height: 1.3; }
header#masthead .dropdown-menu .mm-desc { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.55); line-height: 1.4; }

@media (min-width: 1200px) {
	header#masthead .navbar,
	header#masthead #main-nav,
	header#masthead ul#menu-main-menu,
	header#masthead ul#menu-main-menu > li.tt-mega { position: static; }

	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px 24px;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 28px max(24px, calc((100% - 1320px) / 2)) 24px;
		background: #14435F;
		border: 0;
		border-top: 3px solid #60CE80;
		border-radius: 0;
		box-shadow: 0 24px 50px rgba(0,0,0,0.35);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .3s ease, transform .3s ease, visibility .3s;
		z-index: 100;
	}
	/* hover bridge between the menu link and the panel */
	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu::before {
		content: '';
		position: absolute;
		left: 0; right: 0;
		top: -34px;
		height: 34px;
	}
	/* column title */
	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu::after {
		order: -1;
		grid-column: 1 / -1;
		margin-bottom: 6px;
		padding-left: 12px;
		font-family: 'DM Sans', sans-serif;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 1.2px;
		text-transform: uppercase;
		color: #60CE80;
	}
	header#masthead ul#menu-main-menu > li.tt-mega-services > .dropdown-menu::after { content: 'Our Services'; }
	header#masthead ul#menu-main-menu > li.tt-mega-industries > .dropdown-menu::after { content: 'Industries We Support'; }

	header#masthead ul#menu-main-menu > li.tt-mega:hover > .dropdown-menu,
	header#masthead ul#menu-main-menu > li.tt-mega.show > .dropdown-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu > li > a.dropdown-item {
		display: flex;
		align-items: flex-start;
		gap: 12px;
		height: 100%;
		padding: 12px;
		border-radius: 10px;
		white-space: normal;
		transition: background .2s;
	}
	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu > li > a.dropdown-item:hover,
	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu > li.current-menu-item > a.dropdown-item {
		background: rgba(96,206,128,0.1);
		color: #fff;
	}
	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu > li > a.dropdown-item > i {
		flex-shrink: 0;
		width: 40px;
		height: 40px;
		border-radius: 8px;
		background: #0D2638;
		color: #60CE80;
		font-size: 17px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	header#masthead ul#menu-main-menu > li.tt-mega > a.dropdown-toggle::after { transition: transform .3s; }
	header#masthead ul#menu-main-menu > li.tt-mega:hover > a.dropdown-toggle::after { transform: rotate(180deg); }
	header#masthead ul#menu-main-menu > li.tt-mega:hover > a.dropdown-toggle { color: #60ce80; }
}

@media (max-width: 1199px) {
	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu { margin: 0 0 8px 15px; padding: 0; }
	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu > li > a.dropdown-item {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 8px 0;
		color: #fff;
		white-space: normal;
	}
	header#masthead ul#menu-main-menu > li.tt-mega > .dropdown-menu > li > a.dropdown-item > i { width: 18px; color: #60CE80; text-align: center; }
	header#masthead .dropdown-menu .mm-name { font-weight: 500; }
	header#masthead .dropdown-menu .mm-desc { display: none; }
}

/* ==========================================================
   Get a Quote block ([tt_quote_form] on the Contact page)
   Converted from the "idea 4 final.html" design
   ========================================================== */

.tt-quote {
	--dark: #091C2A;
	--green: #60CE80;
	--green-dark: #3DA85A;
	--muted: rgba(255,255,255,0.55);
	--text-body: #24292E;
	display: grid;
	grid-template-columns: 40% 60%;
	width: 100%;
	font-family: 'Inter', 'DM Sans', sans-serif;
}
.tt-quote *, .tt-quote *::before, .tt-quote *::after { box-sizing: border-box; }

.tt-quote .quote-left {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 60px 48px;
	background: var(--dark);
	color: #fff;
}
.tt-quote .quote-left::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 24px 24px;
	pointer-events: none;
}
.tt-quote .quote-left > * { position: relative; z-index: 1; }
.tt-quote .ql-logo { margin-bottom: 20px; }
.tt-quote .ql-logo img { width: 200px; height: auto; }
.tt-quote .ql-tagline { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.8); margin: 0 0 32px; max-width: 360px; }
.tt-quote .ql-locations { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.tt-quote .ql-location-label { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.tt-quote .ql-location-text { font-size: 13px; line-height: 1.5; color: var(--muted); }
.tt-quote .ql-location-text a { color: var(--muted); }
.tt-quote .ql-location-text a:hover { color: #fff; }
.tt-quote .ql-email { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: var(--green); align-self: flex-start; }
.tt-quote .ql-email:hover { color: var(--green); text-decoration: underline; }
.tt-quote .ql-email svg { width: 16px; height: 16px; }
.tt-quote .ql-social { display: flex; gap: 12px; margin-bottom: 32px; }
.tt-quote .ql-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,0.06); transition: background .2s; }
.tt-quote .ql-social a svg { width: 16px; height: 16px; color: rgba(255,255,255,0.55); transition: color .2s; }
.tt-quote .ql-social a:hover { background: rgba(96,206,128,0.15); }
.tt-quote .ql-social a:hover svg { color: var(--green); }
.tt-quote .ql-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.tt-quote .ql-stat { padding: 10px 16px; border: 1px solid var(--green); border-radius: 10px; font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; color: var(--green); white-space: nowrap; }

.tt-quote .quote-right { display: flex; align-items: flex-start; padding: 48px; background: #fff; }
.tt-quote .quote-form { width: 100%; max-width: 680px; }
.tt-quote .quote-form h2 { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-weight: 800; font-size: 22px; color: var(--text-body); margin: 0 0 4px; }
.tt-quote .quote-form .form-note { font-size: 13px; color: #6B7280; margin: 0 0 28px; }
.tt-quote .req { color: #EF4444; }
.tt-quote .wpcf7 form p { margin: 0; }
.tt-quote .form-row { display: grid; gap: 16px; margin: 0 0 16px; }
.tt-quote .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.tt-quote .form-group { display: flex; flex-direction: column; margin-bottom: 0; }
.tt-quote .form-group > label,
.tt-quote .pill-group-label { font-size: 14px; font-weight: 600; color: #374151; margin: 0 0 6px; }
.tt-quote .pill-group-label { margin-bottom: 10px; }
.tt-quote .wpcf7-form-control-wrap { display: block; }
.tt-quote .form-field,
.tt-quote .wpcf7-text,
.tt-quote .wpcf7-email,
.tt-quote .wpcf7-tel,
.tt-quote .wpcf7-url,
.tt-quote .wpcf7-select,
.tt-quote .wpcf7-textarea {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #D1D5DB;
	border-radius: 8px;
	background: #fff;
	color: var(--text-body);
	font-family: 'Inter', 'DM Sans', sans-serif;
	font-size: 14px;
	outline: none;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.tt-quote .wpcf7-form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(96,206,128,0.15); }
.tt-quote .wpcf7-form-control::placeholder { color: #9CA3AF; }
.tt-quote .wpcf7-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.tt-quote .wpcf7-textarea { height: 120px; min-height: 110px; padding: 12px 14px; resize: vertical; }

/* pills (CF7 checkboxes with use_label_element) */
.tt-quote .pills-wrap { margin-bottom: 16px; }
.tt-quote .pills-wrap .wpcf7-checkbox,
.tt-quote .pills-wrap .wpcf7-checkbox.form-control {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	height: auto;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}
.tt-quote .pills-wrap .wpcf7-list-item { margin: 0; }
.tt-quote .pills-wrap .wpcf7-list-item label { margin: 0; cursor: pointer; }
.tt-quote .pills-wrap .wpcf7-list-item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tt-quote .pills-wrap .wpcf7-list-item-label {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid #D1D5DB;
	border-radius: 999px;
	background: #fff;
	color: #4B5563;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	user-select: none;
	transition: all .2s;
}
.tt-quote .pills-wrap .wpcf7-list-item-label:hover { border-color: #9CA3AF; }
.tt-quote .pills-wrap input:checked + .wpcf7-list-item-label { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.tt-quote .pills-wrap input:focus-visible + .wpcf7-list-item-label { box-shadow: 0 0 0 3px rgba(96,206,128,0.25); }

.tt-quote .wpcf7-submit {
	width: 100%;
	height: 52px;
	margin-top: 8px;
	border: 0;
	border-radius: 999px;
	background: var(--green);
	color: var(--dark);
	font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.tt-quote .wpcf7-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.tt-quote .wpcf7-spinner { display: none; margin: 10px auto 0; }
.tt-quote form.submitting .wpcf7-spinner { display: block; }
.tt-quote .form-disclaimer { text-align: center; font-size: 12px; color: #9CA3AF; margin: 14px 0 0; }
.tt-quote .wpcf7-not-valid-tip { font-size: 12px; margin-top: 4px; }
.tt-quote .wpcf7-response-output { margin: 16px 0 0 !important; border-radius: 8px; font-size: 14px; color: var(--text-body); }

/* contact page: section that holds the quote block */
.tt-quote-sec { padding: 0 !important; }
.tt-quote-sec .vc_row { margin-left: 0; margin-right: 0; }
.tt-quote-sec .wpb_column { padding: 0; }
.tt-quote-sec .vc_column_container > .vc_column-inner { padding: 0 !important; }

@media (max-width: 1100px) {
	.tt-quote { grid-template-columns: 1fr; }
	.tt-quote .quote-left { padding: 40px 24px; }
	.tt-quote .quote-right { padding: 32px 24px; }
}
@media (max-width: 768px) {
	.tt-quote .form-row.cols-2 { grid-template-columns: 1fr; }
	.tt-quote .quote-left { padding: 32px 20px; }
	.tt-quote .quote-right { padding: 24px 20px; }
	.tt-quote .ql-stats { flex-direction: column; align-items: flex-start; }
}
