/*
Theme Name: TheraKinesis Custom
Theme URI: https://therakinesislab.life/
Author: Antigravity
Author URI: https://therakinesislab.life/
Description: A bespoke, ultra-fast, hand-coded theme built exclusively for TheraKinesisLab.
Version: 2.0.0
License: Proprietary
Text Domain: therakinesis
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
	--font-heading: 'Cormorant Garamond', serif;
	--font-body: 'Commissioner', sans-serif;

	/* 2026 dark redesign: the site has no light surface anywhere now, so the
	   "cream/warm" and "dark/deep" token pairs collapse to the same two
	   near-black tones — names kept as-is to avoid a 200+ call-site rename. */
	--bg-cream: #080907;
	--bg-warm: #0B0C0A;
	--bg-dark: #080907;
	--bg-deep: #0B0C0A;

	--text-dark: #EDEAE4;
	--text-body: #B5B0A5;
	--text-light: #9A9589;
	--text-on-dark: #EDEAE4;
	--text-on-dark-muted: #A8A398;

	--accent: #A8785E;
	--accent-rgb: 168, 120, 94;
	--accent-hover: #C99B7E;
	--accent-text: #A8785E;
	--accent-brass: #A8785E;
	--accent-brass-rgb: 168, 120, 94;
	--error: #B05252;
	--error-rgb: 176, 82, 82;
	/* Lighter than --error specifically for text on dark backgrounds — --error itself
	   is 3.97:1 on --bg-cream, below WCAG AA 4.5:1 for normal-size text. */
	--error-text: #C97070;
	--ink-on-brass: #14100C;

	--border: rgba(237, 234, 228, 0.14);
	--border-dark: rgba(255, 255, 255, 0.08);

	--section-py: 120px;
	--heading-xl: clamp(2.8rem, 5.5vw, 4.8rem);
	--heading-lg: clamp(2rem, 3.8vw, 3rem);
	--heading-md: clamp(1.3rem, 2.2vw, 1.8rem);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	--container-width: 1200px;
	--container-pad: 48px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-body);
	background: var(--bg-cream);
	color: var(--text-dark);
	overflow-x: hidden;
	line-height: 1.6;
}

img, picture, video { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.3s; }

/* Global focus ring — keyboard nav only, matches brand accent */
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* Skip-to-content link — screen reader + keyboard users only */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.skip-link:focus {
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	padding: 12px 24px;
	background: var(--bg-cream);
	color: var(--accent-text);
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	z-index: 9999;
	border: 2px solid var(--accent);
	outline: none;
}

/* Screen reader text — visually hidden but accessible to assistive tech and search crawlers */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.15;
}

h1 { font-size: var(--heading-xl); }
h2 { font-size: var(--heading-lg); }
h3 { font-size: var(--heading-md); }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}

/* Prevent any child element from causing horizontal scroll — catches iOS Safari edge cases */
#page-wrapper { overflow-x: clip; }

.section { padding: var(--section-py) 0; position: relative; }
.section + .section { padding-top: 64px; }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--deep { background: var(--bg-deep); color: var(--text-on-dark); }

/* ==========================================================================
   Shared Typography Patterns
   ========================================================================== */
.section-label {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent-text);
	margin-bottom: 16px;
}

.section-label::before {
	content: '';
	width: 32px;
	height: 1.5px;
	background: var(--accent-text);
	flex-shrink: 0;
}

.section-heading {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--heading-lg);
	line-height: 1.15;
	margin-bottom: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-fill,
.btn-outline,
.btn-solid {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 14px 32px;
	border-radius: 100px;
	cursor: pointer;
	transition: color 0.4s var(--ease);
	position: relative;
}

.btn-fill {
	border: 1.5px solid var(--accent);
	color: var(--accent);
	overflow: hidden;
}
.btn-fill::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ease);
	z-index: 0;
}
.btn-fill:hover::before { transform: scaleX(1); }
.btn-fill:hover { color: var(--bg-dark); }
.btn-fill > * { position: relative; z-index: 1; }

.btn-outline {
	border: 1.5px solid var(--border);
	color: var(--text-body);
	font-weight: 500;
	letter-spacing: 0.06em;
	transition: border-color 0.3s, color 0.3s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-solid {
	background: var(--accent);
	color: var(--bg-dark);
	border: 1.5px solid var(--accent);
}
.btn-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.js-reveal {
	opacity: 0;
	transform: translateY(44px);
	transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
	transition-delay: var(--delay, 0s);
}
.js-reveal.is-visible { opacity: 1; transform: none; }

.js-reveal-left {
	opacity: 0;
	transform: translateX(-44px);
	transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
	transition-delay: var(--delay, 0s);
}
.js-reveal-left.is-visible { opacity: 1; transform: none; }

@keyframes pulse {
	0%, 100% { opacity: 0.4; transform: scale(0.8); }
	50% { opacity: 1; transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
