/*
Theme Name: 10X People.AI
Theme URI: https://10xpeople.ai/
Author: 10X People
Author URI: https://10xpeople.ai/
Description: Lightweight, pixel-perfect custom theme for the 10X People.AI marketing site. Built with Tailwind CSS, semantic HTML5, and the WordPress Customizer for fully editable content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tenx
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*
  All visual styling is compiled by Tailwind CSS into assets/css/main.css.
  This file exists for the WordPress theme header and any rare overrides
  that must live outside the Tailwind build.
*/

/* ── Site logo ────────────────────────────────────────────────────────────
   tenx_site_logo() wordmark (header, drawer, footer) and any WP custom logo.
   Height lives here because the compiled Tailwind build has no 50px utility. */
.tenx-logo,
.custom-logo {
	height: 50px;
	width: auto;
}

/* ── Layout override: wider desktop gutters ───────────────────────────────
   Compiled main.css gives .shell 2rem side padding at lg; widen to 4rem. */
@media (min-width: 1024px) {
	.shell {
		padding-left: 4rem;
		padding-right: 4rem;
	}
}

/* ── Motion: scroll-reveal ────────────────────────────────────────────────
   .tenx-reveal is added by assets/js/main.js (initScrollReveal), never by
   markup — without JS the page renders with no hidden state. Only opacity
   and transform animate (compositor-friendly, no layout work). */
.tenx-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
	transition-delay: var(--tenx-reveal-delay, 0ms);
}
.tenx-reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.tenx-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ── Book-a-Demo modal ────────────────────────────────────────────────────
   Markup rendered by tenx_demo_modal() (inc/template-tags.php), behavior in
   assets/js/main.js (initDemoModal). Reuses existing theme tokens only:
   #0b0b0c button black, #e7e8ee borders, #111/#555 text, pill radii. */
body.tenx-modal-open {
	overflow: hidden;
}
.tenx-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
/* display:flex above would beat Tailwind preflight's low-specificity
   [hidden]:where(...) rule, leaving an invisible full-viewport layer that
   swallows every click. Re-assert the hidden state at higher specificity. */
.tenx-modal[hidden],
.tenx-drawer[hidden] {
	display: none;
}
.tenx-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 11, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.25s ease-out;
}
.tenx-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #ffffff;
	border-radius: 24px;
	padding: 36px 32px 32px;
	box-shadow: 0 1px 2px rgba(16, 18, 40, 0.04), 0 24px 60px rgba(16, 18, 40, 0.18);
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;
	outline: none;
}
.tenx-modal.is-open .tenx-modal__overlay {
	opacity: 1;
}
.tenx-modal.is-open .tenx-modal__dialog {
	opacity: 1;
	transform: none;
}
.tenx-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #111111;
	cursor: pointer;
	transition: background-color 0.2s ease-out;
}
.tenx-modal__close:hover {
	background: #f2f3f7;
}
.tenx-modal__title {
	margin: 0 44px 0 0;
	font-family: 'Mona Sans', ui-sans-serif, system-ui, sans-serif;
	font-weight: 600;
	font-size: 28px;
	line-height: 1.15;
	color: #111111;
}
.tenx-modal__text {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: #555555;
}
.tenx-modal__body {
	margin-top: 22px;
}
.tenx-modal__hint {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #555555;
}
.tenx-modal__hint a {
	color: #111111;
	text-decoration: underline;
}

/* Video lightbox variant — wide dark shell, edge-to-edge player. */
.tenx-modal--video .tenx-modal__dialog {
	max-width: 960px;
	padding: 0;
	background: #0a0a0b;
	border-radius: 18px;
	overflow: hidden;
}
.tenx-modal--video .tenx-modal__close {
	z-index: 1;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
}
.tenx-modal--video .tenx-modal__close:hover {
	background: rgba(255, 255, 255, 0.24);
}
.tenx-modal__video {
	display: block;
	width: 100%;
	max-height: calc(100vh - 96px);
	outline: none;
}

/* Contact Form 7 fields inside the modal — match the theme's pill inputs. */
.tenx-modal__body form p {
	margin: 0 0 14px;
}
.tenx-modal__body label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #111111;
}
.tenx-modal__body .wpcf7-form-control-wrap {
	display: block;
}
.tenx-modal__body input[type="text"],
.tenx-modal__body input[type="email"],
.tenx-modal__body input[type="tel"] {
	width: 100%;
	padding: 12px 18px;
	border: 1px solid #e7e8ee;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	color: #111111;
	background: #ffffff;
	transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.tenx-modal__body textarea {
	width: 100%;
	min-height: 96px;
	padding: 12px 18px;
	border: 1px solid #e7e8ee;
	border-radius: 16px;
	font: inherit;
	font-size: 15px;
	color: #111111;
	background: #ffffff;
	transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.tenx-modal__body input:focus,
.tenx-modal__body textarea:focus {
	outline: none;
	border-color: #0b0b0c;
	box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.08);
}
.tenx-modal__body input[type="submit"],
.tenx-modal__body button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 4px;
	padding: 14px 24px;
	border: 0;
	border-radius: 999px;
	background: #0b0b0c;
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.2s ease-out;
}
.tenx-modal__body input[type="submit"]:hover,
.tenx-modal__body button[type="submit"]:hover {
	opacity: 0.88;
}

/* Validation + CF7 feedback states. */
.tenx-modal__body .tenx-field-error,
.tenx-modal__body .wpcf7-not-valid {
	border-color: #d92d20;
}
.tenx-modal__body .wpcf7-not-valid-tip {
	display: block;
	margin: 4px 0 0 18px;
	font-size: 12.5px;
	color: #d92d20;
}
.tenx-modal__body .wpcf7 form .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 10px 14px;
	border: 1px solid #e7e8ee;
	border-radius: 12px;
	font-size: 13.5px;
	color: #111111;
}
.tenx-modal__body .wpcf7-spinner {
	margin: 0 auto;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.tenx-modal__overlay,
	.tenx-modal__dialog {
		transition: none;
	}
}

/* ── Mobile navigation drawer ─────────────────────────────────────────────
   Markup after </header> in header.php, behavior in main.js
   (initMobileMenu). Theme tokens only: #0b0b0c CTA black, #111/#555 text,
   soft #f2f3f7 hairlines, pill radii, Mona Sans. */
body.tenx-drawer-open {
	overflow: hidden;
}
.tenx-drawer {
	position: fixed;
	inset: 0;
	z-index: 90;
}
.tenx-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 11, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.25s ease-out;
}
.tenx-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(84vw, 360px);
	display: flex;
	flex-direction: column;
	background: #ffffff;
	padding: 18px 22px 22px;
	box-shadow: -24px 0 60px rgba(16, 18, 40, 0.16);
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.32, 0.72, 0.33, 1);
	outline: none;
}
.tenx-drawer.is-open .tenx-drawer__overlay {
	opacity: 1;
}
.tenx-drawer.is-open .tenx-drawer__panel {
	transform: none;
}
.tenx-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f2f3f7;
}
.tenx-drawer__brand img {
	max-height: 50px;
	width: auto;
}
.tenx-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #111111;
	cursor: pointer;
	transition: background-color 0.2s ease-out;
}
.tenx-drawer__close:hover {
	background: #f2f3f7;
}
.tenx-drawer__nav {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px 0;
}
.tenx-drawer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tenx-drawer__nav li {
	margin: 2px 0;
	opacity: 0;
	transform: translateX(14px);
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.tenx-drawer.is-open .tenx-drawer__nav li {
	opacity: 1;
	transform: none;
}
/* Staggered cascade while opening only (closing snaps back instantly). */
.tenx-drawer.is-open .tenx-drawer__nav li:nth-child(1) { transition-delay: 0.05s; }
.tenx-drawer.is-open .tenx-drawer__nav li:nth-child(2) { transition-delay: 0.09s; }
.tenx-drawer.is-open .tenx-drawer__nav li:nth-child(3) { transition-delay: 0.13s; }
.tenx-drawer.is-open .tenx-drawer__nav li:nth-child(4) { transition-delay: 0.17s; }
.tenx-drawer.is-open .tenx-drawer__nav li:nth-child(5) { transition-delay: 0.21s; }
.tenx-drawer.is-open .tenx-drawer__nav li:nth-child(n+6) { transition-delay: 0.25s; }
.tenx-drawer__nav a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 14px;
	border-radius: 14px;
	font-family: 'Mona Sans', ui-sans-serif, system-ui, sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: #111111;
	transition: background-color 0.2s ease-out, transform 0.15s ease-out;
}
.tenx-drawer__nav a:hover {
	background: #f4f5f8;
}
.tenx-drawer__nav a:active {
	background: #eceef3;
	transform: scale(0.985);
}
.tenx-drawer__footer {
	padding-top: 16px;
	border-top: 1px solid #f2f3f7;
}
.tenx-drawer__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 14px 24px;
	border-radius: 999px;
	background: #0b0b0c;
	color: #ffffff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	transition: opacity 0.2s ease-out, transform 0.15s ease-out;
}
.tenx-drawer__cta:hover {
	opacity: 0.9;
}
.tenx-drawer__cta:active {
	transform: scale(0.985);
}
@media (prefers-reduced-motion: reduce) {
	.tenx-drawer__overlay,
	.tenx-drawer__panel,
	.tenx-drawer__nav li,
	.tenx-drawer__nav a,
	.tenx-drawer__cta {
		transition: none;
	}
	.tenx-drawer__nav li {
		opacity: 1;
		transform: none;
	}
}
@media (max-width: 640px) {
	.tenx-modal {
		padding: 16px;
	}
	.tenx-modal__dialog {
		padding: 30px 22px 24px;
		border-radius: 20px;
	}
	.tenx-modal__title {
		font-size: 24px;
	}
}
