/*
Theme Name: CJKnowsTECH
Theme URI: https://cjunplugged.com
Author: Unplugged Media Inc.
Description: The CJKnowsTECH site in the brand palette (stone, charcoal, coral). Home page with a live YouTube upload feed, partner logo wall, about and contact sections.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cjknowstech
*/

:root {
	--stone: #E2DED4;
	--panel: #F2EFE8;
	--charcoal: #242426;
	--body: #403E3A;
	--muted: #78736A;
	--coral: #D67042;
	--coral-deep: #B4552B;
	--rule: #C6C0B4;
	--radius: 14px;
	--display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--text: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--stone);
	color: var(--body);
	font-family: var(--text);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--charcoal); text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }
h1, h2, h3 { font-family: var(--display); color: var(--charcoal); margin: 0; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 88px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 780px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep); margin: 0 0 18px; }
.screen-reader-text, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--dark { background: var(--charcoal); color: var(--panel); }
.btn--dark:hover { background: #000; color: #fff; }
.btn--coral { background: var(--coral); color: #1B1009; }
.btn--coral:hover { background: #E38253; color: #1B1009; }
.btn--line { border-color: var(--charcoal); color: var(--charcoal); }
.btn--line:hover { background: var(--charcoal); color: var(--panel); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(226, 222, 212, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--rule); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand img { width: 194px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--body); }
.nav__list a:hover { color: var(--charcoal); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 6px auto; background: var(--charcoal); border-radius: 2px; }

/* Hero */
.hero { padding: 72px 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero__title { font-size: clamp(44px, 6.4vw, 86px); font-weight: 800; letter-spacing: -0.035em; line-height: .98; }
.hero__intro { font-size: clamp(18px, 1.7vw, 21px); max-width: 34em; margin: 28px 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art img { width: 100%; max-width: 440px; margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 72px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 26px 24px 26px 0; }
.stats__item + .stats__item { padding-left: 24px; border-left: 1px solid var(--rule); }
.stats dd { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.stats dt { font-size: 14px; line-height: 1.4; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section--panel { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section__head--stack { display: block; }
.section__head h2, .cta h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; }
.section__more { font-size: 15px; font-weight: 600; white-space: nowrap; }
.lede { max-width: 38em; margin: 16px 0 0; font-size: 18px; }

/* Featured video */
.feature { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-bottom: 56px; }
.feature__player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); }
.feature__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feature__poster { display: block; position: absolute; inset: 0; }
.feature__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature__poster:hover img { transform: scale(1.02); }
.feature__text h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.12; margin-bottom: 14px; }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--coral); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s; }
.play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.feature__poster:hover .play { transform: scale(1.06); }

/* Video grid */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.video { display: block; text-decoration: none; }
.video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--rule); }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.video:hover .video__thumb img { transform: scale(1.04); }
.video__title { display: block; margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.28; letter-spacing: -0.01em; color: var(--charcoal); }
.video:hover .video__title { color: var(--coral-deep); }
.video__meta { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.tag { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--charcoal); color: var(--panel); font-size: 12px; font-weight: 600; letter-spacing: .04em; }

/* Partner logos */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 44px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.logos li { display: flex; align-items: center; justify-content: center; min-height: 116px; padding: 22px; box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule); }
.logos a { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.logos img { max-width: 132px; max-height: 44px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .82; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
.logos__name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--charcoal); opacity: .82; }

/* About specs */
.specs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding: 30px 0; border-top: 1px solid var(--rule); }
.specs__row:last-child { border-bottom: 1px solid var(--rule); }
.specs__label { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--charcoal); }
.specs__label span { display: block; margin-bottom: 6px; font-family: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--coral-deep); }
.specs__row p { margin: 0; font-size: 18px; max-width: 36em; }

/* Contact band */
.cta { background: var(--charcoal); color: #CFCBC2; padding: 96px 0; }
.cta .eyebrow { color: #E9895C; }
.cta h2 { color: var(--panel); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cta__text { margin: 20px 0 0; font-size: 18px; max-width: 34em; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta__email { color: var(--panel); font-size: 15px; overflow-wrap: anywhere; }
.cta__email:hover { color: #E9895C; }

/* Footer */
.site-footer { background: #1B1B1D; color: #9C978D; padding: 40px 0; font-size: 14px; }
.site-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer__legal { margin: 14px 0 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { color: #CFCBC2; text-decoration: none; }
.site-footer__links a:hover { color: #E9895C; }

/* Inner pages */
.entry + .entry { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rule); }
.entry__title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-bottom: 28px; }
.entry__title a { text-decoration: none; }
.entry__content h2 { font-size: 30px; margin: 1.6em 0 .6em; }
.entry__content h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.entry__content ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.entry__content img { border-radius: 12px; }
.nav-links { display: flex; gap: 12px; margin-top: 48px; }

/* Responsive */
@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; gap: 36px; }
	.hero__art { order: -1; }
	.hero__art img { max-width: 260px; margin: 0; }
	.hero { padding-top: 44px; }
	.feature { grid-template-columns: 1fr; gap: 22px; }
	.videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cta__grid { grid-template-columns: 1fr; gap: 32px; }
	.section, .cta { padding: 72px 0; }
}
@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px 20px 26px; background: var(--stone); border-bottom: 1px solid var(--rule); }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 4px; width: 100%; }
	.nav__list a { display: block; padding: 10px 0; font-size: 18px; }
	.stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
	.stats__item:nth-child(3) { padding-left: 0; border-left: 0; }
	.stats__item:nth-child(n+3) { border-top: 1px solid var(--rule); }
	.specs__row { grid-template-columns: 1fr; gap: 12px; }
	.section__head { display: block; }
	.section__more { display: inline-block; margin-top: 12px; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.wrap { padding: 0 20px; }
	.brand img { width: 164px; }
	.videos { grid-template-columns: 1fr; gap: 30px; }
	.logos { grid-template-columns: repeat(2, 1fr); }
	.logos li { min-height: 96px; }
	.play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.play::after { left: 26px; top: 20px; border-width: 12px 0 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
