/**
 * T10 Ventures — Supplemental Styles
 * Only what theme.json cannot express.
 */

/* =====================================================================
   Global
   ===================================================================== */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Sticky footer — push footer to bottom on short pages */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > main {
	flex-grow: 1;
}

/* Remove default WP block margins that break the layout */
.wp-site-blocks > * + *,
.wp-site-blocks main > * + * {
	margin-top: 0;
}

/* Hidden elements (ready to unhide later) */
.t10-hidden {
	display: none !important;
}

/* =====================================================================
   Header
   ===================================================================== */

.t10-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	background: rgba(255, 255, 255, 0.88) !important;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.t10-header.scrolled {
	border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* Constrain logo height */
.t10-header .wp-block-site-logo img,
.t10-header .wp-block-site-logo .custom-logo {
	max-height: 24px !important;
	width: auto !important;
	height: auto !important;
}

.t10-header .wp-block-site-logo {
	line-height: 0;
}

/* Nav link hover */
.t10-header .wp-block-navigation a {
	transition: color 0.2s ease;
}

.t10-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--obsidian) !important;
}

/* CTA button in nav */
.t10-nav-cta a {
	transition: opacity 0.2s ease;
}

.t10-nav-cta a:hover {
	opacity: 0.85;
}

/* =====================================================================
   Hero
   ===================================================================== */

.t10-hero-sub {
	max-width: 640px;
}

/* =====================================================================
   Section Labels
   ===================================================================== */

.t10-section-label {
	font-size: 0.6875rem !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

/* =====================================================================
   Company Cards
   ===================================================================== */

.t10-company-card {
	transition: background-color 0.3s ease;
}

.t10-company-card:hover {
	background-color: rgba(255, 255, 255, 0.03);
}

.t10-company-tag {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 0.2rem 0.625rem;
	border-radius: 3px;
	color: rgba(255, 255, 255, 0.4);
}

/* =====================================================================
   About Pillars
   ===================================================================== */

.t10-pillar {
	border-top: 1.5px solid var(--wp--preset--color--obsidian);
}

.t10-headshot {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border-radius: 50%;
	filter: grayscale(100%) contrast(1.1);
	transition: filter 0.3s ease;
}

.t10-headshot:hover {
	filter: grayscale(0%) contrast(1);
}

/* =====================================================================
   Journey Timeline
   ===================================================================== */

.t10-journey-card {
	border-top: 1.5px solid var(--wp--preset--color--obsidian);
	padding-top: var(--wp--preset--spacing--30);
}

.t10-journey-stat {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: 0.25rem;
}

.t10-journey-label {
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--silver);
}

.t10-journey-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: var(--wp--preset--color--silver);
	padding-top: var(--wp--preset--spacing--30);
}

@media (max-width: 782px) {
	.t10-journey-arrow {
		transform: rotate(90deg);
		padding-top: 0;
	}
}

/* =====================================================================
   Step Numbers
   ===================================================================== */

.t10-step-number {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
	color: rgba(18, 18, 18, 0.05);
	margin-bottom: 0.5rem;
	font-family: var(--wp--preset--font-family--body);
}

/* =====================================================================
   Contact Form
   ===================================================================== */

.t10-form input,
.t10-form textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 5px;
	padding: 0.75rem 0.875rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	color: var(--wp--preset--color--white);
	outline: none;
	transition: border-color 0.3s ease;
}

.t10-form input::placeholder,
.t10-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

.t10-form input:focus,
.t10-form textarea:focus {
	border-color: rgba(255, 255, 255, 0.3);
}

.t10-form textarea {
	resize: vertical;
	min-height: 100px;
}

.t10-form label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 0.375rem;
}

.t10-form-submit {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.75rem 1.75rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--obsidian);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 600;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.t10-form-submit:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* =====================================================================
   CTA Buttons
   ===================================================================== */

.wp-block-button.t10-cta .wp-block-button__link {
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.wp-block-button.t10-cta .wp-block-button__link:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

/* =====================================================================
   Contact Email Link
   ===================================================================== */

.t10-contact-email {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.125rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	transition: border-color 0.2s ease;
}

.t10-contact-email:hover {
	border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* =====================================================================
   Dark Background Link Colors
   ===================================================================== */

.has-obsidian-background-color a:not(.wp-block-button__link):not(.t10-contact-email) {
	color: var(--wp--preset--color--silver);
}

.has-obsidian-background-color a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--white);
}

/* =====================================================================
   Footer
   ===================================================================== */

.t10-footer-logo img {
	opacity: 0.4;
	transition: opacity 0.2s ease;
}

.t10-footer-logo:hover img {
	opacity: 0.6;
}

.t10-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--silver);
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.t10-social-icon:hover {
	opacity: 1;
	color: var(--wp--preset--color--white);
}

/* =====================================================================
   Scroll Fade-in Animations
   ===================================================================== */

.t10-fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.t10-fade-in.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger children slightly */
.t10-fade-in + .t10-fade-in {
	transition-delay: 0.1s;
}

/* =====================================================================
   Case Study
   ===================================================================== */

/* Inline links in long-form content — subtle underline so they're discoverable */
.page-template-page-case-study-fairnow main p a:not(.wp-block-button__link):not(.t10-contact-email) {
	text-decoration: underline;
	text-decoration-color: rgba(18, 18, 18, 0.25);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s ease;
}

.page-template-page-case-study-fairnow main p a:not(.wp-block-button__link):not(.t10-contact-email):hover {
	text-decoration-color: rgba(18, 18, 18, 0.7);
}

.t10-cs-stat {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--obsidian);
}

.t10-cs-stat-label {
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--silver);
	margin-top: 0.375rem;
}

.t10-pullquote {
	margin: var(--wp--preset--spacing--40) 0;
	padding: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
	border-left: 3px solid var(--wp--preset--color--obsidian);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--obsidian);
}

/* Single photo — centered, ~60% of content width */
.t10-cs-figure {
	display: block;
	max-width: 480px;
	margin: var(--wp--preset--spacing--50) auto;
}

.t10-cs-figure img {
	width: 100%;
	height: auto;
	border-radius: 5px;
	display: block;
}

.t10-cs-figure figcaption {
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--wp--preset--color--silver);
	margin-top: 0.5rem;
	text-align: center;
}

/* Photo pair — two images side by side */
.t10-cs-photo-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--20);
	margin: var(--wp--preset--spacing--50) 0;
}

.t10-cs-photo-pair figure {
	margin: 0;
}

.t10-cs-photo-pair img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
	display: block;
}

.t10-cs-photo-pair figcaption {
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--wp--preset--color--silver);
	margin-top: 0.375rem;
}

@media (max-width: 600px) {
	.t10-cs-figure {
		max-width: 100%;
	}

	.t10-cs-photo-pair {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--30);
	}
}

.t10-video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: 6px;
}

.t10-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 6px;
}

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

@media (max-width: 782px) {
	.t10-form-row {
		grid-template-columns: 1fr !important;
	}

	.t10-header .wp-block-site-logo img,
	.t10-header .wp-block-site-logo .custom-logo {
		max-height: 20px !important;
	}

	.t10-step-number {
		font-size: 2.25rem;
	}
}
