/*
 * New Look fixes (2026-11 round, Google Ads landing check).
 * Loaded after the theme CSS. The Customizer's "Additional CSS" prints after this file,
 * so rules that must beat it use a body/html prefix for specificity rather than more !important.
 */

/* --------------------------------------------------------------------------
 * 1. Hamburger: keep it usable once the header is "stuck"
 *    Customizer CSS hides .logo/.main_nav/.menu-toggler in the stuck header on purpose (only
 *    "Get an offer" stays). Below 1200px the hamburger is the only navigation, so keep it there.
 * ------------------------------------------------------------------------ */
@media (max-width: 1199px) {
	/* In the stuck header the hamburger's lines are white on the (light) page and the toolbar is shifted up
	   26px, so it was barely visible. Make it a white round button, level with "Get an offer". */
	body .header.stuck .menu-toggler {
		display: block;
		position: relative;
		top: 28px;
		right: 10px;
		box-sizing: border-box;
		width: 44px !important;
		height: 44px !important;
		min-height: 0;
		padding: 0 !important;
		margin-left: 8px;
		background: #fff;
		border: 1px solid #ccc;
		border-radius: 50%;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	}
	/* closed: three short black lines, centered */
	body .header.stuck .menu-toggler:not(.active) span.lines,
	body .header.stuck .menu-toggler:not(.active) span.lines::before,
	body .header.stuck .menu-toggler:not(.active) span.lines::after {
		width: 20px;
		background-color: #000 !important;
	}
	body .header.stuck .menu-toggler:not(.active) span.lines {
		top: 21px;
		left: 11px;
	}
	body .header.stuck .menu-toggler:not(.active) span.lines::before { top: -6px; }
	body .header.stuck .menu-toggler:not(.active) span.lines::after  { top: 6px; }
	/* open: the theme's own X, just black and centered in the circle */
	body .header.stuck .menu-toggler.active span.lines {
		top: 21px;
		left: 7px;
	}
	body .header.stuck .menu-toggler.active span.lines::before,
	body .header.stuck .menu-toggler.active span.lines::after {
		background-color: #000 !important;
	}
	body .header.stuck .mainbar .container {
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
}

/* UserWay's invisible 44x44 button wrapper sits over the left half of the hamburger (the icon
   itself is moved down to 83px by the Customizer CSS), so taps there never reached the menu. */
/* !important: UserWay's own (cross-origin) stylesheet sets pointer-events on it */
html body .uwy .userway_buttons_wrapper {
	pointer-events: none !important;
}
html body .uwy .userway_buttons_wrapper > * {
	pointer-events: auto !important;
}

/* --------------------------------------------------------------------------
 * 2. ΕΣΠΑ popup (Popup Maker #629): full-width bar at the bottom on phones
 *    (the client's screenshot was a phone; on desktop the original 450px box at the bottom left stays).
 *    Popup Maker sets left/width inline from its 450px "custom" size, hence !important.
 * ------------------------------------------------------------------------ */
@media (max-width: 767px) {
	html body #popmake-629 {
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 8px 48px 8px 16px;
		background: #fff;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
		text-align: center;
	}
	html body #popmake-629 .pum-content p {
		margin: 0;
	}
	html body #popmake-629 img {
		display: inline-block;
		width: 100%;
		max-width: 400px;
		height: auto;
	}
	html body #popmake-629 .pum-close {
		top: 50% !important;
		right: 8px !important;
		transform: translateY(-50%);
	}
}

/* 9. ...and not over the opened hamburger menu */
html.disable_scrolling .pum {
	display: none !important;
}

/* --------------------------------------------------------------------------
 * 4. Less empty space on phones
 *    Rows: 62px (default) / 93px (3-2) / 124px (x2) of padding top and bottom, plus 35px
 *    plethora_emptyspace spacers in most columns.
 * ------------------------------------------------------------------------ */
@media (max-width: 767px) {
	body .content_main .vc_row.wpb_row:not(.vc_inner) {
		padding-top: 32px;
		padding-bottom: 32px;
	}
	body .content_main .vc_row.wpb_row.padding_top_none { padding-top: 0; }
	body .content_main .vc_row.wpb_row.padding_bottom_none { padding-bottom: 0; }
	/* plethora_emptyspace / vc_empty_space: inline "height: NNpx" divs without a class */
	body .content_main .wpb_wrapper > div[style^="height"]:not([class]),
	body .content_main .vc_empty_space {
		height: 12px !important;
	}
}

/* --------------------------------------------------------------------------
 * 6. Certification logos (home page): 2 per row on phones, all 6 in a row on desktop
 * ------------------------------------------------------------------------ */
body .cert-logos .wpb_wrapper {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px 32px;
	align-items: center;
}
body .cert-logos .wpb_wrapper > :not(.wpb_single_image) {
	grid-column: 1 / -1;   /* spacers and the "Read more" button span the whole row */
}
body .cert-logos .wpb_single_image {
	margin: 0 !important;
}
body .cert-logos .wpb_single_image img {
	width: 100%;
	max-width: 160px;
	height: auto;
}
body .cert-logos .wpb_single_image .vc_single_image-wrapper,
body .cert-logos .wpb_single_image figure {
	display: flex;
	justify-content: center;
	width: 100%;
}
@media (max-width: 991px) {
	body .cert-logos .wpb_wrapper {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	body .cert-logos .wpb_wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
	body .cert-logos .wpb_single_image img {
		max-width: 130px;
	}
}

/* --------------------------------------------------------------------------
 * 7. Contact form (CF7 #4, footer and /contact/): underline-only fields
 *    Colours follow the surrounding text, so it works on the black footer and the light page.
 * ------------------------------------------------------------------------ */
/* :is(#block-18, body): same specificity as the child theme's "#block-18 input" border rule */
:is(#block-18, body) .wpcf7-form input.wpcf7-text,
:is(#block-18, body) .wpcf7-form input.wpcf7-email,
:is(#block-18, body) .wpcf7-form textarea.wpcf7-textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
	padding: 10px 0 8px;
	box-shadow: none;
	outline: none;
	opacity: .85;
	transition: border-color .2s, opacity .2s, box-shadow .2s;
}
:is(#block-18, body) .wpcf7-form textarea.wpcf7-textarea {
	height: 110px;
	min-height: 0;
	resize: vertical;
}
:is(#block-18, body) .wpcf7-form input.wpcf7-text:focus,
:is(#block-18, body) .wpcf7-form input.wpcf7-email:focus,
:is(#block-18, body) .wpcf7-form textarea.wpcf7-textarea:focus {
	opacity: 1;
	box-shadow: 0 1px 0 0 currentColor;   /* 2px underline without moving the layout */
}
body .wpcf7-form label {
	display: block;
	margin: 18px 0 0;
	font-size: 14px;
	letter-spacing: .02em;
	opacity: .75;
}
body .wpcf7-form .wpcf7-list-item label {
	display: inline;
	margin: 0;
	font-size: inherit;
	opacity: 1;
}

/* --------------------------------------------------------------------------
 * 8. Footer page links (block widget "nl-footer-links", added in the 2026-11 round)
 * ------------------------------------------------------------------------ */
.nl-footer-links {
	display: flex;
	gap: 40px;
}
.nl-footer-links h4 {
	margin: 0 0 8px;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .6;
	color: inherit;
}
.nl-footer-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nl-footer-links li {
	margin: 0;
	font-size: 28px;   /* same steps as the theme's ".widget p" (the address, phone and social links) */
	line-height: 1.2;
}
@media (max-width: 1549px) { .nl-footer-links li { font-size: 24px; } }
@media (max-width: 1299px) { .nl-footer-links li { font-size: 22px; } }
@media (max-width: 991px)  { .nl-footer-links li { font-size: 20px; } }
@media (max-width: 580px)  { .nl-footer-links li { font-size: 18px; } }
@media (max-width: 991px) {
	.nl-footer-links {
		gap: 32px;
		margin: 12px 0;
	}
}

/* --------------------------------------------------------------------------
 * 9. Hamburger menu: tidier panel
 * ------------------------------------------------------------------------ */
/* "Contact" menu item: only in the hamburger menu; the desktop header has its own Contact us button */
@media (min-width: 1200px) {
	#menu-main-menu > li.nl-menu-mobile-only {
		display: none !important;
	}
}
@media (max-width: 1199px) {
	/* start the list below the close button and the UserWay icon (top right, ~96-140px) */
	body .secondary_nav_widgetized_area nav.primary_nav {
		margin-top: 72px;
		padding-right: 24px;
		box-sizing: border-box;
	}
	body .secondary_nav_widgetized_area nav.primary_nav > ul > li {
		border-bottom: 1px solid rgba(0, 0, 0, .1);
	}
	body .secondary_nav_widgetized_area nav.primary_nav > ul > li:last-child {
		border-bottom: 0;
	}
	body .secondary_nav_widgetized_area nav.primary_nav > ul > li > a {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
		width: 100% !important;
		padding: 14px 0 !important;
		font-size: 18px !important;
		line-height: 1.2;
		text-transform: uppercase;
		letter-spacing: .04em;
	}
	body .secondary_nav_widgetized_area nav.primary_nav > ul > li > a .fa {
		font-size: 14px;
		margin: 0 !important;
	}
	body .secondary_nav_widgetized_area nav.primary_nav ul ul {
		padding: 0 0 12px 0 !important;
		margin: 0 !important;
	}
	body .secondary_nav_widgetized_area nav.primary_nav ul ul li a {
		padding: 7px 0 7px 16px !important;
		font-size: 16px !important;
		opacity: .75;
	}
}
