/*
 * Landing page layout — HCS Heating & Cooling.
 *
 * Ported from the standalone design in
 * `Templates/HCS Heating and Cooling/Landing Pages/public/style.css`,
 * which `build.py` generates from `brand.json` (colours, fonts, phone,
 * service area) and `pages.json` (per-service copy). Tokens live in
 * `base.css`.
 *
 * These templates render a complete standalone document, so the selectors
 * here are unscoped in the same way the original design was — the landing
 * asset loader dequeues the site theme's bundle on these pages so nothing
 * competes with them.
 *
 * Markup contract, per template:
 *   header.bar  → .wrap > img + .tag + a.btn
 *   section.hero→ .wrap > div(eyebrow, h1, p.sub, .cta-row) + aside.card
 *   .strip      → trust tiles
 *   .sym-grid   → symptom tiles, .inline-cta
 *   .services   → .svc tiles (first is .urgent)
 *   .steps      → .step tiles
 *   .why-grid   → proof tiles
 *   .areas      → service-area chips
 *   .faq        → <details> accordions
 *   section.final, footer.site, .mbar (mobile sticky call bar)
 */

/* ------------------------------------------------------------------
   Layout helpers
------------------------------------------------------------------ */
.wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 22px;
}

section {
	padding: 84px 0;
}

/* Light-on-light blocks that continue the flow of the section above them
   (services, form, FAQ) drop their own top padding — the previous
   section's bottom padding already supplies the gap. Blocks that follow
   a full-bleed coloured band keep the full padding, so the band reads as
   a distinct band rather than butting straight into the next heading. */
.section--flush-top {
	padding-top: 0;
}

.kicker {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: 12px;
}

h2.title {
	font-size: clamp(2rem, 4.4vw, 3.2rem);
	font-weight: 800;
	margin-bottom: 14px;
	max-width: 17em;
	color: var(--navy);
}

.lead {
	color: var(--mute);
	font-size: 1.12rem;
	max-width: 40em;
	margin-bottom: 40px;
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.btn,
form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--red) !important;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	padding: 15px 26px;
	border-radius: 8px;
	font-size: 1.08rem;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.15s, background 0.15s;
	box-shadow: 0 8px 22px -8px rgba(var(--cta-rgb), 0.65);
	white-space: nowrap;
}

.btn:hover,
form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style):hover {
	background: var(--red-dark) !important;
	transform: translateY(-2px);
}

.btn svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.btn.alt {
	background: transparent;
	color: var(--teal);
	border: 2px solid var(--teal);
	box-shadow: none;
}

.btn.alt:hover {
	background: var(--teal);
	color: #fff;
}

.btn.alt.onDark {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}

.btn.alt.onDark:hover {
	background: rgba(255, 255, 255, 0.12);
}

.btn.lg {
	font-size: 1.3rem;
	padding: 19px 36px;
}

/* ------------------------------------------------------------------
   Header bar
------------------------------------------------------------------ */
.bar {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.bar .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	gap: 16px;
}

.bar img {
	height: 48px;
	width: auto;
	display: block;
}

/* The logo links home; strip the link chrome so the mark reads as a
   brand mark rather than a text link. */
.bar .logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	flex: none;
}

.bar .logo:hover {
	opacity: 0.85;
}

.bar .tag {
	font-size: 0.78rem;
	color: var(--mute);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.bar .btn {
	padding: 11px 20px;
	font-size: 1rem;
}

.bar .btn .short {
	display: none;
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero {
	position: relative;
	background: linear-gradient(160deg, var(--navy) 35%, var(--teal) 130%);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	padding: 0;
}

.hero .wrap {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 52px;
	align-items: center;
	padding-top: 72px;
	padding-bottom: 120px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sea);
	margin-bottom: 20px;
}

.eyebrow i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--red);
	animation: ping 2s infinite;
}

@keyframes ping {
	0% { box-shadow: 0 0 0 0 rgba(var(--cta-rgb), 0.75); }
	70%, 100% { box-shadow: 0 0 0 11px rgba(var(--cta-rgb), 0); }
}

.hero h1 {
	font-size: clamp(2.6rem, 6vw, 4.8rem);
	font-weight: 900;
	margin-bottom: 22px;
}

.hero h1 em {
	font-style: normal;
	color: var(--sea);
}

.hero p.sub {
	font-size: 1.22rem;
	color: var(--on-dark);
	max-width: 33em;
	margin-bottom: 30px;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.cta-note {
	width: 100%;
	color: var(--on-dark-mute);
	font-size: 0.92rem;
	margin-top: 4px;
}

/* Decorative wave at the bottom of the hero and mirrored at the top of
   the final CTA. Sits behind content via the hero's `isolation`. */
.waves {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 90px;
	z-index: -0;
	pointer-events: none;
	overflow: hidden;
}

.waves svg {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 200%;
	height: 100%;
	animation: swell 26s linear infinite;
}

.waves svg:nth-child(2) {
	animation-duration: 38s;
	animation-direction: reverse;
	opacity: 0.55;
	height: 78%;
}

@keyframes swell {
	to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------
   Hero call card
------------------------------------------------------------------ */
.card {
	background: #fff;
	color: var(--ink);
	border-radius: var(--radius);
	padding: 30px;
	box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.55);
	border-top: 6px solid var(--red);
}

.card .lbl {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mute);
}

.card .num {
	display: block;
	font-family: var(--font-display);
	font-stretch: 90%;
	font-weight: 900;
	font-size: 2.15rem;
	letter-spacing: -0.01em;
	color: var(--red);
	text-decoration: none;
	margin: 4px 0 16px;
	line-height: 1.1;
	white-space: nowrap;
}

.card ul {
	list-style: none;
	display: grid;
	gap: 10px;
	margin-bottom: 22px;
	padding: 0;
}

.card li {
	display: flex;
	gap: 10px;
	font-weight: 600;
	font-size: 1rem;
}

.card li svg {
	width: 22px;
	height: 22px;
	flex: none;
	color: #15805f;
	margin-top: 2px;
}

.card .btn {
	width: 100%;
	font-size: 1.25rem;
	padding: 18px;
}

.card .or {
	display: block;
	text-align: center;
	margin: 14px 0 10px;
	color: var(--mute);
	font-size: 0.88rem;
}

.card .btn.alt {
	padding: 12px;
}

/* ------------------------------------------------------------------
   Trust strip
------------------------------------------------------------------ */
.strip {
	background: var(--navy);
	color: #fff;
}

.strip .wrap {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.strip div {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.25;
	padding: 4px 8px;
}

.strip svg {
	width: 30px;
	height: 30px;
	flex: none;
	color: var(--sea);
}

.strip small {
	display: block;
	font-weight: 500;
	color: var(--on-dark-mute);
	font-size: 0.82rem;
}

/* ------------------------------------------------------------------
   Symptoms
------------------------------------------------------------------ */
.sym-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.sym {
	background: #fff;
	border: 1px solid var(--line);
	border-left: 5px solid var(--red);
	border-radius: 8px;
	padding: 18px 20px;
	font-weight: 700;
	color: var(--navy);
	font-size: 1.05rem;
	line-height: 1.3;
}

.sym small {
	display: block;
	font-weight: 500;
	color: var(--mute);
	font-size: 0.92rem;
	margin-top: 4px;
}

.inline-cta {
	margin-top: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}

.inline-cta p {
	font-weight: 700;
	color: var(--navy);
	font-size: 1.15rem;
}

/* ------------------------------------------------------------------
   Services
------------------------------------------------------------------ */
.services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.svc {
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid var(--teal);
	border-radius: var(--radius);
	padding: 26px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.svc:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px -18px rgba(15, 36, 61, 0.4);
}

.svc .ic {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: var(--foam);
	display: grid;
	place-items: center;
	margin-bottom: 16px;
	color: var(--teal);
}

.svc .ic svg {
	width: 26px;
	height: 26px;
}

.svc h3 {
	font-size: 1.35rem;
	margin-bottom: 8px;
	color: var(--navy);
}

.svc p {
	color: var(--mute);
	font-size: 1rem;
}

.svc.urgent {
	background: var(--navy);
	border-color: var(--navy);
	border-top-color: var(--red);
}

.svc.urgent h3 {
	color: #fff;
}

.svc.urgent .ic {
	background: rgba(255, 255, 255, 0.1);
	color: var(--sea);
}

.svc.urgent p {
	color: var(--on-dark);
}

/* ------------------------------------------------------------------
   How it works
------------------------------------------------------------------ */
.how {
	background: var(--foam);
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.step {
	padding: 0 34px 0 0;
	position: relative;
}

.step .no {
	font-family: var(--font-display);
	font-stretch: 80%;
	font-weight: 900;
	font-size: 4.6rem;
	line-height: 1;
	color: var(--teal);
	opacity: 0.22;
}

.step h3 {
	font-size: 1.5rem;
	margin: -6px 0 8px;
	color: var(--navy);
}

.step p {
	color: var(--mute);
}

.step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 34px;
	right: 10px;
	width: 30px;
	border-top: 3px dotted var(--teal);
	opacity: 0.4;
}

/* ------------------------------------------------------------------
   Why us
------------------------------------------------------------------ */
.why {
	background: var(--teal);
	color: #fff;
}

.why .kicker {
	color: var(--sea);
}

.why h2.title {
	color: #fff;
}

.why .lead {
	color: var(--on-dark);
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.why-grid > div {
	border-top: 3px solid var(--sea);
	padding-top: 20px;
}

.why-grid .n {
	font-family: var(--font-display);
	font-stretch: 85%;
	font-weight: 900;
	font-size: 2.8rem;
	line-height: 1;
	color: #fff;
	margin-bottom: 10px;
}

.why-grid h3 {
	font-size: 1.15rem;
	margin-bottom: 6px;
}

.why-grid p {
	color: var(--on-dark);
	font-size: 0.98rem;
}

/* ------------------------------------------------------------------
   Commercial / emergency band
------------------------------------------------------------------ */
.band {
	background: var(--navy);
	color: #fff;
	border-radius: var(--radius);
	padding: 40px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 28px;
	align-items: center;
}

.band h3 {
	font-size: 1.9rem;
	margin-bottom: 8px;
}

.band p {
	color: var(--on-dark);
	max-width: 38em;
}

.band ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
	padding: 0;
}

.band li {
	background: rgba(255, 255, 255, 0.1);
	padding: 6px 14px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.92rem;
}

/* ------------------------------------------------------------------
   Contact form (FluentForm) — replaces the static design's booking block
------------------------------------------------------------------ */

/* Full-bleed: the form spans the content column rather than sitting in
   a narrow left-aligned box. */
.form-wrap {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 34px;
	width: 100%;
}

/* FluentForm ships its own layout; nudge it to match the design's type
   scale and give the submit button the landing CTA treatment. */
.form-wrap .fluentform label {
	font-weight: 700;
	color: var(--navy);
}

.form-wrap .fluentform input,
.form-wrap .fluentform textarea,
.form-wrap .fluentform select {
	font-family: inherit;
	border-radius: 8px;
	width: 100%;
	max-width: none;
}

.form-wrap .fluentform .ff-btn-submit {
	background: var(--red);
	color: #fff;
	border-radius: 8px;
	font-weight: 800;
}

.form-wrap .fluentform .ff-btn-submit:hover {
	background: var(--red-dark);
}

/* FluentForm caps some layouts at a fixed width and centres the field
   grid; the landing form is meant to run the full column. */
.form-wrap .fluentform .ff-form-container,
.form-wrap .fluentform .ff-row {
	max-width: none;
}

.form-wrap .fluentform .ff-el-group {
	max-width: none;
}

/* ------------------------------------------------------------------
   Service area
------------------------------------------------------------------ */
.areas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 18px;
}

.areas span {
	background: #fff;
	border: 1px solid var(--line);
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 700;
	color: var(--navy);
}

.note {
	color: var(--mute);
	max-width: 40em;
}

.perks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.perks span {
	background: var(--foam);
	color: var(--teal);
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 800;
	font-size: 0.92rem;
}

/* ------------------------------------------------------------------
   FAQ
------------------------------------------------------------------ */
.faq {
	max-width: 820px;
}

details {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	margin-bottom: 12px;
	overflow: hidden;
}

summary {
	cursor: pointer;
	list-style: none;
	padding: 20px 24px;
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--navy);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}

summary::-webkit-details-marker {
	display: none;
}

summary::after {
	content: "+";
	font-size: 1.6rem;
	line-height: 1;
	color: var(--red);
	font-weight: 700;
	transition: transform 0.2s;
}

details[open] summary::after {
	transform: rotate(45deg);
}

details p {
	padding: 0 24px 22px;
	color: var(--mute);
}

/* ------------------------------------------------------------------
   Final CTA
------------------------------------------------------------------ */
.final {
	position: relative;
	background: linear-gradient(160deg, var(--navy) 40%, var(--teal) 140%);
	color: #fff;
	text-align: center;
	padding: 110px 0 80px;
	overflow: hidden;
}

.final .waves {
	top: -1px;
	bottom: auto;
	transform: scaleY(-1);
}

.final h2 {
	font-size: clamp(2.1rem, 5vw, 3.6rem);
	font-weight: 900;
	margin-bottom: 14px;
}

.final p {
	font-size: 1.2rem;
	margin-bottom: 28px;
	color: var(--on-dark);
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
footer.site {
	background: var(--deepest);
	color: var(--on-dark-mute);
	padding: 34px 0 100px;
	font-size: 0.92rem;
}

footer.site .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 14px;
}

footer.site a {
	color: #fff;
}

/* ------------------------------------------------------------------
   Mobile sticky call bar
------------------------------------------------------------------ */
.mbar {
	display: none;
}

/* ------------------------------------------------------------------
   Entrance animation
------------------------------------------------------------------ */
.rise {
	opacity: 0;
	transform: translateY(16px);
	animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.3s; }
.rise.d4 { animation-delay: 0.42s; }

@keyframes rise {
	to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   Phone CTA emphasis
------------------------------------------------------------------ */
.btn:not(.alt) {
	background: linear-gradient(180deg, var(--cta-hi), var(--red) 55%, var(--cta-lo));
	box-shadow: 0 10px 26px -6px rgba(var(--cta-rgb), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	position: relative;
	animation: callpulse 2.4s ease-out infinite;
}

@keyframes callpulse {
	0% { box-shadow: 0 10px 26px -6px rgba(var(--cta-rgb), 0.75), 0 0 0 0 rgba(var(--cta-rgb), 0.55); }
	70%, 100% { box-shadow: 0 10px 26px -6px rgba(var(--cta-rgb), 0.75), 0 0 0 16px rgba(var(--cta-rgb), 0); }
}

.btn:not(.alt) svg {
	animation: ring 2.4s ease-in-out infinite;
	transform-origin: 50% 50%;
}

@keyframes ring {
	0%, 55%, 100% { transform: rotate(0); }
	60% { transform: rotate(-16deg); }
	68% { transform: rotate(14deg); }
	76% { transform: rotate(-10deg); }
	84% { transform: rotate(6deg); }
}

.hero .btn.lg {
	font-size: 1.45rem;
	padding: 22px 40px;
	border-radius: 10px;
}

.bar .btn {
	font-size: 1.1rem;
	padding: 13px 24px;
}

.bar .btn svg {
	width: 22px;
	height: 22px;
}

.card {
	box-shadow: 0 0 0 4px rgba(var(--cta-rgb), 0.35), 0 30px 60px -22px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 980px) {
	.hero .wrap {
		grid-template-columns: 1fr;
		padding-top: 46px;
		padding-bottom: 110px;
		gap: 34px;
	}

	.strip .wrap { grid-template-columns: 1fr 1fr; }
	.services,
	.sym-grid { grid-template-columns: 1fr 1fr; }

	.steps {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.step { padding-right: 0; }
	.step:not(:last-child)::after { display: none; }

	.why-grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px 18px;
	}

	.band {
		grid-template-columns: 1fr;
		padding: 28px;
	}

	.bar .tag { display: none; }

	section { padding: 60px 0; }
}

@media (max-width: 620px) {
	body { font-size: 17px; }

	.services,
	.sym-grid,
	.strip .wrap { grid-template-columns: 1fr; }

	.bar img { height: 40px; }
	.bar .btn .long { display: none; }
	.bar .btn .short { display: inline; }

	.btn.lg { font-size: 1.15rem; padding: 17px 24px; }
	.hero .btn.lg { width: 100%; font-size: 1.3rem; padding: 20px 24px; }

	.card .num { font-size: 2.15rem; }
	.mbar .btn { font-size: 1.3rem; padding: 17px; }

	.mbar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--line);
		box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.3);
	}

	.mbar .btn { width: 100%; }
}

/* ------------------------------------------------------------------
   Reduced motion
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.waves svg,
	.eyebrow i,
	.rise,
	.btn:not(.alt),
	.btn:not(.alt) svg {
		animation: none;
	}

	.rise { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
