/*
Theme Name: AP Production
Theme URI: https://example.com/ap-production
Author: OpenAI
Author URI: https://openai.com
Description: Dark portfolio theme for AP Production event website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ap-production
*/

:root {
	--bg: #050505;
	--bg-soft: #111111;
	--panel: rgba(255, 255, 255, 0.05);
	--panel-strong: rgba(255, 255, 255, 0.09);
	--line: rgba(255, 255, 255, 0.12);
	--text: #f5f1e8;
	--muted: #bdb5a7;
	--accent: #d62828;
	--accent-soft: #f29a9a;
	--max-width: 1200px;
	--shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	--main-reveal: 0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	background:
		radial-gradient(circle at top left, rgba(242, 166, 90, 0.18), transparent 30%),
		radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 28%),
		var(--bg);
	color: var(--text);
	line-height: 1.6;
}

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

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

.site-shell {
	min-height: 100vh;
}

.hero,
.section {
	padding-left: 24px;
	padding-right: 24px;
}

.topbar,
.hero-content,
.section > *,
.contact-panel {
	max-width: var(--max-width);
	margin: 0 auto;
}

.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	align-items: stretch;
	padding-top: 0;
	padding-bottom: 44px;
	overflow: hidden;
}

.topbar {
	position: fixed;
	top: 0;
	left: 24px;
	right: 24px;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 0 24px;
	transition: padding 180ms ease, transform 180ms ease;
}

.topbar::before {
	content: "";
	position: absolute;
	inset: 10px -18px 0;
	border: 1px solid transparent;
	border-radius: 999px;
	background: rgba(5, 5, 5, 0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	box-shadow: none;
	opacity: 0;
	transition: opacity 180ms ease, background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
	z-index: -1;
}

.topbar.is-scrolled {
	padding-top: 16px;
	padding-bottom: 16px;
}

.topbar.is-scrolled::before {
	opacity: 1;
	background: rgba(5, 5, 5, 0.72);
	border-color: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 14px;
}

.brand-mark {
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent), #fff1dd);
	box-shadow: 0 0 24px rgba(242, 166, 90, 0.8);
}

.brand-name,
.brand-tag,
.eyebrow,
.section-label,
.feature-label,
.card-index {
	margin: 0;
}

.brand-name {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.brand-tag,
.topbar-links a,
.hero-copy,
.service-card p,
.portfolio-item p,
.portfolio-feature p,
.contact-copy p,
.intro-card p {
	color: var(--muted);
}

.brand-tag {
	font-size: 0.82rem;
}

.topbar-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 18px;
	font-size: 0.92rem;
	letter-spacing: 0.03em;
}

.topbar-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
}

.language-switch {
	display: inline-flex;
	align-items: center;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.language-switch__button {
	border: 0;
	background: transparent;
	color: var(--muted);
	min-width: 42px;
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	font: inherit;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease;
}

.language-switch__button.is-active {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text);
}

.topbar-links a:hover,
.topbar-links a:focus-visible,
.button:hover,
.button:focus-visible {
	color: #fff;
}

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

.hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.26;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	/* background:
		linear-gradient(180deg, rgba(5, 5, 5, 0.42), rgba(5, 5, 5, 0.94)),
		linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.3) 55%, rgba(5, 5, 5, 0.72)); */
}

.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
}

.hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: end;
	gap: 20px;
	flex: 1;
	padding-top: 124px;
	padding-bottom: 28px;
	width: min(100%, var(--max-width));
	max-width: var(--max-width);
	min-height: 100vh;
	min-height: 100dvh;
}

.hero-content > * {
	opacity: 0;
	transform: translate3d(0, 34px, 0);
	transition: opacity 700ms ease, transform 700ms ease;
}

.hero-content.is-ready > * {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.hero-content.is-ready > *:nth-child(1) {
	transition-delay: 100ms;
}

.hero-content.is-ready > *:nth-child(2) {
	transition-delay: 220ms;
}

.hero-content.is-ready > *:nth-child(3) {
	transition-delay: 340ms;
}

.hero-content.is-ready > *:nth-child(4) {
	transition-delay: 460ms;
}

.hero-content.is-ready > *:nth-child(5) {
	transition-delay: 580ms;
}

.eyebrow,
.section-label,
.feature-label,
.card-index {
	font-family: "Arial Narrow", Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--accent-soft);
	font-size: 0.82rem;
}

.hero h1,
.section-heading h2,
.portfolio-feature h3,
.portfolio-item h3,
.service-card h3,
.contact-panel h2 {
	margin: 0;
	line-height: 0.95;
	font-weight: 500;
}

.hero h1 {
	/* max-width: 720px; */
	font-size: clamp(2.2rem, 4.8vw, 4.4rem);
}

.hero-copy {
	max-width: 520px;
	font-size: 1rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid var(--line);
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.26);
}

.button-primary {
	background: linear-gradient(135deg, var(--accent), #d87f30);
	color: #17120e;
	border-color: transparent;

	/* AP Colors */
	background: linear-gradient(120deg, #8C6239, #5C3A21, #3B2615) !important;
}

.button-secondary {
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(12px);
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 0;
	margin: 0;
	list-style: none;
	max-width: 760px;
}

.hero-stats li,
.intro-card,
.service-card,
.portfolio-feature,
.portfolio-item,
.contact-panel {
	background: var(--panel);
	border: 1px solid var(--line);
	backdrop-filter: blur(12px);
	box-shadow: var(--shadow);
}

.hero-stats li {
	padding: 22px;
	border-radius: 22px;
}

.hero-stats strong {
	display: block;
	margin-bottom: 6px;
	font-size: 1.05rem;
}

.hero-stats span {
	color: var(--muted);
	font-size: 0.95rem;
}

.main-content {
	position: relative;
	z-index: 4;
	margin-top: -72px;
	padding-top: 96px;
	padding-bottom: 80px;
	background:
		linear-gradient(180deg, rgba(5, 5, 5, 0.74), rgba(5, 5, 5, 0.96) 120px),
		radial-gradient(circle at top left, rgba(242, 166, 90, 0.1), transparent 28%),
		var(--bg);
	border-top-left-radius: 32px;
	border-top-right-radius: 32px;
	box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.45);
	transform: translate3d(0, calc((1 - var(--main-reveal)) * 120px), 0);
	opacity: calc(0.35 + (var(--main-reveal) * 0.65));
	will-change: transform, opacity;
}

.section {
	padding-top: 42px;
	padding-bottom: 42px;
}

.section-heading {
	display: grid;
	gap: 14px;
	margin-bottom: 28px;
}

.section-heading h2,
.contact-panel h2 {
	font-size: clamp(2.1rem, 5vw, 4rem);
	max-width: 900px;
}

.intro-layout,
.portfolio-layout {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.intro-card,
.portfolio-feature,
.portfolio-item,
.service-card,
.contact-panel {
	border-radius: 28px;
}

.intro-card,
.portfolio-feature,
.portfolio-item,
.service-card {
	padding: 28px;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.service-card {
	display: grid;
	gap: 16px;
	min-height: 220px;
}

.portfolio-feature {
	min-height: 380px;
	align-content: end;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(242, 166, 90, 0.12)),
		var(--panel);
}

.portfolio-list {
	display: grid;
	gap: 22px;
}

.contact-panel {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 28px;
	padding: 32px;
}

@media (max-width: 900px) {
	.topbar,
	.contact-panel,
	.intro-layout,
	.portfolio-layout,
	.card-grid,
	.hero-stats {
		grid-template-columns: 1fr;
	}

	.topbar {
		display: grid;
		left: 24px;
		right: 24px;
	}

	.topbar-meta {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.topbar-links {
		justify-content: flex-start;
	}

	.hero h1 {
		line-height: 1;
	}

}

@media (max-width: 640px) {
	.hero,
	.section {
		padding-left: 18px;
		padding-right: 18px;
	}

	.hero {
		min-height: 100vh;
		min-height: 100dvh;
		padding-top: 0;
	}

	.hero-content {
		padding-top: 86px;
		min-height: 100vh;
		min-height: 100dvh;
	}

	.hero-stats li,
	.intro-card,
	.portfolio-feature,
	.portfolio-item,
	.service-card,
	.contact-panel {
		border-radius: 22px;
	}

	.contact-panel,
	.intro-card,
	.portfolio-feature,
	.portfolio-item,
	.service-card {
		padding: 22px;
	}

	.topbar {
		left: 18px;
		right: 18px;
		padding-top: 22px;
	}

	.language-switch__button {
		min-width: 38px;
		height: 30px;
		padding: 0 10px;
	}

	.topbar::before {
		inset: 8px -10px 0;
	}

	.main-content {
		margin-top: -48px;
		padding-top: 72px;
		border-top-left-radius: 24px;
		border-top-right-radius: 24px;
	}

}
