/* ==========================================================================
   My Philosophy page
   Tokens follow the same pattern as the about page CSS the client provided:
   scoped to body.nd-philosophy-page, aliasing Astra global colour slots so
   the Customizer remains the source of truth, with hard fallbacks for
   when the variables are missing.
   ========================================================================== */

body.nd-philosophy-page {
	--ph-bg:           var(--ast-global-color-4, #f6f5ee);
	--ph-card:         var(--ast-global-color-5, #ffffff);
	--ph-ink:          var(--ast-global-color-2, #20201a);
	--ph-ink-soft:     var(--ast-global-color-3, #4f4f45);
	--ph-muted:        var(--ast-global-color-3, #8a8a7e);
	--ph-line:         var(--ast-global-color-6, #e7e6dd);

	--ph-accent:       var(--ast-global-color-0, #559da4);
	--ph-accent-hover: var(--ast-global-color-1, #437f86);
	--ph-on-accent:    var(--ast-global-color-5, #ffffff);

	--ph-radius:    18px;
	--ph-radius-sm: 10px;
	--ph-pill:      999px;
	--ph-maxw:      1160px;
	--ph-readw:     720px;

	/* Section backgrounds, override per page via SCF colour pickers if needed. */
	--ph-hero-bg:   var(--ast-global-color-0, #559da4);
	--ph-intro-bg:  var(--ast-global-color-4, #f6f5ee);
	--ph-slider-bg: #e9eef0;

	/* Decorative script face. Swap to your preferred font here. */
	--ph-script: 'Caveat', 'Brush Script MT', cursive;

	background: var(--ph-bg);
	color: var(--ph-ink);
}

/* ==========================================================================
   Page shell
   ========================================================================== */

.philosophy-page {
	/* Pull the main into a positioning context so the 100vw hero centres
	   correctly even when Astra wraps content in a constrained container. */
	position: relative;
}

/* ==========================================================================
   Section 2: Intro plus mantra
   Two columns on desktop, stacked on mobile. The mantra box is the visual
   anchor on the right: dashed border, eyebrow with an underline below it,
   centred italic text inside.
   ========================================================================== */

.philosophy-intro {
	background: var(--ph-intro-bg);
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.philosophy-intro__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	max-width: var(--ph-maxw);
	margin: 0 auto;
}

.philosophy-intro__title {
	margin: 0 0 1.25rem;
	color: var(--ph-ink);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	line-height: 1.2;
}

.philosophy-intro__body {
	color: var(--ph-ink-soft);
	font-size: 1rem;
	line-height: 1.75;
}

.philosophy-intro__body p {
	margin: 0 0 1.25rem;
}

.philosophy-intro__body p:last-child {
	margin-bottom: 0;
}

.philosophy-intro__body strong {
	color: var(--ph-ink);
	font-weight: 600;
}

/* ---- Mantra box ---------------------------------------------------------- */

.mantra-box {
	position: relative;
	max-width: 420px;
	margin: 0 auto;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
	background: transparent;
	border: 1.5px dashed var(--ph-accent);
	border-radius: var(--ph-radius);
	text-align: center;
	color: var(--ph-ink-soft);
}

.mantra-box__eyebrow {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ph-accent);
}

.mantra-box__eyebrow span {
	display: inline-block;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid currentColor;
}

.mantra-box__text {
	font-size: 1rem;
	font-style: italic;
	line-height: 1.7;
}

.mantra-box__text p {
	margin: 0 0 1rem;
}

.mantra-box__text p:last-child {
	margin-bottom: 0;
}

.mantra-box__text strong {
	font-style: normal;
	font-weight: 700;
	color: var(--ph-ink);
}

/* ==========================================================================
   Section 3: Steps slider
   ========================================================================== */

.ph-slider {
	background: var(--ph-slider-bg);
	padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.ph-slider__inner {
	max-width: var(--ph-maxw);
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.ph-slider__head {
	max-width: var(--ph-readw);
	margin: 0 auto clamp(1.5rem, 4vw, 3rem);
	text-align: center;
}

.ph-slider__heading {
	margin: 0 0 0.5rem;
	color: var(--ph-ink);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.15;
}

.ph-slider__intro {
	margin: 0;
	color: var(--ph-ink-soft);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.ph-slider__intro p {
	margin: 0;
}

/* ---- Viewport and track -------------------------------------------------- */

.ph-slider__viewport {
	overflow: hidden;
	border-radius: var(--ph-radius);
}

.ph-slider__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transform: translateX(calc(var(--ph-active, 0) * -100%));
	transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Slide --------------------------------------------------------------- */

.ph-slide {
	flex: 0 0 100%;
	min-width: 0;
}

.ph-slide__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4rem);
	background: var(--ph-card);
	padding: clamp(1.75rem, 4vw, 3.5rem);
	box-shadow: 0 24px 60px -32px rgba(31, 58, 60, 0.35);
	min-height: 100%;
}

.ph-slide__text {
	color: var(--ph-ink-soft);
}

.ph-slide__label {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--ph-accent);
	font-family: var(--ph-script);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
}

.ph-slide__title {
	margin: 0 0 0.35rem;
	color: var(--ph-ink);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ph-slide__subtitle {
	margin: 0 0 1.25rem;
	color: var(--ph-muted);
	font-size: 1rem;
	font-style: italic;
}

.ph-slide__body {
	font-size: 1rem;
	line-height: 1.75;
}

.ph-slide__body p {
	margin: 0 0 1rem;
}

.ph-slide__body p:last-child {
	margin-bottom: 0;
}

.ph-slide__body strong {
	color: var(--ph-accent-hover);
	font-weight: 600;
}

.ph-slide__media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ph-slide__image {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
}

/* ---- Controls ------------------------------------------------------------ */

.ph-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.ph-slider__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid var(--ph-line);
	border-radius: var(--ph-pill);
	background: var(--ph-card);
	color: var(--ph-accent-hover);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ph-slider__nav:hover {
	background: var(--ph-accent);
	border-color: var(--ph-accent);
	color: var(--ph-on-accent);
}

.ph-slider__nav:active {
	transform: scale(0.94);
}

.ph-slider__nav[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

.ph-slider__nav svg {
	width: 1.5rem;
	height: 1.5rem;
}

.ph-slider__dots {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ph-slider__dot {
	display: block;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: var(--ph-pill);
	background: var(--ph-line);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ph-slider__dot:hover {
	background: var(--ph-accent);
}

.ph-slider__dot.is-active {
	background: var(--ph-accent);
	transform: scale(1.35);
}

/* ---- Focus --------------------------------------------------------------- */

.ph-slider__nav:focus-visible,
.ph-slider__dot:focus-visible {
	outline: 2px solid var(--ph-accent-hover);
	outline-offset: 3px;
}

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

@media (max-width: 860px) {
	.philosophy-intro__inner {
		grid-template-columns: 1fr;
	}

	.mantra-box {
		max-width: 100%;
	}
}

@media (max-width: 720px) {
	.ph-slide__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.ph-slide__media {
		order: -1;
	}

	.ph-slide__image {
		max-width: 180px;
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.ph-slider__track,
	.ph-slider__nav,
	.ph-slider__dot {
		transition: none;
	}
}
