/*
 * ConsultAir homepage redesign (Task 89 page 1, revised Option B), Dec 4, 2026.
 * Loaded on the homepage only (functions.php, handle wpnp-home).
 * Phone layout below 950px, matching the theme's responsive.css breakpoint.
 * Version 1.4 (Dec 4, 2026): outline secondary buttons, light audience section,
 * bio heading and column, audience cards restyled, key-facts wrapping.
 * Version 1.5 (Dec 4, 2026): teal Knowledge Library band, full-size Resources buttons,
 * "Learn more" on audience cards, new photo frame, darker bio text.
 * Version 1.6 (Dec 4, 2026): hero H1 and bio heading in Roboto Bold, normal capitalization
 * (Orbitron kept only for the How It Works and HVAC Design For headings).
 * Version 1.7 (Dec 4, 2026): How It Works and Who We Design For headings now match the
 * Resources heading (Roboto Bold 30px, phones 24px); Orbitron no longer used on the homepage.
 */

/* ---------- Shared ---------- */
.home-wrap{ max-width: 1172px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
a.home-btn,
span.home-btn{
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 26px; box-sizing: border-box;
	border-radius: 6px; border: 2px solid transparent;
	font-family: 'robotobold', Arial, Helvetica, sans-serif; font-weight: normal;
	font-size: 16px; line-height: 1.2; text-align: center;
	text-decoration: none !important; cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.home-btn.home-btn-red{ background: #e90304; border-color: #e90304; color: #ffffff !important; }
a.home-btn.home-btn-red:hover,
a:hover > .home-btn.home-btn-red{ background: #c00203; border-color: #c00203; color: #ffffff !important; }
.home-btn.home-btn-line{ background: transparent; border-color: #2C4A5E; color: #2C4A5E !important; }
a.home-btn.home-btn-line:hover{ background: #2C4A5E; color: #ffffff !important; }
.home-btn.home-btn-white{ background: #ffffff; border-color: #ffffff; color: #111111 !important; }
a.home-btn.home-btn-white:hover{ background: #e6e6e6; border-color: #e6e6e6; }

/* ---------- Hero ---------- */
#home-hero{ background: #ffffff; padding: 56px 0; }
.home-hero-grid{ display: flex; align-items: center; gap: 40px; }
.home-hero-text{ flex: 1 1 54%; min-width: 0; }
#home-hero h1{
	font-family: 'robotobold', Arial, Helvetica, sans-serif; font-weight: normal;
	text-transform: none; font-size: 38px; line-height: 1.2; color: #111111;
	margin: 0 0 18px;
}
#home-hero .home-hero-lead{ font-size: 19px; line-height: 1.55; color: #333333; margin: 0 0 14px; }
#home-hero .home-hero-tagline{ font-size: 16px; line-height: 1.5; color: #555555; margin: 0 0 22px; }
.home-hero-buttons{ display: flex; flex-wrap: wrap; gap: 14px; }
.home-hero-figure{
	flex: 1 1 46%; min-width: 0; margin: 0;
	background: #F5F3EE; border: 1px solid #d5dde2; border-radius: 8px; padding: 16px;
	box-sizing: border-box;
}
.home-hero-figure img{ display: block; width: 100%; height: auto; background: #ffffff; border: 1px solid #d5dde2; box-sizing: border-box; }
.home-hero-figure figcaption{ font-size: 14px; line-height: 1.5; color: #444444; margin-top: 10px; }
.home-hero-figure figcaption a{ color: #2C4A5E; text-decoration: underline; }

/* ---------- Key facts strip ---------- */
#home-keyfacts{ background: #2C4A5E; color: #ffffff; padding: 18px 0; }
.home-keyfacts-grid{ display: grid; grid-template-columns: repeat(4, auto); justify-content: space-around; gap: 20px; text-align: center; list-style: none; }
.home-keyfacts-grid li{ display: flex; flex-direction: column; gap: 2px; }
.home-keyfacts-grid strong{ font-family: 'robotobold', Arial, Helvetica, sans-serif; font-weight: normal; font-size: 22px; line-height: 1.3; }
.home-keyfacts-grid span{ font-size: 14px; line-height: 1.4; color: #d6e2ea; text-wrap: balance; }

/* ---------- How It Works ---------- */
#home-how{ background: #F5F3EE; padding: 56px 0 28px; }
#home-how h2{
	font-family: 'robotobold', Arial, Helvetica, sans-serif; font-weight: normal;
	text-transform: none; text-align: center; font-size: 30px; line-height: 30px; color: #000000;
	margin: 0 0 28px;
}
.home-how-steps{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.home-how-steps li{ background: #ffffff; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.home-how-num{
	flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
	background: #e90304; color: #ffffff;
	font-family: 'robotobold', Arial, Helvetica, sans-serif; font-size: 17px;
	display: flex; align-items: center; justify-content: center;
}
.home-how-body{ display: flex; flex-direction: column; gap: 8px; }
.home-how-title{ font-family: 'robotobold', Arial, Helvetica, sans-serif; font-size: 19px; line-height: 1.3; color: #111111; }
.home-how-text{ font-size: 15px; line-height: 1.55; color: #333333; }
.home-how-text a{ color: #2C4A5E; text-decoration: underline; }

/* ---------- Bio (existing #main.home section) ---------- */
#main.home{ padding-top: 28px; background: #ffffff; }
#main.home .home-bio-text{ overflow: hidden; }
#main.home .home-bio-text > h2{
	font-family: 'robotobold', Arial, Helvetica, sans-serif; font-weight: normal;
	text-transform: none; font-size: 28px; line-height: 1.3; color: #111111;
	margin: 0 0 16px;
}
#main.home #content a.home-btn{ margin-top: 6px; }
#main.home .home-bio-text p{ color: #333333; }
#main.home .wp-caption{ border: 1px solid #d5dde2; border-radius: 6px; overflow: hidden; }
#main.home .wp-caption:after{ display: none; }
#main.home .wp-caption img{ border-radius: 0; }
#main.home .wp-caption .wp-caption-text{ color: #333333; font-size: 15px; line-height: 1.4; padding: 10px 8px; border-radius: 0; }

/* ---------- Resources section (plain background, Dec 4, 2026) ---------- */
#partners-ca{ background: #F5F3EE; }
#partners-ca a.resources-cta-btn{
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 26px; box-sizing: border-box;
	font-family: 'robotobold', Arial, Helvetica, sans-serif; font-weight: normal; font-size: 16px; line-height: 1.2;
	background: transparent; border: 2px solid #2C4A5E; border-radius: 6px; color: #2C4A5E !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}
#partners-ca a.resources-cta-btn:hover{ background: #2C4A5E; color: #ffffff !important; }

/* ---------- Load calculation guide card ---------- */
#home-guide{ background: #ffffff; padding: 48px 0; }
a.home-guide-card{
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	background: #ffffff; border: 1px solid #d5dde2; border-top: 4px solid #2C4A5E; border-radius: 6px;
	padding: 28px 32px; text-decoration: none; color: #333333;
	transition: box-shadow 0.2s ease;
}
a.home-guide-card:hover{ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.home-guide-copy{ display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.home-guide-kicker{ font-family: 'robotobold', Arial, Helvetica, sans-serif; font-size: 14px; color: #2C4A5E; text-transform: uppercase; letter-spacing: 0.5px; }
.home-guide-title{ font-family: 'robotobold', Arial, Helvetica, sans-serif; font-size: 24px; line-height: 1.3; color: #111111; }
.home-guide-text{ font-size: 16px; line-height: 1.5; }
a.home-guide-card .home-btn{ flex: 0 0 auto; }
a.home-guide-card:hover .home-btn.home-btn-line{ background: #2C4A5E; color: #ffffff !important; }

/* ---------- HVAC Design For (audience cards) ---------- */
#hvac-design-for{ background: #F5F3EE; padding: 56px 0; }
#hvac-design-for h2{
	font-family: 'robotobold', Arial, Helvetica, sans-serif; font-weight: normal;
	text-transform: none; font-size: 30px; line-height: 30px; color: #000000;
	margin: 0 0 28px;
}
.home-aud-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
a.home-aud-card{ display: flex; flex-direction: column; background: #ffffff; text-decoration: none; color: #333333; border-radius: 6px; overflow: hidden; transition: box-shadow 0.2s ease; }
a.home-aud-card:hover{ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
a.home-aud-card img{ display: block; width: 100%; height: auto; }
.home-aud-body{ display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px; flex: 1 1 auto; }
.home-aud-title{ font-family: 'robotobold', Arial, Helvetica, sans-serif; font-size: 19px; line-height: 1.3; color: #111111; transition: color 0.2s ease; }
a.home-aud-card:hover .home-aud-title{ color: #2C4A5E; }
.home-aud-text{ font-size: 15px; line-height: 1.55; color: #333333; }
.home-aud-more{ margin-top: auto; padding-top: 6px; font-family: 'robotobold', Arial, Helvetica, sans-serif; font-size: 15px; color: #2C4A5E; }
a.home-aud-card:hover .home-aud-more{ text-decoration: underline; }

/* ---------- Knowledge Library band ---------- */
#learnmore-wide{ border-top: 0; }
#learnmore-wide .wrapper{ background: #2C4A5E; border: 0; min-height: 0; }
.home-kl{ display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.home-kl-text{ display: flex; flex-direction: column; gap: 4px; }
#learnmore-wide .home-kl h2{ font-family: 'robotobold', Arial, Helvetica, sans-serif; font-weight: normal; color: #ffffff; font-size: 24px; line-height: 1.3; margin: 0; }
#learnmore-wide .home-kl p{ color: #d6e2ea; font-size: 16px; line-height: 1.4; margin: 0; }
#learnmore-wide .home-kl a.home-btn.home-btn-white{ color: #2C4A5E !important; }

/* ---------- Phones and small tablets ---------- */
@media only screen and (max-width: 950px){
	.home-wrap{ padding: 0 20px; }
	#home-hero{ padding: 28px 0; }
	.home-hero-grid{ flex-direction: column; align-items: stretch; gap: 20px; }
	#home-hero h1{ font-size: 28px; line-height: 1.25; margin-bottom: 14px; }
	#home-hero h1 br{ display: none; }
	#home-hero .home-hero-lead{ font-size: 17px; line-height: 1.5; }
	#home-hero .home-hero-tagline{ font-size: 15px; margin-bottom: 18px; }
	.home-hero-buttons{ flex-direction: column; gap: 12px; }
	.home-hero-buttons .home-btn{ width: 100%; padding: 0 20px; }
	.home-hero-figure{ padding: 12px; }

	#home-keyfacts{ padding: 16px 0; }
	.home-keyfacts-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 18px 12px; }
	.home-keyfacts-grid strong{ font-size: 18px; }
	.home-keyfacts-grid span{ font-size: 13px; }

	#home-how{ padding: 28px 0 0; }
	#home-how h2{ font-size: 24px; line-height: 24px; margin-bottom: 16px; }
	.home-how-steps{ grid-template-columns: 1fr; gap: 14px; }
	.home-how-steps li{ flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
	.home-how-num{ flex: 0 0 36px; width: 36px; height: 36px; }
	.home-how-title{ font-size: 17px; }

	#main.home{ padding-top: 28px; }
	#main.home .home-bio-text > h2{ font-size: 22px; margin-bottom: 12px; }
	#partners-ca h2{ font-size: 24px; }
	#main.home #content a.home-btn{ display: flex; width: 100%; }

	#home-guide{ padding: 28px 0; }
	a.home-guide-card{ flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
	.home-guide-kicker{ font-size: 13px; }
	.home-guide-title{ font-size: 19px; }
	.home-guide-text{ font-size: 15px; }
	a.home-guide-card .home-btn{ width: 100%; }

	.home-aud-grid{ grid-template-columns: 1fr; gap: 16px; }
	#hvac-design-for{ padding: 28px 0; }
	#hvac-design-for h2{ font-size: 24px; line-height: 24px; margin-bottom: 16px; }
	.home-aud-body{ padding: 16px 18px 18px; gap: 6px; }
	.home-aud-title{ font-size: 17px; }
	.home-aud-text{ font-size: 14px; }

	.home-kl{ flex-direction: column; text-align: center; gap: 14px; padding-top: 24px; padding-bottom: 24px; }
	#learnmore-wide .home-kl h2{ font-size: 19px; }
	#learnmore-wide .home-kl p{ font-size: 14px; }
	.home-kl .home-btn{ width: 100%; }

	#partners-ca a.resources-cta-btn{ padding: 0 20px; }
}