/**
 * StarzMeet — the home hero.
 *
 * ONE PASS. An earlier version of this file grew three stacked "passes" on top
 * of each other and reached 1,141 lines with `.szm-hero-ezra` defined fifteen
 * times. That is not a tidiness complaint: a later pass introduced a two-column
 * rule an earlier media query did not know to override, and the hero collapsed
 * to zero-width text 3,237px tall on a phone. Anything added here belongs in the
 * section it affects, not appended to the end.
 *
 * TWO THINGS THIS THEME WILL CATCH YOU WITH
 *
 * 1. `html { font-size: 10px }` — the old 62.5% trick — so 1rem is ten pixels,
 *    not sixteen. Every length below is px on purpose; a `44rem` written with
 *    the usual assumption silently became 440px once already.
 * 2. A rule outside a media query beats one inside it. Reset
 *    `grid-template-columns` in the stacked query, not just the areas.
 */

.szm-hero {
	--h-brand: #7938f5;
	--h-brand-dark: #6321dd;
	--h-brand-soft: #f2ecff;
	--h-accent: #d97706;
	--h-ink: #141a2a;
	--h-body: #4a5468;
	--h-muted: #6b7488;
	--h-line: #e9e5f5;
	--h-card: #ffffff;
	--h-bg: #faf8ff;

	padding: 42px 20px 46px;
	background: var(--h-bg);
	color: var(--h-ink);
}

.szm-hero *,
.szm-hero *::before,
.szm-hero *::after { box-sizing: border-box; }

.szm-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas:
		"lead  aside"
		"cast  aside"
		"find  find";
	align-items: start;
	gap: 26px 40px;
	max-width: 1240px;
	margin: 0 auto;
}

.szm-hero-lead   { grid-area: lead; min-width: 0; }
.szm-cast        { grid-area: cast; min-width: 0; }
.szm-hero-aside  { grid-area: aside; min-width: 0; }
.szm-hero-search { grid-area: find; min-width: 0; }

/* Visually hidden, still read aloud. */
.szm-hero-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================  the promise == */

.szm-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 14px;
	padding: 0;
	color: var(--h-accent);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.szm-hero-title {
	margin: 0 0 16px;
	color: var(--h-ink);
	font-size: clamp(34px, 4.1vw, 54px);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.06;
}

/* The theme italicises <em> everywhere; here it is an emphasis colour, not a
   change of voice. `nowrap` because "right support" is two words that mean one
   thing and should never break across lines. */
.szm-hero-title em {
	color: var(--h-brand);
	font-style: normal;
	font-weight: 800;
	white-space: nowrap;
}

.szm-hero-sub {
	margin: 0;
	color: var(--h-body);
	font-size: 17px;
	line-height: 1.5;
}

/* ============================================================  the cast == */

/**
 * The character, three portraits, and the wires between them.
 *
 * The wires are drawn rather than baked into the picture so they can meet the
 * cards wherever the cards end up — the three move independently as the column
 * narrows. One stretched SVG does the work of three fixed ones.
 */

.szm-cast {
	margin: 22px 0 0;
	padding: 0;
}

.szm-cast-stage {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: 4px;
}

.szm-cast-char {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin: 0;
}

/* Sits in the gap between the hand and the cards. Any wider and the ends run
   under the white cards, where they read as stray dashes rather than wires. */
.szm-cast-wires {
	position: absolute;
	top: 13%;
	left: 43.5%;
	width: 12%;
	height: 74%;
	overflow: visible;
	pointer-events: none;
}

.szm-cast-wires path {
	fill: none;
	stroke: #b799f7;
	stroke-width: 1.7;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

/* ------------------------------------------------------------ the portraits */

.szm-cast-cards {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.szm-cast-cards li {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	padding: 9px 12px 9px 9px;
	border: 1px solid var(--h-line);
	border-radius: 14px;
	background: var(--h-card);
	box-shadow: 0 4px 14px rgba(20, 26, 42, .06);
	list-style: none;
}

.szm-cast-cards img {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 11px;
	object-fit: cover;
}

.szm-cast-name {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--h-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

/* The message indicator: three dots in a bubble, the one moving thing here. */
.szm-cast-dots {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	flex: 0 0 auto;
	padding: 7px 8px;
	border-radius: 9px 9px 3px 9px;
	background: var(--h-brand-soft);
}

.szm-cast-dots i {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--h-brand);
	opacity: .45;
}

.szm-cast-note {
	margin: 12px 0 0;
	color: var(--h-muted);
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
}

/* ------------------------------------------------------------- the movement */

/**
 * Two loops, both slow and both small: the wires draw themselves toward the
 * cards, and each card's dots rise in turn. Nothing that carries text moves, and
 * nothing reflows — these animate `stroke-dashoffset`, `opacity` and `transform`
 * only, so the layout is untouched while they run.
 */
@media (prefers-reduced-motion: no-preference) {
	.szm-cast-wires path {
		stroke-dasharray: 5 7;
		animation: szm-wire 2.6s linear infinite;
	}

	.szm-cast-wires path:nth-child(2) { animation-delay: .3s; }
	.szm-cast-wires path:nth-child(3) { animation-delay: .6s; }

	.szm-cast-dots i { animation: szm-dot 1.5s ease-in-out infinite; }
	.szm-cast-dots i:nth-child(2) { animation-delay: .18s; }
	.szm-cast-dots i:nth-child(3) { animation-delay: .36s; }

	.szm-cast-cards li:nth-child(2) .szm-cast-dots i { animation-delay: .5s; }
	.szm-cast-cards li:nth-child(2) .szm-cast-dots i:nth-child(2) { animation-delay: .68s; }
	.szm-cast-cards li:nth-child(2) .szm-cast-dots i:nth-child(3) { animation-delay: .86s; }

	.szm-cast-cards li:nth-child(3) .szm-cast-dots i { animation-delay: 1s; }
	.szm-cast-cards li:nth-child(3) .szm-cast-dots i:nth-child(2) { animation-delay: 1.18s; }
	.szm-cast-cards li:nth-child(3) .szm-cast-dots i:nth-child(3) { animation-delay: 1.36s; }
}

@keyframes szm-wire {
	to { stroke-dashoffset: -24; }
}

@keyframes szm-dot {
	0%, 60%, 100% { opacity: .35; transform: none; }
	30%           { opacity: 1;   transform: translateY(-2px); }
}

/* =============================================================  the Ezra == */

.szm-ez {
	padding: 26px 26px 22px;
	border: 1px solid var(--h-line);
	border-radius: 22px;
	background: var(--h-card);
	box-shadow: 0 14px 44px rgba(20, 26, 42, .07);
}

.szm-ez-badge {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--h-brand-soft);
	color: var(--h-brand-dark);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .07em;
	line-height: 1.3;
	text-transform: uppercase;
}

.szm-ez-hi {
	margin: 0 0 9px;
	color: var(--h-ink);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
}

.szm-ez-body {
	margin: 0 0 18px;
	color: var(--h-body);
	font-size: 15px;
	line-height: 1.55;
}

/* -------------------------------------------------------------- examples */

.szm-ez-examples {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.szm-ez-examples li { margin: 0; padding: 0; list-style: none; }

/* Every property is stated: the theme styles bare buttons heavily and takes the
   colour back on hover otherwise. */
.szm-ez-examples button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 9px 13px;
	border: 1px solid var(--h-line);
	border-radius: 13px;
	background: var(--h-card);
	color: var(--h-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, background .15s, transform .15s;
}

.szm-ez-examples button:hover,
.szm-ez-examples button:focus-visible {
	border-color: #c9b4fb;
	background: #fbf9ff;
	color: var(--h-ink);
	transform: translateY(-1px);
}

.szm-ez-ex-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--h-brand-soft);
	color: var(--h-brand);
}

/* -------------------------------------------------------------- composer */

.szm-ez textarea {
	display: block;
	width: 100%;
	min-height: 84px;
	margin: 0 0 12px;
	padding: 14px 16px;
	border: 1px solid #ded9ee;
	border-radius: 14px;
	background: var(--h-card);
	box-shadow: none;
	color: var(--h-ink);
	font-family: inherit;
	font-size: 15.5px;
	line-height: 1.5;
	resize: vertical;
}

.szm-ez textarea::placeholder { color: #98a0b3; opacity: 1; }

.szm-ez textarea:focus {
	border-color: var(--h-brand);
	box-shadow: 0 0 0 3px rgba(121, 56, 245, .15);
	outline: none;
}

.szm-ez-go {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 12px;
	margin: 0 0 14px;
}

.szm-ez-loc {
	position: relative;
	display: flex;
	align-items: center;
}

.szm-ez-loc > svg {
	position: absolute;
	left: 14px;
	color: var(--h-accent);
	pointer-events: none;
}

.szm-ez-loc select {
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 34px 0 39px;
	border: 1px solid #ded9ee;
	border-radius: 13px;
	background: var(--h-card);
	box-shadow: none;
	color: var(--h-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	/* The theme's select styling is aggressive; the chevron is drawn here so it
	   is the right colour and does not double up with the native one. */
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7488' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
}

.szm-ez-loc select:focus {
	border-color: var(--h-brand);
	box-shadow: 0 0 0 3px rgba(121, 56, 245, .15);
	outline: none;
}

.szm-ez-send {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	padding: 0 20px;
	border: 0;
	border-radius: 13px;
	background: var(--h-brand);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background .15s, box-shadow .15s;
}

.szm-ez-send:hover,
.szm-ez-send:focus-visible {
	background: var(--h-brand-dark);
	box-shadow: 0 8px 22px rgba(121, 56, 245, .28);
	color: #fff;
}

/* ------------------------------------------------------------ small print */

.szm-ez-approve {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	color: var(--h-body);
	font-size: 13px;
	line-height: 1.45;
}

.szm-ez-approve svg { flex: 0 0 auto; color: var(--h-muted); }

.szm-ez-disclosure {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--h-line);
	color: var(--h-muted);
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

/* ===================================================  the second search == */

.szm-hero-search {
	display: grid;
	grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--h-line);
	border-radius: 20px;
	background: var(--h-card);
	box-shadow: 0 8px 30px rgba(20, 26, 42, .05);
}

.szm-hero-search-label {
	margin: 0;
	padding-left: 8px;
	color: var(--h-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.szm-hero-field {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
}

.szm-hero-field > svg {
	position: absolute;
	left: 14px;
	color: var(--h-muted);
	pointer-events: none;
}

.szm-hero-field-loc > svg { color: var(--h-accent); }

.szm-hero-field input,
.szm-hero-field select {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 14px 0 39px;
	border: 1px solid #e4e0f0;
	border-radius: 13px;
	background: #fdfcff;
	box-shadow: none;
	color: var(--h-ink);
	font-size: 15px;
	line-height: 1.2;
}

.szm-hero-field input::placeholder { color: #98a0b3; opacity: 1; }

.szm-hero-field select {
	padding-right: 34px;
	font-weight: 600;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7488' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
}

.szm-hero-field input:focus,
.szm-hero-field select:focus {
	border-color: var(--h-brand);
	box-shadow: 0 0 0 3px rgba(121, 56, 245, .15);
	outline: none;
}

/* Outlined, so it reads as the second choice next to Ezra's filled button. */
.szm-hero-go {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 52px;
	padding: 0 22px;
	border: 1.5px solid var(--h-brand);
	border-radius: 13px;
	background: var(--h-card);
	color: var(--h-brand);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.szm-hero-go:hover,
.szm-hero-go:focus-visible {
	background: var(--h-brand);
	color: #fff;
}

/* ===============================================================  narrow == */

@media (max-width: 991px) {
	.szm-hero { padding: 32px 16px 36px; }

	.szm-hero-inner {
		/* Reset the columns, not only the areas. Leaving the two-column rule in
		   force is exactly what collapsed this hero once already. */
		grid-template-columns: minmax(0, 1fr);
		/* The illustration goes below the assistant on a phone. It is the part
		   somebody scrolls to rather than past, and putting it above pushed the
		   Ezra card most of a screen down. */
		grid-template-areas: "lead" "aside" "cast" "find";
		gap: 20px;
	}

	.szm-hero-lead,
	.szm-cast,
	.szm-hero-aside,
	.szm-hero-search {
		width: 100%;
		max-width: 620px;
		margin: 0 auto;
	}

	/* The search bar stops being a bar. */
	.szm-hero-search {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.szm-hero-search-label { padding-left: 2px; white-space: normal; }
}

@media (max-width: 620px) {
	.szm-hero { padding: 24px 13px 28px; }
	.szm-hero-title { margin-bottom: 12px; }
	.szm-hero-sub { font-size: 15.5px; }

	/* The character shrinks and the portraits stack under it rather than beside
	   it — side by side at this width neither is legible. The wires are the one
	   piece that cannot follow, so they go. */
	.szm-cast { margin-top: 0; }
	.szm-cast-stage { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.szm-cast-char { max-width: 170px; margin: 0 auto; }
	.szm-cast-wires { display: none; }

	.szm-ez { padding: 20px 17px 18px; border-radius: 18px; }
	.szm-ez-hi { font-size: 22px; }
	.szm-ez-body { font-size: 14.5px; margin-bottom: 15px; }
	/* Two up, still: four stacked buttons cost 110px more, and the labels are
	   short enough to read at half width. */
	.szm-ez-examples { gap: 8px; }
	.szm-ez-examples button { min-height: 50px; padding: 8px 11px; font-size: 13.5px; }
	.szm-ez-ex-icon { width: 26px; height: 26px; border-radius: 8px; }
	.szm-ez-go { grid-template-columns: minmax(0, 1fr); }

	/* 16px on both: iOS zooms the page in on any field below it. */
	.szm-ez textarea,
	.szm-hero-field input,
	.szm-hero-field select { font-size: 16px; }
}

/* =====================================================  not the hero, but ==
 *
 * The "News & Tips" blog grid drags the whole page sideways. It is a Bootstrap
 * `.row` sitting directly inside an Elementor widget container, so its -15px
 * gutter margins have no matching parent padding to be absorbed by and it
 * measures 30px wider than the viewport at every width.
 *
 * `max-width` does nothing about that — negative margins win regardless — so the
 * margins themselves have to go.
 *
 * (Earlier attempts at this targeted `.lp-blog-grid-cont`, which matches
 * nothing: the class is `lp-blog-grid-container`. They were silent no-ops, which
 * is exactly why the 5px of sideways scroll kept coming back.) */
.lp-blog-grid-container.row {
	margin-left: 0;
	margin-right: 0;
}
