/* ==========================================================================
 * Kellam brand refresh (client brief 2026-10-12)
 * ======================================================================== */

/* Header clouds — the supplied cloud PNG as decoration in the open space of the
 * desktop logo/buttons row (tagged .kellam-clouds by tpl-05). Pseudo-elements, so
 * screen readers never see them and they can't affect layout or take clicks. */
.kellam-clouds {
	position: relative;
}
.kellam-clouds::before,
.kellam-clouds::after {
	content: "";
	position: absolute;
	pointer-events: none;
	background: url("kellam-cloud.png") no-repeat center / contain;
	z-index: 0;
}
.kellam-clouds::before {
	width: 190px;
	height: 77px;
	left: 31%;
	top: 50%;
	transform: translateY(-50%);
}
.kellam-clouds::after {
	width: 110px;
	height: 45px;
	left: 46%;
	top: 6px;
	opacity: 0.9;
	transform: scaleX(-1);
}
.kellam-clouds > * {
	position: relative;
	z-index: 1;
}
@media (max-width: 1320px) {
	.kellam-clouds::after { display: none; }
	.kellam-clouds::before { left: 34%; width: 170px; height: 69px; }
}

/* Footer accreditation badges: compact, like the Facebook icon beside them. */
.kellam-accreditations img {
	height: 44px;
	width: auto;
	object-fit: contain;
	background: #fff;
}

/* Links: Kellam blue instead of Hello Elementor's default #c36 pink (Mike,
 * 2026-10-12). Specificity equals Hello's own `a {}` reset (this sheet loads after
 * it), so every widget or section that sets its own link colour (white footer links,
 * buttons, menus, coupon cards) still wins. Blue on white is 7.39:1; navy on hover. */
:where(body) a {
	color: #23549F;
}
:where(body) a:hover,
:where(body) a:focus {
	color: #01395E;
}

/* Short service lists (page-edits.json) run in two columns; one column on phones,
   where two columns split words like "connections/silcocks" across the gutter. */
.kellam-list-2col {
	columns: 2;
	column-gap: 24px;
}
.kellam-list-2col li {
	break-inside: avoid;
}
@media (max-width: 767px) {
	.kellam-list-2col {
		columns: 1;
	}
}

/* Homepage map (tpl-06): it sits in the site-wide footer under the reviews, but
   Kellam asked for it on the homepage only. Hidden lazy iframes never load. */
body:not(.home) .kellam-home-map {
	display: none !important;
}

/* Homepage service icons (Kellam 2026-10-28): equal squares across the full row.
   Elementor has no aspect-ratio control for containers. */
.kellam-svc-tile {
	flex: 1 1 0 !important;
	aspect-ratio: 1 / 1;
	min-height: 0 !important;
}

/* Preferred Partner Plans band runs edge to edge (Kellam 2026-10-28). Its copy column
   stops at the 1320px content edge instead of running to the window edge on wide
   screens, and the wave divider sits above both columns' backgrounds. */
@media (min-width: 1025px) {
	.kellam-ppp-band > .kellam-ppp-copy {
		padding-right: max(60px, calc((100vw - 1320px) / 2)) !important;
	}
}
.kellam-ppp-band > .elementor-shape {
	z-index: 2;
}

/* Homepage service band: King Kellam sits above the wave divider. */
.kellam-svc-band > .kellam-svc-mascot {
	position: relative;
	flex-shrink: 0;
}
.kellam-svc-band > .elementor-shape {
	z-index: 1;
}

/* ---------------------------------------------------------------------------
   Sub-headings inside copy stay smaller than the section headings (2026-11-15)

   Section headings are heading widgets at 2 / 1.75 / 1.5em (desktop/tablet/phone,
   page-01 w_heading). Sub-headings inside the copy are raw <h3>/<h4> styled by the
   kit at a fixed 28 / 24px on every device, so on a phone a FAQ question (h3, 28px)
   was bigger than the section heading above it (h2, 24px). Kellam's November
   service pages have ~10 FAQ h3s each. Scale them with the section headings.
--------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.elementor-widget-text-editor h3,
	.elementor-widget-theme-post-content h3 { font-size: 23px; }
	.elementor-widget-text-editor h4,
	.elementor-widget-theme-post-content h4 { font-size: 20px; }
}
@media (max-width: 767px) {
	.elementor-widget-text-editor h3,
	.elementor-widget-theme-post-content h3 { font-size: 20px; }
	.elementor-widget-text-editor h4,
	.elementor-widget-theme-post-content h4 { font-size: 18px; }
	.elementor-widget-theme-post-content h2 { font-size: 24px; }
}
