/* ==========================================================================
   AVRX main.css
   Custom theme stylesheet. No framework, no page builder output.
   ========================================================================== */

/* -------------------------------------------------------------------------
   0. Variables
   ------------------------------------------------------------------------- */
:root {
	--avrx-black: #050505;
	--avrx-white: #f3f3f1;
	--avrx-text: #f5f5f3;
	--avrx-muted: rgba(255, 255, 255, 0.68);
	--avrx-muted-soft: rgba(255, 255, 255, 0.58);
	--avrx-line: rgba(255, 255, 255, 0.22);
	--avrx-line-strong: rgba(255, 255, 255, 0.45);
	--avrx-pad-x: clamp(24px, 5vw, 96px);
	--avrx-font: "Raleway", sans-serif;
	--avrx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   1. Reset / base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	font-family: var(--avrx-font);
}

html,
body,
button,
input,
textarea,
select {
	font-family: var(--avrx-font);
}

body {
	margin: 0;
	background: var(--avrx-black);
	color: var(--avrx-text);
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

button {
	font-family: inherit;
}

.avrx-home {
	overflow: hidden;
}

/* -------------------------------------------------------------------------
   2. Header
   ------------------------------------------------------------------------- */
.avrx-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	height: clamp(88px, 7vw, 104px);
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 180px);
}

.avrx-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--avrx-pad-x);
	gap: 24px;
}

.avrx-header__logo {
	flex: 0 0 auto;
}

.avrx-wordmark {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--avrx-white);
}

/* Logo and payoff share the same source viewBox width, so sizing both
   to an identical width keeps the lockup left/right aligned. */
.avrx-header__logo img,
.avrx-wordmark__logo,
.avrx-wordmark__payoff {
	display: block;
	width: 140px;
	height: auto;
}

.avrx-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.avrx-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(22px, 2.4vw, 40px);
}

.avrx-nav__link,
.avrx-nav__list a {
	position: relative;
	padding-bottom: 7px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.85);
	transition: color 240ms var(--avrx-ease);
	white-space: nowrap;
}

.avrx-nav__link:hover,
.avrx-nav__list a:hover {
	color: var(--avrx-white);
}

.avrx-nav__link.is-active,
.avrx-nav__list a.is-active {
	color: var(--avrx-white);
}

.avrx-nav__link.is-active::after,
.avrx-nav__list a.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.85);
}

.avrx-header__cta {
	flex: 0 0 auto;
	display: flex;
}

/* Buttons */
.avrx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	min-width: 155px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
	transition: background-color 260ms var(--avrx-ease), color 260ms var(--avrx-ease), border-color 260ms var(--avrx-ease);
}

.avrx-btn--outline {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: var(--avrx-white);
}

.avrx-btn--outline:hover {
	background: var(--avrx-white);
	color: var(--avrx-black);
	border-color: var(--avrx-white);
}

.avrx-btn--primary {
	background: var(--avrx-white);
	border: 1px solid var(--avrx-white);
	color: var(--avrx-black);
}

.avrx-btn--primary:hover {
	background: transparent;
	color: var(--avrx-white);
}

.avrx-btn--dark-outline {
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.4);
	color: var(--avrx-black);
}

.avrx-btn--dark-outline:hover {
	background: var(--avrx-black);
	color: var(--avrx-white);
	border-color: var(--avrx-black);
}

.avrx-btn__arrow {
	display: inline-block;
	transition: transform 260ms var(--avrx-ease);
}

.avrx-btn:hover .avrx-btn__arrow {
	transform: translateX(3px);
}

/* Mobile menu toggle */
.avrx-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 6px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

.avrx-menu-toggle__bar {
	display: block;
	width: 26px;
	height: 1px;
	background: var(--avrx-white);
	transition: transform 260ms var(--avrx-ease), width 260ms var(--avrx-ease);
}

.avrx-menu-toggle[aria-expanded="true"] .avrx-menu-toggle__bar:first-child {
	transform: translateY(3.5px) rotate(45deg);
}

.avrx-menu-toggle[aria-expanded="true"] .avrx-menu-toggle__bar:last-child {
	transform: translateY(-3.5px) rotate(-45deg);
}

.avrx-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(5, 5, 5, 0.98);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 40px;
	padding: 0 var(--avrx-pad-x);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 320ms var(--avrx-ease), visibility 320ms var(--avrx-ease), transform 320ms var(--avrx-ease);
}

.avrx-mobile-nav.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.avrx-mobile-nav__list {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.avrx-mobile-nav__list a {
	font-size: 28px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--avrx-white);
}

/* -------------------------------------------------------------------------
   3. Viewport: hero text, pillars and the process line all live inside
   one first-screen composition so the page fills ~100svh with no gap
   between the hero copy and the pillar imagery.
   ------------------------------------------------------------------------- */
.avrx-viewport {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.avrx-viewport__overlay-base {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
	z-index: 1;
}

.avrx-viewport__overlay-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.9) 0%,
		rgba(0, 0, 0, 0.74) 26%,
		rgba(0, 0, 0, 0.3) 54%,
		rgba(0, 0, 0, 0.08) 75%,
		rgba(0, 0, 0, 0.2) 100%
	);
	z-index: 2;
}

.avrx-hero-row {
	position: relative;
	z-index: 5;
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(150px, 17vh, 200px) clamp(24px, 5.5vw, 110px) 0;
}

.avrx-hero__content {
	max-width: 720px;
}

.avrx-hero__headline {
	margin: 0;
	max-width: 720px;
	font-family: "Raleway", sans-serif;
	font-weight: 300;
	font-size: clamp(46px, 4.4vw, 72px);
	line-height: 0.97;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #aab0b6;
}

.avrx-hero__headline-line {
	display: block;
}

.avrx-hero__headline-accent {
	color: #f1f1ef;
}

.avrx-hero__sub {
	margin-top: clamp(20px, 2.6vw, 30px);
	max-width: 520px;
}

.avrx-hero__sub p {
	margin: 0;
	font-size: clamp(15px, 1.1vw, 18px);
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.72);
}

.avrx-hero__ctas {
	margin-top: clamp(28px, 3.6vw, 40px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.avrx-hero__statement {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 56px;
}

.avrx-hero__statement p {
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.26em;
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.85);
}

/* -------------------------------------------------------------------------
   4. Pillars: fills all remaining space inside .avrx-viewport below the
   hero copy, so the imagery starts immediately with no dead space.
   ------------------------------------------------------------------------- */
.avrx-pillars {
	position: relative;
	z-index: 5;
	display: flex;
	flex: 1 1 auto;
	min-height: 560px;
	margin-top: clamp(110px, 15vh, 190px);
}

/* A percentage height on this grid would need to resolve against
   .avrx-pillars' flex-grown size, which browsers don't treat as a
   definite size, so instead .avrx-pillars is a flex row and this grid
   is its only child, stretched to fill via the default align-items. */
.avrx-pillars__grid {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.avrx-pillar {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	border-right: 1px solid rgba(255, 255, 255, 0.18);
	padding: clamp(34px, 2.8vw, 46px);
	overflow: hidden;
	background: var(--avrx-black);
}

.avrx-pillar:last-child {
	border-right: none;
}

/* The photo lives on its own layer so it can be scaled (zoomed) with a
   transform, since animating background-size directly is unreliable and can
   leave gaps that expose whatever sits behind the element. */
.avrx-pillar__image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	transform: scale(1.12);
	transform-origin: top center;
	transition: transform 900ms var(--avrx-ease);
	z-index: 0;
}

.avrx-pillar:hover .avrx-pillar__image {
	transform: scale(1.17);
}

.avrx-pillar::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.74) 0%,
		rgba(0, 0, 0, 0.52) 22%,
		rgba(0, 0, 0, 0.22) 40%,
		rgba(0, 0, 0, 0.52) 68%,
		rgba(0, 0, 0, 1) 100%
	);
	z-index: 1;
	transition: opacity 800ms var(--avrx-ease);
}

.avrx-pillar__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.14);
	z-index: 1;
}

.avrx-pillar__top,
.avrx-pillar__bottom {
	position: relative;
	z-index: 2;
}

.avrx-pillar__top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	transition: transform 700ms var(--avrx-ease);
}

.avrx-pillar__title {
	margin: 0;
	font-size: clamp(30px, 2.25vw, 42px);
	font-weight: 300;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.045em;
	color: var(--avrx-white);
}

.avrx-pillar__subtitle {
	margin-top: 12px;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.avrx-pillar__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 420px;
}

.avrx-pillar__copy {
	font-size: clamp(14px, 0.95vw, 16px);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.82);
}

.avrx-pillar__link {
	margin-top: 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--avrx-white);
	padding-bottom: 8px;
	min-width: 150px;
	white-space: nowrap;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	transition: border-color 300ms var(--avrx-ease);
}

.avrx-pillar__arrow {
	transition: transform 300ms var(--avrx-ease);
}

/* Pillar hover interaction */
.avrx-pillar:hover::after {
	opacity: 0.9;
}

.avrx-pillar:hover .avrx-pillar__overlay {
	background: rgba(0, 0, 0, 0.06);
}

.avrx-pillar:hover .avrx-pillar__top {
	transform: translateY(-3px);
}

.avrx-pillar:hover .avrx-pillar__link {
	border-color: rgba(255, 255, 255, 0.9);
}

.avrx-pillar:hover .avrx-pillar__arrow {
	transform: translateX(6px);
}

/* -------------------------------------------------------------------------
   5. Homepage process bar: "Imagine → ... → Experience" + "Built
   Differently.", on one line below the hero/pillars viewport. Homepage
   only; the site-wide footer below is a separate, shared element.
   ------------------------------------------------------------------------- */
.avrx-home-process {
	background: var(--avrx-black);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avrx-home-process__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 26px var(--avrx-pad-x);
}

.avrx-process__steps {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.6);
}

.avrx-process__rule {
	display: inline-block;
	width: 30px;
	height: 1px;
	background: rgba(255, 255, 255, 0.4);
	margin-right: 6px;
}

.avrx-process__arrow {
	color: rgba(255, 255, 255, 0.4);
}

.avrx-process__built {
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------------------
   6. Site-wide footer: logo/tagline, primary nav, "Let's Talk" link.
   Shared across every template via footer.php.
   ------------------------------------------------------------------------- */
.avrx-footer {
	background: var(--avrx-black);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avrx-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
	padding: 40px var(--avrx-pad-x);
}

.avrx-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

/* Both marks share the same source viewBox width, so sizing them to an
   identical width keeps the logo and payoff lockup left/right aligned. */
.avrx-footer__logo img,
.avrx-footer__payoff {
	display: block;
	width: 128px;
	height: auto;
}

.avrx-footer__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.avrx-footer__talk {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--avrx-white);
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	transition: border-color 300ms var(--avrx-ease);
}

.avrx-footer__talk:hover {
	border-color: rgba(255, 255, 255, 0.9);
}

.avrx-footer__talk span {
	transition: transform 300ms var(--avrx-ease);
}

.avrx-footer__talk:hover span {
	transform: translateX(6px);
}

/* -------------------------------------------------------------------------
   7. Generic page fallback (index.php)
   ------------------------------------------------------------------------- */
.avrx-page {
	padding: clamp(140px, 16vh, 200px) var(--avrx-pad-x) 100px;
	min-height: 60vh;
}

.avrx-page__inner {
	max-width: 860px;
	margin: 0 auto;
}

.avrx-article__title {
	font-weight: 300;
	font-size: clamp(36px, 4vw, 56px);
	letter-spacing: 0.02em;
	margin-bottom: 24px;
}

.avrx-article__content {
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.7;
}

.avrx-article__content a {
	text-decoration: underline;
}

.avrx-404 {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.avrx-404__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.avrx-404 .avrx-hero__eyebrow {
	margin-bottom: 16px;
}

.avrx-404__ctas {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* -------------------------------------------------------------------------
   8. Responsive: Tablet (768px-1199px)
   ------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	.avrx-hero__statement {
		display: none;
	}

	.avrx-hero__headline {
		font-size: clamp(54px, 6.4vw, 64px);
	}
}

@media (max-width: 980px) {
	.avrx-nav {
		display: none;
	}

	.avrx-header__cta {
		display: none;
	}

	.avrx-menu-toggle {
		display: flex;
	}

	/* Below tablet width the composition no longer needs to fit one
	   screen, so let the sections stack and grow naturally instead of
	   fighting the flex-fill sizing used on desktop. */
	.avrx-viewport {
		min-height: 0;
		display: block;
	}

	.avrx-hero-row {
		padding: 120px 24px 40px;
	}

	.avrx-pillars {
		margin-top: 0;
	}

	.avrx-pillars__grid {
		grid-template-columns: 1fr;
	}

	.avrx-pillar {
		height: 70svh;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	}

	.avrx-pillar:last-child {
		border-bottom: none;
	}
}

/* -------------------------------------------------------------------------
   9. Responsive: Mobile (< 768px)
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.avrx-header {
		height: 76px;
	}

	.avrx-header__inner {
		padding: 0 24px;
	}

	.avrx-header__logo img,
	.avrx-wordmark__logo,
	.avrx-wordmark__payoff {
		width: 118px;
	}

	.avrx-hero-row {
		padding: 100px 24px 40px;
	}

	.avrx-hero__headline {
		font-size: clamp(40px, 12vw, 52px);
		line-height: 1;
	}

	.avrx-hero__sub {
		margin-top: 22px;
	}

	.avrx-hero__ctas {
		margin-top: 24px;
		flex-direction: column;
		align-items: stretch;
	}

	.avrx-hero__ctas .avrx-btn {
		width: 100%;
	}

	.avrx-404__ctas {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.avrx-404__ctas .avrx-btn {
		width: 100%;
	}

	.avrx-pillar {
		padding: 28px 24px;
		height: 78svh;
	}

	.avrx-home-process__inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px 24px;
	}

	.avrx-process__steps {
		gap: 8px;
	}

	.avrx-footer__inner {
		padding: 32px 24px;
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.avrx-footer__nav .avrx-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
}
