/* ==========================================================================
   Jonathan Levi theme — The Next Layer brand
   Oswald Bold (display) + Open Sans (body). Orange on charcoal. Sharp corners.
   ========================================================================== */

@font-face {
	font-family: "Oswald";
	src: url("../fonts/Oswald-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Open Sans";
	src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Open Sans";
	src: url("../fonts/OpenSans-Italic.ttf") format("truetype");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--orange: #e8650a;
	--orange-light: #ff7d2a;
	--orange-text: #b85008; /* orange that passes contrast on light backgrounds */
	--black: #111111;
	--gray-900: #1a1a1a;
	--gray-800: #2c2c2c;
	--gray-700: #3d3d3d;
	--gray-600: #555555;
	--gray-500: #767676;
	--gray-400: #9e9e9e;
	--gray-300: #c2c2c2;
	--gray-200: #e0e0e0;
	--gray-100: #f2f2f2;
	--white: #ffffff;

	--font-display: "Oswald", Impact, "Arial Narrow", sans-serif;
	--font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

	--radius: 4px;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18), 0 4px 8px rgba(0, 0, 0, 0.1);
	--gutter: 32px;
	--section-y: 96px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

body {
	margin: 0;
	background: var(--white);
	color: var(--gray-900);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); }
a:hover { color: var(--orange); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 100;
	background: var(--orange);
	color: var(--black);
	padding: 10px 16px;
	font-weight: 700;
	border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 1040px; }
.container--prose { max-width: 760px; }

.section { padding: var(--section-y) 0; background: var(--white); }
.section--muted { background: var(--gray-100); }
.section--dark { background: var(--gray-900); color: var(--white); }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 48px; }

.eyebrow {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--orange-text);
}
.eyebrow--accent { color: var(--orange); }

.h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 52px;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--gray-900);
}
.section--dark .h2 { color: var(--white); }

.lead { font-size: 18px; line-height: 1.6; color: var(--gray-600); }
.section--dark .lead { color: var(--gray-300); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--tight { gap: 10px; }
.btn-row--center { justify-content: center; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 14px 24px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.btn--sm { min-height: 44px; padding: 11px 18px; font-size: 14px; }

.btn--primary { background: var(--orange); color: var(--black); }
.btn--primary:hover { background: var(--orange-light); color: var(--black); box-shadow: 0 4px 16px rgba(237, 97, 0, 0.35); }

.btn--ghost { border-color: var(--gray-600); color: var(--white); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn--outline { border-color: var(--gray-300); color: var(--gray-900); }
.btn--outline:hover { border-color: var(--gray-900); color: var(--gray-900); }

.btn--dark { background: var(--gray-900); color: var(--white); }
.btn--dark:hover { background: var(--gray-700); color: var(--white); }

.textlink { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--orange); }
.textlink:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header { background: var(--black); border-bottom: 1px solid var(--gray-800); }
.site-header__inner { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 72px; }
.site-header__home,
.site-nav a {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gray-200);
	text-decoration: none;
}
.site-header__home { margin-right: auto; }
.site-header__home:hover,
.site-nav a:hover { color: var(--orange); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }

.menu-toggle {
	display: none;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	background: transparent;
	border: 1px solid var(--gray-700);
	border-radius: var(--radius);
	color: var(--white);
	cursor: pointer;
}
.menu-toggle__close { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--gray-900); color: var(--white); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 72px; }
.hero__text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 96px;
	line-height: 0.98;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--white);
}
.hero__brands {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.25;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--gray-200);
}
.hero__intro { max-width: 620px; font-size: 18px; line-height: 1.65; color: var(--gray-300); }
.hero .btn-row { padding-top: 4px; }

.hero__photo { flex: 1 1 340px; display: flex; justify-content: center; }
.photo-frame { position: relative; width: 380px; max-width: calc(100% - 16px); aspect-ratio: 1; }
.photo-frame::before {
	content: "";
	position: absolute;
	top: 16px; left: 16px; right: -16px; bottom: -16px;
	background: var(--orange);
	border-radius: var(--radius);
}
.photo-frame > img,
.photo-frame > .placeholder {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--gray-700);
}

.placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	background: var(--gray-800);
	color: var(--gray-400);
	text-align: center;
	padding: 16px;
}
.placeholder span {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.placeholder--light { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); }

.stats { border-top: 1px solid var(--gray-800); }
.stats__grid {
	margin-top: 0; margin-bottom: 0;
	padding-top: 36px; padding-bottom: 36px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}
.stat { display: flex; flex-direction: column-reverse; gap: 4px; }
.stat__value { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.2; color: var(--white); }
.stat__label { font-size: 14px; color: var(--gray-300); }

/* ---------- Cards (Now) ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 28px; }

.card {
	display: flex; flex-direction: column;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: box-shadow 0.2s ease-out;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card--dark { background: var(--gray-900); color: var(--white); border-top: 4px solid var(--orange); }
.card--light { background: var(--white); color: var(--gray-900); border-top: 4px solid var(--gray-900); }

.card__body { padding: 40px 40px 28px; display: flex; flex-direction: column; gap: 20px; }
.card__brand { display: flex; align-items: center; gap: 16px; }
.card__logo {
	width: 64px; height: 64px; flex: none;
	object-fit: contain;
	background: var(--white);
	border-radius: var(--radius);
	padding: 4px;
}
.card__logo--sb { display: flex; align-items: center; justify-content: center; background: var(--gray-900); color: var(--orange); padding: 0; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.2; text-transform: uppercase; }
.card__meta { font-size: 14px; color: var(--gray-600); }
.card--dark .card__meta { color: var(--gray-300); }
.card__text { font-size: 17px; line-height: 1.6; color: var(--gray-700); }
.card--dark .card__text { color: var(--gray-200); }
.card__note { font-size: 13px; color: var(--gray-600); }

.card__foot {
	margin-top: auto;
	padding: 24px 40px;
	border-top: 1px solid var(--gray-200);
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.card--dark .card__foot { border-top-color: var(--gray-800); }
.card__count { font-size: 14px; color: var(--gray-300); }
.card__count strong { font-family: var(--font-display); font-size: 22px; color: var(--white); }

.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.video {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--gray-800);
	border-radius: var(--radius);
	color: var(--gray-400);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.15s ease-out; }
.video__play {
	position: absolute;
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(17, 17, 17, 0.8);
	border-radius: var(--radius);
	color: var(--white);
}
.video:hover img { opacity: 0.8; }
.video:hover .video__play { background: var(--orange); color: var(--black); }
.video--empty:hover { color: var(--orange); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.features li { padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--gray-900); }
.features li + li { border-left: 1px solid var(--gray-200); }
.features svg { color: var(--orange-text); }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px; }
.about__side { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.about__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.about__photo img,
.about__photo .placeholder { width: 100%; height: 100%; object-fit: cover; }
.about__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.about__text > p:not(.eyebrow) { font-size: 18px; line-height: 1.7; color: var(--gray-700); }

.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts__wide { grid-column: 1 / -1; }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-600); }
.facts dd { margin: 0; font-size: 15px; }

/* ---------- Past work ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.work-card { display: flex; flex-direction: column; overflow: hidden; background: var(--gray-800); border-radius: var(--radius); }
.work-card__media {
	aspect-ratio: 16 / 9;
	display: flex; align-items: center; justify-content: center;
	background: var(--gray-700);
	color: var(--gray-300);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; }
.work-card__media--cover img { width: auto; height: 86%; object-fit: contain; box-shadow: var(--shadow); }
.work-card__body { flex-grow: 1; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.work-card__body > p { font-size: 16px; line-height: 1.6; color: var(--gray-200); }
.work-card__eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 13px !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange) !important; }
.work-card__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; text-transform: uppercase; color: var(--white); }
.work-card__quote { margin: 0; font-style: italic; font-size: 15px; line-height: 1.6; color: var(--gray-300); }
.work-card__quote cite { display: block; margin-top: 4px; font-style: normal; color: var(--gray-400); }
.work-card__btn { margin-top: auto; align-self: flex-start; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { display: grid; grid-template-columns: 150px 36px minmax(0, 1fr); column-gap: 20px; }
.timeline__year {
	padding-top: 2px;
	text-align: right;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.04em;
	color: var(--gray-900);
}
.timeline__rail { position: relative; display: flex; justify-content: center; }
.timeline__rail::before {
	content: "";
	position: absolute;
	top: 0; bottom: 0; left: 50%;
	width: 2px;
	transform: translateX(-50%);
	background: var(--gray-300);
}
.timeline__item:last-child .timeline__rail::before { bottom: auto; height: 24px; }
.timeline__node { position: relative; margin-top: 7px; width: 16px; height: 16px; border-radius: 2px; background: var(--gray-900); }
.timeline__content { padding-bottom: 44px; display: flex; flex-direction: column; gap: 6px; }
.timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timeline__org { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; text-transform: uppercase; color: var(--gray-900); }
.timeline__role { font-size: 15px; font-weight: 700; color: var(--gray-700); }
.timeline__body { max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--gray-600); }
.is-current .timeline__year { color: var(--orange-text); }
.is-current .timeline__node { background: var(--orange); }

.badge {
	padding: 3px 9px;
	border-radius: 2px;
	background: var(--orange);
	color: var(--black);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ---------- Connect ---------- */
.connect {
	display: flex; flex-direction: column; align-items: center; gap: 20px;
	padding: 56px;
	text-align: center;
	background: var(--gray-900);
	color: var(--white);
	border-top: 4px solid var(--orange);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}
.connect__title { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1.02; text-transform: uppercase; color: var(--white); }
.connect__text { max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--gray-200); }
.connect .btn-row { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--gray-300); font-size: 14px; }
.site-footer__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.social { display: flex; gap: 12px; }
.social__link {
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--gray-700);
	border-radius: var(--radius);
	color: var(--gray-200);
	transition: color 0.15s ease-out, border-color 0.15s ease-out;
}
.social__link:hover { color: var(--orange); border-color: var(--orange); }
.icon-cut { fill: var(--black); }

/* ---------- Other pages (index.php) ---------- */
.section--page { padding: 72px 0 96px; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1.1; text-transform: uppercase; margin-bottom: 32px; }
.entry + .entry { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--gray-200); }
.entry-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; margin-bottom: 12px; }
.entry-title a { color: var(--gray-900); text-decoration: none; }
.entry-title a:hover { color: var(--orange-text); }
.entry-content { font-size: 17px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2,
.entry-content h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 1.2; margin-top: 1.6em; }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 24px; }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-button__link { background: var(--orange); color: var(--black); border-radius: var(--radius); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.hero__title { font-size: 76px; }
	.h2 { font-size: 44px; }
}

@media (max-width: 768px) {
	:root { --gutter: 20px; --section-y: 64px; }

	/* Mobile menu */
	.menu-toggle { display: flex; }
	.site-header__inner { min-height: 64px; position: relative; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		z-index: 50;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--gutter) 16px;
		background: var(--black);
		border-bottom: 1px solid var(--gray-800);
	}
	.site-nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--gray-800); }
	.site-nav a:last-child { border-bottom: 0; }
	.nav-open .site-nav { display: flex; }
	.nav-open .menu-toggle__open { display: none; }
	.nav-open .menu-toggle__close { display: inline; }

	.hero__inner { padding-top: 40px; padding-bottom: 32px; gap: 32px; flex-direction: column-reverse; align-items: flex-start; }
	.hero__photo { flex: none; justify-content: flex-start; }
	.photo-frame { width: 160px; }
	.photo-frame::before { top: 8px; left: 8px; right: -8px; bottom: -8px; }
	.hero__text { flex: none; gap: 18px; }
	.hero__title { font-size: 56px; }
	.hero__brands { font-size: 20px; }
	.hero__intro { font-size: 16px; }
	.hero .btn-row { flex-direction: column; }
	.hero .btn { justify-content: center; }

	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-top: 24px; padding-bottom: 32px; }
	.stat__value { font-size: 28px; }
	.stat__label { font-size: 13px; }

	.h2 { font-size: 34px; }
	.lead { font-size: 16px; }
	.section-head { margin-bottom: 28px; }

	.card__body { padding: 24px; gap: 16px; }
	.card__foot { padding: 20px 24px; }
	.card__logo { width: 48px; height: 48px; }
	.card__title { font-size: 24px; }
	.card__text { font-size: 15px; }
	.features li { padding: 10px; font-size: 13px; }
	.features svg { display: none; }

	.about { gap: 28px; }
	.about__side { flex-basis: 100%; }
	.about__text { flex-basis: 100%; gap: 18px; }
	.about__text > p:not(.eyebrow) { font-size: 16px; }
	.about__photo { aspect-ratio: 4 / 3; }

	.work-card__body { padding: 20px; }
	.work-card__title { font-size: 21px; }

	.timeline__item { grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; }
	.timeline__year { grid-column: 2; grid-row: 1; text-align: left; font-size: 14px; letter-spacing: 0.08em; }
	.timeline__rail { grid-column: 1; grid-row: 1 / span 2; }
	.timeline__content { grid-column: 2; grid-row: 2; padding-top: 4px; padding-bottom: 28px; gap: 4px; }
	.timeline__node { margin-top: 5px; width: 14px; height: 14px; }
	.timeline__org { font-size: 20px; }
	.timeline__role,
	.timeline__body { font-size: 14px; }

	.connect { padding: 32px 22px; align-items: stretch; text-align: left; }
	.connect__title { font-size: 38px; }
	.connect__text { font-size: 15px; }
	.connect .btn-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.connect .btn { justify-content: center; padding: 12px 4px; font-size: 14px; }
	.connect .btn svg { display: none; }
	.connect .btn--primary { grid-column: 1 / -1; padding: 14px; font-size: 15px; }

	.site-footer__inner { flex-direction: column-reverse; align-items: flex-start; padding-top: 28px; padding-bottom: 28px; }

	.page-title { font-size: 36px; }
}

@media (max-width: 400px) {
	.hero__title { font-size: 48px; }
	.videos { grid-template-columns: 1fr; }
	.videos li:nth-child(n+2) { display: none; }
}

/* Pages built with Elementor: full width, no theme spacing. */
.builder-page { width: 100%; }
