/*
Theme Name: JJ Trip
Theme URI: https://jj-trip.co/
Author: Kouz
Author URI: https://jj-trip.co/
Description: Sacred brutalist WordPress theme based on the JJ Trip Rap Portfolio Stitch landing page.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: jjtrip
*/

:root {
	--background: #131313;
	--surface: #1c1b1b;
	--surface-low: #0e0e0e;
	--surface-high: #2a2a2a;
	--surface-highest: #353534;
	--text: #e5e2e1;
	--muted: #e4beba;
	--primary: #ffb3ac;
	--primary-strong: #c72628;
	--primary-dark: #410003;
	--outline: #5b403d;
	--font-headline: "Epilogue", Arial, sans-serif;
	--font-body: "Inter", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--text);
	font-family: var(--font-body);
	overflow-x: hidden;
}

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

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

.texture-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: 0.05;
	background-image: url("assets/images/texture.png");
	background-size: 900px auto;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px clamp(24px, 4vw, 48px);
	background: rgba(19, 19, 19, 0.82);
	backdrop-filter: blur(18px);
}

.site-branding {
	display: flex;
	align-items: center;
}

.site-logo,
.custom-logo-link {
	color: var(--primary-strong);
	font-family: var(--font-headline);
	font-size: 1.5rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.site-logo .custom-logo {
	width: auto;
	max-width: 180px;
	max-height: 46px;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: clamp(18px, 3vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	border-bottom: 2px solid transparent;
	font-family: var(--font-headline);
	font-size: 0.9rem;
	font-weight: 900;
	text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
	border-color: var(--primary-strong);
	color: var(--primary-strong);
}

.header-action,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 24px;
	border: 2px solid transparent;
	font-family: var(--font-headline);
	font-weight: 900;
	text-transform: uppercase;
	transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.header-action {
	background: var(--primary-strong);
	color: #ffe0dd;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	animation: jjtrip-header-action-fade 700ms linear both;
}

.header-action:hover,
.button:hover {
	transform: translateY(-2px);
}

.hero-section {
	position: relative;
	display: grid;
	min-height: 100vh;
	place-items: center;
	overflow: hidden;
	padding: 120px 24px 96px;
	text-align: center;
}

.hero-media,
.hero-media::before,
.hero-media::after {
	position: absolute;
	inset: 0;
}

.hero-media::before {
	content: "";
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse at center, rgba(255, 224, 221, 0.95) 0%, rgba(255, 179, 172, 0.5) 10%, rgba(199, 38, 40, 0.22) 24%, transparent 62%),
		linear-gradient(90deg, transparent 0%, rgba(255, 224, 221, 0.88) 48%, rgba(255, 224, 221, 0.88) 52%, transparent 100%);
	mix-blend-mode: screen;
	opacity: 0;
	transform: scaleY(0.008);
	animation: jjtrip-tv-power-bloom 700ms linear both;
	will-change: opacity, transform;
}

.hero-media::after {
	content: "";
	z-index: 2;
	background: linear-gradient(to bottom, rgba(19, 19, 19, 0.00), rgba(19, 19, 19, 0.00) 80%, var(--background));
}

.hero-media img {
	width: 100%;
	height: 100%;
	/*filter: grayscale(0) brightness(1);*/
	object-fit: cover;
	transform-origin: center;
	animation: jjtrip-tv-power-on 700ms linear both;
	will-change: clip-path, filter, opacity, transform;
}

@keyframes jjtrip-tv-power-on {
	0% {
		opacity: 0;
		clip-path: inset(50% 50% 50% 50%);
		filter: contrast(1.35) saturate(0.78) brightness(1.22);
		transform: scale(1.015);
	}

	20% {
		opacity: 1;
		clip-path: inset(49.35% 0 49.35% 0);
	}

	40% {
		clip-path: inset(32.9% 0 32.9% 0);
		filter: contrast(1.24) saturate(0.84) brightness(1.16);
	}

	60% {
		clip-path: inset(16.45% 0 16.45% 0);
		filter: contrast(1.14) saturate(0.92) brightness(1.08);
	}

	80% {
		clip-path: inset(0 0 0 0);
		filter: contrast(1.04) saturate(0.98) brightness(1.03);
	}

	100% {
		opacity: 1;
		clip-path: inset(0 0 0 0);
		filter: none;
		transform: scale(1);
	}
}

@keyframes jjtrip-tv-power-bloom {
	0% {
		opacity: 0;
		transform: scaleX(0.02) scaleY(0.004);
	}

	20% {
		opacity: 0.72;
		transform: scaleX(1) scaleY(0.012);
	}

	40% {
		opacity: 0.36;
		transform: scaleX(1) scaleY(0.18);
	}

	60% {
		opacity: 0.18;
		transform: scaleX(1) scaleY(0.48);
	}

	80% {
		opacity: 0.06;
		transform: scaleX(1) scaleY(1);
	}

	100% {
		opacity: 0;
		transform: scaleX(1) scaleY(1);
	}
}

@keyframes jjtrip-header-action-fade {
	0%,
	20% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

.hero-content {
	position: relative;
	z-index: 2;
	width: min(1180px, 100%);
}

.eyebrow {
	margin: 0 0 18px;
	color: var(--primary);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.45em;
	text-transform: uppercase;
}

.hero-content h1,
.editorial-copy h2,
.section-heading h2,
.ritual-section h2 {
	margin: 0;
	font-family: var(--font-headline);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 0.9;
	text-transform: uppercase;
}

.hero-content h1 {
	font-size: clamp(3.7rem, 10vw, 10rem);
	text-shadow: 0 0 24px rgba(199, 38, 40, 0.42);
}

.hero-content h1 span,
.editorial-copy h2 span,
.section-heading h2 span {
	color: var(--primary-strong);
}

.hero-copy {
	max-width: 660px;
	margin: 32px auto 0;
	color: var(--muted);
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	font-style: italic;
	font-weight: 300;
}

.scroll-indicator {
	position: absolute;
	bottom: 34px;
	left: 50%;
	z-index: 2;
	color: var(--primary);
	font-size: 2.4rem;
	line-height: 1;
	transform: translateX(-50%);
	animation: jjtrip-bounce 1.6s infinite;
}

@keyframes jjtrip-bounce {
	0%, 100% {
		transform: translate(-50%, 0);
	}

	50% {
		transform: translate(-50%, 12px);
	}
}

.philosophy-section,
.aesthetic-section {
	padding: clamp(80px, 11vw, 160px) 24px;
}

.section-grid {
	display: grid;
	grid-template-columns: minmax(260px, 5fr) minmax(320px, 7fr);
	gap: clamp(42px, 7vw, 96px);
	align-items: center;
	width: min(1180px, 100%);
	margin: 0 auto;
}

.framed-image {
	position: relative;
	margin: 0;
}

.framed-image::before {
	content: "";
	position: absolute;
	top: -16px;
	left: -16px;
	z-index: -1;
	width: 100%;
	height: 100%;
	border: 1px solid rgba(199, 38, 40, 0.32);
	transition: transform 180ms ease;
}

.framed-image:hover::before {
	transform: translate(8px, 8px);
}

.framed-image img {
	width: 100%;
	aspect-ratio: 4 / 6;
	/*filter: grayscale(1);*/
	object-fit: cover;
}

.framed-image figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	display: grid;
	width: 76px;
	height: 76px;
	place-items: center;
	background: var(--primary-strong);
	color: #ffe0dd;
	font-family: var(--font-headline);
	font-size: 3rem;
	font-weight: 900;
}

.editorial-copy h2 {
	margin-bottom: 32px;
	font-size: clamp(3rem, 6vw, 6rem);
}

.editorial-copy {
	position: relative;
}

.jjtrip-reveal-ready .editorial-copy > * {
	opacity: 0;
	filter: blur(14px);
	transform: translate3d(0, 38px, 0) scale(0.985);
	transition:
		opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
		filter 900ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, filter, transform;
}

.jjtrip-reveal-ready .editorial-copy > :nth-child(1) {
	--reveal-delay: 0ms;
}

.jjtrip-reveal-ready .editorial-copy > :nth-child(2) {
	--reveal-delay: 160ms;
}

.jjtrip-reveal-ready .editorial-copy > :nth-child(3) {
	--reveal-delay: 300ms;
}

.jjtrip-reveal-ready .editorial-copy > :nth-child(4) {
	--reveal-delay: 440ms;
}

.jjtrip-reveal-ready .editorial-copy.is-visible > * {
	opacity: 1;
	filter: blur(0);
	transform: translate3d(0, 0, 0) scale(1);
}

.editorial-copy p,
.editorial-copy blockquote {
	max-width: 760px;
	color: var(--muted);
	font-size: clamp(1.05rem, 1.5vw, 1.18rem);
	line-height: 1.75;
}

.editorial-copy strong {
	color: var(--text);
}

.editorial-copy blockquote {
	margin: 28px 0;
	padding: 22px 26px;
	border-left: 4px solid var(--primary-strong);
	background: var(--surface);
	font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
	.hero-media img,
	.hero-media::before,
	.header-action {
		animation: none;
	}

	.hero-media img {
		clip-path: none;
		filter: none;
		transform: none;
	}

	.jjtrip-reveal-ready .editorial-copy > * {
		opacity: 1;
		filter: none;
		transform: none;
		transition: none;
	}
}

.aesthetic-section {
	background: var(--surface);
}

.section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	width: min(1180px, 100%);
	margin: 0 auto 64px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(91, 64, 61, 0.6);
}

.section-heading h2 {
	font-size: clamp(2.7rem, 5vw, 5rem);
}

.section-heading p {
	margin: 0;
	color: rgba(229, 226, 225, 0.46);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.visual-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: min(1180px, 100%);
	margin: 0 auto;
}

.image-tile,
.quote-tile,
.statement-tile {
	position: relative;
	min-height: 600px;
	overflow: hidden;
	border: 1px solid var(--background);
}

.image-tile img,
.quote-tile img {
	width: 100%;
	height: 100%;
	filter: grayscale(1);
	object-fit: cover;
	transition: transform 700ms ease;
}

.image-tile:hover img {
	transform: scale(1.08);
}

.tile-overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(199, 38, 40, 0.34);
	font-family: var(--font-headline);
	font-size: 2rem;
	font-weight: 900;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 180ms ease;
}

.image-tile:hover .tile-overlay {
	opacity: 1;
}

.statement-tile {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(32px, 5vw, 56px);
	background: var(--primary-strong);
	color: #ffe0dd;
}

.statement-tile span {
	margin-bottom: 36px;
	font-family: var(--font-headline);
	font-size: 5rem;
	font-weight: 900;
	line-height: 1;
}

.statement-tile h3 {
	margin: 0;
	font-family: var(--font-headline);
	font-size: clamp(2.6rem, 4vw, 4.25rem);
	font-weight: 900;
	line-height: 0.92;
	text-transform: uppercase;
}

.quote-tile > div {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 32px;
	background: rgba(53, 53, 52, 0.8);
}

.quote-tile p {
	max-width: 340px;
	margin: 0;
	color: rgba(229, 226, 225, 0.72);
	font-size: 0.9rem;
	font-style: italic;
	line-height: 1.5;
	text-transform: uppercase;
}

.quote-tile strong {
	color: rgba(199, 38, 40, 0.3);
	font-family: var(--font-headline);
	font-size: clamp(5.5rem, 9vw, 9rem);
	font-weight: 900;
	line-height: 0.8;
}

.ritual-section {
	display: grid;
	place-items: center;
	padding: clamp(74px, 9vw, 110px) 24px;
	background: var(--primary-strong);
	color: #ffe0dd;
	text-align: center;
}

.ritual-section h2 {
	margin-bottom: 32px;
	font-size: clamp(3rem, 7vw, 7rem);
	letter-spacing: 0.08em;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.button-dark {
	background: #ffe0dd;
	color: var(--primary-strong);
}

.button-outline {
	border-color: #ffe0dd;
	color: #ffe0dd;
}

.button-outline:hover {
	background: #ffe0dd;
	color: var(--primary-strong);
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 44px clamp(24px, 5vw, 72px);
	border-top: 1px solid rgba(53, 53, 52, 0.7);
	background: var(--surface-low);
	box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.45);
}

.footer-brand p,
.footer-links span {
	color: rgba(229, 226, 225, 0.5);
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.footer-links {
	display: flex;
	gap: clamp(36px, 6vw, 72px);
}

.footer-column {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.footer-menu,
.social-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.footer-links a {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.footer-links a:hover {
	color: var(--primary-strong);
}

.social-links {
	display: flex;
	gap: 14px;
}

.content-index {
	width: min(900px, calc(100% - 48px));
	margin: 0 auto;
	padding: 140px 0 80px;
}

.content-card {
	margin-bottom: 32px;
	padding: 32px;
	background: var(--surface);
}

.content-card h1 {
	margin-top: 0;
	font-family: var(--font-headline);
	text-transform: uppercase;
}

.entry-content {
	color: var(--muted);
	line-height: 1.7;
}

@media (max-width: 900px) {
	.site-header {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.primary-navigation {
		order: 3;
		width: 100%;
		overflow-x: auto;
	}

	.primary-menu {
		min-width: max-content;
	}

	.section-grid,
	.visual-grid {
		grid-template-columns: 1fr;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.image-tile,
	.quote-tile,
	.statement-tile {
		min-height: 420px;
	}

	.site-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 560px) {
	.site-header {
		padding: 14px 18px;
	}

	.site-logo {
		font-size: 1.15rem;
	}

	.header-action {
		padding-inline: 16px;
	}

	.hero-section {
		padding-inline: 18px;
	}

	.hero-content h1 {
		font-size: clamp(3rem, 18vw, 5rem);
	}

	.button-row,
	.button {
		width: 100%;
	}

	.footer-links {
		flex-direction: column;
	}
}
