/*
 * WordPress-specific presentation.
 * The service top keeps the migrated static-site stylesheet; this file covers
 * dynamic archives, articles, reports, customer voices and contact screens.
 */

.area-copy {
	min-width: 0;
}

.footer-form-link {
	width: 100%;
	margin-top: 14px;
}

.footer-service-menu {
	margin-bottom: 0;
}

.content-shell {
	padding: 76px 0 112px;
	background:
		radial-gradient(circle at 92% 4%, rgba(22, 138, 138, 0.08), transparent 24rem),
		var(--cream);
}

.content-page-wrap {
	min-height: 44vh;
}

.content-archive-header {
	max-width: 820px;
	margin-bottom: 48px;
}

.content-archive-header h1,
.article-header h1,
.narrow-message h1 {
	margin-bottom: 18px;
	font-size: clamp(2rem, 4.8vw, 3.25rem);
	line-height: 1.42;
}

.content-archive-header > p:last-child,
.archive-description {
	max-width: 740px;
	color: var(--muted);
	font-size: 1.03rem;
}

.front-content-feeds {
	background: var(--white);
}

.section-content-feed {
	padding-block: 92px;
}

.section-content-feed:nth-child(even) {
	background: var(--cream);
}

.feed-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	max-width: none;
}

.feed-heading > div {
	max-width: 820px;
}

.text-link,
.content-card-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--teal-dark);
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: rgba(22, 138, 138, 0.32);
	text-underline-offset: 5px;
}

.text-link {
	flex: 0 0 auto;
	padding-block: 8px;
}

.text-link:hover,
.content-card-more:hover {
	color: var(--blue);
	text-decoration-color: currentColor;
}

.content-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.content-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(23, 77, 116, 0.12);
	border-radius: 19px;
	background: var(--white);
	box-shadow: var(--shadow-small);
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.content-card-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--teal-soft);
}

.content-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.content-card:hover .content-card-image img {
	transform: scale(1.025);
}

.voice-card-grid .content-card-image img,
.content-card.type-aircon_voice .content-card-image img {
	object-fit: contain;
	background: var(--cream);
}

.content-card-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	padding: 20px;
	color: var(--teal-dark);
	font-size: 0.9rem;
	font-weight: 800;
	text-align: center;
}

.content-card-body {
	display: flex;
	flex: 1;
	align-items: flex-start;
	padding: 24px 23px 26px;
	flex-direction: column;
}

.content-card-meta,
.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 12px;
	margin-bottom: 13px;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 700;
}

.content-card-meta span,
.article-meta span {
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--teal-soft);
	color: var(--teal-dark);
}

.content-card-terms {
	margin: -4px 0 11px;
	color: var(--blue);
	font-size: 0.78rem;
	font-weight: 800;
}

.content-card h2,
.content-card h3 {
	margin-bottom: 12px;
	font-size: clamp(1.18rem, 2vw, 1.42rem);
	line-height: 1.55;
}

.content-card h2 a,
.content-card h3 a {
	display: block;
}

.content-card h2 a:hover,
.content-card h3 a:hover {
	color: var(--teal-dark);
}

.content-card-body > p:not(.content-card-terms) {
	display: -webkit-box;
	overflow: hidden;
	margin-bottom: 18px;
	color: #52606b;
	font-size: 0.88rem;
	line-height: 1.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.content-card-more {
	margin-top: auto;
	font-size: 0.84rem;
}

.content-empty,
.no-results {
	padding: 30px;
	border: 1px solid rgba(23, 77, 116, 0.12);
	border-radius: 16px;
	background: var(--white);
	color: var(--muted);
}

.navigation.pagination {
	margin-top: 48px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: inline-grid;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid rgba(23, 77, 116, 0.2);
	border-radius: 10px;
	background: var(--white);
	color: var(--blue);
	font-size: 0.88rem;
	font-weight: 800;
	place-items: center;
}

.page-numbers.current {
	border-color: var(--teal);
	background: var(--teal);
	color: var(--white);
}

.page-numbers:hover {
	border-color: var(--teal);
}

.article-container {
	width: min(920px, 100% - 48px);
}

.article-entry {
	padding: clamp(28px, 5vw, 58px);
	border: 1px solid rgba(23, 77, 116, 0.12);
	border-radius: 24px;
	background: var(--white);
	box-shadow: var(--shadow-small);
}

.breadcrumb {
	margin-bottom: 35px;
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 0;
	color: var(--muted);
	font-size: 0.74rem;
	list-style: none;
}

.breadcrumb li:not(:last-child)::after {
	margin-left: 7px;
	color: #9da7ad;
	content: ">";
}

.breadcrumb a {
	color: var(--blue);
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: rgba(23, 77, 116, 0.25);
	text-underline-offset: 4px;
}

.article-header {
	margin-bottom: 34px;
}

.article-header time {
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.article-featured-image {
	margin: 0 0 42px;
}

.article-featured-image img {
	width: 100%;
	height: auto;
	border-radius: 18px;
	background: var(--cream);
	object-fit: cover;
}

.voice-featured-image img {
	object-fit: contain;
}

.article-body {
	font-weight: 500;
	line-height: 1.95;
	overflow-wrap: anywhere;
}

.article-body > * + * {
	margin-top: 1.4em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
	scroll-margin-top: 112px;
	line-height: 1.55;
}

.article-body h2 {
	margin-top: 2.6em;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--teal-soft);
	font-size: clamp(1.55rem, 3.5vw, 2.05rem);
}

.article-body h3 {
	margin-top: 2.1em;
	padding-left: 15px;
	border-left: 4px solid var(--teal);
	font-size: clamp(1.25rem, 2.8vw, 1.55rem);
}

.article-body a {
	color: var(--teal-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.article-body ul,
.article-body ol {
	padding-left: 1.45em;
}

.article-body li + li {
	margin-top: 0.42em;
}

.article-body blockquote {
	margin-inline: 0;
	padding: 20px 24px;
	border-left: 4px solid var(--gold);
	border-radius: 0 12px 12px 0;
	background: var(--gold-soft);
}

.article-body table {
	width: 100%;
	border-collapse: collapse;
}

.article-body th,
.article-body td {
	padding: 13px 15px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.article-body th {
	background: var(--teal-soft);
	color: var(--blue);
}

.article-body img {
	height: auto;
	border-radius: 12px;
}

.article-body figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.78rem;
	text-align: center;
}

.report-before-after {
	margin: 0 0 46px;
	padding: 30px;
	border: 1px solid rgba(22, 138, 138, 0.18);
	border-radius: 20px;
	background: #f4faf9;
}

.report-before-after h2 {
	margin-bottom: 22px;
	font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.report-photo-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.report-photo-grid figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 14px;
	background: var(--white);
}

.report-photo-grid figure > span {
	position: absolute;
	z-index: 1;
	top: 12px;
	left: 12px;
	min-width: 70px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--blue);
	font-size: 0.78rem;
	font-weight: 900;
	text-align: center;
}

.report-photo-grid img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.image-disclaimer {
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 0.78rem;
}

.article-container > .final-cta {
	width: 100vw;
	margin-top: 72px;
	margin-left: calc(50% - 50vw);
}

.contact-page .article-container {
	width: min(1100px, 100% - 48px);
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
	align-items: start;
	gap: 26px;
}

.contact-form-panel,
.contact-side-panel {
	padding: clamp(24px, 4vw, 42px);
	border: 1px solid rgba(23, 77, 116, 0.12);
	border-radius: 20px;
	background: var(--white);
	box-shadow: var(--shadow-small);
}

.contact-form-panel h2,
.contact-side-panel h2 {
	margin-bottom: 22px;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	line-height: 1.55;
}

.contact-side-panel {
	position: sticky;
	top: 118px;
	background: var(--teal-soft);
}

.contact-side-panel p {
	margin-bottom: 22px;
	color: #52606b;
	font-size: 0.94rem;
}

.contact-side-panel .button {
	width: 100%;
	min-width: 0;
}

.narrow-message-page {
	display: grid;
	min-height: 58vh;
	align-items: center;
}

.narrow-message {
	width: min(720px, 100% - 40px);
	padding: clamp(30px, 6vw, 58px);
	border: 1px solid rgba(23, 77, 116, 0.12);
	border-radius: 24px;
	background: var(--white);
	box-shadow: var(--shadow);
	text-align: center;
}

.narrow-message .section-eyebrow {
	justify-content: center;
}

.narrow-message > p:not(.section-eyebrow) {
	color: #52606b;
}

.narrow-message-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 28px 0 20px;
}

.search-form {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	min-height: 50px;
	padding: 10px 14px;
	border: 1px solid rgba(23, 77, 116, 0.25);
	border-radius: 10px;
	background: var(--white);
	font-size: 1rem;
}

.search-submit {
	min-height: 50px;
	padding: 10px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--teal);
	color: var(--white);
	font-size: 0.95rem;
	font-weight: 800;
}

@media (max-width: 980px) {
	.content-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contact-layout {
		grid-template-columns: 1fr;
	}

	.contact-side-panel {
		position: static;
	}
}

@media (max-width: 700px) {
	.content-shell {
		padding: 58px 0 88px;
	}

	.article-container,
	.contact-page .article-container {
		width: min(100% - 28px, 920px);
	}

	.article-entry {
		padding: 28px 21px;
		border-radius: 18px;
	}

	.content-card-grid,
	.report-photo-grid {
		grid-template-columns: 1fr;
	}

	.feed-heading {
		display: block;
	}

	.feed-heading .text-link {
		margin-top: 16px;
	}

	.section-content-feed {
		padding-block: 72px;
	}

	.report-before-after {
		padding: 22px 18px;
	}

	.article-container > .final-cta {
		margin-top: 56px;
	}
}

@media (max-width: 560px) {
	.content-archive-header {
		margin-bottom: 34px;
	}

	.content-archive-header h1,
	.article-header h1,
	.narrow-message h1 {
		font-size: clamp(1.75rem, 8.5vw, 2.25rem);
	}

	.content-card-body {
		padding: 21px 19px 23px;
	}

	.article-body {
		font-size: 1rem;
		line-height: 1.9;
	}

	.article-body table {
		font-size: 0.88rem;
	}

	.article-body th,
	.article-body td {
		padding: 10px;
	}

	.contact-form-panel,
	.contact-side-panel {
		padding: 24px 18px;
		border-radius: 16px;
	}

	.narrow-message {
		width: min(100% - 26px, 720px);
		padding: 32px 20px;
	}

	.narrow-message-actions {
		display: grid;
	}

	.narrow-message-actions .button {
		width: 100%;
		min-width: 0;
	}

	.search-form {
		display: grid;
	}
}

@media print {
	.site-header {
		position: static;
	}

	.mobile-menu,
	.mobile-header-phone,
	.mobile-cta,
	.faq-toggle {
		display: none !important;
	}

	.faq-answer[hidden] {
		display: grid !important;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.content-shell,
	.section-content-feed {
		padding-block: 24px;
	}

	.content-card,
	.article-entry,
	.report-before-after,
	.contact-form-panel,
	.contact-side-panel,
	.narrow-message,
	.staff-card,
	.price-card,
	.reason-card,
	.flow-card,
	.process-card,
	.area-card,
	.faq-item,
	.timing-sign-card,
	.timing-supplement {
		box-shadow: none;
		break-inside: avoid;
	}

	.article-container > .final-cta,
	.navigation.pagination {
		display: none;
	}
}
