/*
Theme Name: CFL Hello Child
Description: Minimal CFL header and footer for Hello Elementor.
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-cfl-child
*/

.cfl-header, .cfl-footer {
	color: #171717;
	font-family: Lato, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
}
.cfl-header *, .cfl-footer * { box-sizing: border-box; }
.cfl-header a, .cfl-footer a { color: inherit; }
.cfl-header a:focus-visible, .cfl-footer a:focus-visible,
.cfl-header button:focus-visible, .cfl-skip-link:focus-visible {
	outline: 3px solid #171717;
	outline-offset: 4px;
}
.cfl-header [hidden] { display: none !important; }
.cfl-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: linear-gradient(110deg, #f7941d 20%, #d9d9d6 85%);
	border-bottom: 1px solid rgb(0 0 0 / 12%);
}
.cfl-body.admin-bar .cfl-header { top: 32px; }
.cfl-header-inner {
	max-width: 1440px;
	margin-inline: auto;
	padding: 12px clamp(16px, 3vw, 48px);
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
}
.cfl-brand { display: inline-flex; align-items: center; text-decoration: none; }
.cfl-logo { display: block; width: 88px; height: 76px; object-fit: contain; }
.cfl-brand-name { font-weight: 700; line-height: 1.2; }
.cfl-header .cfl-brand { gap: 14px; min-width: 0; }
.cfl-header .cfl-logo { flex: 0 0 88px; }
.cfl-header .cfl-motto { display: block; min-width: 0; padding-left: 12px; border-left: 2px solid rgb(23 23 23 / 45%); color: #171717; font: 600 0.8125rem/1.3 Montserrat, Arial, sans-serif; white-space: normal; }
.cfl-header .cfl-motto span { display: block; }
.cfl-menu, .cfl-menu .sub-menu, .cfl-course-links { list-style: none; padding: 0; margin: 0; }
.cfl-nav .cfl-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.cfl-nav li { position: relative; }
.cfl-nav a { display: inline-block; padding: 10px 4px; text-decoration: none; font-weight: 700; }
@media (min-width: 1200px) {
	.cfl-nav > .cfl-menu > li > a { padding-inline: 2px; font-size: 0.9375rem; white-space: nowrap; }
}
.cfl-nav a:hover, .cfl-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 5px; }
.cfl-nav .sub-menu { padding-left: 16px; }
.cfl-menu-toggle, .cfl-submenu-toggle {
	font: inherit;
	color: #171717;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 4px;
	cursor: pointer;
	min-height: 44px;
	min-width: 44px;
	padding: 6px;
}
.cfl-menu-toggle:hover, .cfl-menu-toggle:focus,
.cfl-submenu-toggle:hover, .cfl-submenu-toggle:focus { color: #171717; background: #ffc72c; }
.cfl-submenu-toggle { border: 0; margin-left: 2px; vertical-align: middle; }
.cfl-submenu-toggle[aria-expanded="true"] .cfl-chevron { display: inline-block; transform: rotate(180deg); }
.cfl-header.cfl-enhanced .cfl-nav > .cfl-menu > li > .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	width: min(340px, 85vw);
	max-height: min(65vh, 600px);
	overflow-y: auto;
	padding: 12px;
	background: #f7941d;
	border: 1px solid rgb(0 0 0 / 20%);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 12px 24px rgb(0 0 0 / 15%);
	scrollbar-color: #171717 #f7941d;
}
.cfl-nav .sub-menu li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.cfl-nav .sub-menu .sub-menu { grid-column: 1 / -1; border-left: 1px solid rgb(0 0 0 / 25%); }
.cfl-nav .sub-menu a { font-size: 0.9375rem; overflow-wrap: anywhere; }
.cfl-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.cfl-currency { min-width: 0; max-width: 180px; }
.cfl-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 18px;
	border: 1px solid #171717;
	border-radius: 999px;
	background: #ffc72c;
	color: #171717;
	font: 700 0.875rem/1.4 Montserrat, Arial, sans-serif;
	text-decoration: none;
	white-space: nowrap;
}
.cfl-cta:hover { background: #ffdb72; }
.cfl-footer { background: #f7941d; font-size: 0.9375rem; line-height: 1.55; }
.cfl-footer-inner {
	max-width: 1440px;
	margin-inline: auto;
	padding: 36px clamp(20px, 4vw, 64px);
	display: grid;
	grid-template-columns: minmax(0, 35fr) minmax(0, 18fr) minmax(0, 22fr) minmax(0, 25fr);
	grid-template-areas: "brand courses links contact";
	align-items: start;
	gap: 24px;
}
.cfl-footer-inner > * { min-width: 0; }
.cfl-footer .cfl-about { grid-area: brand; }
.cfl-footer .cfl-courses { grid-area: courses; }
.cfl-footer .cfl-footer-nav { grid-area: links; }
.cfl-footer .cfl-contact { grid-area: contact; }
.cfl-footer h2 { margin: 0 0 12px; font: 700 1.0625rem/1.3 Montserrat, Arial, sans-serif; color: #171717; }
.cfl-footer p { margin: 0 0 12px; }
.cfl-footer .cfl-about > p { max-width: 38ch; }
.cfl-footer a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cfl-footer .cfl-brand { margin-bottom: 12px; text-decoration: none; }
.cfl-footer .cfl-logo { width: 88px; height: 72px; }
.cfl-footer li { margin: 0 0 8px; }
.cfl-footer .cfl-menu a, .cfl-footer .cfl-course-links a { display: inline-block; padding-block: 3px; }
.cfl-footer .cfl-social { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cfl-footer .cfl-social a { display: inline-flex; align-items: center; min-height: 36px; }
.cfl-footer .cfl-contact address { font-style: normal; margin: 0 0 12px; }
.cfl-footer .cfl-contact address > a { display: block; padding-block: 3px; }
.cfl-footer .cfl-contact address > p { margin: 8px 0 0; }
.cfl-footer .cfl-map { display: block; width: 100%; height: 160px; border: 0; border-radius: 6px; }
.cfl-copyright { background: #00a3e0; color: #101820; padding: 12px 20px; text-align: center; }
.cfl-copyright p { margin: 0; }
.cfl-sr-only, .cfl-skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.cfl-skip-link:focus { position: fixed; top: 80px; left: 16px; z-index: 100001; background: #fff; color: #171717; padding: 12px 20px; }

@media (max-width: 1199px) {
	.cfl-header-inner { grid-template-columns: 1fr auto; gap: 10px 16px; }
	.cfl-menu-toggle { grid-column: 2; grid-row: 1; }
	.cfl-header-actions { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; flex-wrap: wrap; }
	.cfl-nav { grid-column: 1 / -1; grid-row: 3; max-height: max(100px, calc(100svh - 240px)); overflow-y: auto; }
	.cfl-nav .cfl-menu { display: block; }
	.cfl-nav .cfl-menu li { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
	.cfl-nav .sub-menu { grid-column: 1 / -1; }
	.cfl-header.cfl-enhanced .cfl-nav > .cfl-menu > li > .sub-menu {
		position: static; width: auto; max-height: none; overflow: visible;
		padding: 0 0 0 16px; border: 0; border-left: 1px solid #171717;
		border-radius: 0; box-shadow: none;
	}
	.cfl-header .cfl-brand { gap: 12px; }
	.cfl-header .cfl-logo { height: 66px; width: 76px; flex-basis: 76px; }
	.cfl-header .cfl-motto { font-size: 0.75rem; }
	.cfl-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand contact" "courses links"; gap: 28px; }
}
@media (max-width: 782px) {
	.cfl-body.admin-bar .cfl-header { top: 46px; }
}
@media (max-width: 600px) {
	/* WordPress's mobile admin bar scrolls away rather than remaining fixed. */
	.cfl-body.admin-bar .cfl-header { top: 0; }
	.cfl-header .cfl-brand { gap: 8px; }
	.cfl-header .cfl-logo { width: 60px; height: 56px; flex-basis: 60px; }
	.cfl-header .cfl-motto { padding-left: 8px; font-size: 0.6875rem; overflow-wrap: anywhere; }
	.cfl-footer-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "contact" "courses" "links"; padding-block: 28px; gap: 24px; }
}
@media print {
	.cfl-header { position: static; }
	.cfl-menu-toggle, .cfl-submenu-toggle, .cfl-map { display: none !important; }
}
