/* ==========================================================
   Vocal Fun theme
   ========================================================== */

:root {
	--vf-yellow: #e9c334;
	--vf-black: #000;
	--vf-white: #fff;
	--vf-ink: #333;
	--vf-wrap: 980px;
	--vf-font-body: "Roboto", system-ui, sans-serif;
	--vf-font-ui: "Jost", "Futura", "Avenir", system-ui, sans-serif;
	--vf-font-display: "Montserrat", "Arial Black", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--vf-black);
	color: var(--vf-white);
	font-family: var(--vf-font-ui);
	font-weight: 300;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

.vf-wrap {
	max-width: var(--vf-wrap);
	margin-inline: auto;
	padding-inline: 20px;
}

.vf-narrow {
	max-width: 760px;
	margin-inline: auto;
	padding-inline: 20px;
}

.vf-skip {
	position: absolute;
	left: -9999px;
}
.vf-skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
	background: var(--vf-yellow);
	color: var(--vf-black);
	padding: .5rem 1rem;
}

.vf-section-title {
	font-family: var(--vf-font-ui);
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 3rem);
	text-align: center;
	letter-spacing: .03em;
	margin: 0 0 2.5rem;
}

/* ---------- Logo ---------- */

.vf-logo { display: block; }
.vf-logo--header { width: 185px; }
.vf-logo--medium { width: 230px; margin: 0 auto 1.25rem; }
.vf-logo--large { width: 260px; }

/* ---------- Header (sticky, shrinks once scrolled) ---------- */

html { scroll-padding-top: calc(var(--vf-header-h, 130px) + 12px); }
body { overflow-anchor: none; } /* stops the browser jumping when the header shrinks */

.vf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--vf-black);
	padding-top: 8px;
	transition: box-shadow .3s;
}
.vf-header.is-scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, .7); }

/* Sit below the WordPress admin bar when logged in */
.admin-bar .vf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vf-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .vf-header { top: 0; } }

/* Desktop layout:
     logo | tagline | free trial
     logo | tagline | join the fun
     emails ......... menu        */
.vf-header__grid {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas:
		"logo tag  trial"
		"logo tag  join"
		"mail mail nav";
	align-items: center;
	column-gap: 1.25rem;
}

.vf-header__logo { grid-area: logo; display: block; }

.vf-tagline {
	grid-area: tag;
	font-family: var(--vf-font-ui);
	font-weight: 500;
	font-size: 1.75rem;
	line-height: 1.45;
	max-width: 260px;
	margin: 0;
}
.vf-tagline em { font-style: normal; color: var(--vf-yellow); }

.vf-header__trial,
.vf-header__join {
	color: var(--vf-yellow);
	text-transform: uppercase;
	text-align: center;
	font-family: var(--vf-font-ui);
	font-weight: 400;
	margin: 0;
}
.vf-header__trial { grid-area: trial; align-self: end; font-size: 1.5rem; margin-bottom: .5rem; }
.vf-header__join { grid-area: join; align-self: start; font-size: 2rem; }

.vf-header__emails {
	grid-area: mail;
	margin: 0;
	padding-block: 2.5rem 2rem;
	font-size: 1.1rem;
	letter-spacing: .02em;
	overflow-wrap: anywhere;
}
.vf-header__emails a { text-decoration: none; }
.vf-header__emails a:hover { color: var(--vf-yellow); }

.vf-header__fb {
	position: absolute;
	top: 0;
	right: 20px; /* matches .vf-wrap side padding */
	color: #1877f2;
	line-height: 0;
}
.vf-header__fb svg { background: #fff; border-radius: 50%; }

.vf-nav { grid-area: nav; justify-self: end; display: flex; gap: 1.25rem; }
.vf-nav a {
	font-family: var(--vf-font-body);
	font-weight: 400;
	font-size: .9rem;
	text-decoration: none;
}
.vf-nav a:hover { color: var(--vf-yellow); }

/* Shrink smoothly once scrolled */
.vf-logo--header,
.vf-tagline,
.vf-header__trial,
.vf-header__join,
.vf-header__emails {
	transition: width .3s, font-size .3s, padding .3s, margin .3s;
}
.vf-header.is-scrolled .vf-logo--header { width: 90px; }
.vf-header.is-scrolled .vf-tagline { font-size: 1.05rem; line-height: 1.3; max-width: 200px; }
.vf-header.is-scrolled .vf-header__trial { font-size: .95rem; margin-bottom: .15rem; }
.vf-header.is-scrolled .vf-header__join { font-size: 1.3rem; }
.vf-header.is-scrolled .vf-header__emails { font-size: .9rem; padding-block: .5rem .6rem; }

/* Phones and small tablets:
     logo | tagline
     logo | FREE TRIAL SESSIONS
     COME AND JOIN THE FUN!   (full width)
     email / email            (full width)
     Choirs  Watch  FAQ  Contact            */
@media (max-width: 900px) {
	.vf-header { padding-top: 14px; }

	.vf-header__grid {
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"logo tag"
			"logo trial"
			"join join"
			"mail mail"
			"nav  nav";
		column-gap: 1rem;
		row-gap: 0;
	}

	.vf-logo--header { width: clamp(90px, 28vw, 130px); }

	.vf-tagline {
		align-self: end;
		max-width: none;
		padding-right: 28px; /* keeps clear of the Facebook icon */
		font-size: clamp(1rem, 4.3vw, 1.35rem);
		line-height: 1.25;
	}
	.vf-header__trial {
		align-self: start;
		margin: .4rem 0 0;
		text-align: left;
		font-size: clamp(.72rem, 3vw, .95rem);
		letter-spacing: .03em;
	}
	.vf-header__join {
		margin-top: 1rem;
		font-size: clamp(1.2rem, 5.4vw, 1.6rem);
		line-height: 1.2;
		letter-spacing: .03em;
	}
	.vf-header__emails {
		margin-top: .35rem;
		padding: 0;
		text-align: center;
		font-size: clamp(.72rem, 3.1vw, .95rem);
		line-height: 1.6;
		color: #ddd;
	}
	/* Keep each address whole; on narrow screens they wrap at the "/" */
	.vf-header__emails a { white-space: nowrap; }

	.vf-header__fb { right: 16px; }
	.vf-header__fb svg { width: 22px; height: 22px; }

	.vf-nav {
		justify-self: stretch;
		justify-content: space-around;
		gap: .5rem;
		margin-top: .9rem;
		padding-block: .7rem;
		border-top: 1px solid #2c2c2c;
	}
	.vf-nav a { font-size: 1rem; padding: .2rem .25rem; }

	/* Once scrolled: one slim row with a small logo and the links */
	.vf-header.is-scrolled { padding-top: 6px; }
	.vf-header.is-scrolled .vf-header__grid {
		grid-template-areas: "logo nav";
		align-items: center;
	}
	.vf-header.is-scrolled .vf-tagline,
	.vf-header.is-scrolled .vf-header__trial,
	.vf-header.is-scrolled .vf-header__join,
	.vf-header.is-scrolled .vf-header__emails,
	.vf-header.is-scrolled .vf-header__fb { display: none; }
	.vf-header.is-scrolled .vf-logo--header { width: 56px; }
	.vf-header.is-scrolled .vf-nav {
		justify-content: flex-end;
		gap: clamp(.6rem, 4vw, 1.4rem);
		margin: 0;
		padding-block: .4rem;
		border-top: 0;
	}
}

/* ---------- Video ---------- */

.vf-hero { padding-bottom: 3rem; }

.vf-video {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	background: #111;
}
.vf-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.vf-video__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	text-align: center;
	color: #888;
	font-size: 1.5rem;
}
.vf-video__placeholder small { font-size: .9rem; }

/* ---------- Choirs ---------- */

.vf-choirs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.vf-choirs__logo {
	position: absolute;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
	pointer-events: none;
}

.vf-choir {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 11rem 1.5rem 3.5rem;
	font-size: 1.4rem;
}
.vf-choir--mixed { background: var(--vf-yellow); }
.vf-choir--ladies { background: var(--vf-black); }

.vf-choir__title {
	font-family: var(--vf-font-display);
	font-weight: 800;
	font-size: clamp(2.25rem, 4.5vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: .3em;
	text-transform: uppercase;
	margin: 0 0 1.75rem;
	padding-left: .3em; /* balances the trailing letter-spacing */
}
.vf-choir__title span { display: block; }

.vf-choir__when { text-transform: uppercase; margin: 0 0 .75rem; }

.vf-choir__address {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin-bottom: .75rem;
}

.vf-choir__email { margin: 0 0 2.25rem; }
.vf-choir__email a { text-decoration: none; }
.vf-choir__email a:hover { text-decoration: underline; }

.vf-choir__map {
	width: 100%;
	max-width: 490px;
	aspect-ratio: 490 / 280;
	margin-bottom: 2.5rem;
}
.vf-choir__map iframe { width: 100%; height: 100%; border: 0; display: block; }

.vf-button {
	display: inline-block;
	border: 4px solid var(--vf-white);
	padding: .9rem 3.5rem;
	font-size: 1.9rem;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.vf-choir--mixed .vf-button:hover { background: var(--vf-white); color: var(--vf-yellow); }
.vf-choir--ladies .vf-button:hover { background: var(--vf-white); color: var(--vf-black); }

/* ---------- About ---------- */

.vf-about { padding-block: 9rem 2.5rem; }

.vf-about__heading {
	text-align: center;
	font-weight: 400;
	font-size: 1.6rem;
	text-transform: uppercase;
	margin: 0 0 3.5rem;
}
.vf-about__heading em { font-style: normal; color: var(--vf-yellow); }

.vf-about p {
	font-family: var(--vf-font-body);
	font-size: 1.4rem;
	line-height: 1.95;
	margin: 0 0 2.5rem;
}
.vf-about mark { background: none; color: var(--vf-yellow); }

/* ---------- Slideshow ---------- */

.vf-slideshow {
	position: relative;
	overflow: hidden;
	background: #111;
}
.vf-slideshow__track {
	position: relative;
	width: 100%;
	aspect-ratio: 1635 / 470; /* no min-height: with aspect-ratio it would force a min-width and push the slides off-centre */
}
.vf-slideshow__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .8s ease;
}
.vf-slideshow__slide.is-active { opacity: 1; }

/* Whole photo in the middle, blurred copy filling the sides */
.vf-slideshow__slide--contain { overflow: hidden; background: #111; }
.vf-slideshow__bg {
	position: absolute;
	inset: -40px;
	width: calc(100% + 80px);
	height: calc(100% + 80px);
	object-fit: cover;
	filter: blur(28px) brightness(.5);
}
.vf-slideshow__fg {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.vf-slideshow__dots {
	position: absolute;
	left: 50%;
	bottom: 2.25rem;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}
.vf-slideshow__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
}
.vf-slideshow__dot.is-active { background: var(--vf-white); }

/* ---------- Gallery ---------- */

.vf-gallery { padding-block: 6rem; }

.vf-gallery__grid {
	display: grid;
	grid-template-columns: 1.03fr 1fr;
	gap: 3rem 2rem;
}
.vf-gallery__item { margin: 0; }
.vf-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.vf-gallery__item--1,
.vf-gallery__item--4,
.vf-gallery__item--5 { grid-column: 1 / -1; aspect-ratio: 970 / 350; }
.vf-gallery__item--2,
.vf-gallery__item--3 { aspect-ratio: 475 / 327; }
.vf-gallery__item--2 img { object-position: 85% center; } /* keeps Lynne (far right) in frame */

/* ---------- Watch ---------- */

.vf-watch { padding-block: 5rem; }
.vf-watch .vf-video + .vf-video { margin-top: 5rem; }

/* ---------- FAQ ---------- */

.vf-faq {
	background: var(--vf-yellow);
	color: var(--vf-ink);
	padding-block: 6rem;
	border-top: 3px solid var(--vf-black);
}

.vf-faq__grid {
	max-width: 1220px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem;
}

.vf-faq__item { display: flex; gap: 1rem; align-items: flex-start; }
.vf-faq__icon { width: 62px; flex: 0 0 62px; color: var(--vf-ink); }

.vf-faq h3 {
	font-weight: 400;
	font-size: 1.6rem;
	line-height: 1.5;
	text-transform: uppercase;
	margin: .6rem 0 1.5rem;
}
.vf-faq p { font-size: 1.05rem; line-height: 2; margin: 0; }

/* ---------- Reviews ---------- */

.vf-reviews { padding-block: 5rem 8rem; }

.vf-reviews__layout {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0 1rem;
	margin-top: 6rem;
}

.vf-reviews blockquote {
	margin: 0;
	text-align: center;
	font-size: 1.4rem;
	line-height: 1.9;
}

.vf-reviews__top { grid-column: 1 / -1; margin-bottom: 1.5rem !important; }
.vf-reviews__col { display: flex; flex-direction: column; gap: 2.5rem; }
.vf-reviews__logo { display: flex; justify-content: center; }

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

.vf-contact {
	background: var(--vf-yellow);
	color: var(--vf-ink);
	padding-block: 2.5rem 4rem;
	border-top: 3px solid var(--vf-black);
}
.vf-contact .vf-section-title { color: var(--vf-white); margin-bottom: 2.5rem; }

.vf-contact__media {
	position: relative;
	width: 400px;
	max-width: 100%;
	margin: 0 auto 6rem;
}
.vf-contact__photo {
	width: 100%;
	aspect-ratio: 400 / 312;
	object-fit: cover;
}
/* Black logo on the plain wall above the choir */
.vf-contact__logo {
	position: absolute;
	left: 45%;
	top: 8%;
	width: 26%;
}

.vf-contact__notice {
	max-width: 960px;
	margin: 0 auto 2rem;
	padding: .75rem 1rem;
	background: rgba(255, 255, 255, .6);
	text-align: center;
}
.vf-contact__notice--error,
.vf-contact__notice--invalid { background: #fbe3e3; color: #8a1f1f; }

.vf-form {
	max-width: 960px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem 1.75rem;
}

.vf-field {
	position: relative;
	display: block;
	padding-top: 1.1rem; /* room for the label once it floats up */
}
.vf-field--full { grid-column: 1 / -1; }

/* Label sits in the line like a placeholder, then floats up small when the
   field is focused or has a value. */
.vf-field__label {
	position: absolute;
	left: .3rem;
	top: calc(1.1rem + .5rem);
	font-size: 1.1rem;
	line-height: 1.6;
	color: #4a4a4a;
	pointer-events: none;
	transform-origin: left top;
	transition: top .2s ease, font-size .2s ease, color .2s ease;
}
.vf-field input:focus + .vf-field__label,
.vf-field input:not(:placeholder-shown) + .vf-field__label,
.vf-field textarea:focus + .vf-field__label,
.vf-field textarea:not(:placeholder-shown) + .vf-field__label,
.vf-field select:focus + .vf-field__label,
.vf-field select:valid + .vf-field__label {
	top: 0;
	font-size: .8rem;
	color: var(--vf-ink);
}

.vf-field input,
.vf-field select,
.vf-field textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--vf-ink);
	padding: .5rem .3rem;
	font: inherit;
	font-size: 1.1rem;
	color: var(--vf-ink);
	resize: vertical;
}
.vf-field input:focus,
.vf-field select:focus,
.vf-field textarea:focus { outline: none; border-bottom: 2px solid var(--vf-ink); margin-bottom: -1px; }
.vf-field input::placeholder,
.vf-field textarea::placeholder { color: transparent; }
.vf-field textarea { min-height: 100px; }

.vf-field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2rem;
	cursor: pointer;
	border-radius: 0;
}
.vf-field select option { color: #222; background: #fff; }
.vf-field--select::after { /* dropdown arrow */
	content: "";
	position: absolute;
	right: .6rem;
	bottom: 1.1rem;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--vf-ink);
	border-bottom: 2px solid var(--vf-ink);
	transform: rotate(45deg);
	pointer-events: none;
}

.vf-form__send {
	grid-column: 1 / -1;
	justify-self: center;
	background: none;
	border: 0;
	font: inherit;
	font-size: 1.1rem;
	color: var(--vf-ink);
	cursor: pointer;
	padding: .5rem 1rem;
}
.vf-form__send:hover { text-decoration: underline; }

.vf-form__hp { position: absolute; left: -9999px; }

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

.vf-footer {
	background: var(--vf-white);
	color: var(--vf-ink);
	text-align: center;
	padding-block: 3rem 2rem;
}
.vf-footer p { margin: 0 0 .5rem; }
.vf-footer a { text-decoration: none; }
.vf-footer a:hover { text-decoration: underline; }
.vf-footer__fb { display: inline-block; margin-top: 1.5rem; color: var(--vf-ink); }
.vf-footer__fb svg { width: 18px; height: 18px; }
.vf-footer__copy { font-size: .8rem; margin-top: 1rem !important; opacity: .6; }

/* ---------- Plain pages ---------- */

.vf-page { padding-block: 3rem 5rem; }

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 900px) {
	.vf-faq__grid { grid-template-columns: 1fr; max-width: 560px; }

	.vf-reviews__layout { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2rem; }
	.vf-reviews__logo { order: -1; }
	.vf-reviews__top { margin-bottom: 0 !important; }
}

@media (max-width: 760px) {
	.vf-choirs { grid-template-columns: 1fr; }
	.vf-choirs__logo { position: static; transform: none; display: flex; justify-content: center; padding: 2rem 0 1rem; background: var(--vf-black); }
	.vf-choir { padding-top: 3rem; font-size: 1.2rem; }
	.vf-button { font-size: 1.4rem; padding: .75rem 2.5rem; }

	.vf-about { padding-top: 4rem; }
	.vf-about p { font-size: 1.15rem; }

	.vf-gallery__grid { grid-template-columns: 1fr; gap: 1.25rem; }
	.vf-gallery__item--1,
	.vf-gallery__item--4,
	.vf-gallery__item--5 { aspect-ratio: 16 / 9; }

	.vf-form { grid-template-columns: 1fr; }
	.vf-contact__media { margin-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.vf-slideshow__slide { transition: none; }
}
