/**
 * Home page — all styles for this page, complete in this one file.
 * Loaded only on /. The site frame (base, header, menu, footer) is in assets/css/core/.
 *
 * Contents:
 *   1. Building blocks (buttons, cards, page hero, CTA …)
 *   2. Testimonials slider
 *   3. Photo gallery & lightbox
 *   4. Home page layout
 */

/* ========================================================================
   1. Building blocks (buttons, cards, page hero, CTA …)
   ======================================================================== */

/* ==========================================================================
   Shared UI components
   Grids, breadcrumbs, page hero, program & post cards, filter tabs, team, CTA, cards, chips, pagination, WhatsApp button.
   ========================================================================== */

/* ---------- Grids ---------- */

.card-grid {
	display: grid;
	gap: clamp(18px, 2.4vw, 28px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}

@media (min-width: 700px) {
	.card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
	.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	font-weight: 600;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs li + li::before {
	content: "/";
	opacity: 0.5;
}

.breadcrumbs a {
	color: #fff;
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs [aria-current] {
	color: var(--lime);
}

/* ---------- Page hero ---------- */

.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(380px, 52vh, 560px);
	padding-block: clamp(110px, 12vw, 150px) clamp(48px, 6vw, 80px);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.page-hero--sm {
	min-height: clamp(320px, 42vh, 440px);
}

.page-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: heroZoom 18s var(--ease) both;
}

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(15, 36, 29, 0.35) 0%, rgba(15, 36, 29, 0.25) 40%, rgba(15, 36, 29, 0.88) 100%),
		linear-gradient(90deg, rgba(15, 36, 29, 0.6) 0%, rgba(15, 36, 29, 0) 70%);
}

.page-hero__inner {
	max-width: 1320px;
}

.page-hero__title {
	max-width: 17ch;
	margin-bottom: 0.3em;
	color: #fff;
	animation: fadeUp 1s var(--ease) 0.1s both;
}

.page-hero__text {
	max-width: 60ch;
	margin-bottom: 26px;
	font-size: var(--fs-lg);
	color: rgba(255, 255, 255, 0.85);
	animation: fadeUp 1s var(--ease) 0.2s both;
}

.page-hero .btn-row {
	animation: fadeUp 1s var(--ease) 0.3s both;
}

@keyframes heroZoom {
	from { transform: scale(1.12); }
	to { transform: scale(1); }
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Program card ---------- */

.program-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.program-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.program-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.program-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.program-card:hover .program-card__media img {
	transform: scale(1.07);
}

.program-card__media::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: linear-gradient(transparent, rgba(15, 36, 29, 0.55));
}

.program-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: var(--saffron);
	color: var(--ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.program-card__duration {
	position: absolute;
	left: 16px;
	bottom: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.program-card__duration .icon {
	width: 15px;
	height: 15px;
}

.program-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 22px;
}

.program-card__cat {
	margin: 0 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--moss);
}

.program-card__title {
	margin: 0 0 10px;
	font-size: 1.32rem;
	line-height: 1.2;
}

.program-card__title a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.5s var(--ease);
}

.program-card:hover .program-card__title a {
	background-size: 100% 1px;
}

.program-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.program-card {
	position: relative;
}

.program-card__excerpt {
	flex: 1;
	margin-bottom: 18px;
	font-size: 0.93rem;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.program-card__foot {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.program-card__foot small {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.program-card__foot strong {
	font-size: 1.02rem;
	color: var(--ink);
}

.program-card__arrow {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--sand);
	color: var(--ink);
	transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}

.program-card:hover .program-card__arrow {
	background: var(--coral-deep);
	color: #fff;
	transform: rotate(-45deg);
}

.program-card mark.tbc {
	position: relative;
	z-index: 1;
}

.program-card.is-hidden {
	display: none;
}

/* ---------- Post card ---------- */

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.post-card:hover .post-card__media img {
	transform: scale(1.06);
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 26px;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
}

.post-card__title {
	font-size: 1.3rem;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card__excerpt {
	flex: 1;
	font-size: 0.93rem;
	color: var(--muted);
}

.post-card .link-arrow {
	position: relative;
	z-index: 1;
	align-self: flex-start;
}

.tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--pill);
	background: var(--sand);
	color: var(--moss);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

/* ---------- Filter tabs ---------- */

.filter-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 32px;
	padding-bottom: 6px;
	overflow-x: auto;
	scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
	display: none;
}

.filter-tabs--center {
	justify-content: flex-start;
}

@media (min-width: 1100px) {
	.filter-tabs--center {
		justify-content: center;
		flex-wrap: wrap;
	}
}

.filter-tab {
	flex: none;
	padding: 10px 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ink);
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.filter-tab:hover {
	border-color: var(--ink);
}

.filter-tab.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ---------- Team ---------- */

.team-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

@media (min-width: 1100px) {
	.team-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.team-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.team-grid--2 {
	max-width: 1000px;
	margin-inline: auto;
}

@media (min-width: 760px) {
	.team-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.team-card {
	position: relative;
	border-radius: var(--radius-lg);
	background: var(--paper);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.team-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.team-card__photo {
	aspect-ratio: 1 / 1.05;
	overflow: hidden;
	background: var(--sand);
}

.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 1.2s var(--ease);
}

.team-card:hover .team-card__photo img {
	transform: scale(1.06);
}

.team-card__body {
	padding: 18px 20px 22px;
}

.team-card__role {
	margin: 0 0 4px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--coral-deep);
}

.team-card__name {
	margin-bottom: 6px;
	font-size: 1.28rem;
}

.team-card__title {
	margin: 0;
	font-size: 0.86rem;
	color: var(--muted);
	line-height: 1.5;
}

.team-card__bio {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 0.95rem;
}

.team-card--bio {
	display: grid;
}

@media (min-width: 620px) {
	.team-card--bio {
		grid-template-columns: 0.8fr 1.2fr;
	}
	.team-card--bio .team-card__photo {
		aspect-ratio: auto;
		height: 100%;
		min-height: 320px;
	}
	.team-card--bio .team-card__body {
		padding: 28px;
		align-self: center;
	}
}

/* ---------- CTA banner ---------- */

.cta-banner {
	padding-block: 0 var(--section);
}

.section--sand + .cta-banner,
.related + .cta-banner {
	padding-top: 0;
	background: linear-gradient(var(--sand) 50%, var(--cream) 50%);
}

.cta-banner__card {
	position: relative;
	display: grid;
	min-height: 380px;
	padding: clamp(36px, 6vw, 80px);
	border-radius: var(--radius-lg);
	background: var(--ink);
	color: rgba(255, 255, 255, 0.85);
	overflow: hidden;
	isolation: isolate;
	align-items: center;
}

.cta-banner__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.cta-banner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 6s var(--ease);
}

.cta-banner__card:hover .cta-banner__media img {
	transform: scale(1.05);
}

.cta-banner__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(15, 36, 29, 0.95) 0%, rgba(15, 36, 29, 0.75) 50%, rgba(15, 36, 29, 0.25) 100%);
}

.cta-banner__content {
	max-width: 620px;
}

.cta-banner__title {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem);
	color: #fff;
}

.cta-banner__content > p:not(.eyebrow) {
	font-size: var(--fs-lg);
	margin-bottom: 28px;
}

/* ---------- Cards ---------- */

.icon-card,
.glass-card {
	padding: 30px 28px;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.icon-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.icon-card h3,
.glass-card h3 {
	font-size: 1.3rem;
}

.icon-card p,
.glass-card p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--muted);
}

.icon-card__icon,
.glass-card__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 22px;
	border-radius: 18px;
	background: var(--sand);
	color: var(--moss);
}

.icon-card__icon .icon,
.glass-card__icon .icon {
	width: 28px;
	height: 28px;
}

.glass-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--line-light);
	box-shadow: none;
}

.glass-card p {
	color: rgba(255, 255, 255, 0.7);
}

.glass-card__icon {
	background: rgba(159, 217, 79, 0.12);
	color: var(--lime);
}

.info-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	border-radius: var(--radius);
	background: var(--sand);
}

.info-card > .icon {
	width: 28px;
	height: 28px;
	color: var(--moss);
}

.info-card p {
	flex: 1;
	min-width: 220px;
	margin: 0;
}

.policy-strip {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 32px;
	padding: 16px 20px;
	border: 1px dashed var(--line);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	color: var(--muted);
}

.policy-strip .icon {
	margin-top: 3px;
	color: var(--moss);
}

.policy-strip p {
	margin: 0;
}

.policy-strip a {
	color: var(--coral-deep);
	font-weight: 700;
}

.check-list {
	display: grid;
	gap: 12px;
}

.check-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.check-list .icon {
	width: 22px;
	height: 22px;
	padding: 3px;
	margin-top: 2px;
	border-radius: 50%;
	background: rgba(95, 143, 47, 0.14);
	color: var(--moss);
	stroke-width: 2.4;
}

.check-list--x .icon {
	background: rgba(196, 59, 51, 0.1);
	color: var(--coral-deep);
}

.check-list--lg li {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ink);
}

.help-card {
	padding: 26px;
	border-radius: var(--radius);
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
}

.help-card h2 {
	font-size: 1.45rem;
	color: #fff;
}

.help-card .btn {
	margin-top: 6px;
}

.help-card .btn--outline {
	--btn-fg: #fff;
}

.help-card__phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

/* Booking card (program sidebar + blog aside) */
.book-card {
	padding: 26px;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.book-card__img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius-sm);
	margin-bottom: 16px;
}

.book-card__title {
	font-size: 1.35rem;
}

/* ---------- Chips ---------- */

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.chip:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	transform: translateY(-2px);
}

/* ---------- Empty state / search ---------- */

.empty-state {
	max-width: 560px;
	margin: 0 auto;
	padding: 56px 24px;
	text-align: center;
}

.empty-state > .icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	color: var(--moss);
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 560px;
}

.search-bar {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}

.search-form .field {
	flex: 1;
	min-height: 52px;
	padding: 12px 22px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
}

.search-form .btn {
	width: 52px;
	padding: 0;
}

/* ---------- Pagination ---------- */

.pagination {
	margin-top: 56px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ---------- Floating WhatsApp ---------- */

.whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	padding: 0 16px;
	border-radius: var(--pill);
	background: #1f8f4e;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 16px 40px -12px rgba(31, 143, 78, 0.7);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
	animation: floatIn 0.8s var(--ease) 1.2s both;
}

.whatsapp-float .icon {
	width: 28px;
	height: 28px;
}

.whatsapp-float:hover {
	transform: translateY(-4px);
}

.whatsapp-float::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: #1f8f4e;
	animation: pulse 2.8s var(--ease) infinite;
}

.whatsapp-float__label {
	display: none;
}

@media (min-width: 900px) {
	.whatsapp-float__label {
		display: inline;
	}
}

@keyframes pulse {
	0% { transform: scale(1); opacity: 0.6; }
	80%, 100% { transform: scale(1.35); opacity: 0; }
}

@keyframes floatIn {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */

.center-link {
	margin-top: 40px;
	text-align: center;
}

.hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Room prices (template-parts/components/room-prices.php, booking form) ---------- */

.room-prices,
.room-choice {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.room-tile {
	position: relative;
	display: grid;
	gap: 2px;
	padding: 14px 14px 12px;
	border: 1.5px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
	transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}

label.room-tile {
	cursor: pointer;
}

label.room-tile:hover {
	border-color: rgba(15, 36, 29, 0.3);
	transform: translateY(-2px);
}

.room-tile input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Selected tile: dark with a tick. */
.room-tile:has(input:checked) {
	border-color: var(--ink);
	background: var(--ink);
	box-shadow: 0 14px 28px -16px rgba(15, 36, 29, 0.6);
}

.room-tile:has(input:checked) .room-tile__name,
.room-tile:has(input:checked) .room-tile__price {
	color: #fff;
}

.room-tile:has(input:checked) .room-tile__note {
	color: rgba(255, 255, 255, 0.65);
}

.room-tile:has(input:checked)::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 14px;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--lime);
	border-bottom: 2px solid var(--lime);
	transform: rotate(-45deg);
}

.room-tile:has(input:focus-visible) {
	outline: 3px solid var(--saffron);
	outline-offset: 2px;
}

.room-tile__badge {
	position: absolute;
	top: -9px;
	right: 10px;
	padding: 2px 9px;
	border-radius: var(--pill);
	background: var(--lime);
	color: var(--ink);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.room-tile__name {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--muted);
}

.room-tile__name .icon {
	width: 16px;
	height: 16px;
}

.room-tile__price {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
}

.room-tile__note {
	font-size: 0.72rem;
	color: var(--muted);
}

/* ---------- Teacher cards (v2): colour per card, quote on hover, full profile ---------- */

.team-card:nth-child(6n + 1) { --tc: #5f8f2f; --tc2: #9fd94f; }
.team-card:nth-child(6n + 2) { --tc: #c43b33; --tc2: #f0766d; }
.team-card:nth-child(6n + 3) { --tc: #2f7fc8; --tc2: #5aaef0; }
.team-card:nth-child(6n + 4) { --tc: #c98420; --tc2: #f0c060; }
.team-card:nth-child(6n + 5) { --tc: #7357c4; --tc2: #a48ce6; }
.team-card:nth-child(6n + 6) { --tc: #23897d; --tc2: #4fc3b5; }

.team-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s ease;
}

.team-card:hover {
	border-color: color-mix(in srgb, var(--tc) 45%, transparent);
	box-shadow: 0 30px 56px -32px var(--tc);
}

/* Colour bar that draws across the top of the text on hover. */
.team-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.team-card__body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--tc2), var(--tc));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}

.team-card:hover .team-card__body::before {
	transform: scaleX(1);
}

.team-card__photo {
	position: relative;
}

/* Monogram when there is no photo yet. */
.team-card__monogram {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 240px;
	background:
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%),
		linear-gradient(150deg, var(--tc2), var(--tc));
	font-family: var(--serif);
	font-size: clamp(3.5rem, 6vw, 5rem);
	color: #fff;
	letter-spacing: 0.04em;
}

/* Quote slides up over the photo on hover. */
.team-card__quote {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	margin: 0;
	padding: 14px 16px 14px 40px;
	border-radius: 16px;
	background: rgba(15, 36, 29, 0.82);
	backdrop-filter: blur(6px);
	color: #fff;
	font-family: var(--serif);
	font-size: 0.98rem;
	font-style: italic;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.45s ease, transform 0.5s var(--ease);
}

.team-card__quote::before {
	content: "\201C";
	position: absolute;
	left: 12px;
	top: 2px;
	font-size: 2.4rem;
	color: var(--tc2);
}

.team-card:hover .team-card__quote,
.team-card:focus-within .team-card__quote {
	opacity: 1;
	transform: none;
}

.team-card__role {
	color: var(--tc);
}

.team-card__name {
	margin: 0;
	transition: color 0.3s ease;
}

.team-card:hover .team-card__name {
	color: var(--tc);
}

.team-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.team-card__tags li {
	padding: 4px 11px;
	border-radius: var(--pill);
	background: color-mix(in srgb, var(--tc2) 18%, var(--paper));
	font-size: 0.76rem;
	font-weight: 700;
	color: color-mix(in srgb, var(--tc) 80%, #000);
}

.team-card__bio {
	margin: 4px 0 0;
}

.team-card__creds {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 6px 12px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

.team-card__creds li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--ink);
}

.team-card__creds .icon {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--tc);
}

/* Read full profile */
.team-card__more {
	margin-top: auto;
	padding-top: 6px;
}

.team-card__more summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: var(--pill);
	border: 1.5px solid color-mix(in srgb, var(--tc) 40%, transparent);
	font-size: 0.84rem;
	font-weight: 800;
	color: var(--tc);
	cursor: pointer;
	list-style: none;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.team-card__more summary::-webkit-details-marker {
	display: none;
}

.team-card__more summary:hover {
	background: var(--tc);
	border-color: var(--tc);
	color: #fff;
}

.team-card__more summary .icon {
	width: 15px;
	height: 15px;
	transform: rotate(90deg);
	transition: transform 0.35s var(--ease);
}

.team-card__more[open] summary .icon {
	transform: rotate(-90deg);
}

.team-card__more [data-close],
.team-card__more[open] [data-open] {
	display: none;
}

.team-card__more[open] [data-close] {
	display: inline;
}

.team-card__profile {
	display: grid;
	gap: 12px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
	animation: profile-in 0.45s var(--ease);
}

@keyframes profile-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.team-card__profile p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--muted);
}

.team-card__profile .team-card__label {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tc);
}

.team-card__skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -4px 0 0;
	padding: 0;
	list-style: none;
}

.team-card__skills li {
	padding: 4px 10px;
	border-radius: 8px;
	border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ink);
}

.team-card__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

.team-card__stats > div {
	padding: 10px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--tc2) 14%, var(--paper));
	text-align: center;
}

.team-card__stats dt {
	font-family: var(--serif);
	font-size: 1.35rem;
	color: var(--tc);
}

.team-card__stats dd {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--muted);
}

.team-card__fb {
	align-self: flex-start;
}

@media (hover: none) {
	.team-card__quote {
		display: none;
	}
}

/* Founder / management cards keep the photo beside the text. */
.team-card.team-card--bio {
	display: grid;
}

.team-card--bio .team-card__body {
	justify-content: center;
}

/* Social buttons on teacher cards (official brand colours on hover). */
.team-card__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.team-card__social .team-card__fb {
	margin-top: 0;
}

.team-card__ig {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px 5px 8px;
	border-radius: var(--pill);
	background: rgba(214, 36, 159, 0.1);
	font-size: 0.8rem;
	font-weight: 800;
	color: #c13584;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}

.team-card__ig .icon {
	width: 16px;
	height: 16px;
}

.team-card__ig:hover,
.team-card__ig:focus-visible {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
	color: #fff;
	transform: translateY(-2px);
}

/* ---------- Choose your room ---------- */

.home-rooms {
	background:
		radial-gradient(45% 50% at 0% 0%, rgba(159, 217, 79, 0.14), transparent 70%),
		radial-gradient(45% 50% at 100% 100%, rgba(227, 161, 63, 0.14), transparent 70%),
		var(--cream);
}

.room-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 30px);
}

.room-card--lime    { --rc: #5f8f2f; --rc2: #9fd94f; }
.room-card--saffron { --rc: #b8741a; --rc2: #f0c060; }

.room-cards .room-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s ease, border-color 0.4s ease;
}

.room-cards .room-card:hover {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--rc) 40%, transparent);
	box-shadow: 0 34px 60px -34px var(--rc);
}

/* Photos */
.room-card__media {
	position: relative;
	padding: 12px 12px 0;
}

.room-card__main {
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	background: var(--sand);
}

.room-card__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease), opacity 0.18s ease;
}

.room-card__main img.is-swapping {
	opacity: 0;
}

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

.room-card__badge {
	position: absolute;
	top: 26px;
	left: 26px;
	padding: 6px 14px;
	border-radius: var(--pill);
	background: var(--rc);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	box-shadow: 0 10px 20px -10px var(--rc);
}

.room-card__badge--alt {
	background: var(--ink);
	color: var(--rc2);
}

.room-card__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.room-card__thumb {
	padding: 0;
	aspect-ratio: 4 / 3;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: var(--sand);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.room-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.room-card__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.room-card__thumb.is-active {
	opacity: 1;
	border-color: var(--rc);
}

/* Text */
.room-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
	padding: 20px clamp(18px, 2.4vw, 28px) 26px;
}

.room-card__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.room-card__name {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem);
}

.room-card__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--rc2) 22%, var(--paper));
	color: var(--rc);
	transition: background 0.35s ease, color 0.35s ease, transform 0.45s var(--ease);
}

.room-card__icon .icon {
	width: 22px;
	height: 22px;
}

.room-card:hover .room-card__icon {
	background: var(--rc);
	color: #fff;
	transform: rotate(-8deg);
}

.room-card__price {
	text-align: right;
}

.room-card__price small {
	display: block;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.room-card__price strong {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
	font-weight: 500;
	line-height: 1.1;
	color: var(--rc);
	white-space: nowrap;
}

.room-card__lead {
	margin: 0;
	color: var(--muted);
}

.room-card__feats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-card__feats li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink);
}

.room-card__feats .icon {
	flex: none;
	width: 20px;
	height: 20px;
	padding: 3px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--rc2) 35%, var(--paper));
	color: var(--rc);
	stroke-width: 3;
}

.room-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding: 14px 22px;
	border-radius: var(--pill);
	background: var(--ink);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.room-card__btn .icon {
	width: 17px;
	height: 17px;
	transition: transform 0.35s var(--ease);
}

.room-card:hover .room-card__btn {
	background: linear-gradient(120deg, var(--rc2), var(--rc));
	box-shadow: 0 14px 28px -14px var(--rc);
}

.room-card__btn:hover .icon {
	transform: translateX(4px);
}

/* Included with every room */
.room-included {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	margin-top: 26px;
	padding: 16px 22px;
	border-radius: var(--pill);
	background: var(--paper);
	border: 1px dashed rgba(95, 143, 47, 0.45);
}

.room-included__title {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--moss);
}

.room-included ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-included li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ink);
}

.room-included li span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(159, 217, 79, 0.2);
	color: var(--moss);
}

.room-included li .icon {
	width: 16px;
	height: 16px;
}

/* Facilities strip */
.room-facilities {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.room-facility {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	overflow: hidden;
}

.room-facility img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}

.room-facility::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(transparent, rgba(15, 36, 29, 0.8));
}

.room-facility figcaption {
	position: absolute;
	left: 14px;
	bottom: 12px;
	z-index: 1;
	font-weight: 800;
	font-size: 0.9rem;
	color: #fff;
	transition: transform 0.4s var(--ease);
}

.room-facility:hover img {
	transform: scale(1.08);
}

.room-facility:hover figcaption {
	transform: translateY(-4px);
}

/* Program pages: section spacing */
.program-rooms .section-head {
	margin-bottom: 26px;
}

@media (max-width: 899px) {
	.room-cards {
		grid-template-columns: 1fr;
	}

	.room-facilities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.room-included {
		border-radius: var(--radius-lg);
	}
}

@media (max-width: 479px) {
	.room-card__feats {
		grid-template-columns: 1fr;
	}

	.room-card__top {
		flex-direction: column;
		align-items: flex-start;
	}

	.room-card__price {
		text-align: left;
	}
}

/* Price per course inside each room card (main menu pages). */
.room-card__list {
	padding: 14px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--rc2) 12%, var(--cream));
	border: 1px solid color-mix(in srgb, var(--rc) 20%, transparent);
}

.room-card__list-head {
	margin: 0 0 8px;
	padding: 0 4px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rc);
}

.room-card__list ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-card__list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--paper);
	border: 1px solid transparent;
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.room-card__list a:hover {
	transform: translateX(4px);
	border-color: color-mix(in srgb, var(--rc) 45%, transparent);
	box-shadow: 0 12px 24px -18px var(--rc);
}

.room-card__list-name {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.3;
}

.room-card__list-name small {
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--muted);
}

.room-card__list strong {
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 500;
	white-space: nowrap;
	color: var(--rc);
}

.room-card__list-go {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--rc2) 25%, var(--paper));
	color: var(--rc);
	transition: background 0.3s ease, color 0.3s ease;
}

.room-card__list-go .icon {
	width: 14px;
	height: 14px;
}

.room-card__list a:hover .room-card__list-go {
	background: var(--rc);
	color: #fff;
}

/* ========================================================================
   2. Testimonials slider
   ======================================================================== */

/* ==========================================================================
   Testimonial slider
   Used on: Home, About.
   ========================================================================== */

/* ---------- Testimonials ---------- */

.testimonials__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

@media (min-width: 960px) {
	.testimonials__grid {
		grid-template-columns: 0.8fr 1.2fr;
		gap: 80px;
	}
}

.slider-controls {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

.slider-btn {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.slider-btn:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.slider-btn--light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.slider-btn--light:hover {
	background: #fff;
	color: var(--ink);
}

.testimonial-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.testimonial-slider__track {
	display: flex;
	transition: transform 0.8s var(--ease);
}

.testimonial {
	flex: 0 0 100%;
	margin: 0;
	padding: clamp(32px, 5vw, 56px);
}

.testimonial__quote-icon {
	display: block;
	height: 60px;
	font-family: var(--serif);
	font-size: 7rem;
	line-height: 1;
	color: var(--lime);
}

.testimonial__text {
	margin: 0 0 28px;
}

.testimonial__text p {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
	font-weight: 300;
	line-height: 1.45;
	color: var(--ink);
}

.testimonial__author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.testimonial__photo {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--sand);
}

.testimonial__author strong {
	display: block;
	color: var(--ink);
}

.testimonial__author small {
	color: var(--muted);
}

.testimonial__stars {
	display: flex;
	gap: 2px;
	margin-left: auto;
	color: var(--saffron);
}

.testimonial__stars .icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.slider-dots {
	display: flex;
	gap: 8px;
	padding: 0 clamp(32px, 5vw, 56px) 32px;
}

.slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: var(--pill);
	background: var(--sand-2);
	transition: width 0.4s var(--ease), background-color 0.3s;
}

.slider-dot[aria-current="true"] {
	width: 30px;
	background: var(--coral);
}

/* ========================================================================
   3. Photo gallery & lightbox
   ======================================================================== */

/* ==========================================================================
   Photo gallery + lightbox
   Used on: Home, Photos & Videos.
   ========================================================================== */

/* ---------- Gallery + lightbox ---------- */

/* Mosaic grid: every 5th photo is large, every 3rd is tall — dense packing fills the gaps. */
.gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 150px;
	grid-auto-flow: dense;
	gap: 12px;
}

@media (min-width: 700px) {
	.gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-rows: 190px;
	}
}

@media (min-width: 1040px) {
	.gallery__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-rows: 210px;
		gap: 16px;
	}
}

.gallery__item {
	position: relative;
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
}

.gallery__item:nth-child(5n + 1) {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery__item:nth-child(5n + 3),
.gallery__item:nth-child(5n + 4) {
	grid-row: span 2;
}

.gallery__item.is-hidden {
	display: none;
}

.gallery__item a {
	display: block;
	position: relative;
	height: 100%;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease), filter 0.6s;
}

.gallery__item a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(15, 36, 29, 0.6));
	opacity: 0;
	transition: opacity 0.5s var(--ease);
}

.gallery__item:hover img {
	transform: scale(1.06);
}

.gallery__item:hover a::after {
	opacity: 1;
}

.gallery__zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	opacity: 0;
	transform: translateY(10px) scale(0.8);
	transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery__item:hover .gallery__zoom,
.gallery__item a:focus-visible .gallery__zoom {
	opacity: 1;
	transform: none;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: grid;
	place-items: center;
	padding: 60px 16px;
	background: rgba(10, 24, 19, 0.94);
	opacity: 0;
	transition: opacity 0.35s var(--ease);
}

.lightbox.is-open {
	opacity: 1;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__figure {
	margin: 0;
	text-align: center;
}

.lightbox__figure img {
	max-width: min(1200px, 100%);
	max-height: 78vh;
	margin: 0 auto;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
	animation: zoomIn 0.45s var(--ease);
}

.lightbox__figure figcaption {
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--fs-sm);
}

@keyframes zoomIn {
	from { opacity: 0; transform: scale(0.94); }
	to { opacity: 1; transform: none; }
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background-color 0.3s;
}

.lightbox__close:hover,
.lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
	top: 16px;
	right: 16px;
}

.lightbox__nav--prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__nav--next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 640px) {
	.lightbox__nav {
		top: auto;
		bottom: 16px;
		transform: none;
	}
}

/* ========================================================================
   4. Home page layout
   ======================================================================== */

/* ==========================================================================
   Home page
   
   ========================================================================== */

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

.hero {
	/* Fill the screen below the header (and the WordPress admin bar when logged in),
	   so the stats bar sits exactly at the bottom of the first screen. */
	--hero-offset: var(--header-h);
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: min(920px, calc(100vh - var(--hero-offset)));
	min-height: min(920px, calc(100svh - var(--hero-offset)));
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	background: var(--ink);
}

.hero__slides,
.hero__slide {
	position: absolute;
	inset: 0;
}

.hero__slides {
	z-index: -2;
}

.hero__slide {
	opacity: 0;
	transition: opacity 1.6s var(--ease-in-out);
}

.hero__slide.is-active {
	opacity: 1;
}

.hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.12);
}

.hero__slide.is-active img {
	animation: kenBurns 9s linear both;
}

@keyframes kenBurns {
	from { transform: scale(1.12) translate3d(0, 0, 0); }
	to { transform: scale(1) translate3d(-1%, -1%, 0); }
}

.hero__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(15, 36, 29, 0.88) 0%, rgba(15, 36, 29, 0.55) 45%, rgba(15, 36, 29, 0.1) 100%),
		linear-gradient(0deg, rgba(15, 36, 29, 0.85) 0%, transparent 40%);
}

.hero__inner {
	position: relative;
	display: grid;
	flex: 1;
	align-items: center;
	gap: 40px;
	padding-block: clamp(56px, 8vw, 110px) 40px;
}

@media (min-width: 1100px) {
	.hero__inner {
		grid-template-columns: 1fr 340px;
		align-items: end;
	}
}

.hero__content {
	max-width: 760px;
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	animation: fadeUp 1s var(--ease) 0.1s both;
}

.hero__eyebrow .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 0 4px rgba(159, 217, 79, 0.25);
	animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
	50% { box-shadow: 0 0 0 9px rgba(159, 217, 79, 0); }
}

.hero__title {
	margin-bottom: 22px;
	font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.6rem);
	font-weight: 300;
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: #fff;
	animation: fadeUp 1.1s var(--ease) 0.2s both;
}

.hero__title em {
	color: var(--lime);
}

.hero__text {
	max-width: 58ch;
	margin-bottom: 32px;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	color: rgba(255, 255, 255, 0.82);
	animation: fadeUp 1.1s var(--ease) 0.35s both;
}

.hero .btn-row {
	animation: fadeUp 1.1s var(--ease) 0.5s both;
}

.hero-card {
	position: relative;
	display: grid;
	gap: 10px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius-lg);
	background: rgba(15, 36, 29, 0.45);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	color: #fff;
	text-decoration: none;
	animation: fadeUp 1.1s var(--ease) 0.7s both;
	transition: transform 0.5s var(--ease), background-color 0.4s;
}

.hero-card:hover {
	transform: translateY(-6px);
	background: rgba(15, 36, 29, 0.6);
}

.hero-card__label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lime);
}

.hero-card__title {
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.15;
}

.hero-card__meta {
	display: grid;
	gap: 6px;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.8);
}

.hero-card__meta span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero-card__meta .icon {
	width: 17px;
	height: 17px;
	color: var(--lime);
}

.hero-card__price {
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 1.35rem;
	font-weight: 800;
}

.hero-card__price small {
	font-size: 0.78rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
}

.hero-card__arrow {
	position: absolute;
	right: 20px;
	bottom: 20px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--coral-deep);
	transition: transform 0.4s var(--ease);
}

.hero-card:hover .hero-card__arrow {
	transform: rotate(-45deg);
}

@media (max-width: 1099px) {
	.hero-card {
		max-width: 420px;
	}
}

.hero__stats {
	position: relative;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(15, 36, 29, 0.35);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
	.stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.stats li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 16px 20px 0;
}

@media (min-width: 900px) {
	.stats li + li {
		padding-left: 28px;
		border-left: 1px solid rgba(255, 255, 255, 0.14);
	}
}

.stats strong {
	font-family: var(--serif);
	font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
	font-weight: 300;
	line-height: 1;
	color: var(--lime);
	white-space: nowrap;
}

.stats span {
	max-width: 16ch;
	font-size: 0.84rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.78);
}

.hero__dots {
	position: absolute;
	right: var(--gutter);
	top: 24px;
	display: flex;
	gap: 6px;
}

.hero__dots button {
	width: 26px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.35);
	overflow: hidden;
}

.hero__dots button.is-active {
	background: rgba(255, 255, 255, 0.35) linear-gradient(#fff, #fff) no-repeat left / 0 100%;
	animation: dotFill 7s linear forwards;
}

@keyframes dotFill {
	to { background-size: 100% 100%; }
}

/* WordPress admin bar (logged-in editors only). */
.admin-bar .hero {
	--hero-offset: calc(var(--header-h) + 32px);
}

@media (max-width: 782px) {
	.admin-bar .hero {
		--hero-offset: calc(var(--header-h) + 46px);
	}
}

/* ---------- Marquee ---------- */

.marquee {
	padding: 22px 0;
	background: var(--coral-deep);
	color: #fff;
	overflow: hidden;
}

.marquee__track {
	display: flex;
	align-items: center;
	gap: 32px;
	width: max-content;
	animation: marquee 50s linear infinite;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

.marquee__item {
	font-family: var(--serif);
	font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem);
	font-style: italic;
	font-weight: 300;
	white-space: nowrap;
}

.marquee__sep .icon {
	width: 26px;
	height: 26px;
	color: rgba(255, 255, 255, 0.7);
}

@keyframes marquee {
	to { transform: translateX(-50%); }
}

/* ---------- Intro ---------- */

.intro {
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(45% 55% at 12% 45%, rgba(227, 161, 63, 0.12), transparent 70%),
		radial-gradient(40% 50% at 95% 10%, rgba(159, 217, 79, 0.1), transparent 70%),
		var(--cream);
}

/* Faint lotus watermark behind the text. */
.intro__watermark {
	position: absolute;
	right: -6%;
	bottom: -12%;
	z-index: -1;
	width: min(560px, 50vw);
	aspect-ratio: 1;
	color: var(--moss);
	opacity: 0.06;
	pointer-events: none;
}

.intro__watermark .icon {
	width: 100%;
	height: 100%;
	stroke-width: 0.5;
}

.intro__grid {
	display: grid;
	gap: clamp(56px, 8vw, 110px);
	align-items: center;
}

@media (min-width: 1000px) {
	.intro__grid {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	}
}

/* ---------- Arch collage ---------- */

.intro__media {
	position: relative;
	width: min(100%, 520px);
	margin-inline: auto;
	padding: 34px 16% 70px 0;
}

.intro__img {
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.intro__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.6s var(--ease);
}

.intro__media:hover .intro__img img {
	transform: scale(1.04);
}

/* Main photo: a tall arch. */
.intro__img--main {
	position: relative;
	z-index: 1;
	aspect-ratio: 4 / 5.2;
	border-radius: 999px 999px 28px 28px;
}

/* Gold outline arch, offset behind the photo. */
.intro__arch-line {
	position: absolute;
	top: 12px;
	left: 22px;
	right: calc(16% - 22px);
	bottom: 48px;
	border: 1.5px solid rgba(197, 146, 59, 0.55);
	border-radius: 999px 999px 32px 32px;
	pointer-events: none;
}

/* Singing-bowl photo: a floating circle. */
.intro__img--small {
	position: absolute;
	right: 0;
	bottom: 18px;
	z-index: 2;
	width: 46%;
	aspect-ratio: 1;
	border: 8px solid var(--cream);
	border-radius: 50%;
	animation: introFloat 7s ease-in-out infinite;
}

@keyframes introFloat {
	50% { transform: translateY(-12px); }
}

/* Rotating seal with the logo. */
.intro__seal {
	position: absolute;
	top: 0;
	right: 4%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 118px;
	height: 118px;
	border-radius: 50%;
	background: var(--paper);
	box-shadow: var(--shadow);
}

.intro__seal-text {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: sealSpin 28s linear infinite;
}

.intro__seal-text text {
	fill: var(--coral-deep);
	font-family: var(--sans);
	font-size: 8.6px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.intro__seal-logo {
	width: 50px;
	height: 50px;
}

@keyframes sealSpin {
	to { transform: rotate(360deg); }
}

/* Founder card. */
.intro__founder {
	position: absolute;
	left: -18px;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px 10px 10px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--shadow);
	line-height: 1.25;
}

.intro__founder-photo {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
	border: 2px solid var(--lime);
}

.intro__founder small {
	display: block;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--moss);
}

.intro__founder strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.08rem;
	font-weight: 500;
	color: var(--ink);
}

.intro__founder em {
	font-size: 0.78rem;
	font-style: normal;
	color: var(--muted);
}

/* ---------- Text ---------- */

.intro__content .section-head {
	margin-bottom: 24px;
}

.intro__lead {
	font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
	line-height: 1.75;
	color: var(--text);
}

/* "Shiv Tattva" pull-quote. */
.intro__quote {
	position: relative;
	margin: 28px 0 34px;
	padding: 22px 26px 22px 28px;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: linear-gradient(90deg, rgba(227, 161, 63, 0.12), rgba(227, 161, 63, 0.02));
	box-shadow: inset 3px 0 0 var(--saffron);
}

.intro__quote-label {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #a36d2a;
}

.intro__quote blockquote {
	margin: 0;
}

.intro__quote p {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.5;
	color: var(--ink);
}

/* Numbered pillars. */
.pillars {
	display: grid;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.pillar {
	display: grid;
	grid-template-columns: 44px 44px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 18px 6px;
	border-bottom: 1px solid var(--line);
	transition: background-color 0.4s var(--ease), padding 0.4s var(--ease);
}

.pillar:hover {
	padding-left: 14px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
}

.pillar__num {
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	color: var(--sand-2);
	transition: color 0.4s;
	-webkit-text-stroke: 0.6px var(--muted);
}

.pillar:hover .pillar__num {
	color: var(--coral);
	-webkit-text-stroke: 0;
}

.pillar__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	color: var(--coral-deep);
	transition: background-color 0.4s, color 0.4s;
}

.pillar:hover .pillar__icon {
	background: var(--ink);
	color: var(--lime);
}

.pillar__icon .icon {
	width: 20px;
	height: 20px;
}

.pillar__text strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.16rem;
	font-weight: 500;
	color: var(--ink);
}

.pillar__text span {
	font-size: 0.93rem;
	color: var(--muted);
}

.intro__content .btn-row {
	align-items: center;
	gap: 22px;
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
	.intro__media {
		padding: 26px 12% 60px 0;
	}
	.intro__seal {
		width: 92px;
		height: 92px;
		right: 0;
	}
	.intro__seal-logo {
		width: 40px;
		height: 40px;
	}
	.intro__founder {
		left: 0;
		padding-right: 14px;
	}
	.intro__founder strong {
		font-size: 0.98rem;
	}
	.pillar {
		grid-template-columns: 34px 40px minmax(0, 1fr);
		gap: 12px;
	}
	.pillar__icon {
		width: 40px;
		height: 40px;
	}
}

/* ---------- Program paths (premium cards) ---------- */

.path-grid {
	display: grid;
	gap: clamp(20px, 2.4vw, 30px);
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.path-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.path-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.path-card {
	--path-accent: #c43b33;
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: 0 2px 6px rgba(15, 36, 29, 0.04), 0 18px 40px -26px rgba(15, 36, 29, 0.35);
	overflow: hidden;
	transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.path-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 1px solid rgba(15, 36, 29, 0.07);
	pointer-events: none;
	transition: border-color 0.4s;
}

.path-card:hover {
	box-shadow: 0 30px 60px -28px rgba(15, 36, 29, 0.45);
}

.path-card:hover::after {
	border-color: color-mix(in srgb, var(--path-accent) 45%, transparent);
}

/* Category colours (same family as the program pages and menu). */
.path-card--wellness-programs { --path-accent: #4f7d2a; }
.path-card--yoga-trek { --path-accent: #2b6a8c; }
.path-card--healing-programs { --path-accent: #7a4fa3; }
.path-card--singing-bowl { --path-accent: #a0661c; }
.path-card--online-courses { --path-accent: #1d7a72; }

/* Photo */
.path-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.path-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}


.path-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 36, 29, 0.35) 0%, transparent 40%, rgba(15, 36, 29, 0.25) 100%);
}

.path-card__icon {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	transition: background-color 0.4s, border-color 0.4s;
}

.path-card:hover .path-card__icon {
	background: var(--path-accent);
	border-color: var(--path-accent);
}

.path-card__count {
	position: absolute;
	top: 20px;
	right: 16px;
	z-index: 1;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Body */
.path-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 24px;
	border-top: 3px solid var(--path-accent);
}

.path-card__eyebrow {
	margin: 0 0 6px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--path-accent);
}

.path-card__title {
	margin: 0 0 16px;
	font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem);
	line-height: 1.12;
}

.path-card__title a {
	text-decoration: none;
}

.path-card__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	border-radius: 14px;
	background: color-mix(in srgb, var(--path-accent) 7%, var(--cream));
}

.path-card__facts li {
	padding: 12px 14px;
}

.path-card__facts li + li {
	border-left: 1px solid color-mix(in srgb, var(--path-accent) 18%, transparent);
}

.path-card__facts small {
	display: block;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.path-card__facts strong {
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--ink);
	white-space: nowrap;
}

/* Program preview */
.path-card__list {
	display: grid;
	flex: 1;
	align-content: start;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.path-card__list li + li {
	border-top: 1px dashed var(--line);
}

.path-card__list a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 2px;
	font-size: 0.9rem;
	color: var(--text);
	text-decoration: none;
	transition: color 0.25s, padding 0.3s var(--ease);
}

.path-card__list a:hover {
	padding-left: 8px;
	color: var(--path-accent);
}

.path-card__list span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.path-card__list em {
	flex: none;
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 700;
	color: var(--muted);
}

.path-card__more a {
	justify-content: flex-start;
	font-weight: 700;
	color: var(--path-accent);
}

/* Actions */
.path-card__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.path-card__actions .btn {
	width: 100%;
	min-height: 44px;
}

.path-card__actions .btn--outline {
	--btn-fg: var(--ink);
	border-color: var(--line);
}

.path-card__actions .btn--outline:hover {
	--btn-bg: var(--ink);
	--btn-fg: #fff;
	border-color: var(--ink);
}

/* ---------- Program path cards: a different hover effect for each ---------- */

/* 1 · Yoga Courses — 3D tilt that follows the mouse (pages/home.js) + a light sweep. */
/* The prefix outranks the scroll-in (.js .reveal) transform, so hover transforms apply. */
.paths .path-grid .path-card.is-visible {
	transition: transform 0.5s var(--ease), box-shadow 0.55s var(--ease), opacity 0.9s var(--ease);
}

.paths .path-grid .path-card--yoga-courses:hover {
	transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
	transition: transform 0.2s ease-out, box-shadow 0.55s var(--ease);
}

.path-card--yoga-courses .path-card__media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%);
	transform: translateX(-120%);
	pointer-events: none;
}

.path-card--yoga-courses:hover .path-card__media::before {
	transform: translateX(120%);
	transition: transform 1.1s var(--ease);
}

.path-card--yoga-courses:hover .path-card__media img {
	transform: scale(1.05);
}

/* 2 · Yoga & Wellness — the card "breathes" with a slow green glow. */
.path-card--wellness-programs:hover {
	animation: pathBreathe 3.2s ease-in-out infinite;
}

.path-card--wellness-programs:hover .path-card__media img {
	transform: scale(1.1);
	transition-duration: 3s;
}

@keyframes pathBreathe {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 24px 50px -28px rgba(15, 36, 29, 0.45), 0 0 0 0 rgba(79, 125, 42, 0);
	}
	50% {
		transform: scale(1.02);
		box-shadow: 0 34px 64px -28px rgba(15, 36, 29, 0.5), 0 0 0 8px rgba(79, 125, 42, 0.14);
	}
}

/* 3 · Himalayan Yoga Trek — the photo pans upward, like climbing towards the peaks. */
.path-card--yoga-trek .path-card__media img {
	object-position: center 85%;
	transform: scale(1.12);
	transition: object-position 2.4s var(--ease), transform 2.4s var(--ease);
}

.paths .path-grid .path-card--yoga-trek:hover {
	transform: translateY(-10px);
}

.path-card--yoga-trek:hover .path-card__media img {
	object-position: center 15%;
	transform: scale(1.02);
}

/* 4 · Healing Programs — a glowing energy border circles the card. */
@property --path-angle {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

.path-card--healing-programs::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	padding: 2px;
	border-radius: inherit;
	background: conic-gradient(from var(--path-angle), var(--path-accent), #f1a8d8, transparent 35%, transparent 60%, #d2b3f2, var(--path-accent));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s;
	animation: pathSpin 3s linear infinite paused;
}

.path-card--healing-programs:hover::before {
	opacity: 1;
	animation-play-state: running;
}

.paths .path-grid .path-card--healing-programs:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 60px -26px rgba(122, 79, 163, 0.5);
}

.path-card--healing-programs:hover .path-card__media img {
	transform: scale(1.06);
	filter: saturate(1.15);
}

@keyframes pathSpin {
	to { --path-angle: 360deg; }
}

/* 5 · Singing Bowl Training — sound-wave ripples from the bowl icon. */
.path-card--singing-bowl .path-card__icon::before,
.path-card--singing-bowl .path-card__icon::after {
	content: "";
	position: absolute;
	inset: -1px;
	border: 2px solid #efc16f;
	border-radius: 14px;
	opacity: 0;
}

.path-card--singing-bowl:hover .path-card__icon::before {
	animation: pathRipple 1.8s ease-out infinite;
}

.path-card--singing-bowl:hover .path-card__icon::after {
	animation: pathRipple 1.8s ease-out 0.6s infinite;
}

@keyframes pathRipple {
	0% { transform: scale(1); opacity: 0.9; border-radius: 14px; }
	100% { transform: scale(3.2); opacity: 0; border-radius: 50%; }
}

/* The photo gently "settles", like a bowl coming to rest. */
.path-card--singing-bowl .path-card__media img {
	transform: scale(1.08);
}

.paths .path-grid .path-card--singing-bowl:hover {
	transform: translateY(-6px);
}

.path-card--singing-bowl:hover .path-card__media img {
	transform: scale(1);
	filter: sepia(0.15) saturate(1.1);
}

/* 6 · Online Courses — a colour screen slides up and the icon moves to the centre. */
.path-card--online-courses .path-card__media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(0deg, rgba(29, 122, 114, 0.88), rgba(29, 122, 114, 0.55));
	transform: translateY(101%);
	transition: transform 0.6s var(--ease);
}

.path-card--online-courses:hover .path-card__media::before {
	transform: none;
}

.path-card--online-courses .path-card__icon {
	z-index: 2;
	transition: top 0.6s var(--ease), left 0.6s var(--ease), transform 0.6s var(--ease), background-color 0.4s, border-color 0.4s;
}

.path-card--online-courses:hover .path-card__icon {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1.6);
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.6);
}

.paths .path-grid .path-card--online-courses:hover {
	transform: translateY(-6px);
}

/* No motion for visitors who ask for less of it. */
@media (prefers-reduced-motion: reduce) {
	.paths .path-grid .path-card,
	.paths .path-grid .path-card:hover {
		transform: none !important;
		animation: none !important;
	}
	.path-card::before,
	.path-card__icon::before,
	.path-card__icon::after {
		animation: none !important;
	}
}

/* ---------- Healing ---------- */

.healing__grid {
	display: grid;
	gap: 24px;
}

@media (min-width: 1000px) {
	.healing__grid {
		grid-template-columns: 1.05fr 1fr;
	}
}

.healing__feature {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 540px;
	padding: clamp(24px, 4vw, 40px);
	border-radius: var(--radius-lg);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.healing__feature > img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}

.healing__feature:hover > img {
	transform: scale(1.05);
}

.healing__feature::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(15, 36, 29, 0.1) 20%, rgba(15, 36, 29, 0.92) 85%);
}

.healing__feature h3 {
	max-width: 20ch;
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
	color: #fff;
}

.mini-list {
	display: grid;
	gap: 8px;
	margin-top: 18px !important;
}

.mini-list a {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.3s, transform 0.3s var(--ease);
}

.mini-list a:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateX(4px);
}

.mini-list small {
	font-weight: 600;
	color: var(--lime);
}

.healing__side {
	display: grid;
	gap: 24px;
}

.healing__block {
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
}

.healing__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.4rem;
}

.healing__heading .icon {
	color: var(--moss);
}

.retreat-list {
	display: grid;
	gap: 10px;
}

.retreat-item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 10px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background-color 0.3s;
}

.retreat-item:hover {
	background: var(--sand);
}

.retreat-item img {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
}

.retreat-item strong {
	display: block;
	color: var(--ink);
}

.retreat-item small {
	color: var(--muted);
}

.retreat-item__price {
	font-weight: 800;
	color: var(--coral-deep);
	white-space: nowrap;
}

/* ---------- Stay ---------- */

.stay__grid {
	display: grid;
	gap: clamp(40px, 6vw, 88px);
	align-items: center;
}

@media (min-width: 1000px) {
	.stay__grid {
		grid-template-columns: 1.1fr 1fr;
	}
}

.feature-list {
	display: grid;
	gap: 26px;
}

@media (min-width: 640px) {
	.feature-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.feature__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	border-radius: 16px;
	background: var(--ink);
	color: var(--lime);
}

.feature__title {
	font-size: 1.2rem;
	margin-bottom: 6px;
}

.feature p {
	margin: 0;
	font-size: 0.94rem;
	color: var(--muted);
}

.stay__media {
	position: relative;
	padding-bottom: 18%;
}

.stay__media img:first-child {
	width: 88%;
	aspect-ratio: 4 / 4.4;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.stay__media-small {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 52%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 8px solid var(--cream);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

/* Hero card: shared / private room prices. */
.hero-card__from {
	display: block;
	font-size: 0.7rem !important;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lime) !important;
}

.hero-card__rooms {
	display: block;
	margin-top: 2px;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
}

/* ---------- Home rhythm: tighter gaps between sections ---------- */

.home {
	--section: clamp(52px, 6vw, 88px);
}

.home .section-head {
	margin-bottom: clamp(26px, 3.4vw, 44px);
}

/* ---------- Why choose us (bento grid on dark forest) ---------- */

.why {
	isolation: isolate;
	background:
		radial-gradient(60% 70% at 100% 0%, rgba(159, 217, 79, 0.12), transparent 60%),
		radial-gradient(50% 60% at 0% 100%, rgba(227, 161, 63, 0.1), transparent 60%),
		var(--ink);
}

/* Soft light that drifts slowly behind the cards. */
.why__glow {
	position: absolute;
	z-index: -1;
	width: 520px;
	height: 520px;
	top: 18%;
	left: 30%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(159, 217, 79, 0.14), transparent 70%);
	filter: blur(20px);
	animation: why-drift 18s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes why-drift {
	to {
		transform: translate(18%, 22%) scale(1.15);
	}
}

.why__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

/* Prefix outranks .js .reveal so hover motion is not delayed or overridden. */
.why .why__grid .why-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(24px, 2.6vw, 34px);
	border-radius: var(--radius-lg);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--line-light);
	backdrop-filter: blur(6px);
	transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), border-color 0.4s ease, background 0.4s ease, box-shadow 0.5s ease;
}

/* Spotlight that follows the hover. */
.why .why__grid .why-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(420px circle at 50% 0%, rgba(159, 217, 79, 0.16), transparent 60%);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.why .why__grid .why-card:hover {
	transform: translateY(-6px);
	border-color: rgba(159, 217, 79, 0.45);
	box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.7);
}

.why .why__grid .why-card:hover::before {
	opacity: 1;
}

.why-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: rgba(159, 217, 79, 0.14);
	color: var(--lime);
	transition: transform 0.5s var(--ease), background 0.4s ease, color 0.4s ease;
}

.why-card__icon .icon {
	width: 24px;
	height: 24px;
}

.why-card:hover .why-card__icon {
	transform: rotate(-8deg) scale(1.08);
	background: var(--lime);
	color: var(--ink);
}

.why-card__num {
	position: absolute;
	top: 22px;
	right: 26px;
	font-family: var(--serif);
	font-size: 2.6rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.08);
	transition: color 0.4s ease;
}

.why-card:hover .why-card__num {
	color: rgba(159, 217, 79, 0.35);
}

.why .why-card__title {
	margin: 6px 0 0;
	font-family: var(--serif);
	font-size: var(--fs-h3);
	font-weight: 500;
	color: #fff;
}

.why-card__text {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.7);
}

.why-card__big {
	font-family: var(--serif);
	font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
	font-weight: 500;
	line-height: 1;
	color: var(--lime);
}

/* 1 · Yoga Alliance — tall card with the certificate. */
.why .why__grid .why-card--alliance {
	grid-row: span 2;
	justify-content: flex-end;
	background:
		radial-gradient(90% 60% at 50% 0%, rgba(227, 161, 63, 0.18), transparent 70%),
		linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
}

.why-card__cert {
	margin: 0 auto auto;
	width: 86%;
	padding-bottom: 18px;
	perspective: 900px;
}

.why-card__cert img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.75);
	transform: rotate(-4deg);
	transition: transform 0.7s var(--ease);
}

.why-card--alliance:hover .why-card__cert img {
	transform: rotate(0deg) scale(1.04);
}

.why-card--alliance .why-card__icon {
	background: rgba(227, 161, 63, 0.18);
	color: var(--saffron);
}

.why-card--alliance:hover .why-card__icon {
	background: var(--saffron);
	color: var(--ink);
}

.why-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.why-card__badges li {
	padding: 6px 14px;
	border-radius: var(--pill);
	border: 1px solid rgba(227, 161, 63, 0.5);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--saffron);
}

.why-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-weight: 700;
	color: var(--lime);
	text-decoration: none;
}

.why-card__link .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.why-card__link:hover .icon {
	transform: translateX(4px);
}

/* 6 · Location — full photo card. */
.why .why__grid .why-card--place {
	grid-column: span 2;
	min-height: 300px;
	justify-content: flex-end;
	padding: 0;
	border: 0;
}

.why-card__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.why-card--place:hover .why-card__bg {
	transform: scale(1.06);
}

.why-card__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(15, 36, 29, 0.92) 0%, rgba(15, 36, 29, 0.55) 55%, rgba(15, 36, 29, 0.1) 100%);
}

.why-card__inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 440px;
	padding: clamp(24px, 2.6vw, 34px);
}

/* 7 · Call to action — lime card. */
.why .why__grid .why-card--cta {
	justify-content: center;
	background: linear-gradient(150deg, var(--lime), #c4ec8a);
	border-color: transparent;
}

.why .why-card--cta .why-card__title {
	color: var(--ink);
}

.why-card--cta .why-card__text {
	color: rgba(15, 36, 29, 0.75);
}

.why-card--cta .why-card__icon,
.why-card--cta:hover .why-card__icon {
	background: var(--ink);
	color: var(--lime);
}

.why-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

@media (max-width: 1023px) {
	.why__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.why .why__grid .why-card--alliance {
		grid-row: auto;
		grid-column: span 2;
		display: grid;
		grid-template-columns: 1fr 1.1fr;
		column-gap: 28px;
		align-items: center;
	}

	.why-card--alliance .why-card__cert {
		grid-row: 1 / span 6;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.why .why__grid .why-card--cta {
		grid-column: span 2;
	}
}

@media (max-width: 639px) {
	.why__grid {
		grid-template-columns: 1fr;
	}

	.why .why__grid .why-card--alliance,
	.why .why__grid .why-card--place,
	.why .why__grid .why-card--cta {
		grid-column: auto;
	}

	.why .why__grid .why-card--alliance {
		display: flex;
		align-items: stretch;
	}

	.why .why__grid .why-card--alliance > :not(.why-card__cert) {
		align-self: flex-start;
	}

	.why .why__grid .why-card--place {
		min-height: 360px;
	}

	.why-card__veil {
		background: linear-gradient(0deg, rgba(15, 36, 29, 0.95) 0%, rgba(15, 36, 29, 0.7) 50%, rgba(15, 36, 29, 0.05) 100%);
	}

	.why-card--alliance .why-card__cert {
		width: 80%;
		margin: 0 auto;
		padding-bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.why__glow {
		animation: none;
	}
}

/* ---------- FAQ (each question has its own hover colour) ---------- */

.faq {
	background:
		radial-gradient(40% 50% at 0% 0%, rgba(159, 217, 79, 0.12), transparent 70%),
		radial-gradient(40% 50% at 100% 100%, rgba(232, 89, 79, 0.08), transparent 70%),
		var(--cream);
}

.faq__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.faq__aside {
	position: sticky;
	top: 120px;
}

.faq__aside .section-lead {
	margin-bottom: 28px;
}

/* "Still have a question?" card */
.faq__help {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px 16px;
	align-items: center;
	padding: 22px;
	border-radius: var(--radius);
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.faq__help-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--coral), var(--saffron));
	color: #fff;
}

.faq__help-icon .icon {
	width: 22px;
	height: 22px;
}

.faq__help strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--ink);
}

.faq__help span {
	font-size: var(--fs-sm);
	color: var(--muted);
}

.faq__help-actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Accordion */
.faq__list {
	display: grid;
	gap: 12px;
}

.faq-item--lime    { --c: #4f8a1c; --c-fill: var(--lime);  --c-on: var(--ink); }
.faq-item--coral   { --c: var(--coral);  --c-fill: var(--coral);  --c-on: #fff; }
.faq-item--saffron { --c: #c98420; --c-fill: var(--saffron); --c-on: var(--ink); }
.faq-item--teal    { --c: #23897d; --c-fill: #2a9d8f; --c-on: #fff; }
.faq-item--violet  { --c: #7357c4; --c-fill: #7b61c9; --c-on: #fff; }
.faq-item--sky     { --c: #2f7fc8; --c-fill: #3b8fd9; --c-on: #fff; }

/* Prefix outranks .js .reveal so hover motion is not delayed or overridden. */
.faq .faq__list .faq-item {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	transition: opacity 0.9s var(--ease), transform 0.4s var(--ease), border-color 0.35s ease, background 0.35s ease, box-shadow 0.4s ease;
	interpolate-size: allow-keywords;
}

/* Colour bar that grows on hover and stays when open. */
.faq .faq__list .faq-item::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: var(--c-fill);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.45s var(--ease);
}

.faq .faq__list .faq-item:hover,
.faq .faq__list .faq-item[open] {
	border-color: color-mix(in srgb, var(--c) 45%, transparent);
	background: color-mix(in srgb, var(--c-fill) 7%, var(--paper));
	box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--c) 70%, transparent);
}

.faq .faq__list .faq-item:hover {
	transform: translateX(6px);
}

.faq .faq__list .faq-item:hover::before,
.faq .faq__list .faq-item[open]::before {
	transform: scaleY(1);
}

.faq-item__q {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 22px 20px 24px;
	cursor: pointer;
	list-style: none;
}

.faq-item__q::-webkit-details-marker {
	display: none;
}

.faq-item__q:focus-visible {
	outline: 2px solid var(--c);
	outline-offset: -4px;
	border-radius: var(--radius);
}

.faq-item__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--c-fill) 16%, transparent);
	color: var(--c);
	font-weight: 800;
	font-size: var(--fs-sm);
	transition: background 0.35s ease, color 0.35s ease, transform 0.45s var(--ease);
}

.faq-item:hover .faq-item__num,
.faq-item[open] .faq-item__num {
	background: var(--c-fill);
	color: var(--c-on);
	transform: rotate(-10deg) scale(1.06);
}

.faq-item__text {
	flex: 1;
	font-family: var(--serif);
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem);
	font-weight: 500;
	line-height: 1.35;
	color: var(--ink);
	transition: color 0.3s ease;
}

.faq-item:hover .faq-item__text,
.faq-item[open] .faq-item__text {
	color: var(--c);
}

/* Plus that turns into a minus. */
.faq-item__toggle {
	position: relative;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--line);
	transition: background 0.35s ease, border-color 0.35s ease, transform 0.45s var(--ease);
}

.faq-item__toggle::before,
.faq-item__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform 0.45s var(--ease), background 0.35s ease;
}

.faq-item__toggle::after {
	transform: rotate(90deg);
}

.faq-item:hover .faq-item__toggle {
	border-color: var(--c);
}

.faq-item[open] .faq-item__toggle {
	background: var(--c-fill);
	border-color: var(--c-fill);
	transform: rotate(180deg);
}

.faq-item[open] .faq-item__toggle::before,
.faq-item[open] .faq-item__toggle::after {
	background: var(--c-on);
}

.faq-item[open] .faq-item__toggle::after {
	transform: rotate(0deg);
}

.faq-item__a {
	padding: 0 24px 22px 82px;
}

.faq-item__a p {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 1.75;
	color: var(--muted);
}

/* Smooth open / close in browsers that support it. */
.faq-item::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}

.faq-item[open]::details-content {
	block-size: auto;
}

.faq-item[open] .faq-item__a {
	animation: faq-in 0.5s var(--ease);
}

@keyframes faq-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

@media (max-width: 899px) {
	.faq__layout {
		grid-template-columns: 1fr;
	}

	.faq__aside {
		position: static;
	}
}

@media (max-width: 559px) {
	.faq-item__q {
		gap: 12px;
		padding: 16px 16px 16px 18px;
	}

	.faq-item__num {
		width: 36px;
		height: 36px;
	}

	.faq-item__a {
		padding: 0 18px 18px 18px;
	}

	.faq .faq__list .faq-item:hover {
		transform: none;
	}
}

/* ---------- Home teachers: three premium cards with social links ---------- */

.guide-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 30px);
}

/* Prefix outranks .js .reveal so hover motion is not delayed or overridden. */
.teachers-preview .guide-grid .guide-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.teachers-preview .guide-grid .guide-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 60px -28px rgba(15, 36, 29, 0.45);
}

/* Lime underline that draws in on hover. */
.teachers-preview .guide-grid .guide-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--lime), var(--saffron), var(--coral));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}

.teachers-preview .guide-grid .guide-card:hover::after {
	transform: scaleX(1);
}

.guide-card__media {
	position: relative;
	aspect-ratio: 4 / 4.2;
	overflow: hidden;
	background: var(--sand-2);
}

.guide-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
	transition: transform 1s var(--ease), filter 0.6s ease;
}

.guide-card:hover .guide-card__media img {
	transform: scale(1.06);
}

/* Dark fade at the bottom of the photo so the icons stand out. */
.guide-card__media::after {
	content: "";
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(transparent, rgba(15, 36, 29, 0.7));
	opacity: 0.6;
	transition: opacity 0.5s ease;
}

.guide-card:hover .guide-card__media::after {
	opacity: 1;
}

.guide-card__num {
	position: absolute;
	top: 18px;
	left: 20px;
	z-index: 1;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(6px);
	font-size: var(--fs-xs);
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--ink);
}

.guide-card__social {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 1;
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.guide-card__social li {
	transform: translateY(14px);
	opacity: 0.9;
	transition: transform 0.5s var(--ease), opacity 0.5s ease;
}

.guide-card__social li:nth-child(2) {
	transition-delay: 0.06s;
}

.guide-card:hover .guide-card__social li,
.guide-card:focus-within .guide-card__social li {
	transform: none;
	opacity: 1;
}

.guide-card__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
	transition: transform 0.35s var(--ease), background 0.35s ease, color 0.35s ease;
}

.guide-card__social .icon {
	width: 20px;
	height: 20px;
}

.guide-card__social a:hover,
.guide-card__social a:focus-visible {
	transform: translateY(-3px) scale(1.08);
	color: #fff;
}

.guide-card__social .guide-card__fb:hover,
.guide-card__social .guide-card__fb:focus-visible {
	background: #1877f2;
}

.guide-card__social .guide-card__ig:hover,
.guide-card__social .guide-card__ig:focus-visible {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.guide-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: clamp(22px, 2.4vw, 30px);
}

.guide-card__role {
	margin: 0;
	font-size: var(--fs-xs);
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--coral-deep);
}

.guide-card__name {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem);
	font-weight: 500;
	color: var(--ink);
	transition: color 0.3s ease;
}

.guide-card:hover .guide-card__name {
	color: var(--forest-2);
}

.guide-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2px 0 4px;
	padding: 0;
	list-style: none;
}

.guide-card__tags li {
	padding: 5px 12px;
	border-radius: var(--pill);
	background: var(--sand);
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--forest);
	transition: background 0.35s ease;
}

.guide-card:hover .guide-card__tags li {
	background: rgba(159, 217, 79, 0.22);
}

.guide-card__bio {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 1.7;
	color: var(--muted);
}

@media (max-width: 959px) {
	.guide-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.guide-grid .guide-card:last-child {
		grid-column: 1 / -1;
		flex-direction: row;
	}

	.guide-grid .guide-card:last-child .guide-card__media {
		flex: 0 0 45%;
		aspect-ratio: auto;
	}
}

@media (max-width: 599px) {
	.guide-grid {
		grid-template-columns: 1fr;
	}

	.guide-grid .guide-card:last-child {
		flex-direction: column;
	}

	.guide-grid .guide-card:last-child .guide-card__media {
		aspect-ratio: 4 / 4.2;
	}
}

/* Touch screens have no hover: keep the icons in place. */
@media (hover: none) {
	.guide-card__social li {
		transform: none;
		opacity: 1;
	}
}

/* ---------- Home gallery: eight poses, name revealed on hover ---------- */

.pose-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(4, clamp(150px, 15vw, 220px));
	grid-template-areas:
		"a a b c"
		"a a b d"
		"e f g g"
		"h f g g";
	gap: clamp(10px, 1.2vw, 16px);
}

.pose-grid .pose:nth-child(1) { grid-area: a; }
.pose-grid .pose:nth-child(2) { grid-area: b; }
.pose-grid .pose:nth-child(3) { grid-area: c; }
.pose-grid .pose:nth-child(4) { grid-area: d; }
.pose-grid .pose:nth-child(5) { grid-area: e; }
.pose-grid .pose:nth-child(6) { grid-area: h; }
.pose-grid .pose:nth-child(7) { grid-area: f; }
.pose-grid .pose:nth-child(8) { grid-area: g; }

/* Prefix outranks gallery.css spans and .js .reveal. */
.home-gallery .pose-grid .pose {
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.home-gallery .pose-grid .pose:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 50px -26px rgba(15, 36, 29, 0.6);
}

.pose img {
	object-position: center 30%;
}

.pose a {
	color: #fff;
	text-decoration: none;
}

/* Darker, taller fade so the caption reads clearly. */
.home-gallery .pose a::after {
	background: linear-gradient(180deg, rgba(15, 36, 29, 0) 30%, rgba(15, 36, 29, 0.55) 60%, rgba(15, 36, 29, 0.92) 100%);
}

/* Lime frame that draws in on hover. */
.pose a::before {
	content: "";
	position: absolute;
	inset: 10px;
	z-index: 2;
	border: 1px solid rgba(159, 217, 79, 0.85);
	border-radius: calc(var(--radius) - 8px);
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.5s ease, transform 0.6s var(--ease);
	pointer-events: none;
}

.pose:hover a::before,
.pose a:focus-visible::before {
	opacity: 1;
	transform: none;
}

.pose__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: clamp(16px, 1.8vw, 26px);
	padding-right: 70px;
}

.pose__caption > * {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.45s ease, transform 0.55s var(--ease);
}

.pose__caption > :nth-child(2) { transition-delay: 0.05s; }
.pose__caption > :nth-child(3) { transition-delay: 0.1s; }
.pose__caption > :nth-child(4) { transition-delay: 0.15s; }

.pose:hover .pose__caption > *,
.pose a:focus-visible .pose__caption > * {
	opacity: 1;
	transform: none;
}

.pose__num {
	margin-bottom: 4px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lime);
}

.pose__name {
	font-family: var(--serif);
	font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.7rem);
	font-weight: 500;
	font-style: italic;
	line-height: 1.15;
}

.pose__en {
	font-size: var(--fs-sm);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
}

.pose__note {
	margin-top: 4px;
	font-size: 0.82rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
}

/* Small tiles: name only, keep it tidy. */
.pose-grid .pose:nth-child(3) .pose__note,
.pose-grid .pose:nth-child(4) .pose__note,
.pose-grid .pose:nth-child(5) .pose__note,
.pose-grid .pose:nth-child(6) .pose__note {
	display: none;
}

.pose__zoom {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--lime);
	color: var(--ink);
	opacity: 0;
	transform: scale(0.6) rotate(-45deg);
	transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.pose__zoom .icon {
	width: 18px;
	height: 18px;
}

.pose:hover .pose__zoom,
.pose a:focus-visible .pose__zoom {
	opacity: 1;
	transform: none;
}

@media (max-width: 899px) {
	.pose-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		grid-auto-rows: 200px;
		grid-template-areas: none;
	}

	.pose-grid .pose:nth-child(n) {
		grid-area: auto;
	}

	.pose-grid .pose:nth-child(1),
	.pose-grid .pose:nth-child(8) {
		grid-column: span 2;
		grid-row: span 2;
	}

	.pose-grid .pose:nth-child(2) {
		grid-row: span 2;
	}

	.pose-grid .pose:nth-child(7) {
		grid-column: span 2;
	}

	.pose-grid .pose:nth-child(7) img {
		object-position: center 75%;
	}
}

/* Touch screens have no hover: always show the pose name. */
@media (hover: none) {
	.home-gallery .pose a::after {
		opacity: 1;
	}

	.pose__caption {
		padding: 14px 16px;
	}

	.pose__caption > * {
		opacity: 1;
		transform: none;
	}

	.pose__note,
	.pose__num {
		display: none;
	}

	.pose__name {
		font-size: 1.05rem;
	}

	.pose__en {
		font-size: 0.78rem;
	}
}

/* ---------- Trust: Yoga Alliance seal + proof cards ---------- */

.trust {
	isolation: isolate;
	background:
		radial-gradient(45% 60% at 0% 20%, rgba(159, 217, 79, 0.13), transparent 70%),
		radial-gradient(45% 60% at 100% 90%, rgba(90, 174, 240, 0.1), transparent 70%),
		var(--ink);
}

.trust__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.trust__intro .section-lead {
	margin-bottom: 28px;
}

/* Seal card */
.trust-seal {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 16px 22px 16px 16px;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, rgba(227, 161, 63, 0.16), rgba(255, 255, 255, 0.03));
	border: 1px solid rgba(227, 161, 63, 0.35);
	color: #fff;
	text-decoration: none;
	transition: border-color 0.35s ease, transform 0.45s var(--ease), box-shadow 0.45s ease;
}

.trust-seal:hover,
.trust-seal:focus-visible {
	transform: translateY(-3px);
	border-color: var(--saffron);
	box-shadow: 0 20px 40px -24px rgba(227, 161, 63, 0.7);
}

.trust-seal__badge {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: 112px;
	height: 112px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(15, 36, 29, 0.9) 45%, rgba(227, 161, 63, 0.18));
}

.trust-seal__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: trust-spin 22s linear infinite;
}

.trust-seal__ring text {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 800;
	fill: var(--saffron);
}

.trust-seal:hover .trust-seal__ring {
	animation-duration: 6s;
}

@keyframes trust-spin {
	to {
		transform: rotate(360deg);
	}
}

.trust-seal__logo {
	width: 50px;
	height: 50px;
}

.trust-seal__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.7);
}

.trust-seal__text strong {
	font-family: var(--serif);
	font-size: 1.25rem;
	font-weight: 500;
	color: #fff;
}

.trust-seal__text em {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-style: normal;
	font-weight: 800;
	color: var(--saffron);
}

.trust-seal__text em .icon {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease;
}

.trust-seal:hover .trust-seal__text em .icon {
	transform: translateX(4px);
}

/* Graduate faces */
.trust-faces {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 700;
	font-size: var(--fs-sm);
	text-decoration: none;
}

.trust-faces__stack {
	display: flex;
}

.trust-faces__stack img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--ink);
	transition: transform 0.4s var(--ease);
}

.trust-faces__stack img + img {
	margin-left: -12px;
}

.trust-faces:hover .trust-faces__stack img {
	transform: translateY(-3px);
}

.trust-faces:hover .trust-faces__stack img:nth-child(2) { transition-delay: 0.05s; }
.trust-faces:hover .trust-faces__stack img:nth-child(3) { transition-delay: 0.1s; }

.trust-faces__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	transition: color 0.3s ease;
}

.trust-faces__stars {
	display: flex;
	gap: 2px;
	color: var(--saffron);
}

.trust-faces__stars .icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.trust-faces:hover .trust-faces__text {
	color: var(--lime);
}

/* Proof cards */
.trust__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.trust-card--lime    { --tone: #9fd94f; }
.trust-card--sky     { --tone: #5aaef0; }
.trust-card--saffron { --tone: #e3a13f; }
.trust-card--coral   { --tone: #f0766d; }

/* Prefix outranks .js .reveal so hover motion is not delayed or overridden. */
.trust .trust__cards .trust-card {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(20px, 2.2vw, 28px);
	border-radius: var(--radius-lg);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--line-light);
	transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}

/* Second column sits lower for a staggered rhythm. */
.trust .trust__cards .trust-card:nth-child(even) {
	margin-top: 36px;
	margin-bottom: -36px;
}

/* Colour wash that rises from the bottom on hover. */
.trust .trust__cards .trust-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%);
	opacity: 0;
	transform: translateY(30%);
	transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.trust .trust__cards .trust-card:hover {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--tone) 60%, transparent);
	box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--tone) 80%, transparent);
}

.trust .trust__cards .trust-card:hover::before {
	opacity: 1;
	transform: none;
}

.trust-card__icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 15px;
	background: color-mix(in srgb, var(--tone) 16%, transparent);
	color: var(--tone);
	transition: background 0.4s ease, color 0.4s ease, transform 0.5s var(--ease);
}

.trust-card__icon .icon {
	width: 23px;
	height: 23px;
}

.trust-card:hover .trust-card__icon {
	background: var(--tone);
	color: var(--ink);
	transform: rotate(-8deg) scale(1.06);
}

.trust .trust-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--serif);
	font-size: var(--fs-h4);
	font-weight: 500;
	color: #fff;
}

/* Verified tick pops in on hover. */
.trust-card__check {
	display: grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tone);
	color: var(--ink);
	transform: scale(0);
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-card__check .icon {
	width: 13px;
	height: 13px;
	stroke-width: 3;
}

.trust-card:hover .trust-card__check {
	transform: scale(1);
}

.trust-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.trust-card__chips {
	padding-top: 4px;
}

.trust-card__text {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
}

.trust-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
}

.trust-card__chips span,
.trust-card__chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border-radius: var(--pill);
	border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--tone);
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease;
}

.trust-card__chips a .icon {
	width: 14px;
	height: 14px;
	transition: transform 0.3s ease;
}

.trust-card__chips a:hover {
	background: var(--tone);
	color: var(--ink);
}

.trust-card__chips a:hover .icon {
	transform: translateX(3px);
}

@media (max-width: 1023px) {
	.trust__layout {
		grid-template-columns: 1fr;
	}

	.trust .trust__cards .trust-card:nth-child(even) {
		margin: 0;
	}
}

@media (max-width: 599px) {
	.trust__cards {
		grid-template-columns: 1fr;
	}

	.trust-seal {
		gap: 14px;
		padding: 12px 16px 12px 12px;
	}

	.trust-seal__badge {
		width: 92px;
		height: 92px;
	}

	.trust-seal__logo {
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trust-seal__ring {
		animation: none;
	}
}

/* ---------- Google reviews ---------- */

.g-reviews {
	background:
		radial-gradient(40% 50% at 100% 0%, rgba(66, 133, 244, 0.08), transparent 70%),
		radial-gradient(40% 50% at 0% 100%, rgba(52, 168, 83, 0.08), transparent 70%),
		var(--cream);
}

.g-reviews__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	margin-bottom: clamp(28px, 3.6vw, 46px);
}

.g-logo {
	flex: none;
	width: 22px;
	height: 22px;
}

/* Summary card */
.g-summary {
	display: grid;
	gap: 14px;
	padding: 22px 24px;
	border-radius: var(--radius-lg);
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.g-summary__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	color: var(--ink);
}

.g-summary__score {
	display: flex;
	align-items: center;
	gap: 16px;
}

.g-summary__score strong {
	font-family: var(--serif);
	font-size: 3.2rem;
	font-weight: 500;
	line-height: 1;
	color: var(--ink);
}

.g-summary__score > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.g-summary__count {
	font-size: var(--fs-sm);
	color: var(--muted);
}

.g-summary__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Stars with partial fill (e.g. 4.8). */
.g-stars {
	position: relative;
	display: inline-block;
	align-self: flex-start;
	width: max-content;
	font-size: 1.15rem;
	line-height: 1;
	letter-spacing: 2px;
	color: #dadce0;
}

.g-stars > span {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--fill);
	overflow: hidden;
	white-space: nowrap;
	color: #fbbc05;
}

.g-stars::before {
	content: "★★★★★";
}

/* One-review slider */
.g-card--blue   { --tone: #4285f4; }
.g-card--red    { --tone: #ea4335; }
.g-card--yellow { --tone: #f2a600; }
.g-card--green  { --tone: #34a853; }

.g-slider {
	position: relative;
	max-width: 980px;
	margin-inline: auto;
	padding: clamp(28px, 4vw, 52px) clamp(22px, 5vw, 64px) clamp(22px, 3vw, 32px);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(66, 133, 244, 0.07), transparent 70%),
		radial-gradient(60% 80% at 0% 100%, rgba(52, 168, 83, 0.07), transparent 70%),
		var(--paper);
	border: 1px solid var(--line);
	box-shadow: 0 30px 70px -40px rgba(15, 36, 29, 0.45);
	overflow: hidden;
	isolation: isolate;
}

/* Google-colour strip along the top. */
.g-slider::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75%);
}

/* Big decorative quote mark. */
.g-slider__quote {
	position: absolute;
	top: -10px;
	right: clamp(16px, 4vw, 48px);
	z-index: -1;
	font-family: var(--serif);
	font-size: clamp(9rem, 16vw, 14rem);
	line-height: 1;
	color: rgba(66, 133, 244, 0.08);
	pointer-events: none;
}

/* Slides stack in one grid cell, so the box keeps the height of the tallest. */
.g-slider__track {
	display: grid;
}

.g-slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(28px);
	transition: opacity 0.5s ease, transform 0.6s var(--ease), visibility 0s linear 0.6s;
}

.g-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.5s ease 0.1s, transform 0.6s var(--ease) 0.1s, visibility 0s;
}

.g-slide .g-stars {
	font-size: 1.35rem;
}

.g-slide__text {
	font-family: var(--serif);
	font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.35rem);
	line-height: 1.6;
	color: var(--ink);
}

.g-slide__text p {
	margin: 0 0 0.6em;
}

.g-slide__text p:last-child {
	margin-bottom: 0;
}

.g-slide__text.is-clamped:not(.is-open) {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.g-slide__who {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.g-slide__who .g-logo {
	width: 26px;
	height: 26px;
}

.g-card__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--tone);
	color: #fff;
	font-weight: 800;
	font-size: 1.15rem;
	box-shadow: 0 8px 18px -8px var(--tone);
}

.g-card__who {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.g-card__who strong {
	color: var(--ink);
	font-size: 1.02rem;
}

.g-card__who small {
	color: var(--muted);
	font-size: 0.82rem;
}

.g-card__more {
	align-self: flex-start;
	margin-top: -6px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: var(--fs-sm);
	font-weight: 800;
	color: var(--tone);
	cursor: pointer;
}

.g-card__more:hover {
	text-decoration: underline;
}

/* Arrows + progress dots */
.g-slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 22px;
}

.g-slider__arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}

.g-slider__arrow .icon {
	width: 18px;
	height: 18px;
}

.g-slider__arrow:hover,
.g-slider__arrow:focus-visible {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	transform: scale(1.08);
}

.g-slider__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.g-slider__dot {
	position: relative;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: var(--pill);
	background: var(--sand-2);
	overflow: hidden;
	cursor: pointer;
	transition: width 0.4s var(--ease), background 0.3s ease;
}

.g-slider__dot:hover {
	background: color-mix(in srgb, var(--tone) 45%, var(--sand-2));
}

/* The active dot grows and fills in its Google colour over the 2-second timer. */
.g-slider__dot.is-active {
	width: 42px;
	background: color-mix(in srgb, var(--tone) 25%, var(--sand-2));
}

.g-slider__dot span {
	position: absolute;
	inset: 0;
	background: var(--tone);
	transform: scaleX(0);
	transform-origin: left;
}

.g-slider__dot.is-active span {
	animation: g-progress var(--interval, 2000ms) linear forwards;
}

.g-slider.is-paused .g-slider__dot.is-active span {
	animation: none;
	transform: scaleX(1);
}

@keyframes g-progress {
	to {
		transform: scaleX(1);
	}
}

@media (max-width: 899px) {
	.g-reviews__head {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 559px) {
	.g-slide__text.is-clamped:not(.is-open) {
		-webkit-line-clamp: 7;
	}

	.g-slider__nav {
		gap: 10px;
	}

	.g-slider__dot.is-active {
		width: 30px;
	}
}

/* ---------- Home blog: three cards in view, slide for more ---------- */

.blog-rail__controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.blog-rail__controls .link-arrow {
	margin-right: 10px;
}

.blog-rail__arrow {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease), opacity 0.3s ease;
}

.blog-rail__arrow .icon {
	width: 19px;
	height: 19px;
}

.blog-rail__arrow:hover:not(:disabled),
.blog-rail__arrow:focus-visible {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	transform: scale(1.08);
}

.blog-rail__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.blog-rail__track {
	--gap: clamp(16px, 2vw, 26px);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
	gap: var(--gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 12px 4px 56px;
	margin: -12px -4px -26px;
}

.blog-rail__track::-webkit-scrollbar {
	display: none;
}

.blog-rail__track:focus-visible {
	outline: 2px solid var(--moss);
	outline-offset: 4px;
	border-radius: var(--radius);
}

.blog-card--lime    { --tone: #5f8f2f; --tone-soft: #9fd94f; }
.blog-card--coral   { --tone: #c43b33; --tone-soft: #e8594f; }
.blog-card--saffron { --tone: #b8741a; --tone-soft: #e3a13f; }
.blog-card--sky     { --tone: #2f7fc8; --tone-soft: #5aaef0; }
.blog-card--violet  { --tone: #7357c4; --tone-soft: #a48ce6; }

.blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.blog-card:hover,
.blog-card:focus-within {
	transform: translateY(-8px);
	box-shadow: 0 30px 56px -30px color-mix(in srgb, var(--tone) 70%, transparent);
}

/* Colour line that draws along the bottom on hover. */
.blog-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: var(--tone-soft);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}

.blog-card:hover::after {
	transform: scaleX(1);
}

.blog-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--sand-2);
}

.blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}

.blog-card:hover .blog-card__media img {
	transform: scale(1.07);
}

.blog-card__cat {
	position: absolute;
	left: 16px;
	top: 16px;
	padding: 6px 13px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tone);
	transition: background 0.35s ease, color 0.35s ease;
}

.blog-card:hover .blog-card__cat {
	background: var(--tone);
	color: #fff;
}

.blog-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: clamp(20px, 2.2vw, 26px);
}

.blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 0.8rem;
	color: var(--muted);
}

.blog-card__meta .icon {
	width: 15px;
	height: 15px;
	color: var(--tone);
}

.blog-card__title {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.42rem);
	font-weight: 500;
	line-height: 1.3;
}

.blog-card__title a {
	color: var(--ink);
	text-decoration: none;
	transition: color 0.3s ease;
}

/* The whole card is clickable. */
.blog-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.blog-card:hover .blog-card__title a {
	color: var(--tone);
}

.blog-card__excerpt {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 1.65;
	color: var(--muted);
}

.blog-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	font-size: var(--fs-sm);
	font-weight: 800;
	color: var(--tone);
}

.blog-card__more .icon {
	width: 17px;
	height: 17px;
	transition: transform 0.35s var(--ease);
}

.blog-card:hover .blog-card__more .icon {
	transform: translateX(6px);
}

/* Dots: one per article, the cards in view are highlighted. */
.blog-rail__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.blog-rail__dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: var(--pill);
	background: var(--sand-2);
	cursor: pointer;
	transition: width 0.4s var(--ease), background 0.3s ease;
}

.blog-rail__dots button.is-active {
	width: 28px;
	background: var(--moss);
}

@media (max-width: 1023px) {
	.blog-rail__track {
		grid-auto-columns: calc((100% - var(--gap)) / 2);
	}
}

@media (max-width: 639px) {
	.blog-rail__track {
		grid-auto-columns: 86%;
	}

	.blog-rail__controls .link-arrow {
		margin-right: auto;
	}

	.blog-rail__controls {
		width: 100%;
	}
}
