/* Homepage — responsive matrimony layout */

.glory-home-page #logo {
	font-size: 0 !important;
	line-height: 0;
}

.glory-home-page .kleo-page {
	background: var(--g-ivory);
}

.glory-home-page #main,
.glory-home-page #main-content {
	padding: 0 !important;
	margin: 0 !important;
}

/* —— Hero —— */
.glory-home-hero {
	background: linear-gradient(145deg, var(--g-wine-deep) 0%, var(--g-wine) 48%, #6b3347 100%);
	padding: clamp(40px, 6vw, 72px) 0;
	position: relative;
	overflow: hidden;
}

.glory-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 80% 60% at 90% 20%, rgba(176, 137, 104, 0.12), transparent 55%);
	pointer-events: none;
}

.glory-home-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr minmax(300px, 380px);
	gap: clamp(28px, 4vw, 48px);
	align-items: center;
}

.glory-home-hero__copy {
	min-width: 0;
}

.glory-home-hero h1 {
	color: #fff !important;
	font-size: clamp(2rem, 2.4vw + 1rem, 3.25rem);
	line-height: 1.14;
	margin: 0 0 18px;
	max-width: 14em;
}

.glory-eyebrow--light {
	color: var(--g-gold) !important;
}

.glory-lead--light {
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: clamp(15px, 1.1vw + 12px, 18px);
	max-width: 34em;
	margin-bottom: 22px;
	line-height: 1.6;
}

.glory-trust-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.glory-trust-list li {
	position: relative;
	padding: 4px 0 4px 26px;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(14px, 0.4vw + 13px, 15px);
	line-height: 1.45;
}

.glory-trust-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(176, 137, 104, 0.25);
	color: var(--g-gold);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

/* Search card */
.glory-home-hero__aside {
	min-width: 0;
}

.glory-search-card {
	background: var(--g-paper);
	border-radius: 6px;
	padding: clamp(22px, 3vw, 28px);
	box-shadow: 0 20px 40px rgba(28, 20, 24, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.glory-search-card h2 {
	font-family: var(--g-serif) !important;
	font-size: clamp(22px, 2vw, 26px) !important;
	color: var(--g-ink) !important;
	margin: 0 0 6px;
	text-transform: none !important;
}

.glory-search-card__hint {
	font-size: 14px;
	color: var(--g-muted);
	margin: 0 0 16px;
	line-height: 1.45;
}

.glory-home-search-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

.glory-home-search-form__field label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--g-muted);
	margin-bottom: 5px;
}

.glory-home-search-form__field {
	min-width: 0;
}

.glory-home-search-form__field select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--g-line);
	border-radius: 4px;
	padding: 10px 12px;
	font-family: var(--g-sans);
	font-size: 15px;
	height: 42px;
	background: #fff;
	color: var(--g-ink);
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.glory-home-search-form__field select:hover,
.glory-home-search-form__field select:focus {
	border-color: var(--g-wine-soft);
	outline: none;
}

.glory-home-search-form .glory-btn-block {
	margin-top: 2px;
	padding: 13px 16px;
	font-size: 15px;
}

.glory-search-fallback {
	margin: 0;
}

/* —— Trust rail —— */
.glory-trust-rail {
	background: #fffaf7;
	border-bottom: 1px solid var(--g-line);
	padding: 24px 0;
}

.glory-trust-rail__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
}

.glory-trust-rail p {
	margin: 0;
	color: var(--g-wine);
	font-family: var(--g-serif);
	font-size: clamp(19px, 1.5vw, 23px);
	font-weight: 600;
}

.glory-trust-rail ul {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 36px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.glory-trust-rail li {
	position: relative;
	padding-left: 18px;
	color: var(--g-muted);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.glory-trust-rail li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--g-gold);
	transform: translateY(-50%);
}

/* —— Process —— */
.glory-home-steps {
	padding: clamp(52px, 7vw, 84px) 0;
	background: #f3ece7;
}

.glory-process {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	background: var(--g-paper);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(63, 24, 37, 0.1);
}

.glory-process__intro {
	padding: clamp(38px, 5vw, 60px);
	background: linear-gradient(145deg, var(--g-wine-deep), #67283d);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.glory-process__intro h2 {
	color: #fff !important;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.12;
	margin: 0 0 18px;
}

.glory-process__intro > p:not(.glory-eyebrow) {
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	line-height: 1.65;
	margin: 0 0 28px;
	max-width: 30em;
}

.glory-process__intro .glory-btn {
	align-self: flex-start;
}

.glory-process__list {
	padding: clamp(20px, 3vw, 34px) clamp(28px, 5vw, 56px);
	background: #fffaf7;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.glory-process-step {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 20px;
	align-items: start;
	padding: clamp(22px, 3vw, 30px) 0;
}

.glory-process-step + .glory-process-step {
	border-top: 1px solid #e8d9d2;
}

.glory-process-step__num {
	font-family: var(--g-serif);
	font-size: 22px;
	font-weight: 600;
	color: var(--g-gold);
	line-height: 1.2;
}

.glory-process-step h3 {
	font-family: var(--g-sans) !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	color: var(--g-ink) !important;
	margin: 0 0 7px;
}

.glory-process-step p {
	font-size: 15px;
	color: var(--g-muted);
	line-height: 1.6;
	margin: 0;
}

/* —— Register —— */
.glory-home-register {
	padding: clamp(44px, 5vw, 64px) 0;
	background: var(--g-paper);
	border-top: 1px solid var(--g-line);
}

.glory-register-panel {
	display: block;
	max-width: 760px;
	margin-inline: auto;
	border: 1px solid var(--g-line);
	border-radius: 6px;
	overflow: hidden;
	background: var(--g-paper);
	box-shadow: 0 12px 34px rgba(28, 20, 24, 0.06);
}

.glory-register-panel__intro {
	padding: clamp(30px, 4vw, 42px) clamp(24px, 5vw, 52px) 20px;
	background: var(--g-paper);
	text-align: center;
}

.glory-register-panel__intro h2 {
	font-size: clamp(26px, 2.5vw, 34px);
	margin: 0 0 12px;
	max-width: none;
}

.glory-register-panel__intro .glory-lead {
	margin-bottom: 0;
	font-size: clamp(15px, 1vw + 13px, 17px);
	margin-inline: auto;
}

.glory-register-panel__form {
	padding: 4px clamp(24px, 5vw, 52px) clamp(30px, 4vw, 42px);
}

.glory-home-register__note {
	font-size: 14px;
	color: var(--g-muted);
	margin-top: 14px;
	margin-bottom: 0;
}

.glory-home-register__note a {
	font-weight: 500;
}

.glory-register-panel .glory-register-card {
	background: transparent;
	border: 0;
	padding: 0;
	width: 100%;
}

.glory-register-card h3 {
	font-family: var(--g-serif) !important;
	font-size: clamp(22px, 2vw, 24px) !important;
	color: var(--g-ink) !important;
	margin: 0 0 8px;
	text-transform: none !important;
}

.glory-register-intro {
	font-size: 14px;
	color: var(--g-muted);
	margin: 0 0 20px;
	line-height: 1.5;
}

.glory-register-form .glory-field {
	margin-bottom: 14px;
}

.glory-register-form .glory-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.glory-register-form label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--g-muted);
	margin-bottom: 6px;
}

.glory-register-form input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--g-line);
	border-radius: 4px;
	padding: 11px 12px;
	font-family: var(--g-sans);
	font-size: 15px;
	background: #fff;
	color: var(--g-ink);
	transition: border-color 0.15s ease;
}

.glory-register-form input:focus {
	border-color: var(--g-wine-soft);
	outline: none;
}

.glory-register-form input[readonly] {
	background: #f0ebe6;
	color: var(--g-muted);
}

.glory-btn-block {
	display: block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	margin-top: 8px;
}

.glory-home-register--logged-in {
	text-align: center;
}

.glory-home-register--logged-in__inner {
	max-width: 36em;
	margin-inline: auto;
}

.glory-home-register--logged-in h2 {
	max-width: none;
}

/* —— Agency band —— */
.glory-home-agency {
	background: var(--g-wine-deep);
	padding: clamp(28px, 4vw, 38px) 0;
}

.glory-home-agency__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
}

.glory-home-agency h2 {
	color: #fff !important;
	font-size: clamp(22px, 2.2vw, 28px);
	margin: 0 0 6px;
	max-width: none;
}

.glory-home-agency p {
	color: rgba(255, 255, 255, 0.8);
	font-size: clamp(14px, 1vw + 13px, 16px);
	line-height: 1.55;
	margin: 0;
	max-width: 36em;
}

.glory-home-agency__actions {
	display: block;
	flex-shrink: 0;
}

.glory-text-link--light {
	color: rgba(255, 255, 255, 0.88) !important;
	border-bottom-color: var(--g-gold);
	margin-top: 0;
}

/* —— Breakpoints —— */
@media only screen and (max-width: 1023px) {
	.glory-home-hero__grid {
		grid-template-columns: 1fr;
	}

	.glory-home-hero h1 {
		max-width: none;
	}

	.glory-home-hero__aside {
		max-width: 420px;
	}

	.glory-process {
		grid-template-columns: 1fr;
	}

	.glory-process__intro h2 br {
		display: none;
	}
}

@media only screen and (max-width: 767px) {
	.glory-trust-rail__inner {
		display: block;
		text-align: center;
	}

	.glory-trust-rail ul {
		justify-content: center;
		flex-wrap: wrap;
		gap: 8px 18px;
		margin-top: 12px;
	}

	.glory-trust-rail li {
		font-size: 13px;
	}

	.glory-home-search-form__grid {
		grid-template-columns: 1fr;
	}

	.glory-process__intro {
		padding: 34px 26px;
	}

	.glory-process__list {
		padding: 10px 26px;
	}

	.glory-process-step {
		grid-template-columns: 40px 1fr;
		gap: 14px;
	}

	.glory-home-agency__actions {
		width: 100%;
	}

	.glory-home-agency__actions .glory-btn-light {
		width: 100%;
		text-align: center;
	}
}

@media only screen and (min-width: 1440px) {
	.glory-home-hero__grid {
		grid-template-columns: 1.15fr minmax(340px, 400px);
	}
}
