/*
 * MenoMe Elementor Widgets - Frontend styles
 *
 * Two layers:
 *  1. Widget-scoped rules (.menome-*) for the custom widgets themselves.
 *  2. Container-scoped rules (.menome-hero *) that force native Elementor
 *     widgets inside the hero section (heading, text-editor, image, button)
 *     to use the brand typography, colours, spacing, and radii - overriding
 *     whatever the active theme would otherwise apply.
 */

/* ===============================================================
 * 1. Custom widget styles
 * =============================================================== */

/* ---- Rating Badge ---- */
.menome-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.85);
	line-height: 1;
}
.menome-badge .menome-stars {
	color: #f5c518;
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 1;
}
.menome-badge .menome-rating {
	font-family: 'Nunito', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #111c4e;
	line-height: 1.2;
}

/* ---- Supports List ---- */
.menome-benefits {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.menome-supports-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #0066f5;
	margin: 0 0 4px;
}
.menome-benefit {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.menome-benefit svg {
	width: 20px;
	height: 20px;
	min-width: 20px;
	margin-top: 3px;
	stroke: #0066f5;
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}
.menome-benefit span {
	font-family: 'Nunito', sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: #111c4e;
}

/* ---- Shop CTA ---- */
.menome-shop-widget {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 14px 28px 14px 24px;
	background: #0066f5;
	color: #fff;
	font-family: 'Nunito', sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 102, 245, 0.22);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	line-height: 1;
}
.menome-shop-widget:hover,
.menome-shop-widget:focus,
.menome-shop-widget:visited {
	color: #fff;
	text-decoration: none;
}
.menome-shop-widget:hover,
.menome-shop-widget:focus {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 102, 245, 0.32);
}
.menome-shop-widget .msw-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.menome-shop-widget .msw-bottles {
	position: relative;
	width: 86px;
	height: 72px;
	flex-shrink: 0;
	margin: -12px 0;
}
.menome-shop-widget .msw-bottles img {
	position: absolute;
	width: 56px;
	max-width: none;
	height: auto;
	top: 50%;
	filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
	transition: transform 0.3s ease;
}
.menome-shop-widget .msw-bottles .msw-b-back {
	left: 0;
	transform: translateY(-50%) rotate(-10deg);
	z-index: 1;
}
.menome-shop-widget .msw-bottles .msw-b-front {
	left: 30px;
	transform: translateY(-50%) rotate(8deg);
	z-index: 2;
}
.menome-shop-widget:hover .msw-bottles .msw-b-back {
	transform: translateY(-50%) rotate(-14deg) translateX(-4px);
}
.menome-shop-widget:hover .msw-bottles .msw-b-front {
	transform: translateY(-50%) rotate(12deg) translateX(4px);
}

/* ---- Quiz Link (secondary outlined CTA) ---- */
.menome-quiz-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	background: rgba(255, 255, 255, 0.9);
	border: 1.5px solid #0066f5;
	border-radius: 8px;
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #0066f5;
	text-decoration: none;
	line-height: 1;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.menome-quiz-link:hover,
.menome-quiz-link:focus {
	background: #0066f5;
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}
.menome-quiz-link svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.menome-quiz-link--full {
	width: 100%;
}
@media (max-width: 767px) {
	.menome-quiz-link {
		width: 100%;
	}
}

/* ---- Quiz Card ---- */
.elementor-element.menome-hero-right,
.menome-hero-right {
	position: relative;
}
/* When a Quiz Card widget sits inside .menome-hero-right, position the
 * Elementor widget WRAPPER itself (not just the inner <a>) so the card
 * floats over the hero image rather than collapsing out of flow below it. */
.menome-hero-right .elementor-widget.elementor-widget-menome_quiz_card,
.menome-hero-right .elementor-element.elementor-widget-menome_quiz_card {
	position: absolute;
	bottom: 24px;
	right: 24px;
	z-index: 3;
	width: auto;
	max-width: calc(100% - 48px);
	margin: 0 !important;
}
.menome-quiz-widget {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 14px 32px rgba(17, 28, 78, 0.18), 0 2px 6px rgba(17, 28, 78, 0.08);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	z-index: 2;
	max-width: 420px;
}
.menome-quiz-widget:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px rgba(17, 28, 78, 0.22), 0 2px 8px rgba(17, 28, 78, 0.1);
	text-decoration: none;
}
/* Legacy class retained for standalone use outside .menome-hero-right.
 * In the hero layout, the parent-wrapper rule above handles positioning. */
.menome-quiz-widget--absolute {
	position: relative;
}
.menome-quiz-widget .mqw-stack {
	position: relative;
	width: 78px;
	height: 52px;
	flex-shrink: 0;
}
.menome-quiz-widget .mqw-card {
	position: absolute;
	width: 44px;
	height: 52px;
	background: #fff;
	border: 1px solid rgba(17, 28, 78, 0.12);
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(17, 28, 78, 0.12);
	padding: 5px 4px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.menome-quiz-widget .mqw-num {
	font-family: 'Montserrat', sans-serif;
	font-size: 6px;
	font-weight: 700;
	color: #0066f5;
	letter-spacing: 0.5px;
	line-height: 1;
}
.menome-quiz-widget .mqw-bar {
	height: 3px;
	border-radius: 2px;
	background: #eef2f8;
}
.menome-quiz-widget .mqw-bar.on {
	background: #0066f5;
	width: 60%;
}
.menome-quiz-widget .mqw-c1 {
	top: 4px;
	left: 0;
	transform: rotate(-8deg);
	transform-origin: 50% 100%;
	z-index: 1;
}
.menome-quiz-widget .mqw-c2 {
	top: 0;
	left: 15px;
	z-index: 2;
}
.menome-quiz-widget .mqw-c3 {
	top: 4px;
	left: 30px;
	transform: rotate(8deg);
	transform-origin: 50% 100%;
	z-index: 3;
}
.menome-quiz-widget .mqw-text {
	display: flex;
	flex-direction: column;
	max-width: 220px;
}
.menome-quiz-widget .mqw-l1 {
	font-family: 'Playfair Display', serif;
	font-size: 17px;
	font-weight: 700;
	color: #111c4e;
	line-height: 1.2;
	letter-spacing: -0.2px;
}
.menome-quiz-widget .mqw-l2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: rgba(17, 28, 78, 0.65);
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin-top: 6px;
	line-height: 1.3;
}
.menome-quiz-widget .mqw-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 6px;
	background: #0066f5;
	color: #fff;
	flex-shrink: 0;
}

/* ---- Trust Item ---- */
.menome-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.menome-trust-item svg {
	width: 22px;
	height: 22px;
	stroke: #0066f5;
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}
.menome-trust-item .trust-text {
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #111c4e;
	line-height: 1.25;
}

/* ===============================================================
 * 2. .menome-hero container - forces brand typography, colour,
 *    spacing and radii onto every child widget so the theme cannot
 *    bleed through. Uses relatively high specificity but avoids
 *    !important where possible.
 * =============================================================== */

.menome-hero {
	/* Brand tokens, also usable by custom CSS if needed */
	--mh-primary: #0066f5;
	--mh-navy: #111c4e;
	--mh-light: #e6f0ff;
	--mh-gold: #f5c518;
	--mh-display: 'Playfair Display', 'Miller Banner', Georgia, serif;
	--mh-body: 'Nunito', 'Filson Pro', sans-serif;
	--mh-ui: 'Montserrat', 'Proxima Nova', sans-serif;

	background-color: var(--mh-light);
}

/* Make the hero section never show rounded corners even if the theme
 * applies section border-radius globally. */
.menome-hero,
.menome-hero > .elementor-container,
.menome-hero > .elementor-container > .elementor-column {
	border-radius: 0 !important;
}

/* Right column radius stays on the Image widget itself, not the column */
.menome-hero .menome-hero-right {
	border-radius: 0 !important;
	overflow: visible;
}

/* ---- H1 headline ---- */
.menome-hero .elementor-widget-heading .elementor-heading-title {
	font-family: var(--mh-display);
	font-weight: 700;
	font-size: 64px;
	line-height: 1.1;
	letter-spacing: -1.5px;
	color: var(--mh-navy);
	margin: 0;
}
@media (max-width: 1024px) {
	.menome-hero .elementor-widget-heading .elementor-heading-title {
		font-size: 40px;
	}
}
@media (max-width: 767px) {
	.menome-hero .elementor-widget-heading .elementor-heading-title {
		font-size: 28px;
		letter-spacing: -0.5px;
	}
}

/* ---- Subtitle / text editor paragraphs ---- */
.menome-hero .elementor-widget-text-editor,
.menome-hero .elementor-widget-text-editor p {
	font-family: var(--mh-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--mh-navy);
	margin: 0;
}
.menome-hero .elementor-widget-text-editor p + p {
	margin-top: 0.75em;
}
@media (max-width: 767px) {
	.menome-hero .elementor-widget-text-editor,
	.menome-hero .elementor-widget-text-editor p {
		font-size: 15px;
	}
}

/* ---- Hero image ---- */
.menome-hero .menome-hero-right .elementor-widget-image,
.menome-hero .menome-hero-right .elementor-widget-image .elementor-image,
.menome-hero .menome-hero-right .elementor-widget-image img {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	overflow: hidden;
}
.menome-hero .menome-hero-right .elementor-widget-image img {
	display: block;
	object-fit: cover;
	object-position: center top;
	aspect-ratio: auto;
	min-height: 480px;
}
@media (max-width: 1024px) {
	.menome-hero .menome-hero-right .elementor-widget-image img {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}
}
@media (max-width: 767px) {
	.menome-hero .menome-hero-right .elementor-widget-image img {
		aspect-ratio: 16 / 10;
		min-height: 0;
		max-height: 220px;
	}
}

/* ---- Secondary quiz button (native button widget in CTA row) ---- */
.menome-hero .elementor-widget-button .elementor-button {
	font-family: var(--mh-body);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 12px 20px;
	border-radius: 8px;
	color: var(--mh-primary);
	background: rgba(255, 255, 255, 0.9);
	border: 1.5px solid var(--mh-primary);
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.menome-hero .elementor-widget-button .elementor-button:hover {
	background: var(--mh-primary);
	color: #fff;
	transform: translateY(-2px);
}
.menome-hero .elementor-widget-button .elementor-button-icon svg {
	fill: currentColor;
}

/* ---- Section padding fallback (in case the template's section
 *      padding doesn't survive theme overrides) ---- */
.menome-hero {
	padding-top: 80px;
	padding-right: 80px;
	padding-bottom: 80px;
	padding-left: 80px;
}
@media (max-width: 1024px) {
	.menome-hero {
		padding: 56px 40px;
	}
}
@media (max-width: 767px) {
	.menome-hero {
		padding: 20px 16px 24px;
	}
	.menome-hero > .elementor-container {
		gap: 14px;
	}
}

/* ---- Left-column vertical rhythm (widget gaps) ---- */
.menome-hero > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap > .elementor-element,
.menome-hero > .elementor-container > .elementor-column:first-child > .elementor-element-populated > .elementor-widget-wrap > .elementor-element {
	margin-bottom: 20px;
}
.menome-hero > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap > .elementor-element:last-child,
.menome-hero > .elementor-container > .elementor-column:first-child > .elementor-element-populated > .elementor-widget-wrap > .elementor-element:last-child {
	margin-bottom: 0;
}
@media (max-width: 767px) {
	.menome-hero > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap > .elementor-element,
	.menome-hero > .elementor-container > .elementor-column:first-child > .elementor-element-populated > .elementor-widget-wrap > .elementor-element {
		margin-bottom: 10px;
	}
	/* Hide the subtitle on mobile to keep both CTAs above the fold. */
	.menome-hero .elementor-widget-text-editor {
		display: none;
	}
	/* Drop the 4th benefit on mobile (keep the three most important). */
	.menome-hero .menome-benefit:nth-child(n + 5) {
		display: none;
	}
}

/* ---- CTA row (inner section holding shop CTA + quiz link) ---- */
.menome-hero .elementor-section.menome-cta-row .elementor-widget-button {
	width: auto;
}
@media (max-width: 767px) {
	/* CTA row stacks full-width so both CTAs are easy to tap */
	.menome-hero .elementor-section.menome-cta-row > .elementor-container {
		flex-direction: column;
		gap: 10px;
	}
	.menome-hero .elementor-section.menome-cta-row > .elementor-container > .elementor-column {
		width: 100%;
	}
	.menome-hero .elementor-section.menome-cta-row .elementor-widget-button .elementor-button,
	.menome-hero .elementor-section.menome-cta-row .menome-quiz-link {
		width: 100%;
	}

	/* Trust row stays horizontal, just tighter */
	.menome-hero .elementor-section.menome-trust-row > .elementor-container {
		gap: 12px;
	}
}

/* ===============================================================
 * 3. Shared responsive bits for custom widgets
 * =============================================================== */
@media (max-width: 767px) {
	.menome-shop-widget {
		width: 100%;
		justify-content: center;
		padding: 13px 20px;
	}
	.menome-shop-widget .msw-bottles {
		display: none;
	}
	.menome-hide-mobile {
		display: none !important;
	}
	.menome-benefit span {
		font-size: 13px;
		line-height: 1.35;
	}
	.menome-benefit svg {
		width: 16px;
		height: 16px;
		min-width: 16px;
	}
	.menome-supports-label {
		font-size: 11px;
	}
	.menome-badge {
		padding: 6px 14px;
	}
	.menome-badge .menome-stars {
		font-size: 14px;
	}
	.menome-badge .menome-rating {
		font-size: 12px;
	}
	.menome-trust-item svg {
		width: 18px;
		height: 18px;
	}
	.menome-trust-item .trust-text {
		font-size: 11px;
	}
}
