/*
Theme Name: TBM House
Theme URI: https://tbmhouse.com
Author: TBM House
Description: Custom premium dark theme for TBM House, an online dance studio. Implements the TBM House brand system: dark charcoal backgrounds, gold accent, Inter typography, rounded cards, and a mobile-first single-column layout. Pairs with the TBM House Toolkit plugin for the class library.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tbm-house
*/

/* ---------- Design tokens ---------- */
:root {
	--tbm-bg-primary: #171411;
	--tbm-bg-secondary: #24201C;
	--tbm-accent: #F2A71B;
	--tbm-accent-hover: #D99210;
	--tbm-text-primary: #F4F1EC;
	--tbm-text-secondary: #A89E92;
	--tbm-border: #3A332D;
	--tbm-radius: 12px;
	--tbm-max-width: 1120px;
	--tbm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--tbm-bg-primary);
	color: var(--tbm-text-primary);
	font-family: var(--tbm-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tbm-accent); text-decoration: none; }
a:hover { color: var(--tbm-accent-hover); }
h1, h2, h3, h4 {
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	color: var(--tbm-text-primary);
}
p { margin: 0 0 16px; color: var(--tbm-text-secondary); }
.tbm-container {
	max-width: var(--tbm-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Header ---------- */
.tbm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(23, 20, 17, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--tbm-border);
}
.tbm-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	max-width: var(--tbm-max-width);
	margin: 0 auto;
}
.tbm-logo {
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -0.01em;
	color: var(--tbm-text-primary);
}
.tbm-logo span { color: var(--tbm-accent); }
.tbm-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--tbm-border);
	border-radius: 8px;
	color: var(--tbm-text-primary);
	font-size: 22px;
	line-height: 1;
	padding: 6px 10px;
	cursor: pointer;
}
.tbm-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
.tbm-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.tbm-nav a {
	color: var(--tbm-text-primary);
	font-size: 14px;
	font-weight: 600;
}
.tbm-nav a:hover,
.tbm-nav .current-menu-item > a {
	color: var(--tbm-accent);
}
.tbm-nav-auth a {
	color: var(--tbm-text-secondary);
	font-size: 14px;
	font-weight: 600;
}
.tbm-nav-auth a:hover { color: var(--tbm-accent); }

/* ---------- Buttons ---------- */
.tbm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border-radius: var(--tbm-radius);
	font-weight: 700;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.tbm-btn-primary {
	background: var(--tbm-accent);
	color: #1A1408;
}
.tbm-btn-primary:hover {
	background: var(--tbm-accent-hover);
	color: #1A1408;
	transform: translateY(-1px);
}
.tbm-btn-outline {
	background: transparent;
	border-color: var(--tbm-border);
	color: var(--tbm-text-primary);
}
.tbm-btn-outline:hover {
	border-color: var(--tbm-accent);
	color: var(--tbm-accent);
}
.tbm-btn-block { width: 100%; }

/* ---------- Sections & eyebrows ---------- */
.tbm-section { padding: 96px 0; }
.tbm-section-alt { background: var(--tbm-bg-secondary); }
.tbm-section-tight { padding: 64px 0; }
.tbm-center { text-align: center; }
.tbm-eyebrow {
	display: block;
	color: var(--tbm-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.tbm-lede {
	max-width: 640px;
	margin: 0 auto 48px;
	font-size: 17px;
}

/* ---------- Hero ---------- */
.tbm-hero {
	padding: 120px 24px 100px;
	text-align: center;
}
.tbm-hero h1 {
	font-size: clamp(36px, 6vw, 64px);
	margin-bottom: 12px;
}
.tbm-hero h1 span { color: var(--tbm-accent); }
.tbm-hero-subhead {
	font-size: 18px;
	color: var(--tbm-text-secondary);
	margin-bottom: 36px;
}
.tbm-hero-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---------- Cards & grids ---------- */
.tbm-card {
	background: var(--tbm-bg-secondary);
	border: 1px solid var(--tbm-border);
	border-radius: var(--tbm-radius);
	transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.tbm-card:hover {
	box-shadow: 0 12px 32px rgba(0,0,0,0.4);
	transform: translateY(-3px);
	border-color: var(--tbm-accent);
}
.tbm-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.tbm-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tbm-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	max-width: 720px;
	margin: 0 auto;
}

/* Category cards */
.tbm-category-card {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: var(--tbm-text-primary);
}
.tbm-category-card .tbm-category-image {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(242,167,27,0.28), rgba(23,20,17,0.85));
}
.tbm-category-card .tbm-category-eyebrow {
	position: relative;
	z-index: 1;
	text-align: center;
	margin: auto 0 0;
	padding-top: 40%;
	color: var(--tbm-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.tbm-category-card .tbm-category-footer {
	position: relative;
	z-index: 1;
	padding: 16px 18px;
	border-top: 1px solid var(--tbm-border);
	background: rgba(23,20,17,0.55);
}
.tbm-category-card .tbm-category-footer h3 {
	font-size: 16px;
	margin-bottom: 2px;
}
.tbm-category-card .tbm-category-footer span {
	font-size: 13px;
	color: var(--tbm-text-secondary);
}

/* Class cards */
.tbm-class-card {
	overflow: hidden;
}
.tbm-class-card .tbm-video-wrap { border-radius: 0; }
.tbm-class-card-body { padding: 18px 20px 22px; }
.tbm-class-card-body h3 { font-size: 17px; margin-bottom: 6px; }
.tbm-class-card-body p { font-size: 14px; margin-bottom: 10px; }
.tbm-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--tbm-bg-primary);
	border: 1px solid var(--tbm-border);
	color: var(--tbm-text-secondary);
}
.tbm-badge-free { color: var(--tbm-accent); border-color: var(--tbm-accent); }
.tbm-badge-locked { color: var(--tbm-text-secondary); }

/* ---------- Video embed / click-to-play facade ---------- */
.tbm-video-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--tbm-radius);
	overflow: hidden;
	background: #000;
}
.tbm-video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.tbm-video-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tbm-video-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.15);
	pointer-events: none;
}
.tbm-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--tbm-accent);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: background 180ms ease, transform 180ms ease;
}
.tbm-play-button:hover { background: var(--tbm-accent-hover); transform: translate(-50%, -50%) scale(1.06); }
.tbm-play-icon {
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-left: 20px solid #1A1408;
}
.tbm-video-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tbm-text-secondary);
	border: 1px dashed var(--tbm-border);
}

/* ---------- Pricing ---------- */
.tbm-pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
}
.tbm-pricing-card {
	padding: 32px 28px;
	position: relative;
	display: flex;
	flex-direction: column;
}
.tbm-pricing-card.tbm-featured {
	border-color: var(--tbm-accent);
}
.tbm-popular-badge {
	position: absolute;
	top: -13px;
	left: 28px;
	background: var(--tbm-accent);
	color: #1A1408;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
}
.tbm-pricing-card h3 { font-size: 18px; margin-bottom: 4px; }
.tbm-price {
	font-size: 40px;
	font-weight: 800;
	color: var(--tbm-accent);
	margin: 12px 0 2px;
}
.tbm-price-note { font-size: 13px; color: var(--tbm-text-secondary); margin-bottom: 20px; }
.tbm-feature-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	flex-grow: 1;
}
.tbm-feature-list li {
	font-size: 14px;
	color: var(--tbm-text-secondary);
	padding-left: 22px;
	position: relative;
	margin-bottom: 10px;
}
.tbm-feature-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--tbm-accent);
	font-weight: 700;
}

/* ---------- FAQ ---------- */
.tbm-faq { max-width: 760px; margin: 0 auto; }
.tbm-faq details {
	border-bottom: 1px solid var(--tbm-border);
	padding: 18px 0;
}
.tbm-faq summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.tbm-faq summary::-webkit-details-marker { display: none; }
.tbm-faq summary::after {
	content: "+";
	color: var(--tbm-accent);
	font-size: 22px;
	font-weight: 400;
	margin-left: 16px;
	transition: transform 180ms ease;
}
.tbm-faq details[open] summary::after { transform: rotate(45deg); }
.tbm-faq details p { margin-top: 12px; }

/* ---------- CTA band ---------- */
.tbm-cta-band {
	background: var(--tbm-bg-secondary);
	padding: 80px 24px;
	text-align: center;
}

/* ---------- Footer ---------- */
.tbm-footer {
	border-top: 1px solid var(--tbm-border);
	padding: 48px 24px 32px;
}
.tbm-footer-inner {
	max-width: var(--tbm-max-width);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
}
.tbm-footer-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.tbm-footer-links a { color: var(--tbm-text-secondary); font-size: 13px; }
.tbm-footer-links a:hover { color: var(--tbm-accent); }
.tbm-copyright { color: var(--tbm-text-secondary); font-size: 13px; margin-top: 24px; }

/* ---------- Breadcrumb / up next / paywall ---------- */
.tbm-breadcrumb { font-size: 13px; color: var(--tbm-text-secondary); margin-bottom: 24px; }
.tbm-breadcrumb a { color: var(--tbm-text-secondary); }
.tbm-breadcrumb a:hover { color: var(--tbm-accent); }
.tbm-upnext-title { font-size: 20px; margin: 56px 0 20px; }
.tbm-paywall {
	padding: 48px 32px;
	text-align: center;
}
.tbm-paywall .tbm-btn { margin: 6px; }

/* ---------- Filters ---------- */
.tbm-filter-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.tbm-filter-pills a {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid var(--tbm-border);
	color: var(--tbm-text-secondary);
	font-size: 13px;
	font-weight: 600;
}
.tbm-filter-pills a.is-active,
.tbm-filter-pills a:hover {
	border-color: var(--tbm-accent);
	color: var(--tbm-accent);
}

/* ---------- Account page ---------- */
.tbm-account-shell {
	max-width: 640px;
	margin: 0 auto;
	padding: 64px 24px;
	text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.tbm-grid,
	.tbm-grid-4,
	.tbm-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
	.tbm-nav-toggle { display: inline-flex; }
	.tbm-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--tbm-bg-primary);
		border-bottom: 1px solid var(--tbm-border);
		flex-direction: column;
		align-items: flex-start;
		padding: 20px 24px;
		gap: 18px;
	}
	.tbm-nav.is-open { display: flex; }
	.tbm-nav ul { flex-direction: column; gap: 18px; }
	.tbm-grid,
	.tbm-grid-4,
	.tbm-pricing-grid { grid-template-columns: 1fr; }
	.tbm-section { padding: 64px 0; }
	.tbm-hero { padding: 72px 20px 56px; }
	.tbm-footer-inner { flex-direction: column; }
}
