/*
Theme Name: HVAC Sizer
Theme URI: https://jwoodeng.com
Description: Child theme of Twenty Twenty-Five for the HVAC Sizer app's website. Navy gradient and app blue (#1673D1), Apple system font.
Author: HVAC Sizer
Template: twentytwentyfive
Version: 1.0.4
Requires at least: 6.7
License: GNU General Public License v2 or later
Text Domain: hvac-toolkit
*/

/* Template parts and full-width sections sit flush; sections set their own spacing. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}
html {
	scroll-behavior: smooth;
}
#features,
#faq {
	scroll-margin-top: 80px;
}

/* ---------- Header ---------- */
.hvac-header {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .hvac-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .hvac-header {
		top: 0;
		position: relative;
	}
}
.hvac-brand {
	margin: 0;
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
}
.hvac-brand a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--wp--preset--color--contrast);
	text-decoration: none !important;
}
.hvac-brand img {
	width: 36px;
	height: 36px;
	border-radius: 22%;
	box-shadow: 0 1px 3px rgba(19, 35, 58, 0.25);
}
.hvac-brand--footer a {
	color: var(--wp--preset--color--base);
}
.hvac-nav a {
	color: var(--wp--preset--color--contrast);
}
.hvac-nav a:hover {
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}
.hvac-nav .current-menu-item > a {
	color: var(--wp--preset--color--accent-1);
}

/* ---------- Sections ---------- */
.hvac-section {
	padding-top: clamp(3.5rem, 8vw, 6rem);
	padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.hvac-hero {
	padding-top: clamp(3.5rem, 8vw, 6rem);
	padding-bottom: clamp(3.5rem, 8vw, 6rem);
	overflow: hidden;
}
.hvac-hero--page {
	padding-top: clamp(2.75rem, 6vw, 4.5rem);
	padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}
.has-hero-gradient-background :where(h1, h2, h3, h4),
.has-navy-dark-background-color :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--base);
}
.has-hero-gradient-background a:where(:not(.wp-element-button)) {
	color: #9CC8F5;
}
.hvac-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}
.has-hero-gradient-background .hvac-lead {
	color: #C9D4E1;
}
.hvac-hero h1 {
	margin-top: 0.75rem;
}
/* Narrow measure, but kept on the section's left edge instead of centered by
   the constrained layout. --hvac-measure is the section's content width. */
.hvac-section-intro {
	max-width: 40rem;
	margin-left: calc((100% - min(100%, var(--hvac-measure, 1180px))) / 2) !important;
	margin-right: auto !important;
}
.hvac-narrow {
	--hvac-measure: 760px;
}

/* Pill label, as on the App Store screenshots */
.is-style-pill {
	display: block;
	width: fit-content;
	margin-left: calc((100% - min(100%, var(--hvac-measure, 1180px))) / 2) !important;
	margin-right: auto !important;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	margin-bottom: 0;
}
.has-text-align-center.is-style-pill {
	margin-left: auto !important;
}
/* Inside columns the pill already starts at the column's edge. */
.wp-block-column > .is-style-pill {
	margin-left: 0 !important;
}

/* Hero phone */
.hvac-hero-shot {
	margin: 0;
}
.hvac-hero-shot img {
	display: block;
	width: 100%;
	max-width: 340px;
	height: auto;
	margin: 0 auto;
	border-radius: 28px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* "No account / no ads / offline" chips */
.hvac-chips {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.hvac-chips li {
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: var(--wp--preset--color--base);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	font-size: 0.875rem;
	font-weight: 600;
}
.hvac-coming-soon {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--wp--preset--color--base);
	border-radius: 12px;
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	width: fit-content;
}

/* Cards */
.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 18px;
	padding: clamp(1.5rem, 3vw, 2rem);
	box-sizing: border-box;
}
.is-style-card > :first-child {
	margin-top: 0;
}
.is-style-card h3 {
	margin-top: 0.5rem;
}
.is-style-card ul {
	padding-left: 1.1rem;
	margin-bottom: 0;
}
.is-style-card li + li {
	margin-top: 0.35rem;
}
.hvac-card-tag {
	color: var(--wp--preset--color--accent-1);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
}

/* Screenshot gallery: a horizontal, snapping row */
.hvac-gallery {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 1.25rem !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1rem;
	-webkit-overflow-scrolling: touch;
}
.hvac-gallery > .wp-block-image {
	flex: 0 0 auto;
	margin: 0 !important;
	scroll-snap-align: start;
}
.hvac-gallery img {
	display: block;
	height: clamp(420px, 60vw, 560px);
	width: auto;
	border-radius: 22px;
	box-shadow: 0 12px 30px rgba(19, 35, 58, 0.18);
}

/* Feature columns on the dark band */
.hvac-feature h3::before {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--accent-1);
	margin-bottom: 0.9rem;
}
.has-hero-gradient-background .hvac-feature p {
	color: #C9D4E1;
}

/* Small print */
.hvac-fineprint {
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--small);
}

/* Two- and three-up grids keep cards the same height */
.wp-block-columns.hvac-grid > .is-style-card {
	align-self: stretch;
}
/* Three-up rows become 2+1 on small tablets (core stacks them below 782px). */
@media (min-width: 782px) and (max-width: 900px) {
	.wp-block-columns.hvac-grid {
		flex-wrap: wrap !important;
	}
	.wp-block-columns.hvac-grid > .wp-block-column {
		flex-basis: calc(50% - 2rem) !important;
		flex-grow: 1;
	}
}

/* Policy and long-form text */
.hvac-prose h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
}
.hvac-prose h3 {
	font-size: 1.125rem;
	margin-top: 1.75rem;
}
.hvac-prose li + li {
	margin-top: 0.4rem;
}
.hvac-summary {
	background: var(--wp--preset--color--accent-3);
	border-left: 4px solid var(--wp--preset--color--accent-1);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
}
.hvac-summary > :first-child {
	margin-top: 0;
}
.hvac-summary > :last-child {
	margin-bottom: 0;
}

/* FAQ */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	padding: 1rem 0;
}
.wp-block-details summary {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}
.wp-block-details[open] summary {
	margin-bottom: 0.5rem;
}

/* Contact card */
.hvac-contact p {
	margin: 0 0 1rem;
}
.hvac-contact strong {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-2);
}
.hvac-contact {
	align-self: flex-start;
	font-size: 0.9375rem;
}

/* WPForms, matched to the app */
.wpforms-container .wpforms-field-label {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container select,
.wpforms-container textarea {
	border: 1px solid #CDD5DF !important;
	border-radius: 10px !important;
	font-family: inherit !important;
}
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
	border-color: var(--wp--preset--color--accent-1) !important;
	box-shadow: 0 0 0 3px rgba(22, 115, 209, 0.18) !important;
}
.wpforms-container button[type="submit"] {
	background: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--base) !important;
	border-radius: 12px !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	padding: 0.8rem 1.6rem !important;
	height: auto !important;
}
.wpforms-container button[type="submit"]:hover {
	background: var(--wp--preset--color--accent-5) !important;
}

/* ---------- Footer ---------- */
.hvac-footer {
	padding-top: clamp(3rem, 6vw, 4.5rem);
	padding-bottom: 2rem;
	font-size: var(--wp--preset--font-size--small);
}
.hvac-footer h4 {
	color: var(--wp--preset--color--base);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}
.hvac-footer p {
	margin: 0 0 0.4rem;
}
.hvac-footer a {
	color: var(--wp--preset--color--base);
}
.hvac-footer .hvac-brand {
	margin-bottom: 0.75rem;
}
.hvac-footer-bottom {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(226, 231, 238, 0.15);
	font-size: 0.8125rem;
	color: #9AA8B8;
}
