/* ==========================================================================
   Shiv Tattva Yog School — Base
   Design tokens, reset, typography, layout utilities, buttons, motion.
   ========================================================================== */

:root {
	/* Brand palette (logo lime + coral, grounded in Himalayan forest greens) */
	--ink: #0f241d;
	--forest: #163a2e;
	--forest-2: #1e4a3b;
	--moss: #5f8f2f;
	--lime: #9fd94f;
	--coral: #e8594f;
	--coral-deep: #c43b33;
	--saffron: #e3a13f;
	--sand: #f4eee3;
	--sand-2: #ebe2d2;
	--cream: #fbf8f2;
	--paper: #ffffff;
	--text: #1b2a23;
	--muted: #5a6962;
	--line: rgba(15, 36, 29, 0.12);
	--line-light: rgba(255, 255, 255, 0.16);

	/* Type */
	--serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fs-xs: 0.78rem;
	--fs-sm: 0.9rem;
	--fs-base: 1.03rem;
	--fs-lg: 1.18rem;
	--fs-h4: 1.2rem;
	--fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
	--fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.3rem);
	--fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.9rem);

	/* Space & shape */
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(72px, 9vw, 128px);
	--radius-lg: 28px;
	--radius: 20px;
	--radius-sm: 12px;
	--pill: 999px;
	--shadow-sm: 0 2px 10px rgba(15, 36, 29, 0.06);
	--shadow: 0 18px 50px -22px rgba(15, 36, 29, 0.32);
	--shadow-lg: 0 40px 90px -40px rgba(15, 36, 29, 0.45);

	/* Motion */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur: 0.45s;

	--header-h: 73px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 120px;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--text);
	font-family: var(--sans);
	font-size: var(--fs-base);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

body.nav-open {
	overflow: hidden;
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--ink);
	font-variation-settings: "opsz" 96;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* Both rules use :where() (zero specificity) so any component class can set its own spacing,
   and the list reset below wins over the default text spacing by coming later. */
:where(p, ul, ol, dl, figure, blockquote) {
	margin: 0 0 1.1em;
}

:where(ul[class], ol[class]) {
	list-style: none;
	padding: 0;
	margin: 0;
}

::selection {
	background: var(--lime);
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--saffron);
	outline-offset: 3px;
	border-radius: 6px;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

/* ---------- Accessibility helpers ---------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--pill);
	transform: translateY(-160%);
	transition: transform 0.2s;
}

.skip-link:focus {
	transform: none;
}

.site-main:focus {
	outline: none;
}

/* ---------- Layout ---------- */

.container {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: 860px;
}

.section {
	position: relative;
	padding-block: var(--section);
}

.section--sand {
	background: var(--sand);
}

.section--forest {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.82);
	overflow: hidden;
}

.section--forest h2,
.section--forest h3 {
	color: #fff;
}

.split {
	display: grid;
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.split__media img {
	width: 100%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	object-fit: cover;
	aspect-ratio: 4 / 3.4;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: 1.05fr 1fr;
	}
	.split--reverse .split__media {
		order: -1;
	}
}

/* ---------- Section headings ---------- */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-family: var(--sans);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--moss);
	text-decoration: none;
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 1.5px;
	background: currentColor;
	opacity: 0.7;
}

.eyebrow--light {
	color: var(--lime);
}

.section-head {
	max-width: 760px;
	margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.section-head--center .eyebrow::after {
	content: "";
	width: 28px;
	height: 1.5px;
	background: currentColor;
	opacity: 0.7;
}

.section-head--split {
	display: grid;
	gap: 20px 60px;
	max-width: none;
	align-items: end;
}

@media (min-width: 900px) {
	.section-head--split {
		grid-template-columns: 1.1fr 1fr;
	}
}

.section-title {
	font-size: var(--fs-h2);
	margin-bottom: 0.35em;
}

.section-title em,
.hero__title em,
.page-hero__title em {
	font-style: italic;
	font-weight: 300;
	color: var(--coral);
}

.section--forest .section-title em,
.treks .section-title em {
	color: var(--lime);
}

.section-title--sm {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
}

.section-lead {
	font-size: var(--fs-lg);
	color: var(--muted);
	margin-bottom: 1em;
}

.section--forest .section-lead {
	color: rgba(255, 255, 255, 0.72);
}

/* ---------- Buttons ---------- */

.btn {
	--btn-bg: var(--ink);
	--btn-fg: #fff;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
	transform: translateX(-120%);
	transition: transform 0.7s var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -14px rgba(15, 36, 29, 0.55);
}

.btn:hover::after {
	transform: translateX(120%);
}

.btn:active {
	transform: translateY(0);
}

.btn .icon {
	width: 1.15em;
	height: 1.15em;
	transition: transform 0.3s var(--ease);
}

.btn:hover .icon--arrow {
	transform: translateX(4px);
}

.btn--primary {
	--btn-bg: var(--coral-deep);
}

.btn--primary:hover {
	--btn-bg: #ad2f28;
}

.btn--dark {
	--btn-bg: var(--ink);
}

.btn--whatsapp {
	--btn-bg: #1f8f4e;
}

.btn--glass {
	--btn-bg: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.btn--glass:hover {
	--btn-bg: rgba(255, 255, 255, 0.95);
	--btn-fg: var(--ink);
}

.btn--outline {
	--btn-bg: transparent;
	--btn-fg: var(--ink);
	border-color: currentColor;
}

.btn--outline:hover {
	--btn-bg: var(--ink);
	--btn-fg: #fff;
	border-color: var(--ink);
}

.btn--sm {
	min-height: 40px;
	padding: 8px 18px;
	font-size: 0.86rem;
}

.btn--lg {
	min-height: 56px;
	padding: 15px 32px;
	font-size: 1rem;
}

.btn--block {
	width: 100%;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn-row--center {
	justify-content: center;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--coral-deep);
	text-decoration: none;
	border-bottom: 1.5px solid transparent;
	transition: border-color 0.3s, gap 0.3s var(--ease);
}

.link-arrow:hover {
	gap: 12px;
	border-color: currentColor;
}

/* ---------- Prose (editor content) ---------- */

.prose {
	font-size: 1.06rem;
	max-width: 72ch;
}

.prose--center {
	margin: 0 auto clamp(36px, 5vw, 56px);
	text-align: center;
}

.prose h2 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	margin-top: 1.6em;
}

.prose h3 {
	margin-top: 1.4em;
}

.prose a {
	color: var(--coral-deep);
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li {
	margin-bottom: 0.4em;
}

.prose li::marker {
	color: var(--moss);
}

.prose blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--lime);
	font-family: var(--serif);
	font-size: 1.3rem;
	font-style: italic;
	color: var(--ink);
}

.prose img,
.prose .wp-block-image img {
	border-radius: var(--radius);
}

.prose figcaption {
	font-size: var(--fs-sm);
	color: var(--muted);
	text-align: center;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
}

.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.alignwide {
	max-width: 1100px;
}

.alignfull {
	max-width: none;
}

.small-note {
	font-size: var(--fs-sm);
	color: var(--muted);
	margin-top: 16px;
}

/* ---------- "To provide" markers (visible to editors only) ---------- */

mark.tbc {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 6px;
	background: #fff2b3;
	color: #6b4b00;
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.6;
	text-transform: uppercase;
	vertical-align: middle;
	white-space: normal;
}

.admin-note {
	padding: 14px 18px;
	border-left: 4px solid #f0b400;
	border-radius: 10px;
	background: #fff8dc;
	font-size: var(--fs-sm);
	color: #5b4300;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.js .reveal {
		opacity: 1;
		transform: none;
	}
}
