/**
 * Wester Music Academy visual foundation.
 *
 * Keep selectors intentionally light so Eduma and LearnPress retain control
 * of component layout until dedicated designs are approved.
 */

:root {
	--wma-color-black: #0b0b0b;
	--wma-color-charcoal: #1a1a1a;
	--wma-color-gold: #d5aa24;
	--wma-color-gold-dark: #9b7a16;
	--wma-color-white: #ffffff;
	--wma-color-off-white: #f7f5ef;
	--wma-color-text: #1a1a1a;
	--wma-color-muted: #686868;
	--wma-font-heading: "Playfair Display", Georgia, serif;
	--wma-font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--wma-radius-small: 4px;
	--wma-radius-medium: 8px;
	--wma-shadow-soft: 0 10px 30px rgb(0 0 0 / 8%);
	--wma-transition: 180ms ease;
}

/* Accessible keyboard focus shared by theme and LearnPress controls. */
:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--wma-color-gold);
	outline-offset: 3px;
}

::selection {
	color: var(--wma-color-black);
	background: var(--wma-color-gold);
}

/* Homepage hero component. */
.wma-hero {
	position: relative;
	isolation: isolate;
	min-height: 100svh;
	overflow: hidden;
	color: var(--wma-color-white);
	background: var(--wma-color-black);
	font-family: var(--wma-font-body);
}

.wma-hero,
.wma-hero *,
.wma-hero *::before,
.wma-hero *::after {
	box-sizing: border-box;
}

.wma-hero__picture,
.wma-hero__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.wma-hero__picture {
	z-index: -2;
	display: block;
}

.wma-hero__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.wma-hero__shade {
	z-index: -1;
	background:
		linear-gradient(90deg, rgb(4 7 9 / 98%) 0%, rgb(4 7 9 / 91%) 27%, rgb(4 7 9 / 35%) 52%, rgb(4 7 9 / 8%) 76%),
		linear-gradient(0deg, rgb(0 0 0 / 92%) 0%, transparent 34%);
}

.wma-hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: min(100% - 150px, 1386px);
	min-height: 100svh;
	margin-inline: auto;
	padding-block: 95px 105px;
}

.wma-hero__content {
	width: min(46%, 620px);
}

.wma-hero__title {
	margin: 0;
	color: var(--wma-color-white);
	font-family: var(--wma-font-heading);
	font-size: clamp(3.25rem, 5.5vw, 5.25rem);
	font-weight: 600;
	line-height: .9;
	letter-spacing: -.015em;
}

.wma-hero__title span {
	display: block;
}

.wma-hero__title em {
	color: var(--wma-color-gold);
	font-weight: 600;
}

.wma-hero__rule {
	width: 168px;
	height: 2px;
	margin: 60px 0 27px;
	background: var(--wma-color-gold);
}

.wma-hero__courses,
.wma-hero__faith {
	margin: 0;
	font-size: clamp(1rem, 1.5vw, 1.4375rem);
	line-height: 1.55;
}

.wma-hero__faith {
	margin-top: 36px;
}

.wma-hero__faith strong {
	color: var(--wma-color-gold);
	font-weight: 700;
	letter-spacing: .025em;
}

.wma-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	margin-top: 24px;
}

.wma-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 69px;
	padding: 17px 36px;
	border: 1px solid var(--wma-color-white);
	border-radius: var(--wma-radius-medium);
	color: var(--wma-color-white);
	font-size: .98rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: color var(--wma-transition), background-color var(--wma-transition), border-color var(--wma-transition), transform var(--wma-transition);
}

.wma-hero__button svg {
	width: 25px;
	height: 25px;
	margin-right: 11px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.wma-hero__button[aria-disabled="true"] {
	pointer-events: none;
}

.wma-hero__button--primary {
	border-color: var(--wma-color-gold);
	color: var(--wma-color-black);
	background: var(--wma-color-gold);
}

.wma-hero__button:hover,
.wma-hero__button:focus-visible {
	border-color: var(--wma-color-gold);
	color: var(--wma-color-black);
	background: var(--wma-color-gold);
	transform: translateY(-2px);
}

.wma-hero__button--primary:hover,
.wma-hero__button--primary:focus-visible {
	border-color: var(--wma-color-white);
	color: var(--wma-color-white);
	background: transparent;
}

.wma-hero__features {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	margin-top: clamp(52px, 8vh, 92px);
	padding-top: 0;
}

.wma-hero__feature {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 14px;
	min-width: 0;
	padding: 0 clamp(14px, 1.6vw, 26px);
	border-left: 1px solid rgb(255 255 255 / 16%);
}

.wma-hero__feature:first-child {
	padding-left: 0;
	border-left: 0;
}

.wma-hero__feature:last-child {
	padding-right: 0;
}

.wma-hero__feature svg {
	width: 48px;
	height: 48px;
	fill: none;
	stroke: var(--wma-color-gold);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.wma-hero__feature p {
	margin: 0;
	font-size: clamp(.78rem, 1vw, .98rem);
	line-height: 1.45;
}

.wma-hero__feature strong,
.wma-hero__feature span {
	display: block;
}

.wma-hero__feature strong {
	margin-bottom: 2px;
	color: var(--wma-color-white);
	font-weight: 600;
}

.wma-hero__feature span {
	color: rgb(255 255 255 / 82%);
}

.wma-js .wma-hero__content > *,
.wma-js .wma-hero__features {
	opacity: 1;
	transform: none;
}

.wma-js .wma-hero.is-visible .wma-hero__content > *,
.wma-js .wma-hero.is-visible .wma-hero__features {
	animation: wma-hero-reveal 260ms ease-out both;
}

@keyframes wma-hero-reveal {
	from {
		opacity: .88;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (min-width: 1101px) {
	.wma-hero__picture {
		background: #050606;
	}

	.wma-hero__photo {
		position: absolute;
		right: -40px;
		bottom: 0;
		width: 74%;
		height: 100%;
		object-fit: cover;
		object-position: 30% center;
		filter: saturate(.86) contrast(1.05) brightness(.98);
		transform: scale(1.08);
		transform-origin: 75% center;
	}

	.wma-hero__shade {
		background:
			linear-gradient(90deg, #040709 0%, rgb(4 7 9 / 100%) 31%, rgb(4 7 9 / 91%) 41%, rgb(4 7 9 / 58%) 51%, rgb(4 7 9 / 17%) 65%, rgb(4 7 9 / 7%) 84%),
			linear-gradient(180deg, rgb(0 0 0 / 34%) 0%, transparent 23%, transparent 64%, rgb(0 0 0 / 94%) 100%),
			radial-gradient(circle at 72% 43%, transparent 25%, rgb(0 0 0 / 22%) 78%);
	}

	.wma-hero__inner {
		padding-bottom: 70px;
	}

	.wma-hero__rule {
		width: 120px;
	}

	.wma-hero__courses,
	.wma-hero__faith {
		line-height: 1.45;
	}

	.wma-hero__button--primary {
		min-width: 282px;
	}

	.wma-hero__feature svg {
		width: 54px;
		height: 54px;
	}

	.wma-hero__feature p {
		font-size: 1.1rem;
	}
}

@media (max-width: 1100px) {
	.wma-hero {
		min-height: auto;
	}

	.wma-hero__photo {
		object-position: 64% center;
	}

	.wma-hero__shade {
		background:
			linear-gradient(90deg, rgb(4 7 9 / 97%) 0%, rgb(4 7 9 / 85%) 42%, rgb(4 7 9 / 28%) 78%),
			linear-gradient(0deg, rgb(0 0 0 / 95%) 0%, transparent 48%);
	}

	.wma-hero__inner {
		width: min(100% - 48px, 960px);
		min-height: 900px;
	}

	.wma-hero__content {
		width: min(60%, 560px);
	}

	.wma-hero__features {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px 0;
	}

	.wma-hero__feature:nth-child(4) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (min-width: 801px) and (max-width: 1100px) {
	.wma-hero__picture {
		background: #050606;
	}

	.wma-hero__photo {
		position: absolute;
		right: 0;
		bottom: 0;
		width: 82%;
		height: 100%;
		object-fit: cover;
		object-position: 35% center;
		filter: saturate(.86) contrast(1.04) brightness(.99);
	}
}

@media (min-width: 768px) and (max-width: 800px) {
	.wma-hero__picture {
		background: #050606;
	}

	.wma-hero__photo {
		position: absolute;
		top: 0;
		right: 0;
		width: 95%;
		height: 650px;
		object-fit: cover;
		object-position: 20% center;
		filter: saturate(.86) contrast(1.04) brightness(1.03);
	}

	.wma-hero__shade {
		background:
			linear-gradient(90deg, rgb(4 7 9 / 97%) 0%, rgb(4 7 9 / 84%) 42%, rgb(4 7 9 / 24%) 78%),
			linear-gradient(180deg, rgb(4 7 9 / 12%) 0%, rgb(4 7 9 / 34%) 40%, rgb(4 7 9 / 100%) 66%);
	}

	.wma-hero__actions {
		align-items: stretch;
		flex-direction: column;
		gap: 15px;
	}

	.wma-hero__button {
		width: 100%;
	}

	.wma-hero__features {
		grid-template-columns: 1fr 1fr;
	}

	.wma-hero__feature,
	.wma-hero__feature:nth-child(4) {
		padding: 0 12px;
		border-left: 1px solid rgb(255 255 255 / 16%);
	}

	.wma-hero__feature:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.wma-hero__feature:nth-child(even) {
		padding-right: 0;
	}
}

@media (max-width: 767px) {
	.wma-hero__photo {
		height: min(52vh, 440px);
		object-position: 55% center;
		filter: saturate(.86) contrast(1.04) brightness(1);
	}

	.wma-hero__shade {
		background:
			linear-gradient(180deg, rgb(4 7 9 / 18%) 0%, rgb(4 7 9 / 72%) 29%, rgb(4 7 9 / 100%) 52%),
			linear-gradient(90deg, rgb(4 7 9 / 70%), transparent 75%);
	}

	.wma-hero__inner {
		width: min(100% - 32px, 560px);
		min-height: 0;
		padding-block: 24px 32px;
	}

	.wma-hero__content {
		width: 100%;
		padding-top: calc(min(52vh, 440px) - 30px);
	}

	.wma-hero__title {
		font-size: clamp(3.125rem, 13.333vw, 3.25rem);
	}

	.wma-hero__rule {
		margin-top: 30px;
	}

	.wma-hero__courses,
	.wma-hero__faith {
		font-size: 1rem;
	}

	.wma-hero__faith {
		margin-top: 23px;
	}

	.wma-hero__actions {
		align-items: stretch;
		flex-direction: column;
		gap: 15px;
	}

	.wma-hero__button {
		width: 100%;
	}

	.wma-hero__features {
		grid-template-columns: 1fr 1fr;
		gap: 15px 0;
		margin-top: 34px;
	}

	.wma-hero__feature,
	.wma-hero__feature:nth-child(4) {
		grid-template-columns: 42px 1fr;
		gap: 10px;
		padding: 0 12px;
		border-left: 1px solid rgb(255 255 255 / 16%);
	}

	.wma-hero__feature:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.wma-hero__feature:nth-child(even) {
		padding-right: 0;
	}

	.wma-hero__feature svg {
		width: 38px;
		height: 38px;
	}

	.wma-hero__feature p {
		font-size: 14px;
	}
}

@media (max-width: 430px) {
	.wma-hero__features {
		grid-template-columns: 1fr;
	}

	.wma-hero__feature,
	.wma-hero__feature:nth-child(4),
	.wma-hero__feature:nth-child(even) {
		padding-inline: 0;
		border-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wma-hero *,
	.wma-hero *::before,
	.wma-hero *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		transition-delay: 0ms !important;
	}
}
