/* Tanya the Empress — motifs & effects (tokens live in theme.json). */

::selection {
	background: rgba(201, 162, 74, 0.3);
	color: #fff;
}

html {
	scroll-behavior: smooth;
}

/* ---- Film grain + scanline overlays (site-wide, no extra DOM) ---- */
body::before,
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
}

body::before {
	z-index: 60;
	opacity: 0.07;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body::after {
	z-index: 59;
	opacity: 0.5;
	background-image: repeating-linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 0px,
		rgba(0, 0, 0, 0) 2px,
		rgba(0, 0, 0, 0.16) 3px
	);
}

/* Editor canvas: keep the texture out of the writing surface. */
.editor-styles-wrapper::before,
.editor-styles-wrapper::after {
	content: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	body::before,
	body::after {
		content: none;
	}

	* {
		animation: none !important;
	}

	.te-fork__bg,
	.te-fork__rule,
	.te-fork__cta::before,
	.te-fork__cta svg {
		transition: none;
	}

	.te-fork__bg {
		transform: none;
	}
}

/* ---- Gold gradient text ---- */
.te-gold-text {
	background: var(--wp--preset--gradient--gold-name);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 2px 14px rgba(201, 162, 74, 0.18));
}

.te-wordmark {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.2em;
	white-space: nowrap;
	background: linear-gradient(180deg, #f6e7b0, #c49a40);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---- Labels (mono eyebrows) ---- */
.te-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

/* ---- Header ---- */
.te-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(8, 8, 12, 0.82);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--custom--gold-border);
}

.te-nav {
	display: flex;
	gap: clamp(14px, 2vw, 28px);
}

.te-nav a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	transition: color 0.2s;
}

.te-nav a:hover {
	color: #f3dfa0;
}

.te-nav-primary {
	color: var(--wp--preset--color--gold-light) !important;
	font-weight: 700;
}

/* ---- Mobile nav toggle (hidden on desktop) ---- */
.te-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.te-nav-toggle__bar {
	display: block;
	width: 100%;
	height: 1.5px;
	background: var(--wp--preset--color--gold, #c9a24a);
	transition: transform 0.25s, opacity 0.25s;
}

.te-nav-toggle.is-open .te-nav-toggle__bar:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.te-nav-toggle.is-open .te-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.te-nav-toggle.is-open .te-nav-toggle__bar:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 980px) {
	.te-nav-toggle {
		display: flex;
		order: 3;
	}

	.te-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		background: rgba(8, 8, 12, 0.96);
		backdrop-filter: blur(8px);
		border-bottom: 1px solid var(--wp--custom--gold-border);
		transition: max-height 0.3s ease;
	}

	.te-nav.is-open {
		max-height: 420px;
	}

	.te-nav a {
		padding: 16px clamp(20px, 4vw, 56px);
		border-top: 1px solid rgba(201, 162, 74, 0.14);
	}

	body.tec-warm .te-nav {
		background: rgba(251, 246, 236, 0.97);
		border-bottom-color: var(--warm-border, rgba(156, 122, 46, 0.22));
	}

	body.tec-warm .te-nav a {
		border-top-color: var(--warm-border-soft, rgba(156, 122, 46, 0.14));
	}
}

@media (max-width: 520px) {
	.te-wordmark {
		letter-spacing: 0.12em;
		font-size: 12px;
	}
}

/* ---- Buttons: gold glow pill (default) + gold outline variant ---- */
.wp-block-button .wp-block-button__link {
	transition: box-shadow 0.25s, border-color 0.25s;
}

.wp-block-button .wp-block-button__link:hover {
	box-shadow: 0 0 30px rgba(201, 162, 74, 0.55);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.te-outline-btn .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(201, 162, 74, 0.5);
	color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.te-outline-btn .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--electric);
	box-shadow: none;
}

/* ---- Glyph divider band ---- */
.te-glyph-band {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
	padding: 16px;
	border-top: 1px solid rgba(201, 162, 74, 0.22);
	border-bottom: 1px solid rgba(201, 162, 74, 0.22);
	background: linear-gradient(
		90deg,
		rgba(39, 71, 176, 0.06),
		rgba(201, 162, 74, 0.06),
		rgba(39, 71, 176, 0.06)
	);
	color: var(--wp--preset--color--text-dim);
	font-size: 18px;
	letter-spacing: 0.5em;
}

/* ---- Section eyebrow rule (label + fading line) ---- */
.te-rule {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(201, 162, 74, 0.5), transparent);
}

/* ---- Signature ---- */
.te-signature {
	font-family: var(--wp--preset--font-family--script);
	font-weight: 700;
	font-size: 56px;
	line-height: 0.8;
	color: var(--wp--preset--color--gold-light);
}

/* ---- Hero backdrop ---- */
.te-hero {
	background:
		radial-gradient(120% 90% at 78% 12%, rgba(39, 71, 176, 0.22), transparent 48%),
		radial-gradient(80% 70% at 10% 90%, rgba(201, 162, 74, 0.14), transparent 55%),
		var(--wp--preset--color--ink);
}

/* ---- Shared tanya block furniture: made theme-wide so any block can use it
   on any page, regardless of which other blocks happen to be present. ---- */
.tec-eyebrow-row {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 44px;
}

.tec-eyebrow {
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--wp--preset--color--electric, #46e0a0);
}

.tec-rule {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(201, 162, 74, 0.5), transparent);
}

.tec-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	transition: box-shadow 0.25s, border-color 0.25s;
}

.tec-btn--glow {
	background: linear-gradient(180deg, #e8c879, #c49a40);
	color: #1a1404;
}

.tec-btn--glow:hover {
	color: #1a1404;
	box-shadow: 0 0 30px rgba(201, 162, 74, 0.55);
}

.tec-btn--outline {
	border: 1px solid rgba(201, 162, 74, 0.5);
	color: var(--wp--preset--color--text, #e9e2cf);
}

.tec-btn--outline:hover {
	color: var(--wp--preset--color--text, #e9e2cf);
	border-color: var(--wp--preset--color--electric, #46e0a0);
}

/* ---- Fork doorways ----
   Homepage hero routes into three full-height panels, structurally modeled
   on a Land Rover style panel fork (see tanya/fork block render.php). ---- */
.te-fork {
	display: flex;
	width: 100%;
	border-top: 3px solid var(--wp--preset--color--gold, #c9a24a);
}

.te-fork__panel {
	position: relative;
	flex: 1;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	background: var(--wp--preset--color--ink, #08080c);
}

.te-fork__panel + .te-fork__panel::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: linear-gradient(to bottom, #c9a24a 0%, rgba(201, 162, 74, 0.35) 40%, transparent 100%);
	z-index: 3;
	pointer-events: none;
}

.te-fork__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.06);
	filter: brightness(0.75) saturate(0.9);
	transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.9s;
}

.te-fork__bg--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(80% 70% at 50% 30%, rgba(201, 162, 74, 0.18), transparent 60%),
		var(--wp--preset--color--ink, #08080c);
}

.te-fork__bg--empty svg {
	width: min(320px, 60%);
	opacity: 0.14;
}

.te-fork__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(7, 7, 9, 0.92) 0%, rgba(7, 7, 9, 0.35) 45%, rgba(7, 7, 9, 0.15) 100%);
	transition: background 0.5s;
}

.te-fork__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(24px, 3vw, 48px);
	min-height: clamp(150px, 14vw, 190px);
	padding: 0 clamp(24px, 3vw, 48px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	z-index: 2;
}

.te-fork__rule {
	width: 32px;
	height: 1px;
	background: var(--wp--preset--color--gold, #c9a24a);
	opacity: 0.7;
	transition: width 0.45s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.45s;
}

.te-fork__eyebrow {
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted, #a99f86);
	margin: 0;
}

.te-fork__title {
	font-family: var(--wp--preset--font-family--display, Cinzel, serif);
	font-size: clamp(26px, 2.6vw, 40px);
	line-height: 1.04;
	margin: 0;
	background: var(--wp--preset--gradient--gold-name);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 2px 14px rgba(201, 162, 74, 0.18));
}

.te-fork__actions {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 8px;
	min-height: 46px;
	flex-wrap: wrap;
}

.te-fork__cta {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid var(--wp--custom--gold-border, rgba(201, 162, 74, 0.4));
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-light, #e8c879);
	text-decoration: none;
	transition: border-color 0.3s, color 0.3s;
}

.te-fork__cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--gold, #c9a24a);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 0;
}

.te-fork__cta:hover::before {
	transform: scaleX(1);
}

.te-fork__cta:hover {
	color: var(--wp--preset--color--ink, #08080c);
}

.te-fork__cta span,
.te-fork__cta svg {
	position: relative;
	z-index: 1;
}

.te-fork__cta svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.28s ease;
}

.te-fork__cta:hover svg {
	transform: translateX(3px);
}

.te-fork__cta--alt {
	border-color: rgba(201, 162, 74, 0.25);
	color: var(--wp--preset--color--text, #e9e2cf);
}

.te-fork__panel:hover .te-fork__bg {
	transform: scale(1);
	filter: brightness(0.88) saturate(1.05);
}

.te-fork__panel:hover .te-fork__rule {
	width: 64px;
	opacity: 1;
}

.te-fork__panel:hover .te-fork__overlay {
	background: linear-gradient(to top, rgba(7, 7, 9, 0.86) 0%, rgba(7, 7, 9, 0.28) 45%, rgba(7, 7, 9, 0.1) 100%);
}

@media (max-width: 700px) {
	.te-fork {
		flex-direction: column;
	}

	.te-fork__panel {
		height: 60vw;
		min-height: 280px;
	}

	.te-fork__panel + .te-fork__panel::before {
		left: 0;
		top: 0;
		right: 0;
		bottom: auto;
		width: 100%;
		height: 1px;
		background: linear-gradient(to right, #c9a24a 0%, rgba(201, 162, 74, 0.35) 60%, transparent 100%);
	}
}

@media (max-width: 480px) {
	.te-fork__panel {
		height: 72vw;
		min-height: 260px;
	}

	.te-fork__content {
		bottom: 20px;
		min-height: auto;
		padding: 0 16px;
	}
}

/* ==========================================================================
   Warm mode — Coaching, T60awareness, and the Blog read "the real person
   teaching" rather than the homepage's dark alter-ego stage persona. Applied
   via a single `tec-warm` body class (see includes/warm-mode.php); every
   rule below is scoped under it so the homepage is untouched.
   ========================================================================== */

body.tec-warm {
	--warm-bg: #fbf6ec;
	--warm-bg-2: #f3ecdc;
	--warm-bg-3: #ede3ce;
	--warm-card: rgba(255, 252, 244, 0.6);
	--warm-text-primary: #2a2318;
	--warm-text-secondary: #6b5b3e;
	--warm-text-tertiary: #9c8c68;
	--warm-border: rgba(156, 122, 46, 0.22);
	--warm-border-soft: rgba(156, 122, 46, 0.14);
	--warm-border-mid: rgba(156, 122, 46, 0.38);
	--warm-accent: #c9724a;

	background: var(--warm-bg);
	color: var(--warm-text-primary);
}

body.tec-warm::before {
	opacity: 0.03;
}

body.tec-warm::after {
	opacity: 0.12;
}

/* ---- Header ---- */
body.tec-warm .te-header {
	background: rgba(251, 246, 236, 0.86);
	border-bottom-color: var(--warm-border);
}

body.tec-warm .te-wordmark {
	background: none;
	-webkit-text-fill-color: initial;
	color: var(--gold-deep, #9c7a2e);
}

body.tec-warm .te-nav a {
	color: var(--warm-text-secondary);
}

body.tec-warm .te-nav a:hover {
	color: var(--warm-accent);
}

/* ---- Footer ---- */
body.tec-warm footer.has-ink-3-background-color {
	background-color: var(--warm-bg-3) !important;
	border-top-color: var(--warm-border) !important;
}

body.tec-warm footer .te-signature {
	color: var(--gold-deep, #9c7a2e);
}

body.tec-warm footer a,
body.tec-warm footer div {
	color: var(--warm-text-tertiary) !important;
}

/* ---- Hero (used as the page hero on Coaching / T60awareness) ---- */
body.tec-warm .tec-hero {
	background:
		radial-gradient(120% 90% at 78% 12%, rgba(201, 114, 74, 0.14), transparent 48%),
		radial-gradient(80% 70% at 10% 90%, rgba(201, 162, 74, 0.14), transparent 55%),
		var(--warm-bg);
}

body.tec-warm .tec-hero__tagline {
	color: var(--warm-text-secondary);
}

body.tec-warm .tec-hero__frame {
	background:
		linear-gradient(var(--warm-bg-2), var(--warm-bg-2)) padding-box,
		linear-gradient(160deg, #f6e7b0, #9c7a2e 50%, var(--warm-accent)) border-box;
	box-shadow: 0 0 60px rgba(201, 114, 74, 0.16), inset 0 0 40px rgba(0, 0, 0, 0.08);
}

body.tec-warm .tec-hero__photo--empty {
	background: radial-gradient(80% 70% at 50% 25%, rgba(201, 114, 74, 0.18), transparent 60%), var(--warm-bg-3);
}

body.tec-warm .tec-hero__scroll-cue {
	color: var(--warm-text-tertiary);
}

/* ---- Comparison cards ---- */
body.tec-warm .tec-compare {
	background: var(--warm-bg-2);
}

body.tec-warm .tec-compare__heading {
	color: var(--warm-text-primary);
}

body.tec-warm .tec-compare__intro {
	color: var(--warm-text-secondary);
}

body.tec-warm .tec-compare__card {
	background: var(--warm-card);
	border-color: var(--warm-border);
}

body.tec-warm .tec-compare__card h3 {
	color: var(--warm-text-primary);
}

body.tec-warm .tec-compare__bullets li {
	color: var(--warm-text-secondary);
}

body.tec-warm .tec-compare__bullets li::before {
	color: var(--warm-accent);
}

/* ---- Coaching cards ---- */
body.tec-warm .tec-coaching {
	background: var(--warm-bg-2);
}

body.tec-warm .tec-coaching__heading {
	background: linear-gradient(176deg, #c9a24a 0%, #9c7a2e 55%, #7a5c22 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

body.tec-warm .tec-coaching__intro {
	color: var(--warm-text-secondary);
}

body.tec-warm .tec-coaching__card {
	background: var(--warm-card);
	border-color: var(--warm-border);
}

body.tec-warm .tec-coaching__card svg {
	stroke: var(--warm-accent);
}

body.tec-warm .tec-coaching__card h3 {
	color: var(--warm-text-primary);
}

body.tec-warm .tec-coaching__card p {
	color: var(--warm-text-secondary);
}

/* ---- Fork doorways ---- */
body.tec-warm .te-fork__panel {
	background: var(--warm-bg-3);
}

body.tec-warm .te-fork__overlay {
	background: linear-gradient(to top, rgba(251, 246, 236, 0.9) 0%, rgba(251, 246, 236, 0.25) 45%, rgba(251, 246, 236, 0.05) 100%);
}

body.tec-warm .te-fork__eyebrow {
	color: var(--warm-text-secondary);
}

/* ---- Glyph divider ---- */
body.tec-warm .tec-glyph-band {
	background: linear-gradient(90deg, rgba(201, 114, 74, 0.06), rgba(201, 162, 74, 0.08), rgba(201, 114, 74, 0.06));
	border-top-color: var(--warm-border);
	border-bottom-color: var(--warm-border);
	color: var(--warm-text-tertiary);
}

/* ---- Outline button: swap the electric-mint hover for warm terracotta ---- */
body.tec-warm .tec-btn--outline {
	color: var(--warm-text-primary);
}

body.tec-warm .tec-btn--outline:hover {
	color: var(--warm-text-primary);
	border-color: var(--warm-accent);
}

/* ---- WP core block colors used on these pages ---- */
body.tec-warm .te-gold-text {
	background: linear-gradient(176deg, #c9a24a 0%, #9c7a2e 55%, #7a5c22 100%) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
}

body.tec-warm .has-electric-color {
	color: var(--warm-accent) !important;
}

body.tec-warm .has-text-muted-color {
	color: var(--warm-text-secondary) !important;
}

body.tec-warm .has-text-dim-color {
	color: var(--warm-text-tertiary) !important;
}

body.tec-warm .wp-block-details summary {
	color: var(--warm-text-primary);
}

body.tec-warm .wp-block-details p {
	color: var(--warm-text-secondary);
}

/* ---- Chat widget: reads warm when opened from a warm page ---- */
body.tec-warm .tec-chat__panel {
	background: var(--warm-bg-2);
	border-color: var(--warm-border-mid);
}

body.tec-warm .tec-chat__header {
	background: rgba(201, 114, 74, 0.08);
	border-bottom-color: var(--warm-border);
	color: var(--gold-deep, #9c7a2e);
}

body.tec-warm .tec-chat__close {
	color: var(--warm-text-tertiary);
}

body.tec-warm .tec-chat__msg--assistant {
	background: rgba(201, 162, 74, 0.12);
	color: var(--warm-text-primary);
	border-color: var(--warm-border);
}

body.tec-warm .tec-chat__msg--user {
	background: rgba(201, 114, 74, 0.12);
	color: var(--warm-text-primary);
	border-color: rgba(201, 114, 74, 0.3);
}

body.tec-warm .tec-chat__input {
	background: rgba(255, 252, 244, 0.7);
	color: var(--warm-text-primary);
	border-color: var(--warm-border-mid);
}

body.tec-warm .tec-chat__input:focus {
	border-color: var(--warm-accent);
}

/* ---- Hero banner (full-bleed variant, used on the band page) ---- */
.tec-hero--banner {
	display: block;
	position: relative;
	min-height: min(88svh, 780px);
	overflow: hidden;
}

.tec-hero-banner__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: brightness(0.92) saturate(0.95);
}

.tec-hero-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(7, 7, 9, 0.94) 0%, rgba(7, 7, 9, 0.55) 30%, rgba(7, 7, 9, 0.08) 62%, rgba(7, 7, 9, 0.12) 100%);
}

.tec-hero-banner__content {
	position: absolute;
	inset: 0;
	padding: clamp(24px, 4vw, 64px);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
}

.tec-hero--banner .tec-hero__tagline {
	margin-left: auto;
	margin-right: auto;
	max-width: 620px;
}

.tec-hero--banner .tec-hero__ctas {
	justify-content: center;
}

@media (max-width: 700px) {
	.tec-hero--banner {
		min-height: 62svh;
	}
}
