/*
 * HamyarCrypto site chrome: the crypto look of the parent's header, footer
 * (block styles chosen in the Styles panel) and heading highlights.
 */

.hmf-header {
	position: relative;
	z-index: 20;
	border-color: #e7edf3;
	box-shadow: 0 12px 32px -26px rgb(15 16 29 / 0.25);
}

.hmf-header__bar {
	max-inline-size: 1240px;
	gap: 12px;
	padding: 16px;
}

.hmf-header__brand {
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

.hmf-header__brand .custom-logo {
	display: block;
	inline-size: 158px;
	block-size: auto;
	aspect-ratio: 227 / 56;
}

.hmf-header__tagline {
	color: var(--hc-muted);
	font-size: 13px;
	line-height: 1.6;
}

.hmf-header .hmf-nav__link,
.hmf-header .hmf-nav__toggle {
	color: var(--hc-slate-2);
	font-size: 17px;
}

.hmf-header .hmf-nav__panel .hmf-nav__link {
	font-size: 16px;
}

.hmf-header .hmf-nav__link:hover,
.hmf-js .hmf-header .hmf-nav__toggle:hover,
.hmf-header .hmf-nav__toggle[aria-expanded="true"] {
	background-color: var(--hc-sky);
	color: var(--hc-blue-deep);
}

.hmf-js .hmf-header .hmf-nav .hmf-nav__menu {
	inline-size: 48px;
	block-size: 48px;
	border: 1px solid var(--hc-line-2);
	border-radius: 14px;
	background: var(--hc-sky);
}

.hmf-header__cta.hmf-button {
	min-block-size: 48px;
	padding: 11px 18px;
	gap: 10px;
	border: 1px solid #f4b331;
	border-radius: 14px;
	background: var(--hc-gold-gradient);
	color: var(--hc-ink-2);
	font-size: 16px;
	font-weight: 700;
}

.hmf-header__cta.hmf-button::after {
	content: "";
	inline-size: 18px;
	block-size: 18px;
	background: currentColor;
	mask: var(--hc-icon-arrow) center / contain no-repeat;
}

.hmf-header__cta.hmf-button:hover {
	background: var(--hc-gold-deep);
	color: var(--hc-ink-2);
}
.hmf-header__phone {
	display: flex;
	align-items: center;
	justify-content: center;
	min-block-size: 48px;
	color: var(--hc-slate);
	font-size: 15px;
	text-decoration: none;
}

@media (width < 64rem) {
	.hmf-header__tools {
		display: none;
		order: 2;
		flex: 1 1 100%;
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 8px;
	}

	.hmf-header:has(.hmf-nav__menu[aria-expanded="true"]) .hmf-header__tools {
		display: flex;
	}

	.hmf-header .hmf-nav__menu {
		margin-inline-start: auto;
	}
}

@media (37.5rem <= width < 64rem) {
	.hmf-header__tools {
		display: flex;
		order: -1;
		flex: 0 0 auto;
		flex-direction: row;
		margin-inline-start: auto;
	}

	.hmf-header:has(.hmf-nav__menu[aria-expanded="true"]) .hmf-header__tools {
		display: flex;
	}

	.hmf-header__phone {
		display: none;
	}

	.hmf-js .hmf-header .hmf-nav .hmf-nav__menu {
		margin-inline-start: 0;
	}
}

@media (width >= 37.5rem) {
	.hmf-header__bar {
		padding: 20px 24px;
	}

	.hmf-header__brand .custom-logo {
		inline-size: 184px;
	}
}

@media (width >= 64rem) {
	.hmf-header__bar {
		flex-wrap: nowrap;
		gap: 24px;
		padding: 22px 24px;
	}

	.hmf-header--cta .hmf-header__nav {
		margin-inline: auto;
	}

	.hmf-header__tools {
		flex: 0 0 auto;
	}

	.hmf-header__phone {
		display: none;
	}

	.hmf-header .hmf-nav__list {
		flex-wrap: nowrap;
		gap: 4px;
	}

	.hmf-js .hmf-header .hmf-nav .hmf-nav__panel {
		inset-inline-end: auto;
		inline-size: 300px;
		padding: 8px;
		border: 1px solid var(--hc-line-2);
		border-radius: 18px;
		background: var(--hc-white);
		box-shadow: 0 24px 60px -20px rgb(15 23 42 / 0.25);
	}
}

.hmf-section-heading__mark,
.hmf-promo-banner__mark {
	padding-inline: 4px;
	background: var(--hc-mark);
	color: inherit;
	white-space: nowrap;
}
.hmf-footer.hmf-footer--widgets {
	margin-block-start: 0;
	padding: 44px 20px 40px;
	border: 0;
	background: var(--hc-ink);
	color: #c8cfdf;
	font-size: 15px;
	line-height: 2;
}
.hmf-footer--widgets .hmf-footer__inner {
	max-inline-size: 1240px;
	padding: 0;
	gap: 0;
}
.hmf-footer--widgets .hmf-footer__columns {
	grid-template-columns: minmax(0, 1fr);
	grid-auto-flow: row;
	gap: 32px;
}
.hmf-footer--widgets .hmf-footer__column { min-inline-size: 0; }
.hmf-footer--widgets .hmf-footer-widget + .hmf-footer-widget { margin-block-start: 0; }
.hmf-footer--widgets .hmf-footer-widget :is(p, ul) { margin: 0; }
.hmf-footer--widgets a { color: inherit; text-decoration: none; }
.hmf-footer--widgets a:focus-visible { outline: 3px solid var(--hc-gold); outline-offset: 3px; border-radius: 6px; }
.hmf-footer--widgets .hmf-footer-widget h2 {
	margin: 0 0 14px;
	color: var(--hc-gold);
	font-size: 19px;
	font-weight: 900;
	line-height: 1.8;
}
.hmf-footer--widgets .hmf-footer__column:first-child {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}
.hmf-footer--widgets .is-style-brand { display: grid; gap: 14px; }
.hmf-footer--widgets .hmf-footer__column:first-child > .hmf-footer-widget {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	inline-size: 100%;
}
.hmf-footer--widgets .is-style-brand-name { color: var(--hc-gold); font-size: 26px; font-weight: 900; line-height: 1.6; }
.hmf-footer--widgets .is-style-brand-tagline { color: #e6eaf4; font-size: 15px; font-weight: 600; }
.hmf-footer--widgets .is-style-gold-tiles { display: flex; gap: 12px; padding: 0; list-style: none; }
.hmf-footer--widgets .is-style-gold-tiles .wp-social-link {
	margin: 0;
	border-radius: 14px;
	background: var(--hc-gold);
	color: var(--hc-ink-2);
	transition: transform .2s, background .2s;
}
.hmf-footer--widgets .is-style-gold-tiles .wp-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 48px;
	block-size: 48px;
	padding: 0;
	color: var(--hc-ink-2);
}
.hmf-footer--widgets .is-style-gold-tiles svg { inline-size: 24px; block-size: 24px; fill: currentColor; }
.hmf-footer--widgets .is-style-gold-tiles .wp-social-link:hover { transform: translateY(-3px); background: var(--hc-gold-deep); }
.hmf-footer--widgets .hmf-footer__column:nth-child(2) {
	padding: 22px;
	border: 1px solid rgb(255 255 255 / .12);
	border-radius: 24px;
	background: rgb(255 255 255 / .06);
}
.hmf-footer--widgets .hmf-footer__column:nth-child(2) h2 { text-align: center; }
.hmf-footer--widgets .hmf-footer__column:nth-child(2) p { font-weight: 500; text-align: justify; }
.hmf-footer--widgets .hmf-footer__column:nth-child(3) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
}
.hmf-footer--widgets .hmf-footer__column:nth-child(3) > :first-child { grid-column: 1 / -1; }
.hmf-footer--widgets .widget_nav_menu ul { display: grid; gap: 2px; padding: 0; list-style: none; }
.hmf-footer--widgets .widget_nav_menu li > a {
	position: relative;
	display: block;
	min-block-size: 44px;
	padding: 7px 0;
	padding-inline-start: 22px;
	font-weight: 600;
}
.hmf-footer--widgets .widget_nav_menu a::before {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0;
	inline-size: 12px;
	block-size: 3px;
	margin-block-start: -1.5px;
	border-radius: 2px;
	background: var(--hc-gold);
	transition: inline-size .2s;
}
.hmf-footer--widgets .widget_nav_menu a:hover { color: var(--hc-white); }
.hmf-footer--widgets .widget_nav_menu a:hover::before { inline-size: 16px; }
@media (width >= 48rem) {
	.hmf-footer.hmf-footer--widgets { padding: 56px 32px 48px; }
	.hmf-footer--widgets .hmf-footer__column:nth-child(2) { padding: 28px 32px; }
	.hmf-footer--widgets .hmf-footer__column:nth-child(3) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (width >= 68.75rem) {
	.hmf-footer.hmf-footer--widgets { padding: 64px 40px 56px; }
	.hmf-footer--widgets .hmf-footer__columns { grid-template-columns: 1.1fr 1.5fr 1.1fr; gap: 44px; align-items: start; }
	.hmf-footer--widgets .hmf-footer__column:first-child {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: space-between;
		text-align: start;
		padding-block-end: 28px;
		border-block-end: 1px solid rgb(255 255 255 / .12);
	}
	.hmf-footer--widgets .is-style-brand { gap: 0; }
	.hmf-footer--widgets .hmf-footer__column:first-child > .hmf-footer-widget {
		flex-direction: row;
		justify-content: space-between;
	}
	.hmf-footer--widgets .hmf-footer__column:nth-child(2) h2 { text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
	.hmf-footer--widgets .is-style-gold-tiles .wp-social-link,
	.hmf-footer--widgets .widget_nav_menu a::before { transition: none; }
}
