/* ============================================================
   RTS Coach — design system
   Industrial-modern: charcoal + RTS blue, condensed display type
   ============================================================ */

:root {
	--ink: #14181d;
	--ink-2: #1d232b;
	--paper: #ffffff;
	--paper-2: #f3f5f8;
	--blue: #02a1ff;
	--blue-deep: #0079c8;
	--line: #e2e7ed;
	--text: #2b333c;
	--muted: #5c6773;
	--display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--body: "Inter", -apple-system, "Segoe UI", sans-serif;
	--radius: 6px;
	--container: 72rem;
	--shadow: 0 10px 30px rgba(16, 24, 34, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-deep); }

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3, .brand-mark {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.05;
	color: var(--ink);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.eyebrow {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--blue);
	margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-block;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.125rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	padding: 0.7rem 1.6rem;
	border-radius: var(--radius);
	border: 2px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { font-size: 1.3rem; padding: 0.85rem 2rem; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }

/* ---------- Topbar ---------- */

.topbar {
	background: var(--ink);
	color: #aeb8c2;
	font-size: 0.85rem;
	padding: 0.4rem 0;
}
.topbar a { color: #d5dde4; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar-sep { margin-inline: 0.6rem; opacity: 0.4; }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 0.7rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }

.brand-mark {
	display: grid;
	place-items: center;
	width: 2.9rem;
	height: 2.9rem;
	background: var(--blue);
	color: #fff;
	font-size: 1.35rem;
	border-radius: var(--radius);
	letter-spacing: 0.03em;
}

.brand-name {
	display: block;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.15rem;
	text-transform: uppercase;
	color: var(--ink);
	line-height: 1.1;
}
.brand-tag { display: block; font-size: 0.72rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }

.nav-menu { display: flex; gap: 1.6rem; list-style: none; }
.nav-menu a {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--ink);
	text-decoration: none;
}
.nav-menu a:hover { color: var(--blue-deep); }
.nav-cta { font-size: 1rem; padding: 0.5rem 1.2rem; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
	color: #cfd7de;
	padding: clamp(4rem, 9vw, 7.5rem) 0;
}
/* Tread-line texture + blue glow */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 28px);
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(640px 420px at 82% 12%, rgba(2, 161, 255, 0.22), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .accent { color: var(--blue); }
.hero-sub { max-width: 40rem; font-size: 1.2rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-proof {
	display: flex;
	gap: 2.5rem;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 1.5rem;
}
.proof-item strong {
	display: block;
	font-family: var(--display);
	font-size: 1.6rem;
	text-transform: uppercase;
	color: #fff;
}
.proof-item span { font-size: 0.9rem; }
.proof-item a { color: var(--blue); text-decoration: none; }

/* ---------- Partner strip ---------- */

.partner-strip {
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding: 1.1rem 0;
}
.partner-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}
.partner-inner span {
	font-family: var(--display);
	font-weight: 600;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}
.partner-inner img { height: 2.2rem; width: auto; }

/* ---------- Sections ---------- */

section { scroll-margin-top: 5rem; }

/* Scroll reveal */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

.pillars { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.card-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.engage { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper-2); }
.card-feature { border-top: 4px solid var(--blue); display: flex; flex-direction: column; gap: 0.75rem; }
.card-feature .btn { align-self: flex-start; margin-top: auto; }

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.75rem;
	box-shadow: var(--shadow);
}
.card-num {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--blue);
	letter-spacing: 0.1em;
}
.card-icon {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius);
	background: rgba(2, 161, 255, 0.1);
	color: var(--blue-deep);
	margin-bottom: 0.9rem;
}
.card-icon svg { width: 1.7rem; height: 1.7rem; }
.card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16, 24, 34, 0.12); }

/* Program */

.program { background: var(--paper-2); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.program-inner {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 3.5rem;
	align-items: start;
}
.program-intro p { margin-bottom: 1.5rem; }

.program-list { list-style: none; counter-reset: prog; display: grid; gap: 1rem; }
.program-list li {
	counter-increment: prog;
	background: #fff;
	border: 1px solid var(--line);
	border-left: 4px solid var(--blue);
	border-radius: var(--radius);
	padding: 1.1rem 1.3rem 1.1rem 3.6rem;
	position: relative;
}
.program-list li::before {
	content: counter(prog, decimal-leading-zero);
	position: absolute;
	left: 1.1rem;
	top: 1.05rem;
	font-family: var(--display);
	font-weight: 700;
	color: var(--blue);
	font-size: 1.15rem;
}

/* Quotes */

.quotes {
	background: var(--ink);
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
	text-align: center;
}
.quote {
	display: none;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(1.5rem, 3.4vw, 2.4rem);
	line-height: 1.25;
	color: #fff;
	max-width: 50rem;
	margin-inline: auto;
}
.quote.is-active { display: block; }

.quote-dots { margin-top: 1.75rem; display: flex; gap: 0.6rem; justify-content: center; }
.quote-dot {
	width: 0.65rem; height: 0.65rem;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
}
.quote-dot.is-active { background: var(--blue); }
.quote-attrib {
	margin-top: 1.1rem;
	color: #8f9aa5;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-family: var(--display);
}

/* Founder */

.founder { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.founder-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3.5rem;
	align-items: center;
}
.founder-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.founder-copy p { margin-bottom: 1.25rem; }
.founder-quote {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.35rem;
	color: var(--ink);
	border-left: 4px solid var(--blue);
	padding-left: 1rem;
}

/* Coaching network */

.network { background: var(--paper-2); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.network-inner {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 3rem;
	align-items: center;
}
.coach-card {
	display: flex;
	gap: 1.25rem;
	align-items: center;
}
.coach-card img {
	width: 6.5rem;
	height: 6.5rem;
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
	border: 3px solid var(--blue);
}
.coach-role {
	font-family: var(--display);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 0.3rem;
}

/* CTA banner */

.cta-banner {
	background: linear-gradient(115deg, var(--blue-deep), var(--blue));
	color: #fff;
	text-align: center;
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-banner h2 { color: #fff; max-width: 46rem; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-banner .eyebrow { color: rgba(255, 255, 255, 0.85); }

/* ---------- Page / blog ---------- */

.page-hero {
	background: linear-gradient(180deg, var(--ink), var(--ink-2));
	color: #b9c2cb;
	padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.page-hero h1 { color: #fff; }
.page-hero-sub { max-width: 38rem; margin-top: 0.5rem; }

.post-list { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card-meta { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.post-card-title { font-size: 1.3rem; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--blue-deep); }
.post-card-more {
	margin-top: auto;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95rem;
}

.pagination-wrap { margin-top: 2.5rem; text-align: center; }
.pagination-wrap .page-numbers { padding: 0.4rem 0.75rem; text-decoration: none; }
.pagination-wrap .current { color: var(--ink); font-weight: 700; }

/* Prose (page & post content) */

.prose-wrap { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.prose { max-width: 46rem; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.post-hero-img { margin-bottom: 2rem; }

/* Legacy content cleanup: hide stock placeholders and page-level share rows */
.prose img[src*="person-placeholder"] { display: none; }
.page .sharedaddy { display: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #9aa5b0; font-size: 0.95rem; }
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
	padding-block: 3.5rem 2.5rem;
}
.footer-brand p { margin-top: 1rem; max-width: 26rem; }
.footer-heading {
	font-family: var(--display);
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #fff;
	margin-bottom: 0.9rem;
}
.footer-menu { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: #cfd7de; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 1rem; margin-top: 0.75rem; }
.footer-legal {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 1.25rem;
	font-size: 0.85rem;
}
.footer-legal a { margin-left: 1rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
	.program-inner, .founder-inner, .footer-grid, .network-inner { grid-template-columns: 1fr; gap: 2rem; }
	.founder-photo { order: -1; }

	.nav-toggle {
		display: grid;
		place-items: center;
		width: 2.75rem;
		height: 2.75rem;
		background: none;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		cursor: pointer;
	}
	.nav-toggle-bar,
	.nav-toggle-bar::before,
	.nav-toggle-bar::after {
		content: "";
		display: block;
		width: 1.25rem;
		height: 2px;
		background: var(--ink);
		position: relative;
		transition: transform 0.2s ease;
	}
	.nav-toggle-bar::before { position: absolute; top: -6px; }
	.nav-toggle-bar::after { position: absolute; top: 6px; }

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		padding: 1.25rem;
		flex-direction: column;
		align-items: flex-start;
	}
	.site-nav.is-open { display: flex; }
	.nav-menu { flex-direction: column; gap: 0.9rem; }
	.topbar-links { display: none; }
}
