/**
 * A.M Aesthetics header — from Figma nodes 18381:9994 (desktop) and 18397:7290 (mobile).
 *
 * @package RichardMedina\ElementorTemplates
 */

.rm-am-header {
	box-sizing: border-box;
	width: 100%;
	font-family: "Poppins", sans-serif;
	color: #020202;
}

.rm-am-header *,
.rm-am-header *::before,
.rm-am-header *::after {
	box-sizing: border-box;
}

@keyframes rm-am-phone-pulse {
	0% {
		transform: scale(0.8);
		opacity: 0.5;
	}

	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

.rm-am-header__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ----- Mobile top bar (Figma: grey strip + centred call) ----- */

.rm-am-header__topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 3px 40px;
	background-color: #e7e6e6;
	box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
	overflow: visible;
}

.rm-am-header__topbar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	overflow: visible;
}

/* Mobile top bar: green handset + pulse (Figma 18397:7290) */
.rm-am-header__topbar-call {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: inherit;
}

.rm-am-header__topbar-call:focus-visible {
	outline: 2px solid #143830;
	outline-offset: 2px;
}

.rm-am-header__topbar-icon-wrap {
	position: relative;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.rm-am-header__topbar-icon-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background-color: #84bd25;
	opacity: 0.5;
}

.rm-am-header__topbar-pulse {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border-radius: 50%;
	background-color: #84bd25;
	opacity: 0.5;
	animation: rm-am-phone-pulse 1.8s ease-out infinite;
}

.rm-am-header__topbar-face {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background-color: #84bd25;
	transform: translate(-50%, -50%);
}

.rm-am-header__topbar-glyph {
	display: block;
	flex-shrink: 0;
	width: 8px;
	height: 8px;
}

.rm-am-header__topbar-text {
	margin: 0;
	font-size: 14px;
	line-height: 14px;
	white-space: nowrap;
}

.rm-am-header__topbar-label {
	font-weight: 400;
}

.rm-am-header__topbar-phone {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-skip-ink: none;
	color: inherit;
}

.rm-am-header__topbar-phone:hover,
.rm-am-header__topbar-phone:focus-visible {
	color: #143830;
}

/* ----- Main bar ----- */

.rm-am-header__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 6px 16px;
	background-color: #ffffff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.rm-am-header__brand {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 58%;
	color: inherit;
	gap: 5.312px;
}

.rm-am-header__logo {
	display: block;
	flex-shrink: 0;
	width: auto !important;
	height: auto !important;
	max-height: 30px;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}

.rm-am-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.rm-am-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border-radius: 200px;
	background-color: #eec433;
	font-size: 11px;
	line-height: 11px;
	font-weight: 400;
	text-align: center;
	text-transform: capitalize;
	text-decoration: none;
	color: #020202;
	white-space: nowrap;
}

.rm-am-header__cta:hover,
.rm-am-header__cta:focus-visible {
	background-color: #ddb62a;
	color: #020202;
}

/* Desktop-only: phone block + larger logo/button */

.rm-am-header__call-desktop {
	display: none;
}

/* >= 1024px: desktop navigation (Figma desktop nav) */

@media (min-width: 1024px) {
	.rm-am-header__topbar {
		display: none;
	}

	.rm-am-header__main {
		padding: 15px 40px;
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
	}

	.rm-am-header__brand {
		gap: 14px;
		max-width: 42%;
	}

	.rm-am-header__logo {
		max-height: 60px;
		max-width: 320px;
	}

	.rm-am-header__actions {
		gap: 20px;
	}

	.rm-am-header__call-desktop {
		display: flex;
		align-items: center;
		gap: 8px;
		text-decoration: none;
		color: inherit;
	}

	.rm-am-header__call-desktop:hover .rm-am-header__phone-number,
	.rm-am-header__call-desktop:focus-visible .rm-am-header__phone-number {
		color: #143830;
	}

	.rm-am-header__phone-icon-wrap {
		position: relative;
		flex-shrink: 0;
		width: 48px;
		height: 48px;
	}

	/* Static outer halo — Figma: 48px #84BD25 @ 50% */
	.rm-am-header__phone-icon-wrap::before {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: 50%;
		background-color: #84bd25;
		opacity: 0.5;
	}

	/* Expanding pulse ring */
	.rm-am-header__phone-pulse {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 48px;
		height: 48px;
		margin: -24px 0 0 -24px;
		border-radius: 50%;
		background-color: #84bd25;
		opacity: 0.5;
		animation: rm-am-phone-pulse 1.8s ease-out infinite;
	}

	/* Green button face — Figma: 36px #84BD25 */
	.rm-am-header__phone-face {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		background-color: #84bd25;
		z-index: 1;
	}

	.rm-am-header__phone-glyph {
		display: block;
		width: 18px;
		height: 18px;
	}

	.rm-am-header__phone-copy {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.rm-am-header__phone-label {
		margin: 0;
		font-size: 16px;
		line-height: 16px;
		font-weight: 400;
		letter-spacing: 0.32px;
	}

	.rm-am-header__phone-number {
		margin: 0;
		font-size: 20px;
		line-height: 20px;
		font-weight: 500;
		text-decoration: underline;
		text-decoration-skip-ink: none;
		color: inherit;
	}

	.rm-am-header__cta {
		padding: 16px 20px;
		border-radius: 200px;
		font-size: 16px;
		line-height: 16px;
		letter-spacing: 0.32px;
		text-transform: uppercase;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rm-am-header__topbar-pulse,
	.rm-am-header__phone-pulse {
		animation: none;
		display: none;
	}
}
