/*
Theme Name: Jade Air
Theme URI: https://jadeair.net
Author: Jade Air
Description: Lean custom theme for Jade Air HVAC — replaces Divi for performance and SEO. Page content is managed in the block editor; this theme provides structure, branding, and schema.
Version: 1.0.0
Text Domain: jade-air
*/

:root {
	--jade-orange: #F0501F;
	--jade-orange-dark: #C73D12;
	--jade-blue: #1E8FE0;
	--jade-blue-dark: #0E6BB3;
	--jade-ink: #11202E;
	--jade-ink-2: #1B2F40;
	--jade-bg: #FFFFFF;
	--jade-bg-alt: #F4F6F8;
	--jade-border: #E2E6EA;
	--jade-max-width: 1140px;
}

@font-face {
	font-family: "JazzfestNF";
	src: url('fonts/font.woff2') format('woff2'), url('fonts/font.woff') format('woff');
	font-display: swap;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--jade-ink);
	background: var(--jade-bg);
	line-height: 1.6;
}

h1, h2, h3, .jade-logo-text, .jade-site-title {
	font-family: "JazzfestNF", -apple-system, sans-serif;
	letter-spacing: 0.5px;
	line-height: 1.2;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; margin-top: 2.5rem; }
h3 { font-size: 1.4rem; }

a {
	color: var(--jade-blue);
	text-decoration: none;
}
a:hover {
	color: var(--jade-orange);
}

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

/* Utility bar */
.jade-utility-bar {
	background: var(--jade-ink);
	color: #aab8c2;
	font-size: 0.82rem;
}
.jade-utility-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.45rem 0;
	flex-wrap: wrap;
}
.jade-utility-bar a {
	color: #e5e9ed;
	font-weight: 600;
	margin-left: 1.25rem;
}
.jade-utility-bar a:hover {
	color: var(--jade-orange);
}
.jade-utility-bar-contact a:first-child {
	margin-left: 0;
}

/* Header */
.jade-header {
	border-bottom: 3px solid var(--jade-orange);
	padding: 0.75rem 0;
	position: sticky;
	top: 0;
	background: var(--jade-bg);
	z-index: 100;
	box-shadow: 0 2px 10px rgba(17, 32, 46, 0.06);
}
.jade-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.jade-logo img {
	height: 56px;
	display: block;
}
.jade-header-cta {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.jade-phone-link {
	font-weight: 700;
	color: var(--jade-ink);
	font-size: 1.05rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.jade-phone-link:hover {
	color: var(--jade-orange);
}
.jade-phone-link svg {
	width: 18px;
	height: 18px;
}
.jade-btn {
	display: inline-block;
	background: var(--jade-orange);
	color: #fff;
	padding: 0.7rem 1.5rem;
	border-radius: 999px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-size: 0.92rem;
	transition: background 0.15s ease, transform 0.15s ease;
}
.jade-btn:hover {
	background: var(--jade-orange-dark);
	color: #fff;
	transform: translateY(-1px);
}

/* Nav */
.jade-nav ul {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.jade-nav a {
	color: var(--jade-ink);
	font-weight: 500;
}
.jade-nav a:hover {
	color: var(--jade-orange);
}
.jade-nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--jade-ink);
	padding: 0.25rem;
}
.jade-nav-toggle svg {
	width: 26px;
	height: 26px;
}

@media (max-width: 780px) {
	.jade-nav { display: none; width: 100%; }
	.jade-nav.is-open { display: block; }
	.jade-nav ul { flex-direction: column; gap: 0.75rem; padding: 1rem 0; }
	.jade-nav-toggle { display: block; }
	.jade-header-inner { flex-wrap: wrap; }
}

/* Hero — full-bleed background photo with dark overlay for legibility */
.jade-hero {
	position: relative;
	width: 100%;
	background-size: cover;
	background-position: center;
	padding: 3rem 0 5rem;
	color: #fff;
	overflow: visible;
}
.jade-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(17,32,46,0.92) 0%, rgba(17,32,46,0.72) 45%, rgba(17,32,46,0.35) 100%);
}
.jade-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
}
.jade-hero h1 {
	color: #fff;
	font-size: 3rem;
	margin: 0 0 1rem;
}
.jade-hero-eyebrow {
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 800;
	color: var(--jade-orange);
	font-size: 0.85rem;
	margin: 0 0 0.75rem;
}
.jade-hero-sub {
	font-size: 1.15rem;
	color: #d7dde2;
	max-width: 520px;
	margin: 0 0 1.75rem;
}

/* Star ratings */
.jade-star-rating {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0.75rem 0 1.25rem;
	font-weight: 700;
	color: #e5e9ed;
	font-size: 0.95rem;
}
.jade-star-icons {
	display: inline-flex;
	gap: 2px;
	color: #FFC73C;
}
.jade-star-icons svg {
	width: 18px;
	height: 18px;
}
.jade-star-rating--on-light {
	color: var(--jade-ink);
}

/* Inner-page banner (About, Resources, Contact, Blog index, single posts) */
.jade-page-banner {
	background: radial-gradient(circle at 15% 20%, var(--jade-ink-2) 0%, var(--jade-ink) 60%);
	padding: 2.75rem 0;
	color: #fff;
}
.jade-page-banner h1 {
	color: #fff;
	margin: 0 0 0.5rem;
}
.jade-btn-lg {
	font-size: 1.05rem;
	padding: 0.9rem 1.9rem;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.jade-btn-invert {
	background: #fff;
	color: var(--jade-orange);
}
.jade-btn-invert:hover {
	background: var(--jade-ink);
	color: #fff;
}

/* Overlapping info bar bridging hero into the next section */
.jade-hero-infobar {
	position: relative;
	z-index: 3;
	margin: 2.5rem 0 -3.5rem;
	background: var(--jade-blue);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(17, 32, 46, 0.3);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	overflow: hidden;
}
.jade-infobar-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	color: #fff;
	font-weight: 700;
	padding: 1.5rem 1rem;
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.jade-hero-infobar a.jade-infobar-item:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
.jade-infobar-item:last-child {
	border-right: none;
}
.jade-infobar-icon svg {
	width: 28px;
	height: 28px;
}

@media (max-width: 860px) {
	.jade-hero h1 { font-size: 2.2rem; }
	.jade-hero-inner { max-width: 100%; }
}
@media (max-width: 700px) {
	.jade-hero-infobar { grid-template-columns: 1fr; margin-bottom: -2rem; }
	.jade-infobar-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.18); }
	.jade-infobar-item:last-child { border-bottom: none; }
}

/* Guarantee / credibility section */
.jade-guarantee-section {
	padding: 6.5rem 0 3.5rem;
}
.jade-guarantee-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 3rem;
	align-items: start;
}
.jade-guarantee-photo {
	position: relative;
}
.jade-guarantee-photo img {
	width: 100%;
	border-radius: 12px;
	display: block;
	aspect-ratio: 4/3;
	object-fit: cover;
}
.jade-guarantee-badge {
	position: absolute;
	top: -18px;
	right: -18px;
	background: var(--jade-orange);
	color: #fff;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
	border: 4px solid #fff;
}
.jade-guarantee-copy h2 {
	margin-top: 0;
}
.jade-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem;
	margin: 2rem 0;
}
.jade-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--jade-blue);
	color: var(--jade-blue);
	margin-bottom: 0.6rem;
}
.jade-feature-icon svg {
	width: 22px;
	height: 22px;
}
.jade-feature h3 {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
}
.jade-feature p {
	margin: 0;
	color: #4b5563;
	font-size: 0.95rem;
}

@media (max-width: 860px) {
	.jade-guarantee-grid { grid-template-columns: 1fr; }
	.jade-feature-grid { grid-template-columns: 1fr; }
	.jade-guarantee-section { padding-top: 5rem; }
}

/* Team grid (e.g. About page staff photos) */
.jade-team-grid.wp-block-columns {
	gap: 2rem;
	margin: 2rem 0;
}
.jade-team-member {
	text-align: center;
}
.jade-team-member img {
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid var(--jade-bg-alt);
	box-shadow: 0 10px 24px rgba(17, 32, 46, 0.15);
	margin: 0 auto 1rem;
	display: block;
}
.jade-team-member h3 {
	margin: 0;
	font-size: 1.2rem;
}

/* Services section */
.jade-services-section {
	padding: 3.5rem 0;
}
.jade-section-heading {
	text-align: center;
	margin-bottom: 2rem;
}
.jade-service-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.75rem;
}
.jade-service-card {
	border: 1px solid var(--jade-border);
	border-top: 5px solid var(--jade-orange);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jade-service-card:nth-child(2) {
	border-top-color: var(--jade-blue);
}
.jade-service-card:nth-child(3) {
	border-top-color: var(--jade-ink);
}
.jade-service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 34px rgba(17, 32, 46, 0.16);
}
.jade-service-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}
.jade-service-card h3 {
	margin: 1.1rem 1.25rem 0.5rem;
}
.jade-service-card p {
	margin: 0 1.25rem 1.25rem;
	color: #4b5563;
}

/* CTA band */
.jade-cta-band {
	background: linear-gradient(120deg, var(--jade-blue-dark), var(--jade-blue));
	color: #fff;
	padding: 2.75rem 0;
}
.jade-cta-band-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
}
.jade-cta-band h2 {
	color: #fff;
	margin: 0 0 0.4rem;
}
.jade-cta-band p {
	margin: 0;
	color: #cbd5e1;
}

/* Main content — no padding here; full-bleed sections (hero, bands) need to
   sit flush against the header. Individual templates add their own
   .jade-container with padding for normal text content. */
.jade-main {
	padding: 0;
}
.jade-entry-content img {
	max-width: 100%;
	border-radius: 8px;
}
.jade-cta-button {
	display: inline-block;
	margin-top: 1rem;
	background: var(--jade-blue);
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-weight: 600;
}
.jade-cta-button:hover {
	background: var(--jade-orange);
	color: #fff;
}

/* Blog list */
.jade-post-list {
	display: grid;
	gap: 1.75rem;
}
.jade-post-card {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	border: 1px solid var(--jade-border);
	border-radius: 8px;
	padding: 1.5rem;
}
.jade-post-card-thumb {
	flex: 0 0 220px;
	display: block;
	border-radius: 8px;
	overflow: hidden;
}
.jade-post-card-thumb img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
}
.jade-post-card-body {
	flex: 1 1 auto;
	min-width: 0;
}
.jade-post-card h2 {
	margin-top: 0;
	font-size: 1.4rem;
}
.jade-post-meta {
	color: #6b7280;
	font-size: 0.9rem;
}

@media (max-width: 640px) {
	.jade-post-card {
		flex-direction: column;
	}
	.jade-post-card-thumb {
		flex-basis: auto;
		width: 100%;
	}
	.jade-post-card-thumb img {
		height: 180px;
	}
}

/* Service area hub list (used by Service Areas plugin shortcode) */
.jasa-hub-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.5rem;
	list-style: none;
	padding: 0;
}
.jasa-hub-list li {
	border: 1px solid var(--jade-border);
	border-radius: 6px;
	padding: 0.6rem 0.9rem;
}

/* Footer */
.jade-footer {
	background: var(--jade-ink);
	color: #e5e7eb;
	padding: 2.5rem 0 1.5rem;
	margin-top: 2rem;
}
.jade-footer a {
	color: #e5e7eb;
}
.jade-footer a:hover {
	color: var(--jade-orange);
}
.jade-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
}
.jade-footer-grid h3 {
	color: #fff;
	font-size: 1.1rem;
	margin-top: 0;
}
.jade-footer-bottom {
	border-top: 1px solid #33414d;
	margin-top: 2rem;
	padding-top: 1.25rem;
	font-size: 0.85rem;
	color: #9aa5b1;
	text-align: center;
}

/* Sticky mobile call bar */
.jade-mobile-call-bar {
	display: none;
}
@media (max-width: 700px) {
	.jade-mobile-call-bar {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 200;
		background: var(--jade-orange);
		color: #fff;
		text-align: center;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.4px;
		padding: 0.85rem 1rem;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
	}
	.jade-mobile-call-bar svg {
		width: 18px;
		height: 18px;
	}
	body {
		padding-bottom: 56px;
	}
}
