/*
Theme Name:   Texas Electricity Examiner
Theme URI:    https://www.texaselectricityexaminer.com
Description:  Navy and red child theme for GeneratePress. Header, footer, colors and typography for Texas Electricity Examiner.
Author:       Texas Electricity Examiner
Template:     generatepress
Version:      1.1.1
Requires PHP: 8.1
Text Domain:  tee
*/

:root {
	--tee-navy: #0F2A4A;
	--tee-navy-dark: #0B2038;
	--tee-navy-line: #1C3A60;
	--tee-red: #E31B23;
	--tee-red-dark: #B3141B;
	--tee-red-tint: #FDECEC;
	--tee-green: #22C55E;
	--tee-green-text: #0B3B1C;
	--tee-bg: #F5F7FA;
	--tee-border: #DCE3EC;
	--tee-text: #0F2A4A;
	--tee-text-body: #33475E;
	--tee-muted: #5B6B80;
	--tee-pale: #C9D4E3;
	--tee-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tee-max: 1200px;
	--tee-radius: 14px;
}

/* Base */
body {
	font-family: var(--tee-font);
	color: var(--tee-text-body);
	background: var(--tee-bg);
	font-size: 17px;
	line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--tee-font);
	color: var(--tee-text);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h3 { font-size: 1.25rem; }
a { color: var(--tee-red-dark); }
a:hover, a:focus { color: var(--tee-navy); }
:focus-visible { outline: 3px solid var(--tee-red); outline-offset: 2px; }

.grid-container, .site-content .content-area, .tee-container {
	max-width: var(--tee-max);
}
.tee-container { margin: 0 auto; padding: 0 24px; }

/* Content boxes */
.separate-containers .inside-article,
.one-container .site-content,
.separate-containers .comments-area,
.separate-containers .page-header {
	background: #fff;
	border: 1px solid var(--tee-border);
	border-radius: var(--tee-radius);
}
.entry-meta, .entry-meta a { color: var(--tee-muted); font-size: 14px; }

/* Buttons */
button, .button, input[type="submit"], .wp-block-button__link, a.tee-btn {
	font-family: var(--tee-font);
	font-weight: 700;
	border-radius: 999px;
	background: var(--tee-navy);
	color: #fff;
	border: 0;
	padding: 12px 22px;
	text-decoration: none;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
	background: var(--tee-navy-line);
	color: #fff;
}
a.tee-btn--go, .wp-block-button.is-style-go .wp-block-button__link {
	background: var(--tee-green);
	color: var(--tee-green-text);
}
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], textarea, select {
	border: 1px solid var(--tee-pale);
	border-radius: 8px;
	color: var(--tee-text);
	background: #fff;
}

/* Header */
.tee-header { background: var(--tee-navy); color: #fff; position: relative; z-index: 50; }
.tee-header__bar {
	max-width: var(--tee-max);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.tee-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.tee-brand:hover, .tee-brand:focus { color: #fff; }
.tee-brand__mark {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 10px; background: var(--tee-red); flex: 0 0 40px;
}
.tee-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.tee-brand__kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: #FF8A8F; }
.tee-brand__name { font-size: 18px; font-weight: 800; }
.tee-brand img.custom-logo { max-height: 48px; width: auto; }

.tee-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.tee-nav a {
	color: var(--tee-pale);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.tee-nav a:hover, .tee-nav a:focus,
.tee-nav .current-menu-item > a, .tee-nav .current-menu-ancestor > a, .tee-nav .current_page_parent > a {
	color: #fff;
	border-bottom-color: var(--tee-red);
}
.tee-nav .sub-menu { display: none; }

.tee-header__actions { display: flex; align-items: center; gap: 8px; }
.tee-phone {
	display: flex; align-items: center; gap: 8px;
	color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
	border: 1px solid #3A5578; border-radius: 999px; padding: 10px 16px;
}
.tee-phone:hover, .tee-phone:focus { color: #fff; border-color: #fff; }
.tee-menu-toggle {
	display: none;
	background: transparent; border: 0; color: #fff;
	width: 44px; height: 44px; padding: 0; border-radius: 8px;
	align-items: center; justify-content: center;
}
.tee-menu-toggle:hover { background: var(--tee-navy-line); }

@media (max-width: 860px) {
	.tee-header__bar { flex-wrap: nowrap; }
	.tee-menu-toggle { display: flex; }
	.tee-phone .tee-phone__label { display: none; }
	.tee-phone { width: 44px; height: 44px; padding: 0; justify-content: center; }
	.tee-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--tee-navy); border-top: 1px solid var(--tee-navy-line);
		padding: 8px 24px 20px;
	}
	.tee-nav.is-open { display: block; }
	.tee-nav ul { flex-direction: column; gap: 0; }
	.tee-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--tee-navy-line); }
	.tee-brand__name { font-size: 15px; }
	.tee-brand__mark { width: 34px; height: 34px; flex-basis: 34px; }
}

/* Footer */
.tee-footer { background: var(--tee-navy-dark); color: #9FB2CC; margin-top: 48px; }
.tee-footer__main {
	max-width: var(--tee-max); margin: 0 auto; padding: 40px 24px 24px;
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.tee-footer__about p { margin: 0 0 10px; }
.tee-footer__small { font-size: 13px; }
.tee-footer a.tee-footer__phone { color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap; }
.tee-footer__note {
	max-width: var(--tee-max); margin: 0 auto; padding: 16px 24px 0;
	border-top: 1px solid var(--tee-navy-line); font-size: 13px; line-height: 1.6;
}
.tee-footer .tee-footer__note a { text-decoration: underline; }
@media (max-width: 900px) {
	.tee-footer__main { grid-template-columns: 1fr 1fr; }
	.tee-footer__about { grid-column: 1 / -1; }
}
.tee-footer h2 { color: #fff; font-size: 15px; margin: 0 0 12px; letter-spacing: 0; }
.tee-footer ul { list-style: none; margin: 0; padding: 0; }
.tee-footer li { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.tee-footer a { color: var(--tee-pale); text-decoration: none; }
.tee-footer a:hover, .tee-footer a:focus { color: #fff; text-decoration: underline; }
.tee-footer__about { font-size: 14px; line-height: 1.6; }
.tee-footer__legal {
	max-width: var(--tee-max); margin: 0 auto; padding: 14px 24px 28px;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px;
}
.tee-footer__legal ul { display: flex; flex-wrap: wrap; gap: 20px; }

/* Hide GeneratePress pieces we replace */
.site-header, .site-info, #mobile-header, .site-footer .footer-widgets { display: none !important; }
/* Our footer prints inside GeneratePress's .site-footer wrapper, so keep the wrapper visible but plain. */
.site-footer { display: block !important; padding: 0; margin: 0; background: none; }
