/*
	Home page (2026): banner and the "Home Content" dynamic sections.
	Loaded on the front page only, after style.css (see functions.php).
	Brand tokens live in style.css :root. Sizes follow the 1560px Figma frame.

	Each Home Content row is wrapped by the_dynamic_content() in
	<section class="dynamicContent homeDynamic dynamic-{content_type}">, templates in
	template-parts/dynamic-content/home/dynamic-{content_type}.php

	  image-text      Image + Text (Head's Welcome)
	  text            navy feature text (The Bute Way)
	  icon-carousel   Icon Carousel (Our Learning Powers)
	  poi             image cards (Admissions)
	  quote           quote carousel
	  map             Interactive Map (Explore our School)
	  accreditations  logo carousel
*/

/* ---------------------------------------------------------------
   Shared
--------------------------------------------------------------- */

.home-container {
	width: min(1296px, 100% - 64px);
	margin: 0 auto;
}

.homeDynamic {
	position: relative;
	margin-top: 0; /* cancel legacy .dynamicContent 30px margins */
	margin-bottom: 0;
	padding: 160px 0;
	color: var(--brand-navy);
}
/* consecutive light sections share the gap rather than doubling it */
.homeDynamic:is(.dynamic-image-text, .dynamic-icon-carousel, .dynamic-poi, .dynamic-map, .dynamic-accreditations)
+ .homeDynamic:is(.dynamic-image-text, .dynamic-icon-carousel, .dynamic-poi, .dynamic-map, .dynamic-accreditations) {
	padding-top: 0;
}

.home-title,
h1.home-title { /* beats style.css h1.entry-title */
	margin: 0 0 24px;
	color: var(--brand-navy);
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 55px;
	line-height: 65px;
}
.home-title--center {
	text-align: center;
}

.home-body {
	font-family: var(--font-sans);
	font-weight: 300;
	font-size: 16px;
	line-height: 26px;
}
.home-body p {
	margin: 0 0 26px;
}
.home-body p:last-child {
	margin-bottom: 0;
}
.home-body a {
	color: inherit;
	text-decoration: underline;
}
.home-body--large {
	font-size: 22px;
	line-height: 32px;
}
.home-body--large p {
	margin-bottom: 32px;
}

/* "Read more" style text button with a short underline */
.home-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0 40px;
}
.bh-button {
	position: relative;
	display: inline-block;
	margin-top: 40px;
	padding-bottom: 8px;
	color: var(--brand-navy);
	font-family: var(--font-sans);
	font-weight: 300;
	font-size: 14px;
	line-height: 24px;
	letter-spacing: 1.12px;
	text-transform: uppercase;
	text-decoration: none;
}
.bh-button:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 1px;
	background: currentColor;
	transition: width 200ms, left 200ms;
}
.bh-button:hover,
.bh-button:focus-visible {
	text-decoration: none;
}
.bh-button:hover:after,
.bh-button:focus-visible:after {
	width: 100%;
}
.bh-button--center {
	display: table;
	margin-left: auto;
	margin-right: auto;
}
.home-buttons:has(.bh-button--center) {
	justify-content: center;
}
.bh-button--center:after {
	left: 50%;
	margin-left: -20px;
	transition: width 200ms, margin-left 200ms;
}
.bh-button--center:hover:after,
.bh-button--center:focus-visible:after {
	margin-left: -50%;
}
.bh-button--light {
	color: var(--brand-neutral);
}

/* ---------------------------------------------------------------
   Carousels (Owl 2.2 - controls are divs)
--------------------------------------------------------------- */

/* arrows position against the carousel, not the (relative in style.css) nav */
.home-carousel .owl-nav {
	position: static;
}
.home-carousel .owl-nav .owl-prev,
.home-carousel .owl-nav .owl-next {
	position: absolute;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: url(../images/2026/arrow-prev.svg) center / 48px 48px no-repeat;
	font-size: 0;
	cursor: pointer;
	transition: opacity 200ms;
}
.home-carousel .owl-nav .owl-next {
	background-image: url(../images/2026/arrow-next.svg);
}
.home-carousel .owl-nav > div:hover,
.home-carousel .owl-nav > div:focus-visible {
	opacity: 0.8;
}
.home-carousel .owl-nav.disabled,
.home-carousel .owl-nav .disabled {
	display: none;
}

.home-carousel .owl-dots {
	display: flex;
	justify-content: center;
	gap: 16px;
	padding: 0;
}
.home-carousel .owl-dots.disabled {
	display: none;
}
.home-carousel .owl-dots .owl-dot {
	margin: 0;
	opacity: 1;
	cursor: pointer;
}
.home-carousel .owl-dots .owl-dot span {
	display: block;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--brand-navy);
	transition: background-color 200ms;
}
.home-carousel .owl-dots .owl-dot.active span {
	background: var(--brand-gold);
}

/* ---------------------------------------------------------------
   Banner
--------------------------------------------------------------- */

.home-banner {
	position: relative;
	height: min(57.7vw, 100vh);
	min-height: 560px;
	overflow: hidden;
	background: var(--brand-navy);
}
.home-banner__media,
.home-banner .videoframe {
	position: absolute;
	inset: 0;
}
.home-banner .videoframe video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	vertical-align: top;
}
/* dark gradients top (behind the header) and bottom (behind the film link) */
.home-banner:before,
.home-banner:after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 42.8%;
	z-index: 1;
	opacity: 0.65;
	pointer-events: none;
}
.home-banner:before {
	top: 0;
	background: linear-gradient(to top, rgba(0,0,0,0), #000);
}
.home-banner:after {
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0), #000);
}

.home-banner__film {
	position: absolute;
	z-index: 2;
	left: 7.9%;
	bottom: 11.5%;
	display: flex;
	align-items: center;
	gap: 30px;
	color: var(--brand-neutral);
	font-family: var(--font-serif);
	font-size: 40px;
	line-height: 50px;
	text-decoration: none;
}
.home-banner__film img {
	width: 63px;
	height: 63px;
	transition: transform 300ms;
}
.home-banner__film:hover,
.home-banner__film:focus-visible {
	color: var(--brand-neutral);
	text-decoration: none;
}
.home-banner__film:hover img,
.home-banner__film:focus-visible img {
	transform: scale(1.08);
}

/* ---------------------------------------------------------------
   Image + Text: image flush to the page edge, text alongside
--------------------------------------------------------------- */

.home-welcome {
	display: grid;
	grid-template-columns: 40.77% 1fr 40.77% 8.46%;
	align-items: start;
}
.home-welcome__image {
	grid-column: 1;
	grid-row: 1;
}
.home-welcome__image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.home-welcome__text {
	grid-column: 3;
	grid-row: 1;
}
/* "Button Link" format from the editor (span.blockButton) styled as the read more button */
.home-welcome .blockButton {
	display: block;
}
.home-welcome .blockButton > a {
	position: relative;
	display: inline-block;
	min-width: 0;
	margin: 22px 0 0;
	padding: 0 0 8px;
	border: 0;
	background: none;
	color: var(--brand-navy);
	font-family: var(--font-sans);
	font-weight: 300;
	font-size: 14px;
	line-height: 24px;
	letter-spacing: 1.12px;
	text-align: left;
	text-transform: uppercase;
	text-decoration: none;
}
.home-welcome .blockButton > a:after {
	content: '';
	display: block !important; /* legacy .blockButton a:after hides it */
	position: absolute;
	top: auto;
	right: auto;
	left: 0;
	bottom: 0;
	color: inherit;
	transform: none;
	width: 40px;
	height: 1px;
	background: var(--brand-navy); /* not currentColor: legacy :hover:after sets color #fff !important */
	transition: width 200ms;
}
.home-welcome .blockButton > a:hover,
.home-welcome .blockButton > a:focus-visible {
	background: none;
	color: var(--brand-navy);
}
.home-welcome .blockButton > a:hover:after,
.home-welcome .blockButton > a:focus-visible:after {
	width: 100%;
}
/* the intro is followed by the dynamic sections: share the gap with a light first section */
.home-intro + .homeContent > .homeDynamic:first-child:is(.dynamic-image-text, .dynamic-icon-carousel, .dynamic-poi, .dynamic-map, .dynamic-accreditations) {
	padding-top: 0;
}

/* ---------------------------------------------------------------
   Text (navy feature)
--------------------------------------------------------------- */

.homeDynamic.dynamic-text {
	overflow: hidden;
	padding-bottom: 136px;
	background: var(--brand-navy);
	color: var(--brand-neutral);
	text-align: center;
}
/* leaf pattern on the right */
.homeDynamic.dynamic-text:before {
	content: '';
	position: absolute;
	top: 16px;
	left: 61.8%;
	width: 866px;
	height: 866px;
	background: url(../images/2026/leaves-pattern.png) center / contain no-repeat;
	opacity: 0.15;
	pointer-events: none;
}
.home-feature {
	position: relative;
	max-width: 785px;
}
.home-feature .home-title {
	color: var(--brand-neutral);
	margin-bottom: 40px;
}
.home-feature .home-body a {
	color: var(--brand-neutral);
}
.home-feature .bh-button {
	margin-top: 48px;
}
.home-feature__quote blockquote {
	margin: 81px auto 0;
	max-width: 636px;
	padding: 0;
	border: 0;
	font-family: var(--font-serif);
	font-size: 40px;
	line-height: 50px;
}
.home-feature__quote blockquote p {
	margin: 0;
}

/* ---------------------------------------------------------------
   Icon Carousel (Learning Powers)
--------------------------------------------------------------- */

.homeDynamic.dynamic-icon-carousel {
	
}
/* large faint tree behind the lower half of the section */
.homeDynamic.dynamic-icon-carousel:before {
	content: '';
	position: absolute;
	right: -7.93%;
	bottom: -260px;
	width: 60.4%;
	aspect-ratio: 943 / 662;
	background: url(../images/2026/tree-bg.svg) center / contain no-repeat;
	pointer-events: none;
}
.homeDynamic.dynamic-icon-carousel .home-container {
	position: relative;
}
.home-powers__header {
	max-width: 746px;
	margin: 0 auto 64px;
	text-align: center;
}
/* the design shows just the tree, cropping the wording off the bottom of the logo */
.home-powers__logo {
	width: 210px;
	height: 147px;
	margin: 0 auto 8px;
	overflow: hidden;
}
.home-powers__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.home-powers__carousel {
	padding: 0 128px;
}
.home-powers__carousel .owl-nav .owl-prev,
.home-powers__carousel .owl-nav .owl-next {
	top: 74px;
}
.home-powers__carousel .owl-nav .owl-prev {
	left: 0;
}
.home-powers__carousel .owl-nav .owl-next {
	right: 0;
}
.home-powers__carousel .owl-dots {
	margin-top: 80px;
}

.home-power {
	display: block;
	color: var(--brand-navy);
	text-align: center;
	text-decoration: none;
}
a.home-power:hover,
a.home-power:focus-visible {
	color: var(--brand-navy);
	text-decoration: none;
}
.home-power__image {
	display: block;
	width: 196px;
	max-width: 100%;
	margin: 0 auto 16px;
	border-radius: 50%;
	overflow: hidden;
	transition: transform 300ms;
}
.home-power__image img {
	display: block;
	width: 100%;
	height: auto;
}
/* Hover: whole icon grows slightly */
a.home-power:hover .home-power__image,
a.home-power:focus-visible .home-power__image {
	transform: scale(1.08);
}
/* Room around the carousel so the enlarged icon isn't clipped */
.home-powers__carousel .owl-stage-outer {
	padding: 10px 10px 0;
	margin: -10px -10px 0;
}
.home-power__title {
	display: block;
	margin-bottom: 16px;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 18px;
	line-height: 18px;
}
.home-power__keywords {
	display: block;
	font-family: var(--font-sans);
	font-weight: 300;
	font-size: 14px;
	line-height: 26px;
	letter-spacing: 1.12px;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Points of Interest (Admissions image cards)
--------------------------------------------------------------- */

.home-cards .home-title {
	margin-bottom: 48px;
}
.home-cards__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.home-card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	color: #fff;
	text-decoration: none;
}
.home-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms;
}
.home-card:after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.5));
}
.home-card__title {
	position: absolute;
	z-index: 1;
	left: 24px;
	right: 24px;
	bottom: 24px;
	font-family: var(--font-serif);
	font-size: 40px;
	line-height: 50px;
}
a.home-card:hover,
a.home-card:focus-visible {
	color: #fff;
	text-decoration: none;
}
a.home-card:hover img,
a.home-card:focus-visible img {
	transform: scale(1.04);
}
.home-cards .bh-button {
	margin-top: 48px;
}

/* ---------------------------------------------------------------
   Quote carousel
--------------------------------------------------------------- */

.homeDynamic.dynamic-quote {
	padding: 0;
	background: var(--brand-blue);
	color: var(--brand-neutral);
}
.home-quotes {
	position: relative;
	min-height: 534px;
	display: flex;
	align-items: center;
	padding: 100px 0;
}
.home-quotes__carousel {
	width: 100%;
	padding: 0 17.95%;
}
.home-quote {
	margin: 0;
	text-align: center;
}
.home-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: 'Caveat', cursive;
	font-size: 40px;
	line-height: 50px;
}
.home-quote figcaption {
	margin-top: 16px;
	font-family: var(--font-sans);
	font-weight: 300;
	font-size: 14px;
	line-height: 24px;
	letter-spacing: 1.12px;
	text-transform: uppercase;
}
.home-quotes__carousel .owl-stage {
	display: flex;
	align-items: center;
}
.home-quotes__carousel .owl-nav .owl-prev,
.home-quotes__carousel .owl-nav .owl-next {
	top: 50%;
	margin-top: -24px;
}
.home-quotes__carousel .owl-nav .owl-prev {
	left: 7.31%;
}
.home-quotes__carousel .owl-nav .owl-next {
	right: 7.31%;
}
.home-quotes__carousel .owl-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -75px;
}
.home-quotes__carousel .owl-dots .owl-dot span {
	background: var(--brand-neutral);
}
.home-quotes__carousel .owl-dots .owl-dot.active span {
	background: var(--brand-gold);
}

/* ---------------------------------------------------------------
   Interactive Map (Explore our School): text over the map
--------------------------------------------------------------- */

.home-explore {
	position: relative;
}
.home-explore__text {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 412px;
}
.home-explore__text .home-title {
	width: max-content;
	max-width: 1296px;
}
.home-explore__map {
	position: relative;
}
.home-explore__map img {
	max-width: 100%;
	height: auto;
}
.home-explore__map .mapIcon .iconButton {
	font-size:16px;
}
/* ---------------------------------------------------------------
   Accreditations (logo carousel)
--------------------------------------------------------------- */

.homeDynamic.dynamic-accreditations {
	padding-bottom: 115px;
}
.home-logos .home-title {
	margin-bottom: 48px;
}
.home-logos__carousel .owl-stage {
	display: flex;
	align-items: center;
}
.home-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 124px;
}
.home-logo img {
	width: auto !important;
	max-width: 100%;
	max-height: 124px;
	object-fit: contain;
}
.home-logos__carousel .owl-dots {
	margin-top: 87px;
}

/* ---------------------------------------------------------------
   Tablet
--------------------------------------------------------------- */

@media (max-width:1199.98px){
	.homeDynamic {
		padding: 110px 0;
	}
	.home-title,
	h1.home-title { /* beats style.css h1.entry-title */
		font-size: 44px;
		line-height: 54px;
	}
	.home-powers__carousel {
		padding: 0 64px;
	}
	.homeDynamic.dynamic-text:before {
		width: 600px;
		height: 600px;
	}
	.home-quote blockquote {
		font-size: 34px;
		line-height: 44px;
	}
	.homeDynamic.dynamic-accreditations {
		padding-bottom: 90px;
	}
	.homeDynamic.dynamic-map + .homeDynamic.dynamic-accreditations {
		padding-top: 140px;
	}
	.home-explore__text {
		position: static;
		width: auto;
		max-width: 600px;
		margin-bottom: 40px;
	}
	.home-explore__text .home-title {
		width: auto;
	}
}

/* ---------------------------------------------------------------
   Mobile
--------------------------------------------------------------- */

@media (max-width:767.98px){
	.homeDynamic {
		padding: 64px 0;
	}
	.home-title,
	h1.home-title { /* beats style.css h1.entry-title */
		font-size: 34px;
		line-height: 42px;
	}
	.home-body--large {
		font-size: 18px;
		line-height: 28px;
	}

	.home-banner {
		height: 85vh;
		min-height: 480px;
	}
	.home-banner__film {
		left: 32px;
		right: 32px;
		bottom: 40px;
		gap: 18px;
		font-size: 28px;
		line-height: 34px;
	}
	.home-banner__film img {
		width: 48px;
		height: 48px;
	}

	.home-welcome {
		grid-template-columns: 32px 1fr 32px;
		row-gap: 40px;
	}
	.home-welcome__image {
		grid-column: 1 / -1;
		grid-row: 1;
	}
	.home-welcome__text {
		grid-column: 2;
		grid-row: 2;
	}

	.homeDynamic.dynamic-text {
		padding-bottom: 64px;
	}
	.homeDynamic.dynamic-text:before {
		left: 30%;
		width: 420px;
		height: 420px;
	}
	.home-feature__quote blockquote {
		margin-top: 48px;
		font-size: 28px;
		line-height: 36px;
	}

	.home-powers__header {
		margin-bottom: 40px;
	}
	.home-powers__carousel {
		padding: 0 56px;
	}
	.home-powers__carousel .owl-dots {
		margin-top: 40px;
	}
	.homeDynamic.dynamic-icon-carousel:before {
		width: 120%;
		bottom: -120px;
	}

	.home-cards__grid {
		grid-template-columns: 1fr;
	}
	.home-card__title {
		font-size: 30px;
		line-height: 38px;
	}

	.home-quotes {
		min-height: 0;
		padding: 80px 0 110px;
	}
	.home-quotes__carousel {
		padding: 0 56px;
	}
	.home-quote blockquote {
		font-size: 28px;
		line-height: 36px;
	}
	.home-quotes__carousel .owl-nav .owl-prev {
		left: 0;
	}
	.home-quotes__carousel .owl-nav .owl-next {
		right: 0;
	}
	.home-quotes__carousel .owl-dots {
		bottom: -55px;
	}

	.homeDynamic.dynamic-accreditations,
	.homeDynamic.dynamic-map + .homeDynamic.dynamic-accreditations {
		padding-top: 80px;
		padding-bottom: 64px;
	}
	.home-logo {
		height: 100px;
	}
	.home-logo img {
		max-height: 100px;
	}
	.home-logos__carousel .owl-dots {
		margin-top: 40px;
	}
}

/* map: white JPG background blends into the page background (#f6f6f6) */
.home-explore__map .mapWrap img {
	mix-blend-mode: multiply;
}
