/* =====================================================================
   Vanaswara enrichments: line icons, stats, highlights, chips, reveals
   Loaded after custom.css. Uses the --vs-* tokens defined there.
   Motion is opt-in: content is only hidden before reveal when
   enrich.js has added html.js-enrich, and never under reduced motion.
   ===================================================================== */

:root {
	--vs-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
	--vs-reveal-duration: 650ms;
	--vs-reveal-distance: 20px;
	--vs-line: rgba(45, 69, 44, 0.14);
	--vs-shadow-lift: 0 14px 30px -18px rgba(31, 51, 32, 0.45);
	/* Small uppercase label text: darker than --vs-ochre-dark so it passes
	   WCAG AA (about 5.3:1 on #eee, 5.6:1 on cream). Ochre stays for icons. */
	--vs-label-ink: #7f5a22;
	/* One shared box height for every stat value, numeric or word */
	--vs-stat-num-size: clamp(40px, 28px + 1.8vw, 54px);
	--vs-stat-value-h: calc(var(--vs-stat-num-size) * 1.1);
}

/* ---------- Icons ---------- */
.vs-icon {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	flex: 0 0 auto;
	vertical-align: -0.25em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	overflow: visible;
}
.vs-icon--sm { width: 1em; height: 1em; vertical-align: -0.15em; }
.vs-icon--lg { width: 1.75em; height: 1.75em; vertical-align: -0.45em; }
.vs-icon--xl { width: 2.5em; height: 2.5em; vertical-align: middle; }

/* Circle badge: cream disc, green line icon */
.vs-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--vs-cream);
	color: var(--vs-green-800);
	box-shadow: inset 0 0 0 1px var(--vs-line);
	font-size: 24px;
	line-height: 1;
	transition: background-color 250ms ease, color 250ms ease;
}
.vs-icon-badge .vs-icon { width: 1em; height: 1em; vertical-align: 0; }
.vs-icon-badge--sm { width: 40px; height: 40px; font-size: 18px; }
.vs-icon-badge--lg { width: 72px; height: 72px; font-size: 30px; }
.vs-icon-badge--ochre { color: var(--vs-ochre-dark); }
.vs-icon-badge--dark { background: var(--vs-green-800); color: #fff; box-shadow: none; }

/* Small eyebrow label above headings */
.vs-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0 0 0.75em;
	font-family: var(--vs-font-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vs-label-ink);
}

/* ---------- Stats band ---------- */
.vs-stats-band {
	background: var(--vs-cream);
	padding: 64px 0 60px;
	border-top: 1px solid var(--vs-line);
	border-bottom: 1px solid var(--vs-line);
}
.vs-stats {
	display: flex;
	flex-wrap: wrap;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.vs-stat {
	flex: 1 1 0;
	min-width: 0;
	padding: 8px 32px;
	text-align: center;
	position: relative;
}
.vs-stat + .vs-stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12%;
	bottom: 12%;
	width: 1px;
	background: var(--vs-line);
}
.vs-stat .vs-icon-badge { width: 64px; height: 64px; font-size: 26px; margin-bottom: 20px; background: #fff; }
.vs-stat__value {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: var(--vs-stat-value-h);
	margin: 0;
	font-family: var(--vs-font-display);
	font-optical-sizing: auto;
	font-size: var(--vs-stat-num-size);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--vs-green-800);
	font-variant-numeric: lining-nums tabular-nums;
}
/* Word values (no number): smaller type in the same fixed box, one line */
.vs-stat__value--word {
	font-size: clamp(28px, 22px + 0.9vw, 36px);
	letter-spacing: -0.01em;
	line-height: 1.1;
	white-space: nowrap;
}
.vs-stat__label {
	display: block;
	margin-top: 10px;
	font-family: var(--vs-font-body);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vs-label-ink);
}
.vs-stat__text {
	max-width: 30ch;
	margin: 10px auto 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--vs-muted);
}
/* Dark variant */
.vs-stats-band--dark { background: var(--vs-green-900); border-color: transparent; }
.vs-stats-band--dark .vs-stat__value { color: #fff; }
.vs-stats-band--dark .vs-stat__text { color: rgba(255, 255, 255, 0.72); }
.vs-stats-band--dark .vs-stat__label { color: #d9b77a; }
.vs-stats-band--dark .vs-stat + .vs-stat::before { background: rgba(255, 255, 255, 0.16); }

/* Tablet: three narrow columns. Keep word values on one line and reserve
   two label lines so values, labels and body text share the same rows. */
@media (min-width: 768px) and (max-width: 991px) {
	.vs-stat { padding: 8px 16px; }
	.vs-stat__value--word { font-size: 24px; }
	.vs-stat__label { min-height: 3em; letter-spacing: 0.12em; }
}
@media (max-width: 767px) {
	.vs-stats-band { padding: 44px 0 36px; }
	.vs-stats { flex-direction: column; }
	.vs-stat { padding: 26px 8px; }
	.vs-stat + .vs-stat::before { left: 25%; right: 25%; top: 0; bottom: auto; width: auto; height: 1px; }
	.vs-stat__value, .vs-stat__value--word { height: auto; }
}

/* ---------- Highlights / amenity grid ---------- */
.vs-features-wrap { padding: 56px 0 40px; }
.vs-features-head { text-align: center; margin-bottom: 36px; }
.vs-features-head h2 { margin: 0; font-size: clamp(26px, 20px + 1.1vw, 36px); color: var(--vs-green-800); }
.vs-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vs-features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Directly in .container (no .row/.col): add the column gutter so it lines up */
.vs-features-wrap > .container > .vs-features { padding: 0 15px; }
.vs-feature {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	text-align: left;
}
.vs-feature .vs-icon-badge { flex: 0 0 auto; width: 48px; height: 48px; font-size: 22px; }
.vs-feature__title {
	margin: 4px 0 4px;
	font-family: var(--vs-font-display);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--vs-ink);
}
.vs-feature__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--vs-muted); }
.vs-feature:hover .vs-icon-badge { background: var(--vs-green-800); color: #fff; }
.vs-features--center .vs-feature { flex-direction: column; align-items: center; text-align: center; gap: 12px; }

@media (max-width: 991px) {
	.vs-features, .vs-features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
	.vs-features, .vs-features--4 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* ---------- Chips ---------- */
.vs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}
.vs-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 6px 14px 6px 11px;
	border-radius: 999px;
	background: var(--vs-cream);
	box-shadow: inset 0 0 0 1px var(--vs-line);
	font-family: var(--vs-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--vs-ink);
	white-space: nowrap;
}
.vs-chip .vs-icon { width: 1.1em; height: 1.1em; vertical-align: 0; color: var(--vs-green-600); }
.vs-chips--center { justify-content: center; }
.vs-chips--light .vs-chip { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); color: #fff; }
.vs-chips--light .vs-chip .vs-icon { color: #fff; }

/* Icon + text inline row (lists, contact lines) */
.vs-inline-icon { display: inline-flex; align-items: center; gap: 0.5em; }
.vs-inline-icon .vs-icon { color: var(--vs-green-600); }
.vs-list-icons { list-style: none; padding: 0; margin: 0 0 1.1em; }
.vs-list-icons li { display: flex; align-items: flex-start; gap: 0.65em; margin-bottom: 0.5em; }
.vs-list-icons li > .vs-icon { margin-top: 0.22em; color: var(--vs-green-600); }

/* ---------- Hover lift ---------- */
.vs-lift {
	transition: transform 250ms var(--vs-ease-out), box-shadow 250ms var(--vs-ease-out);
	will-change: transform;
}
.vs-lift:hover, .vs-lift:focus-within {
	transform: translateY(-3px);
	box-shadow: var(--vs-shadow-lift);
}
img.vs-lift, .vs-lift img { border-radius: 4px; }
.vs-frame { display: block; overflow: hidden; border-radius: 4px; }
@media (max-width: 767px) { .vs-frame { margin-bottom: 24px; } }

/* ---------- Reveal on scroll ---------- */
/* Hidden state only exists when JS is running (html.js-enrich). */
html.js-enrich [data-reveal] {
	opacity: 0;
	transform: translate3d(0, var(--vs-reveal-distance), 0);
	transition:
		opacity var(--vs-reveal-duration) var(--vs-ease-out),
		transform var(--vs-reveal-duration) var(--vs-ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}
html.js-enrich [data-reveal="fade"] { transform: none; }
html.js-enrich [data-reveal="left"] { transform: translate3d(calc(var(--vs-reveal-distance) * -1), 0, 0); }
html.js-enrich [data-reveal="right"] { transform: translate3d(var(--vs-reveal-distance), 0, 0); }
/* Small screens: side-slides would push past the viewport edge, use slide-up */
@media (max-width: 767px) {
	html.js-enrich [data-reveal="left"],
	html.js-enrich [data-reveal="right"] { transform: translate3d(0, var(--vs-reveal-distance), 0); }
}
html.js-enrich [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}
/* Note: put .vs-lift on a child of the [data-reveal] element, not the same node. */

/* ---------- Pre-existing template blemishes ---------- */
/* Empty info strip under the stay-page carousel renders as a bare green bar */
#course_info:not(:has(li:not(:empty))) { display: none; }
/* Sub-page hero titles: the 100px template size overflows small screens */
@media (max-width: 767px) {
	#sub_content_in h1 { font-size: clamp(34px, 9vw, 64px); overflow-wrap: break-word; }
}
/* Tablets: 100px titles wrapped to four lines and slid under the fixed header */
@media (min-width: 768px) and (max-width: 991px) {
	#sub_content_in h1 { font-size: clamp(48px, 7vw, 68px); overflow-wrap: break-word; }
}
/* Phones on their side: the hero is 220px, so the title stays on one or two short lines */
@media (orientation: landscape) and (max-height: 500px) {
	#sub_content_in h1 { font-size: 36px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html.js-enrich [data-reveal],
	html.js-enrich [data-reveal="left"],
	html.js-enrich [data-reveal="right"] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.vs-lift, .vs-icon-badge { transition: none; }
	.vs-lift:hover, .vs-lift:focus-within { transform: none; }
}

/* Four-item stats band: tighter on tablets */
@media (min-width: 768px) and (max-width: 1199px) {
	.vs-stats .vs-stat { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.vs-stats .vs-stat__value--word { font-size: 26px; }
}
