/*
Theme Name: Team Resource Hub
Description: Classic WordPress theme for a hybrid public/membership resource site. Pairs with the Team Resource Hub plugin. Uses the standard Customizer (Appearance > Customize) for logo, colors, and menus.
Author: Custom
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: trh-theme
*/

:root {
	--trh-navy: #0B1F3A;
	--trh-navy-light: #12335C;
	--trh-coral: #EE5A6F;
	--trh-gold: #F5B301;
	--trh-off-white: #F6F7F9;
	--trh-text: #1C2430;
	--trh-text-muted: #5B6472;
	--trh-border: #E2E5EA;
}

* { box-sizing: border-box; }

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--trh-text);
	margin: 0;
	line-height: 1.6;
	font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 600;
	line-height: 1.25;
}

a { color: var(--trh-coral); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.trh-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Header */
.trh-header {
	background: var(--trh-header-bg, #FFFFFF);
	color: var(--trh-header-text, #0B1F3A);
	padding: 24px 0;
	border-bottom: 1px solid var(--trh-border);
}
.trh-header .trh-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}
.trh-site-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--trh-header-text, #0B1F3A);
	margin: 0;
}
.trh-site-title a { color: inherit; text-decoration: none; }
.trh-custom-logo img { max-height: 80px; width: auto; display: block; }

.trh-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.trh-nav a {
	color: var(--trh-header-text, #0B1F3A);
	font-size: 1rem;
	font-weight: 700;
}
.trh-nav a:hover { color: var(--trh-coral); text-decoration: none; }

/* Hero */
.trh-hero {
	background-color: var(--trh-navy-light);
	background-image: var(--trh-hero-bg-image, none);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: 100px 32px;
}
.trh-hero h1 {
	font-size: 2.6rem;
	margin: 0 0 16px;
}
.trh-hero p {
	font-size: 1.2rem;
	opacity: 0.9;
	max-width: 620px;
	margin: 0 auto 32px;
}

/* Buttons */
.trh-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 6px;
	font-weight: 500;
	text-decoration: none;
}
.trh-btn-primary {
	background: var(--trh-coral);
	color: #fff;
}
.trh-btn-primary:hover { background: #e14a60; color: #fff; text-decoration: none; }
.trh-btn-outline {
	border: 1px solid #fff;
	color: #fff;
}
.trh-btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.trh-btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Program cards */
.trh-section { padding: 64px 32px; }
.trh-section h2 { text-align: center; margin-bottom: 8px; }
.trh-section-intro { text-align: center; color: var(--trh-text-muted); max-width: 520px; margin: 0 auto 40px; }

.trh-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	max-width: 1000px;
	margin: 0 auto;
}
.trh-card {
	border: 1px solid var(--trh-border);
	border-radius: 10px;
	padding: 28px 24px;
}
.trh-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.trh-card a { font-size: 0.9rem; }

/* Main content areas */
.trh-main { padding: 56px 32px; max-width: 800px; margin: 0 auto; }
.trh-main.wide { max-width: 1000px; }

.trh-resource-list, .trh-my-programs {
	list-style: none;
	padding: 0;
	margin: 0;
}
.trh-resource-list li, .trh-my-programs li {
	padding: 14px 0;
	border-bottom: 1px solid var(--trh-border);
}

.trh-locked-notice {
	border: 1px solid var(--trh-border);
	background: var(--trh-off-white);
	padding: 24px;
	border-radius: 8px;
}

/* Footer */
.trh-footer {
	background: var(--trh-navy);
	color: #fff;
	padding: 40px 32px;
}
.trh-footer .trh-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}
.trh-footer a { color: #fff; }
.trh-footer p { margin: 0; font-size: 0.9rem; opacity: 0.85; }

/* Widget areas (footer widgets, sidebar) */
.widget { margin-bottom: 24px; }
.widget-title { font-size: 1rem; margin-bottom: 12px; }

@media (max-width: 640px) {
	.trh-hero h1 { font-size: 1.9rem; }
	.trh-header .trh-container { flex-direction: column; align-items: flex-start; }
}
