/*
 * TEG-HVAC - the customer page when the plugin draws the whole page.
 *
 * public.css is loaded first and styles the sections themselves; this file is
 * only the shell around them - the top bar, the hero, the page heads, the
 * footer - plus the handful of resets a page with no theme behind it needs.
 */

:root { color-scheme: light; }

* { box-sizing: border-box; }

body.thv-app {
	--thv-accent: #e0a800;
	--thv-amber: #e0a800;
	--thv-amber-dark: #b98a00;
	--thv-ink: #2b3a4a;
	--thv-ink-deep: #1d2833;
	--thv-cream: #f7f4ee;
	--thv-line: #e3ddd2;
	--thv-muted: #74818f;
	--thv-red: #c0392b;
	margin: 0;
	background: #fff;
	color: var(--thv-ink);
	font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.thv-app.thv-font-serif { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; }

body.thv-app a { color: var(--thv-amber-dark); }
body.thv-app img { max-width: 100%; height: auto; }

.thv-skip {
	position: absolute;
	left: -9999px;
	background: var(--thv-ink-deep);
	color: #fff;
	padding: 10px 18px;
	z-index: 20;
}

.thv-skip:focus { left: 8px; top: 8px; }

/* ── the top bar ────────────────────────────────────────────────────── */

.thv-topbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 22px;
	background: var(--thv-ink-deep);
	color: #fff;
	position: relative;
	border-bottom: 3px solid var(--thv-amber);
}

.thv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.thv-brand-mark { display: block; }
.thv-brand-name { color: #fff; font-size: 1.15em; font-weight: 700; letter-spacing: .02em; }

.thv-topphone {
	color: var(--thv-amber);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	margin-left: 14px;
}

.thv-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; }

.thv-nav-item {
	color: #e7ecf1;
	text-decoration: none;
	padding: 7px 13px;
	border-radius: 6px;
	font-size: .95em;
	white-space: nowrap;
}

.thv-nav-item:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.thv-nav-on { background: var(--thv-amber); color: var(--thv-ink-deep); font-weight: 700; }
.thv-nav-on:hover { background: var(--thv-amber); color: var(--thv-ink-deep); }
.thv-nav-staff { font-size: .85em; opacity: .8; }
.thv-nav-sep {
	color: #b9c5d1;
	font-size: .72em;
	text-transform: uppercase;
	letter-spacing: .1em;
	margin: 0 6px 0 14px;
	border-left: 1px solid rgba(255, 255, 255, .3);
	padding-left: 14px;
}

.thv-nav-toggle,
.thv-nav-burger { display: none; }

/* ── the demo banner ────────────────────────────────────────────────── */

.thv-demo {
	background: #fdf3e0;
	color: #8a5b09;
	padding: 10px 22px;
	text-align: center;
	font-size: .92em;
}

/* ── the hero and the section heads ─────────────────────────────────── */

.thv-hero {
	background: var(--thv-cream) center/cover no-repeat;
	min-height: 300px;
	display: flex;
	align-items: flex-end;
}

.thv-hero-inner {
	max-width: 1040px;
	margin: 0 auto;
	width: 100%;
	padding: 34px 22px;
}

.thv-hero-name {
	margin: 0;
	font-size: 2.6em;
	line-height: 1.1;
	color: var(--thv-ink-deep);
	text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}

.thv-hero-sub { margin: 6px 0 0; color: var(--thv-ink); font-size: 1.3em; font-weight: 700; letter-spacing: .03em; }

.thv-pagehead { background: var(--thv-cream); border-bottom: 1px solid var(--thv-line); }

.thv-pagehead-inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 26px 22px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.thv-pagehead-inner h1 { margin: 0; font-size: 1.9em; color: var(--thv-ink-deep); line-height: 1.15; }
.thv-pagehead-lead { margin: 4px 0 0; color: var(--thv-muted); }

/* ── the body ───────────────────────────────────────────────────────── */

.thv-main {
	max-width: 1040px;
	margin: 0 auto;
	padding: 30px 22px 60px;
}

.thv-main:focus { outline: none; }

.thv-intro { margin-bottom: 26px; font-size: 1.08em; }

.thv-tiles {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 18px;
}

.thv-tile { margin: 0; }

.thv-tile a {
	display: block;
	height: 100%;
	background: #fff;
	border: 1px solid var(--thv-line);
	border-top: 3px solid var(--thv-amber);
	border-radius: 10px;
	padding: 20px;
	text-decoration: none;
	color: var(--thv-ink);
}

.thv-tile a:hover { border-color: var(--thv-amber); box-shadow: 0 2px 8px rgba(43, 58, 74, .12); }
.thv-tile-name { display: block; font-weight: 700; color: var(--thv-ink-deep); margin: 10px 0 4px; font-size: 1.1em; }
.thv-tile-lead { display: block; font-size: .9em; color: var(--thv-muted); }

.thv-scheme-badge,
.thv-portal .thv-urgent {
	display: flex;
	gap: 12px;
	align-items: center;
	background: var(--thv-cream);
	border-left: 4px solid var(--thv-amber);
	padding: 12px 16px;
	border-radius: 0 6px 6px 0;
	margin: 0 0 16px;
}

.thv-portal .thv-urgent { border-left-color: var(--thv-red); font-weight: 600; }

/* ── the footer ─────────────────────────────────────────────────────── */

.thv-foot {
	background: var(--thv-cream);
	border-top: 3px solid var(--thv-amber);
	margin-top: 40px;
}

.thv-foot-inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 28px 22px 40px;
}

.thv-foot p { margin: 0 0 4px; }
.thv-foot-name { font-weight: 700; color: var(--thv-ink-deep); font-size: 1.1em; }
.thv-foot span + span::before { content: " · "; color: var(--thv-muted); }
.thv-foot-small { font-size: .85em; color: var(--thv-muted); margin-top: 8px; }
.thv-foot-nav { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.thv-foot-nav a { font-size: .9em; }

/* ── narrow screens: the menu folds behind a burger ─────────────────── */

@media (max-width: 860px) {
	.thv-nav-burger {
		display: block;
		margin-left: auto;
		color: #fff;
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
		padding: 4px 8px;
	}

	.thv-nav {
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		margin: 8px 0 0;
		gap: 0;
	}

	.thv-nav-toggle:checked ~ .thv-nav { display: flex; }
	.thv-nav-item { border-radius: 6px; padding: 10px 12px; }
	.thv-nav-sep { border-left: 0; padding: 10px 12px 0; margin: 0; }
	.thv-topphone { margin-left: 0; }
	.thv-hero { min-height: 200px; }
	.thv-hero-name { font-size: 1.9em; }
	.thv-pagehead-inner img { width: 40px; height: 40px; }
}

@media print {
	.thv-topbar, .thv-foot-nav, .thv-demo, .thv-skip, .thv-noprint { display: none !important; }
	body.thv-app { background: #fff; }
}
