/*
Theme Name:   Jansen Consulting (Hello Child)
Theme URI:    https://jansenconsulting.com.au/
Description:  Hello Elementor child theme for Jansen Consulting & Logistics. Self-hosted Poppins/Roboto, site header/footer, and Elementor global styles.
Author:       Jansen Consulting & Logistics
Template:     hello-elementor
Version:      1.0.0
Requires PHP: 7.4
Text Domain:  hello-elementor-child
*/

:root {
	--jcl-red: #d00909;
	--jcl-tag: #f44336;
	--jcl-black: #000;
	--jcl-muted: #a8a8a8;
	--jcl-bar: #f2f2f2;
	--jcl-header-h: 91px;
	--jcl-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
body {
	font-family: var(--jcl-font);
	font-size: 15px;
	line-height: 30px;
	color: var(--jcl-black);
	background: #fff;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--jcl-font); color: var(--jcl-black); }
a { color: var(--jcl-red); }
a:hover { color: var(--jcl-black); }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--jcl-header-h) + 10px); }

/* ---------- Header ---------- */
.jcl-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 999;
	background: #fff;
	transition: box-shadow .25s;
}
.jcl-header.is-scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, .1); }
.jcl-header__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: var(--jcl-header-h);
	padding: 0 30px;
}
.jcl-header__logo img { display: block; max-height: 60px; width: auto; }

.jcl-nav { flex: 1; }
.jcl-menu, .jcl-menu ul { list-style: none; margin: 0; padding: 0; }
.jcl-menu { display: flex; align-items: center; }
.jcl-menu > li { position: relative; }
.jcl-menu a {
	display: block;
	padding: 0 20px;
	font-size: 15px;
	line-height: 60px;
	color: var(--jcl-black);
	text-decoration: none;
	transition: color .2s;
}
.jcl-menu a:hover,
.jcl-menu .current-menu-item > a,
.jcl-menu .current-menu-ancestor > a { color: var(--jcl-red); }
.jcl-menu > .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	opacity: .6;
}
.jcl-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 10px 0;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .2s;
}
.jcl-menu li:hover > .sub-menu,
.jcl-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.jcl-menu .sub-menu a { line-height: 1.5; padding: 10px 20px; }

.jcl-header__actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.jcl-search-toggle,
.jcl-menu-toggle {
	background: none;
	border: 0;
	padding: 6px;
	color: var(--jcl-black);
	cursor: pointer;
	line-height: 0;
}
.jcl-search-toggle:hover, .jcl-search-toggle:focus { background: none; color: var(--jcl-red); }
.jcl-btn {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 10px;
	background: var(--jcl-black);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	line-height: 15px;
	text-decoration: none;
	transition: background .2s;
}
.jcl-btn:hover, .jcl-btn:focus { background: var(--jcl-red); color: #fff; }

.jcl-search { padding: 0 30px 20px; }
.jcl-search form { display: flex; gap: 10px; max-width: 600px; margin-left: auto; }
.jcl-search input[type="search"] { flex: 1; border-radius: 10px; }

.jcl-menu-toggle { display: none; flex-direction: column; gap: 5px; }
.jcl-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--jcl-red); transition: transform .2s, opacity .2s; }
.jcl-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jcl-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.jcl-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
	:root { --jcl-header-h: 70px; }
	.jcl-header__inner { gap: 15px; padding: 0 16px; flex-wrap: wrap; }
	.jcl-header__logo img { max-height: 46px; }
	.jcl-menu-toggle { display: flex; }
	.jcl-nav { order: 3; flex-basis: 100%; display: none; padding-bottom: 15px; }
	.jcl-nav.is-open { display: block; }
	.jcl-menu { flex-direction: column; align-items: stretch; }
	.jcl-menu a { line-height: 44px; padding: 0 10px; border-top: 1px solid rgba(0, 0, 0, .06); }
	.jcl-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 15px; }
}
@media (max-width: 480px) {
	.jcl-btn { padding: 10px 14px; font-size: 13px; }
	.jcl-header__actions { gap: 8px; }
}

/* ---------- Footer ---------- */
.jcl-footer { padding: 70px 16px 0; background: #fff; text-align: center; }
.jcl-footer__logo { display: inline-block; margin-bottom: 40px; }
.jcl-footer__logo img { display: block; max-width: 245px; height: auto; }
.jcl-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: 1000px;
	margin: 0 auto;
}
.jcl-footer__col h4 { font-size: 17px; line-height: 26px; font-weight: 600; margin: 0 0 15px; text-align: center; }
.jcl-footer__col p { font-size: 13px; line-height: 26px; margin: 0; }
.jcl-footer__col--right p { text-align: right; }
.jcl-footer__col--center p { text-align: center; }
.jcl-footer__col--left p { text-align: left; }
.jcl-footer__col a { color: var(--jcl-black); text-decoration: none; }
.jcl-footer__col a:hover { color: var(--jcl-red); }
.jcl-backtotop { display: inline-block; margin: 40px 0 20px; color: var(--jcl-muted); }
.jcl-backtotop:hover { color: var(--jcl-red); }
.jcl-footer__copy { padding: 20px 0 40px; font-size: 12px; color: var(--jcl-black); }

@media (max-width: 767px) {
	.jcl-footer__cols { grid-template-columns: 1fr; }
	.jcl-footer__col p { text-align: center !important; }
}

/* ---------- Elementor content helpers ---------- */

/* "WHY US" label with the short line icon */
.jcl-eyebrow .elementor-heading-title { letter-spacing: 3px; }

/* Testimonials (turned into a slider by assets/js/site.js) */
.jcl-testimonials .elementor-testimonial-content {
	font-size: 17px;
	line-height: 30px;
	font-style: italic;
	color: var(--jcl-black);
}
.jcl-testimonials .elementor-testimonial-content::after {
	content: '\2022\00a0\2022\00a0\2022';
	display: block;
	margin-top: 15px;
	color: var(--jcl-red);
	font-style: normal;
	letter-spacing: 2px;
}
.jcl-testimonials .elementor-testimonial-name { font-size: 20px; font-weight: 600; color: var(--jcl-black); }
.jcl-testimonials .elementor-testimonial-job { font-size: 13px; color: var(--jcl-muted); }
.jcl-testimonials .elementor-testimonial-wrapper { max-width: 800px; margin: 0 auto; }

.jcl-slider-ready > .elementor-widget-testimonial { display: none; }
.jcl-slider-ready > .elementor-widget-testimonial.is-active { display: block; animation: jcl-fade .5s ease; }
.jcl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; width: 100%; }
.jcl-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c7c7cc;
	cursor: pointer;
}
.jcl-dots button:hover, .jcl-dots button:focus { background: #888; }
.jcl-dots button[aria-current="true"] { background: var(--jcl-red); }
@keyframes jcl-fade { from { opacity: 0; } to { opacity: 1; } }

/* Quotes on inner pages */
.jcl-quote blockquote {
	margin: 30px 0 0;
	padding: 0 0 0 25px;
	border-left: 3px solid var(--jcl-red);
	font-size: 21px;
	font-style: italic;
	font-weight: 600;
}
.jcl-quote cite { display: block; font-size: 14px; font-style: normal; color: var(--jcl-muted); }

/* Page title bar breadcrumb */
.jcl-breadcrumb p { margin: 0; font-size: 12px; color: var(--jcl-muted); }
.jcl-breadcrumb a { color: var(--jcl-black); text-decoration: none; }
.jcl-breadcrumb a:hover { color: var(--jcl-red); }
