/* ============================================================
   Jeduthun — black & gold choir theme
   ============================================================ */

:root {
	--color-black: #0a0a0a;
	--color-black-soft: #111111;
	--color-charcoal: #1a1a1a;
	--color-white: #ffffff;
	--color-off-white: #f7f5f2;
	--color-gold: #c5a059;
	--color-gold-light: #d4b06e;
	--color-gold-dark: #a8843f;
	--color-text: #1a1a1a;
	--color-text-muted: #5a5a5a;
	--color-text-on-dark: #f2f2f2;
	--font-serif: "Cormorant Garamond", "Times New Roman", serif;
	--font-sans: "Montserrat", "Helvetica Neue", sans-serif;
	--font-script: "Great Vibes", cursive;
	--header-h: 5.5rem;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--max: 72rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-black);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 10000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1.25rem;
	background: var(--color-gold);
	color: var(--color-black);
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(10, 10, 10, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	max-width: 90rem;
	margin: 0 auto;
	padding: 1rem 2rem;
	min-height: var(--header-h);
}

.site-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
}

.site-brand__name {
	font-family: var(--font-script);
	font-size: 2.35rem;
	color: var(--color-gold);
	letter-spacing: 0.02em;
}

.site-brand__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.15rem;
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--color-gold);
}

.site-brand__line {
	display: block;
	width: 1.25rem;
	height: 1px;
	background: var(--color-gold);
	opacity: 0.7;
}

.site-brand .custom-logo-link img {
	max-height: 3.5rem;
	width: auto;
}

.primary-nav {
	justify-self: center;
}

.primary-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__list a {
	position: relative;
	display: inline-block;
	padding: 0.35rem 0;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-white);
	transition: color 0.25s var(--ease);
}

.primary-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--color-gold);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s var(--ease);
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a {
	color: var(--color-gold);
}

.primary-nav__list .current-menu-item > a::after,
.primary-nav__list .current_page_item > a::after,
.primary-nav__list a:hover::after {
	transform: scaleX(1);
}

.header-social {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.header-social__link {
	display: inline-flex;
	color: var(--color-white);
	opacity: 0.85;
	transition: color 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.header-social__link:hover {
	color: var(--color-gold);
	opacity: 1;
	transform: translateY(-1px);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	justify-self: end;
}

.nav-toggle span {
	display: block;
	width: 1.4rem;
	height: 1.5px;
	background: var(--color-gold);
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.95rem 1.6rem;
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border: 1px solid transparent;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn__arrow {
	font-size: 1rem;
	line-height: 1;
	transition: transform 0.3s var(--ease);
}

.btn:hover .btn__arrow {
	transform: translateX(4px);
}

.btn--gold {
	background: var(--color-gold);
	color: var(--color-black);
	border-color: var(--color-gold);
}

.btn--gold:hover {
	background: var(--color-gold-light);
	border-color: var(--color-gold-light);
}

.btn--ghost {
	background: transparent;
	color: var(--color-gold);
	border-color: var(--color-gold);
}

.btn--ghost:hover {
	background: var(--color-gold);
	color: var(--color-black);
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: var(--color-black);
	background-image: var(--hero-bg);
	background-size: cover;
	background-position: center;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.35) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}

.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 90rem;
	margin: 0 auto;
	padding: 4.5rem 2rem 5rem;
}

.hero__copy {
	max-width: 38rem;
	animation: fade-up 0.9s var(--ease) both;
}

.hero__title {
	margin: 0 0 1.35rem;
	font-family: var(--font-serif);
	font-size: clamp(2.6rem, 5vw, 4.1rem);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: 0.01em;
	color: var(--color-white);
}

.hero__text {
	margin: 0 0 2rem;
	max-width: 28rem;
	font-size: 0.98rem;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- Pillars ---------- */

.pillars {
	background: var(--color-black);
	padding: 4.5rem 2rem;
	border-top: 1px solid rgba(197, 160, 89, 0.12);
}

.pillars__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2.5rem 2rem;
	max-width: var(--max);
	margin: 0 auto;
}

.pillar {
	text-align: center;
	opacity: 0;
	transform: translateY(18px);
	animation: fade-up 0.7s var(--ease) forwards;
}

.pillar:nth-child(1) { animation-delay: 0.05s; }
.pillar:nth-child(2) { animation-delay: 0.15s; }
.pillar:nth-child(3) { animation-delay: 0.25s; }
.pillar:nth-child(4) { animation-delay: 0.35s; }

.pillar__icon {
	display: inline-flex;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.15rem;
	color: var(--color-gold);
}

.pillar__icon svg {
	width: 100%;
	height: 100%;
}

.pillar__title {
	margin: 0 0 0.7rem;
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-white);
}

.pillar__text {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.68);
}

/* ---------- Repertoire teaser ---------- */

.repertoire-teaser {
	background: var(--color-white);
	padding: 5.5rem 2rem;
}

.repertoire-teaser__inner {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 4rem;
	align-items: center;
	max-width: 90rem;
	margin: 0 auto;
}

.section-title {
	margin: 0 0 1.25rem;
	font-family: var(--font-serif);
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	font-weight: 500;
	line-height: 1.15;
	color: var(--color-black);
}

.repertoire-teaser__text {
	margin: 0 0 2rem;
	max-width: 28rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.8;
	color: var(--color-text-muted);
}

.repertoire-teaser__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.rep-card {
	margin: 0;
	position: relative;
	overflow: hidden;
	background: var(--color-charcoal);
}

.rep-card img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}

.rep-card:hover img {
	transform: scale(1.05);
}

.rep-card figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.85rem 0.75rem;
	background: rgba(0, 0, 0, 0.92);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: center;
	color: var(--color-white);
}

/* ---------- Quote band ---------- */

.quote-band {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 18rem;
	padding: 5rem 2rem;
	background-color: var(--color-black);
	background-image: var(--quote-bg);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

.quote-band__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.quote-band__quote {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	max-width: 48rem;
	text-align: center;
}

.quote-band__quote p {
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.35;
	color: var(--color-white);
}

.quote-band__line {
	flex: 0 0 3.5rem;
	height: 1px;
	background: var(--color-gold);
	opacity: 0.85;
}

/* ---------- Inner pages ---------- */

.content-page {
	background: var(--color-off-white);
	min-height: 60vh;
	padding: 4rem 2rem 5rem;
}

.content-page__inner {
	max-width: 48rem;
	margin: 0 auto;
}

.entry__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 500;
	color: var(--color-black);
}

.entry__meta {
	margin: 0 0 1.75rem;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-gold-dark);
}

.entry__content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--color-text-muted);
}

.entry__content > *:first-child {
	margin-top: 0;
}

.entry__content a {
	color: var(--color-gold-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Contact page ---------- */

.contact-page {
	background: var(--color-off-white);
}

.contact-hero {
	position: relative;
	padding: 4.5rem 2rem 4rem;
	background:
		radial-gradient(ellipse 80% 60% at 20% 0%, rgba(197, 160, 89, 0.12), transparent 55%),
		radial-gradient(ellipse 60% 50% at 90% 100%, rgba(197, 160, 89, 0.08), transparent 50%),
		linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
	border-bottom: 1px solid rgba(197, 160, 89, 0.2);
	overflow: hidden;
}

.contact-hero::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
	opacity: 0.45;
}

.contact-hero__inner {
	max-width: var(--max);
	margin: 0 auto;
	text-align: center;
	animation: fade-up 0.8s var(--ease) both;
}

.contact-hero__eyebrow {
	margin: 0 0 1rem;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--color-gold);
}

.contact-hero__title {
	margin: 0 0 1.15rem;
	font-family: var(--font-serif);
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 500;
	line-height: 1.1;
	color: var(--color-white);
}

.contact-hero__text {
	margin: 0 auto;
	max-width: 32rem;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.75);
}

.contact-body {
	padding: 4.5rem 2rem 5.5rem;
}

.contact-body__inner {
	max-width: 40rem;
	margin: 0 auto;
}

.contact-form-panel__heading {
	margin: 0 0 0.75rem;
	font-family: var(--font-serif);
	font-size: clamp(1.7rem, 3vw, 2.15rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--color-black);
	text-align: center;
}

.contact-form-panel__lead {
	margin: 0 0 2rem;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--color-text-muted);
	text-align: center;
}

.contact-form-panel {
	padding: 2.25rem 2.25rem 2.5rem;
	background: var(--color-white);
	border: 1px solid rgba(197, 160, 89, 0.2);
	box-shadow: 0 18px 48px rgba(10, 10, 10, 0.06);
	animation: fade-up 0.75s var(--ease) 0.1s both;
}

.contact-form-panel__form .wpcf7 {
	margin: 0;
}

.contact-form-panel__form .wpcf7-form {
	display: grid;
	gap: 1.15rem;
}

.contact-form-panel__form .jeduthun-cf7__fields {
	display: grid;
	gap: 1.15rem;
}

.contact-form-panel__form .jeduthun-cf7__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.15rem;
}

.contact-form-panel__form label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-text);
}

.contact-form-panel__form .wpcf7-form-control-wrap {
	display: block;
}

.contact-form-panel__form input[type="text"],
.contact-form-panel__form input[type="email"],
.contact-form-panel__form input[type="tel"],
.contact-form-panel__form textarea {
	width: 100%;
	padding: 0.9rem 1rem;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-text);
	background: var(--color-off-white);
	border: 1px solid rgba(26, 26, 26, 0.12);
	border-radius: 0;
	outline: none;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.contact-form-panel__form input[type="text"]:focus,
.contact-form-panel__form input[type="email"]:focus,
.contact-form-panel__form input[type="tel"]:focus,
.contact-form-panel__form textarea:focus {
	background: var(--color-white);
	border-color: var(--color-gold);
	box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
}

.contact-form-panel__form textarea {
	min-height: 9rem;
	resize: vertical;
}

.contact-form-panel__form .wpcf7-not-valid {
	border-color: #b33a3a !important;
}

.contact-form-panel__form .wpcf7-not-valid-tip {
	margin-top: 0.4rem;
	font-size: 0.8rem;
	color: #b33a3a;
}

.contact-form-panel__form .wpcf7-spinner {
	margin-left: 0.75rem;
}

.contact-form-panel__form .wpcf7-submit,
.contact-form-panel__form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.35rem;
	padding: 0.95rem 1.75rem;
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-black);
	background: var(--color-gold);
	border: 1px solid var(--color-gold);
	cursor: pointer;
	transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-form-panel__form .wpcf7-submit:hover,
.contact-form-panel__form input[type="submit"]:hover {
	background: var(--color-gold-light);
	border-color: var(--color-gold-light);
}

.contact-form-panel__form .wpcf7-response-slot .wpcf7-response-output,
.contact-form-panel__form .wpcf7-response-output {
	display: none;
	margin: 0 0 0.25rem;
	padding: 1rem 1.15rem;
	font-size: 0.95rem;
	line-height: 1.55;
	text-align: center;
	border-width: 1px;
	border-style: solid;
}

.contact-form-panel__form .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-panel__form .wpcf7-form.unaccepted .wpcf7-response-output,
.contact-form-panel__form .wpcf7-form.spam .wpcf7-response-output,
.contact-form-panel__form .wpcf7-form.failed .wpcf7-response-output,
.contact-form-panel__form .wpcf7-form.aborted .wpcf7-response-output,
.contact-form-panel__form .wpcf7-form.sent .wpcf7-response-output {
	display: block;
	animation: fade-up 0.45s var(--ease) both;
}

.contact-form-panel__form .wpcf7-form.sent .wpcf7-response-output {
	margin: 0;
	padding: 2.5rem 1.5rem;
	border-color: rgba(197, 160, 89, 0.55);
	background: rgba(197, 160, 89, 0.1);
	color: var(--color-text);
	font-family: var(--font-serif);
	font-size: clamp(1.25rem, 2.5vw, 1.55rem);
	font-weight: 500;
	line-height: 1.4;
}

.contact-form-panel__form .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-panel__form .wpcf7-form.unaccepted .wpcf7-response-output,
.contact-form-panel__form .wpcf7-form.spam .wpcf7-response-output,
.contact-form-panel__form .wpcf7-form.failed .wpcf7-response-output,
.contact-form-panel__form .wpcf7-form.aborted .wpcf7-response-output {
	border-color: rgba(179, 58, 58, 0.45);
	background: rgba(179, 58, 58, 0.06);
	color: #8a2a2a;
}

.contact-form-panel__form .wpcf7-form.sent .jeduthun-cf7__fields {
	display: none;
}

.contact-form-panel:has(.wpcf7-form.sent) .contact-form-panel__heading,
.contact-form-panel:has(.wpcf7-form.sent) .contact-form-panel__lead {
	display: none;
}

.contact-form-panel__form .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--color-black);
	border-top: 1px solid rgba(197, 160, 89, 0.15);
	padding: 2.75rem 2rem;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	max-width: var(--max);
	margin: 0 auto;
	text-align: center;
}

.site-brand--footer .site-brand__name {
	font-size: 2rem;
}

.site-footer__copy {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 300;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.55);
}

/* ---------- Motion ---------- */

@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.pillars__inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}

	.repertoire-teaser__inner {
		gap: 2.5rem;
	}
}

@media (max-width: 900px) {
	.contact-form-panel {
		padding: 1.75rem 1.35rem 2rem;
	}

	.contact-form-panel__form .jeduthun-cf7__row {
		grid-template-columns: 1fr;
	}

	.site-header__inner {
		grid-template-columns: 1fr auto;
		padding: 0.85rem 1.25rem;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.primary-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		display: none;
		padding: 1.25rem;
		background: rgba(10, 10, 10, 0.98);
		border-bottom: 1px solid rgba(197, 160, 89, 0.2);
		justify-self: stretch;
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav__list {
		flex-direction: column;
		align-items: center;
		gap: 0.35rem;
	}

	.primary-nav__list a {
		font-size: 0.85rem;
		padding: 0.65rem 0;
	}

	.header-social {
		display: none;
	}

	.hero__content {
		padding: 3.5rem 1.25rem 4rem;
	}

	.hero__copy {
		text-align: center;
		max-width: none;
	}

	.hero__text {
		margin-left: auto;
		margin-right: auto;
	}

	.repertoire-teaser__inner {
		grid-template-columns: 1fr;
	}

	.repertoire-teaser__copy {
		text-align: center;
	}

	.repertoire-teaser__text {
		margin-left: auto;
		margin-right: auto;
	}

	.quote-band {
		background-attachment: scroll;
	}

	.quote-band__quote {
		flex-direction: column;
		gap: 1.25rem;
	}

	.quote-band__line {
		width: 3.5rem;
		flex: none;
	}
}

@media (max-width: 640px) {
	.pillars__inner,
	.repertoire-teaser__grid {
		grid-template-columns: 1fr;
	}

	.repertoire-teaser__grid {
		max-width: 18rem;
		margin: 0 auto;
	}

	.site-brand__name {
		font-size: 1.9rem;
	}
}
