/**
 * Component: About Page Stylesheet
 * Contains layouts, spacing, cards, stats strip, custom animations styles, and responsive queries.
 *
 * @package Vantage_Journeys
 */

/* ─────────────────────────────────────────────────────────────
   Section 1: About Hero
   ───────────────────────────────────────────────────────────── */
.vj-about-hero {
	margin-inline: 8px;
	margin-block-start: var(--space-md, 24px);
	position: relative;
	z-index: 1;
}

.vj-about-hero__wrapper {
	position: relative;
	z-index: 1;
	background-color: var(--surface-brand-default);
	border-radius: 15px;
	padding-block: var(--padding-xl);
	overflow: hidden;
}

.vj-about-hero__breadcrumbs {
	font-family: var(--font-family-body);
	font-size: var(--fs-xs, 12px);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-block-end: var(--space-lg);
	color: rgba(255, 255, 255, 0.7);
}

.vj-about-hero__breadcrumbs a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color var(--transition-fast, 0.2s);
}

.vj-about-hero__breadcrumbs a:hover {
	color: var(--color-brand-secondary);
}

.vj-about-hero__breadcrumbs-separator {
	margin-inline: var(--space-2xs);
	color: rgba(255, 255, 255, 0.4);
}

.vj-about-hero__breadcrumbs-current {
	color: var(--color-white);
	font-weight: 600;
}

.vj-about-hero__eyebrow {
	display: block;
	font-family: var(--font-family-accent);
	font-size: var(--type-h3);
	font-weight: 700;
	color: var(--color-brand-secondary);
	margin-block-end: var(--space-xs);
}

.vj-about-hero__title {
	font-family: var(--font-family-primary);
	font-size: clamp(28px, 4.5vw, 56px);
	font-weight: var(--font-weight-extrabold, 800);
	line-height: var(--lh-tight, 1.2);
	color: var(--color-white);
	max-width: 900px;
	margin-inline: auto;
	margin-block-end: var(--space-md);
}

.vj-about-hero__lead {
	font-family: var(--font-family-body);
	font-size: clamp(16px, 1.25vw, 20px);
	line-height: var(--lh-relaxed, 1.6);
	color: var(--color-neutral-50);
	max-width: 760px;
	margin-inline: auto;
	margin-block-end: 0;
}

/* ─────────────────────────────────────────────────────────────
   Section 2: Who We Are
   ───────────────────────────────────────────────────────────── */
.vj-about-who {
	padding-block: var(--space-2xl);
	background-color: var(--surface-grey-default);
}

.vj-about-who__eyebrow {
	display: block;
	font-family: var(--font-family-accent);
	font-size: var(--type-h2);
	font-weight: 600;

	letter-spacing: var(--ls-wider, 0.05em);
	color: var(--color-brand-secondary);
	margin-block-end: var(--space-xs);
}

.vj-about-who__title {
	font-family: var(--font-family-primary);
	font-size: clamp(24px, 3.5vw, 42px);
	font-weight: var(--font-weight-extrabold, 800);
	line-height: var(--lh-tight, 1.25);
	color: var(--color-brand-primary);
	margin-block-end: var(--space-md);
}

.vj-about-who__text p {
	font-family: var(--font-family-body);
	font-size: var(--font-size-md, 16px);
	line-height: var(--lh-relaxed, 1.6);
	color: var(--color-text-secondary);
	margin-block-end: var(--space-md);
}

.vj-about-who__text p:last-child {
	margin-block-end: 0;
}

.vj-about-who__gallery {
	position: relative;
	max-width: 540px;
	margin-inline: auto;
	padding-block-end: 40px;
}

.vj-about-who__gallery-row {
	display: flex;
	gap: var(--space-md, 24px);
}

.vj-about-who__gallery-col {
	flex: 1;
}

.vj-about-who__gallery-col--right {
	margin-block-start: var(--space-xl, 48px);
}

.vj-about-who__img-box {
	position: relative;
	border-radius: var(--radius-xl, 20px);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.vj-about-who__img-box img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: var(--radius-xl, 20px);
	transition: transform var(--duration-base, 0.4s) var(--ease-standard);
}

.vj-about-who__img-box:hover img {
	transform: scale(1.03);
}

/* Overlapping destinations badge */
.vj-about-who__badge {
	position: absolute;
	bottom: 0px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	width: 90%;
	max-width: 290px;
	background-color: var(--color-brand-secondary);
	color: var(--color-white);
	border-radius: var(--radius-lg, 16px);
	padding: var(--space-md, 20px);
	box-shadow: var(--shadow-lg);
	text-align: left;
}

.vj-about-who__badge-title {
	font-family: var(--font-family-primary);
	font-size: var(--fs-sm, 14px);
	font-weight: 700;
	line-height: var(--lh-snug, 1.35);
	color: var(--color-white);
	margin: 0 0 var(--space-xs, 12px) 0;
}

.vj-about-who__flags {
	display: flex;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
}

.vj-about-who__flags li {
	margin-inline-start: -8px;
	flex-shrink: 0;
}

.vj-about-who__flags li:first-child {
	margin-inline-start: 0;
}

.vj-about-who__flags img {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-pill, 9999px);
	border: 2px solid var(--color-white);
	object-fit: cover;
	display: block;
}

/* ─────────────────────────────────────────────────────────────
   Section 3: Why Choose Us
   ───────────────────────────────────────────────────────────── */
.vj-about-why {
	padding-block: var(--space-2xl);
	background-color: var(--surface-grey-subtle);
	overflow: hidden;
}

@media screen and (min-width: 1024px) {
	.vj-about-why {
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

.vj-about-why__header {
	text-align: center;
	margin-block-end: var(--space-xl);
}

.vj-about-why__eyebrow {
	display: block;
	font-family: var(--font-family-accent);
	font-size: var(--type-h2);
	font-weight: 600;
	letter-spacing: var(--ls-wider);
	color: var(--color-brand-secondary);
	margin-block-end: var(--space-xs);
}

.vj-about-why__title {
	font-family: var(--font-family-primary);
	font-size: clamp(24px, 3.5vw, 42px);
	font-weight: var(--font-weight-extrabold);
	line-height: var(--lh-tight);
	color: var(--color-brand-primary);
	margin-block-end: var(--space-md);
}

.vj-about-why__track {
	display: flex;
	gap: var(--space-lg);
}

.vj-about-why__card {
	position: relative;
	background-color: var(--surface-brand-default);
	border-radius: var(--radius-xl);
	padding: var(--space-2xl) var(--space-xl);
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	overflow: hidden;
}

.vj-about-why__card-number {
	position: absolute;
	top: var(--space-lg);
	right: var(--space-xl);
	font-family: var(--font-family-primary);
	font-size: var(--fs-7xl);
	font-weight: var(--fw-extrabold);
	color: var(--color-text-on-brand);
	opacity: 0.1;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.vj-about-why__card-icon-box {
	width: var(--space-3xl);
	height: var(--space-3xl);
	background-color: var(--color-brand-secondary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-on-secondary);
	margin-block-end: var(--space-lg);
	flex-shrink: 0;
}

.vj-about-why__card-icon {
	width: var(--space-xl);
	height: var(--space-xl);
}

.vj-about-why__card-title {
	font-family: var(--font-family-primary);
	font-size: var(--fs-xl);
	font-weight: var(--fw-bold);
	color: var(--color-text-on-brand);
	margin-block-end: var(--space-sm);
}

.vj-about-why__card-desc {
	font-family: var(--font-family-body);
	font-size: var(--fs-base);
	line-height: var(--lh-relaxed);
	color: color-mix(in srgb, var(--color-text-on-brand) 80%, transparent);
	margin: 0;
}

/* ── Desktop: horizontal scroll cards ── */
@media screen and (min-width: 1024px) {
	.vj-about-why__card {
		min-width: 40vw;
		max-width: 40vw;
		min-height: clamp(280px, 20vw, 400px);
	}
}

/* ── Mobile: vertical stack ── */
@media screen and (max-width: 1023px) {
	.vj-about-why__track {
		flex-direction: column;
		gap: var(--space-md);
	}

	.vj-about-why__card {
		padding: var(--space-xl) var(--space-lg);
	}

	.vj-about-why__card-number {
		font-size: var(--fs-5xl);
	}
}

/* ─────────────────────────────────────────────────────────────
   Section 4: Stats Row
   ───────────────────────────────────────────────────────────── */
.vj-about-stats {
	background-color: var(--surface-secondary-default);
	padding-block: var(--space-xl);
	position: relative;
	overflow: hidden;
}

.vj-about-stats__wrapper {
	position: relative;
	z-index: 2;
}

.vj-about-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.vj-about-stats__number-wrapper {
	display: inline-flex;
	align-items: baseline;
	color: var(--color-text-inverse);
	font-family: var(--font-family-primary);
	font-size: clamp(36px, 4vw, 52px);
	font-weight: 800;
	line-height: 1;
	margin-block-end: var(--space-2xs);
}

.vj-about-stats__number {
	will-change: content;
}

.vj-about-stats__suffix {
	margin-inline-start: 1px;
}

.vj-about-stats__label {
	font-family: var(--font-family-body);
	font-size: var(--fs-xs, 12px);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.7);
}

.vj-about-stats__divider {
	width: 1px;
	height: 60px;
	background: linear-gradient(to bottom, transparent, rgb(253, 250, 250), transparent);
	margin-inline: var(--space-md);
}

/* ─────────────────────────────────────────────────────────────
   Section 5: How We Work — Connected Timeline
   ───────────────────────────────────────────────────────────── */
.vj-about-process {
	padding-block: var(--space-2xl);
	background-color: var(--surface-grey-subtle);
}

.vj-about-process__header {
	text-align: center;
	max-width: var(--container-sm);
	margin-inline: auto;
	margin-block-end: var(--space-2xl);
}

.vj-about-process__eyebrow {
	display: block;
	font-family: var(--font-family-accent);
	font-size: var(--type-h2);
	font-weight: 600;
	letter-spacing: var(--ls-wider);
	color: var(--color-brand-secondary);
	margin-block-end: var(--space-xs);
}

.vj-about-process__title {
	font-family: var(--font-family-primary);
	font-size: clamp(24px, 3.5vw, 42px);
	font-weight: var(--font-weight-extrabold);
	line-height: var(--lh-tight);
	color: var(--color-brand-primary);
	margin-block-end: var(--space-md);
}

.vj-about-process__lead {
	font-family: var(--font-family-body);
	font-size: var(--fs-lg);
	line-height: var(--lh-relaxed);
	color: var(--color-text-secondary);
	margin: 0;
}

/* ── Timeline container ── */
.vj-about-process__timeline {
	position: relative;
	max-width: 1080px;
	margin-inline: auto;
}

/* ── Central vertical line (starts hidden, GSAP reveals on scroll) ── */
.vj-about-process__line {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%) scaleY(0);
	width: 3px;
	height: 100%;
	background: var(--color-brand-secondary);
	border-radius: var(--radius-pill);
	opacity: 0.35;
	transform-origin: top center;
}

/* ── Step row ── */
.vj-process-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	width: 50%;
	padding-block-end: var(--space-xl);
}

/* Left steps: align to the left, padding-right for card space */
.vj-process-step[data-step-side="left"] {
	left: 0;
	padding-inline-end: var(--space-xl);
	justify-content: flex-end;
}

/* Right steps: align to the right, padding-left for card space */
.vj-process-step[data-step-side="right"] {
	left: 50%;
	padding-inline-start: var(--space-xl);
}

/* ── Node on the timeline ── */
.vj-process-step__node {
	position: absolute;
	top: var(--space-sm);
	width: 48px;
	height: 48px;
	background: var(--surface-secondary-default);
	border: 4px solid var(--surface-grey-subtle);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	box-shadow: var(--shadow-md);
}

.vj-process-step__node span {
	font-family: var(--font-family-primary);
	font-size: var(--fs-sm);
	font-weight: var(--fw-extrabold);
	color: var(--color-text-on-secondary);
	line-height: 1;
}

/* Left steps: node on the right edge */
.vj-process-step[data-step-side="left"] .vj-process-step__node {
	right: -24px;
}

/* Right steps: node on the left edge */
.vj-process-step[data-step-side="right"] .vj-process-step__node {
	left: -24px;
}

/* ── Connector line from node to card (hidden until GSAP triggers) ── */
.vj-process-step__connector {
	position: absolute;
	top: calc(50% - 1px);
	width: var(--space-xl);
	height: 2px;
	background: var(--color-brand-secondary);
	transform: scaleX(0);
	transform-origin: center;
	opacity: 0.6;
}

.vj-process-step[data-step-side="left"] .vj-process-step__connector {
	right: 100%;
	left: auto;
	transform-origin: right center;
}

.vj-process-step[data-step-side="right"] .vj-process-step__connector {
	left: 100%;
	right: auto;
	transform-origin: left center;
}

/* ── Card ── */
.vj-process-step__card {
	position: relative;
	z-index: 3;
	background-color: var(--surface-grey-default);
	border-radius: var(--radius-xl);
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-grey-subtle);
	transition: transform var(--duration-base) var(--ease-standard),
				box-shadow var(--duration-base) var(--ease-standard);
	width: 100%;
	display: flex;
	gap: var(--space-md);
	align-items: flex-start;
}

.vj-process-step__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

/* ── Accent border pointing toward timeline ── */
.vj-process-step[data-step-side="left"] .vj-process-step__card {
	border-inline-end: 3px solid var(--color-brand-secondary);
}

.vj-process-step[data-step-side="right"] .vj-process-step__card {
	border-inline-start: 3px solid var(--color-brand-secondary);
}

/* ── Icon box ── */
.vj-process-step__icon-box {
	width: var(--space-xl);
	height: var(--space-xl);
	background-color: var(--surface-brand-subtle);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-brand-primary);
	flex-shrink: 0;
}

.vj-process-step__icon {
	width: var(--space-lg);
	height: var(--space-lg);
}

/* ── Content ── */
.vj-process-step__content {
	flex: 1;
	min-width: 0;
}

.vj-process-step__title {
	font-family: var(--font-family-primary);
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	color: var(--color-text-primary);
	margin-block-end: var(--space-xs);
}

.vj-process-step__desc {
	font-family: var(--font-family-body);
	font-size: var(--fs-sm);
	line-height: var(--lh-relaxed);
	color: var(--color-text-secondary);
	margin: 0;
}

/* ── Tablet: timeline on left, cards to the right ── */
@media screen and (max-width: 1023px) {
	.vj-about-process__timeline {
		padding-inline-start: 48px;
	}

	.vj-about-process__line {
		left: 24px;
		transform: scaleY(0);
	}

	.vj-process-step {
		width: 100%;
		left: 0 !important;
		padding-inline-start: 0 !important;
		padding-inline-end: 0 !important;
		justify-content: flex-start !important;
	}

	.vj-process-step__node {
		left: -43px !important;
		right: auto !important;
		width: 40px;
		height: 40px;
	}

	.vj-process-step__node span {
		font-size: var(--fs-xs);
	}

	/* Connector always points right on tablet */
	.vj-process-step__connector,
	.vj-process-step[data-step-side="left"] .vj-process-step__connector,
	.vj-process-step[data-step-side="right"] .vj-process-step__connector {
		left: 100%;
		right: auto;
		width: var(--space-lg);
		transform-origin: left center;
	}

	.vj-process-step__card {
		border-inline-start: 3px solid var(--color-brand-secondary) !important;
		border-inline-end: none !important;
	}

	.vj-process-step[data-step-side="left"] .vj-process-step__card {
		border-inline-end: none;
	}
}

/* ── Mobile: single column, compact ── */
@media screen and (max-width: 575px) {
	.vj-about-process__timeline {
		padding-inline-start: 40px;
	}

	.vj-about-process__line {
		left: 20px;
	}

	.vj-process-step {
		padding-block-end: var(--space-lg);
	}

	.vj-process-step__node {
		left: -37px !important;
		width: 36px;
		height: 36px;
	}

	/* Shorter connector on mobile */
	.vj-process-step__connector {
		width: var(--space-md);
	}

	.vj-process-step__card {
		padding: var(--space-md);
		flex-direction: column;
		gap: var(--space-sm);
	}

	.vj-process-step__icon-box {
		width: var(--space-2xl);
		height: var(--space-2xl);
	}

	.vj-process-step__icon {
		width: var(--space-lg);
		height: var(--space-lg);
	}
}

/* ─────────────────────────────────────────────────────────────
   Section 6: Our Team
   ───────────────────────────────────────────────────────────── */
.vj-about-team {
	padding-block: var(--space-2xl);
	background-color: var(--surface-grey-default);
}

.vj-about-team__header {
	text-align: center;
	margin-block-end: var(--space-xl);
}

.vj-about-team__eyebrow {
	display: block;
	font-family: var(--font-family-accent);
	font-size: var(--type-h2);
	font-weight: 600;
	letter-spacing: var(--ls-wider);
	color: var(--color-brand-secondary);
	margin-block-end: var(--space-xs);
}

.vj-about-team__title {
	font-family: var(--font-family-primary);
	font-size: clamp(24px, 3.5vw, 42px);
	font-weight: var(--font-weight-extrabold);
	line-height: var(--lh-tight);
	color: var(--color-brand-primary);
	margin-block-end: var(--space-md);
}

.vj-about-team__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-lg);
}

.vj-team-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-xl);
	overflow: hidden;
	background-color: var(--surface-grey-subtle);
}

.vj-team-card__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.vj-team-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vj-team-card__info {
	padding: var(--space-md) var(--space-lg);
	text-align: center;
	background-color: var(--surface-grey-default);
}

.vj-team-card__name {
	font-family: var(--font-family-primary);
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	color: var(--color-text-primary);
	margin-block-end: var(--space-2xs);
}

.vj-team-card__role {
	display: block;
	font-family: var(--font-family-body);
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: var(--ls-wide);
	color: var(--color-brand-secondary);
}

/* ── Mobile: 2-col grid ── */
@media screen and (max-width: 991px) {
	.vj-about-team__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-md);
	}
}

@media screen and (max-width: 575px) {
	.vj-about-team__grid {
		grid-template-columns: 1fr;
		max-width: 320px;
		margin-inline: auto;
	}
}

/* ─────────────────────────────────────────────────────────────
   Reduced Motion Accessibility
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.vj-about-why__card,
	.vj-team-card,
	.vj-team-card__image {
		transform: none !important;
		transition: none !important;
	}
}
