/* =========================================================
   YCM Trading Blueprint — Header & Footer
   Child theme of Hello Elementor
   ========================================================= */

:root {
	--ycm-blue: #2563eb;
	--ycm-blue-dark: #1d4ed8;
	--ycm-navy: #1e2a4a;
	--ycm-topbar-bg: #a9c3f7;
	--ycm-home-pill: #fbe7b0;
	--ycm-text: #1f2937;
	--ycm-muted: #374151;
	--ycm-border: #d0d5dd;
	--ycm-disclaimer: #ef6b6b;
	--ycm-container: 1280px;
}

/* Shared container */
.ycm-container {
	width: 100%;
	max-width: var(--ycm-container);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* =========================================================
   HEADER
   ========================================================= */
.ycm-header {
	position: relative;
	width: 100%;
	background: #fff;
	font-family: inherit;
}

/* --- Top announcement bar --- */
.ycm-topbar {
	background: var(--ycm-topbar-bg);
	color: var(--ycm-navy);
	overflow: hidden;
	max-height: 160px;
	transition: max-height 0.4s ease, opacity 0.35s ease;
}
.ycm-topbar.is-hidden {
	max-height: 0;
	opacity: 0;
}
.ycm-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 40px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.ycm-topbar__text {
	margin: 0;
	text-align: center;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}
.ycm-topbar__sep {
	margin: 0 6px;
	opacity: 0.7;
}
.ycm-topbar__close {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: transparent !important;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	color: var(--ycm-navy);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ycm-topbar__close:hover,
.ycm-topbar__close:focus {
	background: rgba(30, 42, 74, 0.12) !important;
	color: var(--ycm-navy);
	outline: none;
}

/* --- Main navbar --- */
.ycm-navbar {
	background: #fff;
	border-bottom: 1px solid #eceef1;
}
.ycm-navbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
}
.ycm-navbar__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
.ycm-navbar__logo {
	display: block;
	height: 56px;
	width: auto;
}

/* Menu */
.ycm-navbar__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}
.ycm-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ycm-menu > li {
	position: relative;
}
.ycm-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 9999px;
	font-size: 16px;
	font-weight: 500;
	color: var(--ycm-text);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.ycm-menu > li > a:hover {
	background: #f3f4f6;
}
.ycm-menu > li.current-menu-item > a,
.ycm-menu > li.current_page_item > a {
	background: var(--ycm-home-pill);
	color: #1a1a1a;
}
/* Dropdown caret */
.ycm-menu > li.menu-item-has-children > a::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.3s ease;
}
.ycm-menu > li.menu-item-has-children.is-expanded > a::after {
	transform: translateY(1px) rotate(-135deg);
}

/* Submenus */
.ycm-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 50;
}
.ycm-menu > li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.ycm-menu .sub-menu a {
	display: block;
	padding: 8px 18px;
	font-size: 15px;
	color: var(--ycm-text);
	text-decoration: none;
}
.ycm-menu .sub-menu a:hover {
	background: #f3f4f6;
}

/* Action buttons */
.ycm-navbar__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
}
.ycm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	line-height: 1;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
	white-space: nowrap;
}
.ycm-btn--outline,
.ycm-btn--outline:link,
.ycm-btn--outline:visited {
	background: #fff;
	color: var(--ycm-text);
	border: 1px solid var(--ycm-border);
}
.ycm-btn--outline:hover,
.ycm-btn--outline:focus {
	background: var(--ycm-blue);
	border-color: var(--ycm-blue);
	color: #fff;
}
.ycm-btn--primary,
.ycm-btn--primary:link,
.ycm-btn--primary:visited {
	background: var(--ycm-blue);
	color: #fff;
	border: 1px solid var(--ycm-blue);
}
.ycm-btn--primary:hover,
.ycm-btn--primary:focus {
	background: var(--ycm-blue-dark);
	border-color: var(--ycm-blue-dark);
	color: #fff;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

/* Mobile toggle (hidden on desktop) */
.ycm-navbar__toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	-webkit-appearance: none;
	appearance: none;
	background: transparent !important;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	padding: 0;
}
.ycm-navbar__toggle:hover,
.ycm-navbar__toggle:focus {
	background: transparent !important;
	outline: none;
}
.ycm-navbar__toggle span {
	display: block;
	height: 2px;
	width: 26px;
	background: var(--ycm-text);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.2s ease;
}
/* Animate burger into an X when the menu is open */
.ycm-navbar__toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.ycm-navbar__toggle.is-active span:nth-child(2) {
	opacity: 0;
}
.ycm-navbar__toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   FOOTER
   ========================================================= */
.ycm-footer {
	background: #fff;
	color: var(--ycm-muted);
	font-family: inherit;
	padding-top: 56px;
}
.ycm-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 40px;
	padding-bottom: 40px;
}
.ycm-footer__col {
	min-width: 0;
}

/* Widget wrappers inside footer columns */
.ycm-footer__col .ycm-widget + .ycm-widget {
	margin-top: 28px;
}
.ycm-footer__col--brand .ycm-widget + .ycm-widget {
	margin-top: 6px;
}
/* Navigation-menu widget list matches the design's link list */
.ycm-footer__col .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Column 1 — brand */
.ycm-footer__logo {
	display: block;
	height: 56px;
	width: auto;
	margin-bottom: 22px;
}
.ycm-footer__desc {
	margin: 0 0 28px;
	font-size: 19px;
	line-height: 1.5;
	color: #1f2937;
	max-width: 380px;
}
.ycm-footer__social-title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}
.ycm-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
}
.ycm-social a {
	display: inline-flex;
	color: #111827;
	transition: color 0.15s ease, transform 0.15s ease;
}
.ycm-social a:hover {
	color: var(--ycm-blue);
	transform: translateY(-2px);
}

/* Footer headings */
.ycm-footer__heading {
	margin: 0 0 20px;
	font-size: 26px;
	font-weight: 600;
	color: #111827;
}

/* Footer link menus */
.ycm-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ycm-footer-menu li {
	margin-bottom: 14px;
}
.ycm-footer-menu a {
	font-size: 17px;
	color: #374151;
	text-decoration: none;
	transition: color 0.15s ease;
}
.ycm-footer-menu a:hover {
	color: var(--ycm-blue);
}

/* Contact column */
.ycm-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ycm-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
	font-size: 17px;
	line-height: 1.45;
	color: #374151;
}
.ycm-contact__icon {
	flex: 0 0 auto;
	display: inline-flex;
	margin-top: 2px;
}
.ycm-contact__item a {
	color: #374151;
	text-decoration: none;
}
.ycm-contact__item a:hover {
	color: var(--ycm-blue);
}

/* Disclaimer */
.ycm-footer__disclaimer {
	margin: 24px auto 48px;
	max-width: 1100px;
	text-align: center;
	font-size: 18px;
	line-height: 1.5;
	color: var(--ycm-disclaimer);
}

/* Bottom copyright bar */
.ycm-footer__bottom {
	background: var(--ycm-navy);
	color: #fff;
	padding: 18px 0;
}
.ycm-footer__bottom p {
	margin: 0;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.ycm-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
	}
}

@media (max-width: 900px) {
	.ycm-navbar {
		position: relative;
	}
	.ycm-navbar__inner {
		justify-content: space-between;
		min-height: 68px;
	}
	.ycm-navbar__actions {
		display: none;
	}
	.ycm-navbar__toggle {
		display: flex;
	}
	.ycm-navbar__logo {
		height: 44px;
	}

	/* Slide-down mobile panel */
	.ycm-navbar__nav {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
		z-index: 40;
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		transition: max-height 0.4s ease, opacity 0.3s ease;
	}
	.ycm-navbar__nav.is-open {
		max-height: calc(100vh - 108px);
		opacity: 1;
		overflow-y: auto;
		border-bottom: 1px solid #eceef1;
	}
	.ycm-menu {
		flex-direction: column;
		align-items: stretch;
		padding: 10px 16px 16px;
		gap: 2px;
	}
	.ycm-menu > li > a {
		border-radius: 8px;
		padding: 12px 14px;
	}
	.ycm-menu > li.menu-item-has-children > a {
		justify-content: space-between;
	}
	.ycm-menu > li.menu-item-has-children > a::after {
		margin-left: auto;
	}

	/* Accordion sub-menus — collapsed until parent .is-expanded */
	.ycm-menu .sub-menu {
		position: static;
		visibility: visible;
		opacity: 1;
		transform: none;
		box-shadow: none;
		border: 0;
		border-radius: 0;
		min-width: 0;
		padding: 0 0 0 14px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
	}
	.ycm-menu > li.is-expanded > .sub-menu {
		max-height: 360px;
	}
	.ycm-menu .sub-menu a {
		padding: 10px 14px;
	}
}

@media (max-width: 600px) {
	.ycm-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.ycm-topbar__text {
		font-size: 13px;
		padding-right: 28px;
	}
	.ycm-topbar__close {
		right: 12px;
	}
	.ycm-footer__heading {
		font-size: 22px;
	}
	.ycm-footer__desc {
		font-size: 17px;
	}
}
