/* Charm Core — booking form + mobile menu. Colours match the Elementor kit variables. */
:root {
	--charm-c-red: #70020f;
	--charm-c-red-dark: #5a020c;
	--charm-c-blush: #fff6f7;
	--charm-c-black: #131313;
}

/*
 * Manrope as the Figma file renders it: Figma draws each weight about one step
 * lighter than browsers do, so every declared weight maps to the instance below
 * it (400 -> 300, 600 -> 500, 700 -> 600; 300 stays 300). Static instances cut from the theme's
 * variable Manrope.
 */
@font-face {
	font-family: "Charm Manrope";
	font-style: normal;
	font-weight: 200;
	font-display: swap;
	src: url("fonts/manrope-200.woff2") format("woff2");
}
@font-face {
	font-family: "Charm Manrope";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("fonts/manrope-300.woff2") format("woff2");
}
@font-face {
	font-family: "Charm Manrope";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/manrope-300.woff2") format("woff2");
}
@font-face {
	font-family: "Charm Manrope";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/manrope-400.woff2") format("woff2");
}
@font-face {
	font-family: "Charm Manrope";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/manrope-500.woff2") format("woff2");
}
@font-face {
	font-family: "Charm Manrope";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/manrope-600.woff2") format("woff2");
}
@font-face {
	font-family: "Charm Manrope";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("fonts/manrope-700.woff2") format("woff2");
}
html:root {
	--font-body: "Charm Manrope", "Manrope", sans-serif;
	--wp--preset--font-family--manrope: "Charm Manrope", "Manrope", sans-serif;
}

/* Baskervville defaults to old-style figures; the design uses lining figures (289K, 9AM-8PM). */
body {
	font-variant-numeric: lining-nums;
}

/* ---------- Booking form ---------- */
.charm-booking {
	width: 100%;
	max-width: 800px;
	scroll-margin-top: 120px;
	font-family: "Charm Manrope", "Manrope", sans-serif;
	color: var(--charm-c-red);
}
.charm-booking__form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.charm-booking__row {
	display: grid;
	/* Design: 364px + 388px columns, 51px apart. */
	grid-template-columns: minmax(0, 364fr) minmax(0, 388fr);
	gap: 51px;
}
.charm-booking__field {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.36px;
}
.charm-booking__field input,
.charm-booking__field select,
.charm-booking__field textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 49px;
	padding: 10px 14px;
	border: 1px solid var(--charm-c-red);
	border-radius: 5px;
	background: #fff;
	color: var(--charm-c-black);
	font: inherit;
	font-size: 18px;
}
.charm-booking__field textarea {
	min-height: 127px;
	resize: vertical;
}
.charm-booking__field select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--charm-c-red) 50%), linear-gradient(135deg, var(--charm-c-red) 50%, transparent 50%);
	background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50%;
	background-size: 7px 7px;
	background-repeat: no-repeat;
	padding-right: 40px;
}
.charm-booking__field input:focus,
.charm-booking__field select:focus,
.charm-booking__field textarea:focus {
	outline: 2px solid rgba(112, 2, 15, 0.25);
	outline-offset: 1px;
}
.charm-booking__phone {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--charm-c-red);
	border-radius: 5px;
	background: #fff;
}
.charm-booking__phone input {
	border: 0;
	min-height: 47px;
}
.charm-booking__cc {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 30px 0 12px;
	border-right: 1px solid var(--charm-c-red);
	font-size: 18px;
	white-space: nowrap;
	background-image: linear-gradient(45deg, transparent 50%, var(--charm-c-red) 50%), linear-gradient(135deg, var(--charm-c-red) 50%, transparent 50%);
	background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}
.charm-booking__cc-select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	font-size: 16px;
}
.charm-booking__cc:focus-within {
	outline: 2px solid rgba(112, 2, 15, 0.25);
	outline-offset: 1px;
}
.charm-booking__submit {
	align-self: flex-start;
	min-width: 306px;
	margin-top: 32px;
	padding: 6px 28px;
	border: 0;
	border-radius: 100px;
	background: var(--charm-c-red);
	color: #fff;
	font-family: "Baskervville", serif;
	font-size: 32px;
	line-height: 1.3;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s;
}
.charm-booking__submit:hover,
.charm-booking__submit:focus-visible {
	background: var(--charm-c-red-dark);
}
.charm-booking__notice {
	margin-bottom: 18px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 18px;
	line-height: 1.4;
}
.charm-booking__notice--ok {
	background: var(--charm-c-blush);
	border: 1px solid var(--charm-c-red);
}
.charm-booking__notice--err {
	background: #fff;
	border: 1px dashed var(--charm-c-red);
}
.charm-booking__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
@media (max-width: 767px) {
	.charm-booking__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.charm-booking__field,
	.charm-booking__field input,
	.charm-booking__field select,
	.charm-booking__field textarea {
		font-size: 16px;
	}
	.charm-booking__submit {
		width: 100%;
		min-width: 0;
		font-size: 26px;
	}
}

/* ---------- Mobile hamburger menu ---------- */
.charm-burger,
.charm-mobile-menu {
	display: none;
}
@media (max-width: 767px) {
	.charm-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 40px;
		height: 40px;
		padding: 8px;
		margin-left: 4px;
		border: 0;
		background: transparent;
		cursor: pointer;
		flex: 0 0 auto;
	}
	.charm-burger span {
		display: block;
		height: 2px;
		width: 100%;
		background: #fff;
		border-radius: 2px;
		transition: transform 0.25s, opacity 0.25s;
	}
	.charm-menu-open .charm-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.charm-menu-open .charm-burger span:nth-child(2) { opacity: 0; }
	.charm-menu-open .charm-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.charm-mobile-menu {
		position: fixed;
		left: 0;
		right: 0;
		top: var(--charm-menu-top, 64px);
		bottom: 0;
		z-index: 60;
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 24px 24px 40px;
		background: var(--charm-c-red-dark);
		overflow-y: auto;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s, transform 0.25s, visibility 0s linear 0.25s;
	}
	.charm-menu-open .charm-mobile-menu {
		transform: none;
		opacity: 1;
		visibility: visible;
		transition: opacity 0.25s, transform 0.25s;
	}
	.charm-mobile-menu a {
		padding: 14px 4px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
		color: #fff;
		font-family: "Baskervville", serif;
		font-size: 26px;
		text-transform: uppercase;
		text-decoration: none;
	}
	.charm-mobile-menu a.charm-mobile-menu__cta {
		margin-top: 24px;
		border: 0;
		border-radius: 100px;
		background: #fff;
		color: var(--charm-c-red);
		text-align: center;
		font-size: 22px;
	}
	.charm-menu-open {
		overflow: hidden;
	}
}

/* ---------- Lashes & Brows tabs (Elementor e-tabs) ---------- */
/* Extra specificity: Elementor's ".elementor .charm-tab" global class rule loads after this file. */
.elementor .charm-lb-tabs .charm-lb-tab[aria-selected="true"],
.elementor .charm-lb-tabs .charm-lb-tab.e--selected {
	background-color: var(--charm-c-red);
	border-color: var(--charm-c-red);
	color: #fff;
}
.charm-lb-tab:focus-visible {
	outline: 2px solid rgba(112, 2, 15, 0.35);
	outline-offset: 2px;
}

/* ---------- Contact map (Google Maps embed) ---------- */
.charm-map {
	width: 100%;
	max-width: 1805px;
	aspect-ratio: 1805 / 502;
	border-radius: 20px;
	overflow: hidden;
	background: var(--charm-c-blush);
}
.charm-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
@media (max-width: 767px) {
	.charm-map {
		aspect-ratio: 4 / 3;
	}
}

/* ---------- Shortcodes run from a paragraph (DearFlip menu on Services) ---------- */
.charm-shortcode {
	width: 100%;
	max-width: 1244px;
}

/* ---------- Services: client row progress bar + Life at Charm carousel ---------- */
.charm-scroll-x.charm-has-bar {
	scrollbar-width: none;
	cursor: grab;
}
.charm-scroll-x.charm-has-bar::-webkit-scrollbar {
	display: none;
}
.charm-scroll-x.is-dragging {
	cursor: grabbing;
	user-select: none;
}
.charm-scroll-x.is-dragging a {
	pointer-events: none;
}
.charm-scrollbar {
	position: relative;
	flex: 0 0 auto;
	width: 186px;
	height: 7px;
	margin-top: 68px; /* 90px in the design, minus the section's 22px gap */
	border-radius: 50px;
	background: rgba(217, 217, 217, 0.3);
}
.charm-scrollbar__thumb {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 50px;
	background: #fff;
}
@media (max-width: 767px) {
	.charm-scrollbar {
		margin-top: 10px;
	}
}

.charm-carousel {
	position: relative;
}
.charm-carousel__arrow {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin-top: -22px;
	border: 0;
	background: transparent;
	color: var(--charm-c-red);
	cursor: pointer;
	transition: transform 0.2s;
}
.charm-carousel__arrow--prev {
	left: -48px;
}
.charm-carousel__arrow--next {
	right: -48px;
}
.charm-carousel__arrow--prev:hover {
	transform: translateX(-3px);
}
.charm-carousel__arrow--next:hover {
	transform: translateX(3px);
}
@media (max-width: 1500px) {
	/* Laptop widths leave no gutter for the arrows; tuck them inside the photos on a soft disc. */
	.charm-carousel__arrow {
		background: rgba(255, 255, 255, 0.85);
		border-radius: 50%;
	}
	.charm-carousel__arrow--prev {
		left: 10px;
	}
	.charm-carousel__arrow--next {
		right: 10px;
	}
}
.charm-carousel__arrow:focus-visible {
	outline: 2px solid rgba(112, 2, 15, 0.35);
	outline-offset: 2px;
	border-radius: 50%;
}
@media (max-width: 767px) {
	/* Phones: a swipeable row, one photo at a time; the arrows give way to the swipe. */
	.elementor .charm-carousel.charm-carousel {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.charm-carousel::-webkit-scrollbar {
		display: none;
	}
	.elementor .charm-carousel > img {
		flex: 0 0 85%;
		min-width: 0;
		scroll-snap-align: center;
	}
	.charm-carousel__arrow {
		display: none;
	}
}

/* ---------- Two-column price cards ---------- */
/* When the item grid opens the card (no intro above it), the first row sits right under the header with no rule (Waxing). */
@media (min-width: 768px) {
	.charm-price-card .e-grid-base:first-child > .charm-price-item:nth-child(-n+2) {
		border-top-color: transparent;
	}
}
@media (max-width: 767px) {
	/* Single column: the first item still opens without a rule. */
	.charm-price-card .e-grid-base:first-child > .charm-price-item:first-child {
		border-top-color: transparent;
	}
}
