/*
Theme Name: Astra Child - Peak Performance
Theme URI: https://elevatedevworks.com
Description: Child theme for Astra used for the Peak Performance HVAC demo.
Author: Chris Owens (Elevate DevWorks)
Author URI: https://elevatedevworks.com
Template: astra
Version: 1.0.0
Text Domain: astra-child-peakperformance
*/

/* =========================================
   Design tokens + base
   ========================================= */

:root {
	--edw-radius: 18px;
	--edw-radius-lg: 28px;

	--edw-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	--edw-shadow-lg: 0 35px 80px rgba(15, 23, 42, 0.18);
	--edw-border: 1px solid rgba(2, 6, 23, 0.08);

	--edw-orange: #f97316;
	--edw-navy: #0f172a;

	--edw-heading: #1e293b;
	--edw-text: #334155;

	--edw-maxw: 1100px;
	--edw-gutter: 24px;

	--edw-section-pad: 110px 10px;
	--edw-section-pad-mobile: 34px 10px;
}

body {
	color: var(--edw-heading);
	background: #ffffff; /* IMPORTANT: keep site background white */
}

/* =========================================
   Global layout helpers (premium rhythm)
   ========================================= */

/* Apply this class to section wrapper Groups */
.wp-block-group.edw-section {
	padding: var(--edw-section-pad) !important;
}

/* Gutenberg constrained groups often already have widths,
   but this keeps EDW sections consistent. */
.edw-section.is-layout-constrained,
.edw-section .wp-block-group__inner-container {
	max-width: var(--edw-maxw);
	margin: 0 auto;
	padding-left: var(--edw-gutter);
	padding-right: var(--edw-gutter);
}

.edw-section h2 {
	margin-bottom: 14px;
}

.edw-section p {
	margin-bottom: 18px;
	line-height: 1.7;
	color: var(--edw-text);
}

.edw-section ul {
	line-height: 1.7;
}

/* Soft background treatment for sections (optional) */
.edw-soft {
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0.03),
		rgba(15, 23, 42, 0)
	);
}

/* Divider line for section tops (optional) */
.edw-divider-top {
	position: relative;
}
.edw-divider-top::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: rgba(15, 23, 42, 0.08);
}

.edw-mobile-callbar {
	display: none;
}

/* =========================================
   Cards + accents
   ========================================= */

.edw-accent-line {
	height: 1px;
	width: 50%;
	background-color: var(--edw-orange);
}

.edw-card {
	background: #fff;
	border: var(--edw-border);
	border-radius: var(--edw-radius);
	box-shadow: var(--edw-shadow);
	padding: 28px;
}

.edw-card--soft {
	background: rgba(255, 255, 255, 0.7);
}

/* =========================================
   Icons
   ========================================= */

.edw-icon {
	color: var(--edw-orange);
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.edw-icon svg {
	display: block;
	color: currentColor;
}

.edw-icon svg * {
	opacity: 1 !important;
	stroke-opacity: 1 !important;
	fill-opacity: 1 !important;
	stroke-width: 2.25px;
	vector-effect: non-scaling-stroke;
	fill: currentColor;
}

.edw-icon-md svg {
	width: 48px;
	height: 48px;
}

.edw-icon-sm svg {
	width: 20px;
	height: 20px;
}

/* Star icon */
.edw-star svg {
	display: block;
	color: gold;
}

.edw-star svg * {
	opacity: 1 !important;
	stroke-opacity: 1 !important;
	fill-opacity: 1 !important;
	/* stroke: black !important; */
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
	fill: currentColor;
}

/* =========================================
   Buttons (premium micro-interactions)
   ========================================= */

/* You can keep adding .edw-button class to specific buttons,
   but this also upgrades core WP buttons. */
.edw-button,
.wp-block-button__link {
	border-radius: 36px;
	box-shadow: 0 0 24px rgba(15, 23, 42, 0.06);
	transition:
		transform 0.12s ease,
		box-shadow 0.12s ease,
		background-color 0.12s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.wp-block-button__link:active {
	transform: translateY(0);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.wp-block-button__link:focus-visible {
	outline: 3px solid rgba(249, 115, 22, 0.35);
	outline-offset: 3px;
}

/* =========================================
   HERO
   ========================================= */

.edw-hero {
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	text-align: center;
}

/* Angled overlay (subtle) */
.edw-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	/* background: linear-gradient(
		115deg,
		rgba(249, 115, 22, 0.22) 0%,
		rgba(249, 115, 22, 0.14) 35%,
		rgba(249, 115, 22, 0.05) 55%,
		rgba(255, 255, 255, 0) 70%
	); */
	background: rgba(13, 23, 42, 0.7);
}

/* Light darkening for readability */
.edw-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: rgba(2, 6, 23, 0.06);
}

/* Keep hero text scoped to hero only */
.edw-hero h1,
.edw-hero p,
.edw-hero li {
	/* color: var(--edw-navy); */
	color: #fff;
}

.edw-hero__eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	/* color: rgba(255, 255, 255, 0.82); */
	color: var(--edw-orange) !important;
}

.edw-hero h1 {
	text-align: center;
	font-weight: bold;
	font-size: 50px;
	max-width: 15ch;
	line-height: 1.05;
	margin-bottom: 35px;
}

.edw-hero__subtext {
	max-width: 52ch;
	font-size: 18px;
	line-height: 1.6;
	margin: 40px 0;
	color: rgba(255, 255, 255, 0.88);
}

.edw-hero-bullets {
	margin: 40px 0;
}

.edw-hero__inner {
	position: relative; /* above overlays */
	max-width: var(--edw-maxw);
	margin: 0 auto;
	padding: 20px var(--edw-gutter);
}

.edw-hero__panel {
	display: inline-block;
	padding: 28px;
}

/* Images in hero (if used as image block) */
.edw-hero img {
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
	border-radius: 20px;
}

.edw-hero .wp-block-button {
	margin: 18px 0;
}

/* =========================================
   TRUST section
   ========================================= */

.edw-trust-section {
	margin: 28px 0;
}

/* =========================================
   SERVICES (cards + equal height)
   ========================================= */

.edw-service-card {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.edw-service-card h2 {
	font-size: 36px;
	padding: 20px;
}

.edw-service-card figure.wp-block-image {
	display: flex;
	justify-content: center;
	margin: 0 0 12px 0;
}

.edw-service-card figure.wp-block-image img {
	width: 48px;
	height: 48px;
	max-width: none;
	display: block;
}

.edw-service-card ul {
	margin-bottom: 20px;
}

.edw-service-card .wp-block-buttons {
	padding-top: 20px;
}

/* Equal-height service cards + aligned buttons */
.edw-service-grid .wp-block-columns {
	align-items: stretch;
}

.edw-service-grid .edw-service-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.edw-service-grid .edw-service-card .wp-block-buttons,
.edw-service-grid .edw-service-card .wp-block-button {
	margin-top: auto;
}

/* =========================================
   WHY section
   ========================================= */

.edw-why {
	padding: 56px 0;
	background: #f8fafc;
}

.edw-why .edw-card {
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* =========================================
   SERVICE AREAS section
   ========================================= */

.edw-areas {
	padding: 56px 0;
	color: white;
}

.edw-areas h2,
.edw-areas h4 {
	color: white;
}

.edw-areas-card,
.edw-areas-cta {
	background: #ffffff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.edw-areas-cta h4 {
	color: var(--edw-text);
}

.edw-areas-point {
	border-bottom: 1px solid var(--edw-orange);
}

/* =========================================
   TESTIMONIALS
   ========================================= */

.edw-testimonial-card-stars {
	display: flex;
}

/* .edw-testimonial-card {
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
} */

/* =========================================
   FINAL CTA
   ========================================= */

.edw-form {
	padding: 10px !important;
}

/* =========================================
   SERVICES PAGE HERO (if used)
   ========================================= */

.edw-services-hero {
	padding: 70px 0;
	border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}

/* =========================================
   FAQ
   ========================================= */

.edw-faq {
	background: #f8fafc;
}

/* =========================================
   HOW IT WORKS (service pages)
   ========================================= */

.edw-how .wp-block-columns {
	align-items: center;
	gap: 56px;
}

.edw-step {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	column-gap: 20px;
	align-items: baseline;
	padding: 18px 0;
}

.edw-step > * {
	min-width: 0;
}

.edw-step__num {
	margin: 0 !important;
	font-weight: 800;
	font-size: 22px;
	line-height: 1;
	color: var(--edw-orange);
	opacity: 0.9;
	letter-spacing: 1px;
}

.edw-step__content {
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}
.edw-step__content h3 {
	margin: 0 0 10px 0;
}
.edw-step__content p {
	margin: 0;
	color: var(--edw-text);
}

.edw-how__img img {
	border-radius: 26px;
	box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
}

/* =========================================
   Service Area + CTA strip (navy)
   ========================================= */

.edw-service-strip {
	padding: 56px 0;
	background: var(--edw-navy);
}

.edw-service-strip h3 {
	color: #ffffff;
}

.edw-service-strip p {
	color: rgba(255, 255, 255, 0.78);
}

.edw-service-strip .wp-block-columns {
	align-items: center;
	gap: 40px;
}

.edw-cta-card {
	text-align: center;
}

.edw-cta-card h4 {
	color: var(--edw-heading);
}

.edw-cta-card p {
	color: var(--edw-text);
}

/* =========================================
   Mobile: layout improvements + call bar
   ========================================= */

@media (max-width: 768px) {
	.site-branding {
		padding: 0 !important;
	}
	.site-title {
		font-size: 18px;
	}
	.edw-section {
		padding: var(--edw-section-pad-mobile) 0;
	}

	.edw-hero {
		padding: 10px !important;
	}

	.edw-hero__inner {
		padding: 20px 10px;
	}

	.edw-hero__panel h1 {
		font-size: 36px;
	}

	.edw-hero .wp-block-buttons {
		display: flex;
		gap: 12px;
		align-items: stretch;
	}

	.edw-hero .wp-block-buttons .wp-block-button,
	.edw-hero .wp-block-buttons .wp-block-button__link {
		width: 100%;
	}

	.edw-why,
	.edw-areas {
		padding: 40px 0;
	}

	/* Mobile sticky call bar (only shows on mobile) */
	.edw-mobile-callbar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 12px 16px;
		background: var(--edw-navy);
		z-index: 9999;
	}

	.edw-mobile-callbar__btn {
		display: block;
		text-align: center;
		padding: 14px 16px;
		border-radius: 12px;
		background: var(--edw-orange);
		color: #fff;
		font-weight: 700;
		text-decoration: none;
	}
}

/* Only add bottom padding when callbar exists on the page */
body:has(.edw-mobile-callbar) {
	padding-bottom: 72px;
}
