/* ===========================================================================
 * Code 3 — visual refresh (RC51.15)
 *
 * One idea, used with restraint: this is a firefighter-owned company, and the
 * site already borrows two things from the apparatus floor — the black and
 * engine red, and heavy condensed lettering in the homepage hero. This file
 * finishes that thought instead of starting a new one:
 *
 *   1. The hero's lettering becomes the lettering for every page heading.
 *      Before, the hero was heavy condensed capitals and every heading under
 *      it was a thin geometric sans, so the page changed voice after one
 *      screen. The face is bundled (Anton, SIL Open Font Licence) because the
 *      hero relied on Impact, which Android phones do not have.
 *   2. Everything else gets quieter and tighter: service cards lose their
 *      dead space, the trust strip gets weight, buttons get a firmer shape.
 *
 * RC51.16: the red and amber chevron band under each hero was removed. At
 * full width it read as hazard tape, not as apparatus striping.
 *
 * Every rule is scoped to body.c3-refresh, which c3-refresh.php adds. Remove
 * the class and the site is exactly what it was.
 * =========================================================================== */

@font-face {
	font-family: "C3 Display";
	src: url("fonts/anton-latin-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

body.c3-refresh {
	--c3r-ink: #080c10;
	--c3r-red: #d92632;
	--c3r-red-deep: #b21722;
	--c3r-amber: #f5b70a; /* keyboard focus ring only */
	--c3r-paper: #f6f5f2;
	--c3r-steel: #5b6873;
	--c3r-display: "C3 Display", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
}

/* ---------------------------------------------------------------------------
 * 1. Headings
 * ------------------------------------------------------------------------- */

body.c3-refresh .c3-home-hero-copy h1,
body.c3-refresh .c3-hero h1 {
	font-family: var(--c3r-display) !important;
	font-weight: 400 !important;
	text-transform: uppercase !important;
	letter-spacing: .012em !important;
}

body.c3-refresh .c3-home-hero-copy h1 {
	line-height: .98 !important;
}

/* The bundled face is narrower than the fallback the hero was sized for, so
   the headline can be larger and still break in the same places. */
body.c3-refresh.c3-managed-page .c3-home-hero-copy h1.c3-h1-local {
	font-size: clamp(54px, 5.6vw, 92px) !important;
}

@media (max-width: 700px) {
	body.c3-refresh.c3-managed-page .c3-home-hero-copy h1.c3-h1-local {
		font-size: clamp(44px, 13.2vw, 60px) !important;
	}
}

body.c3-refresh .c3-hero.c3-hero-small h1 {
	font-size: clamp(36px, 5.2vw, 68px) !important;
	line-height: 1.02 !important;
	max-width: 18em;
}

body.c3-refresh .c3-home-section-head h2,
body.c3-refresh .c3-wrap > h2,
body.c3-refresh .c3-copy > h2,
body.c3-refresh .c3-band h2,
body.c3-refresh .c3-home-priority h2,
body.c3-refresh .c3-contact-slab h2,
body.c3-refresh .c3-review-showcase h2,
body.c3-refresh .c3-rates h2,
body.c3-refresh .c3-results > h2,
body.c3-refresh .c3-service-gallery > h2,
body.c3-refresh .c3-jobpairs > h2 {
	font-family: var(--c3r-display) !important;
	font-weight: 400 !important;
	text-transform: uppercase !important;
	letter-spacing: .014em !important;
	line-height: 1.06 !important;
	font-size: clamp(28px, 3.5vw, 48px) !important;
	text-wrap: balance;
}

/* Two headings side by side on the homepage: keep them from shouting. */
body.c3-refresh .c3-home-priority h2 {
	font-size: clamp(24px, 2.5vw, 34px) !important;
}

/* The theme leaves 70px of white between the header and the hero, and a
   block gap between the hero and the section under it. A hero should start
   at the header and the band should sit on the next section. */
body.c3-refresh.c3-managed-page main > .wp-block-group.alignfull {
	padding-top: 0 !important;
}

body.c3-refresh .c3-home-hero + .c3-home-services,
body.c3-refresh .c3-home-services + .c3-home-trust {
	margin-top: 0 !important;
}

/* ---------------------------------------------------------------------------
 * 3. Homepage service cards
 *
 * Each card was 260px tall to hold three lines of text, and nine of them
 * stacked on a phone ran to two thousand pixels of mostly black.
 * ------------------------------------------------------------------------- */

body.c3-refresh .c3-home-services {
	background: var(--c3r-ink) !important;
	padding-top: 56px !important;
	padding-bottom: 56px !important;
}

body.c3-refresh .c3-home-service-grid {
	gap: 12px !important;
	border: 0 !important;
	background: transparent !important;
	overflow: visible !important;
}

/* Nine services: three rows of three, not two rows of four and an orphan. */
@media (min-width: 701px) {
	body.c3-refresh.c3-managed-page .c3-home-service-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

body.c3-refresh .c3-home-service-card {
	position: relative;
	min-height: 0 !important;
	padding: 22px 22px 20px !important;
	border: 1px solid #1f2a34 !important;
	border-left: 4px solid var(--c3r-red) !important;
	border-radius: 6px !important;
	background: #0e151c !important;
	transform: none !important;
	transition: background .15s ease, border-color .15s ease !important;
}

body.c3-refresh .c3-home-service-card:hover,
body.c3-refresh .c3-home-service-card:focus-visible {
	background: #16202a !important;
	border-color: #33424f !important;
	border-left-color: var(--c3r-amber) !important;
}

body.c3-refresh .c3-home-service-card .c3-service-icon {
	margin-bottom: 4px;
}

body.c3-refresh .c3-home-service-card h3 {
	font-size: 20px !important;
	font-weight: 800 !important;
	margin: 10px 0 6px !important;
}

body.c3-refresh .c3-home-service-card p {
	margin-bottom: 14px !important;
	color: #b9c4cd !important;
}

body.c3-refresh .c3-home-service-card .c3-learn {
	margin-top: auto;
	color: #ff6a73 !important;
	font-weight: 800;
}

@media (max-width: 700px) {
	body.c3-refresh .c3-home-services {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
	}
	body.c3-refresh .c3-home-service-grid {
		gap: 8px !important;
	}
	/* A row, not a tile: icon, name, one line of description. */
	body.c3-refresh .c3-home-service-card {
		display: grid !important;
		grid-template-columns: 34px 1fr;
		column-gap: 14px;
		align-items: start;
		padding: 15px 16px !important;
	}
	body.c3-refresh .c3-home-service-card .c3-service-icon {
		grid-row: 1 / span 2;
		margin: 2px 0 0;
	}
	body.c3-refresh .c3-home-service-card h3 {
		font-size: 17px !important;
		margin: 0 0 3px !important;
	}
	body.c3-refresh .c3-home-service-card p {
		grid-column: 2;
		margin: 0 !important;
		font-size: 13.5px !important;
		line-height: 1.45 !important;
	}
	body.c3-refresh .c3-home-service-card .c3-learn {
		display: none !important;
	}
}

/* ---------------------------------------------------------------------------
 * 4. Trust strip
 * ------------------------------------------------------------------------- */

body.c3-refresh .c3-home-trust {
	background: var(--c3r-paper) !important;
	border-bottom: 0 !important;
	padding-top: 34px !important;
	padding-bottom: 34px !important;
}

body.c3-refresh .c3-home-trust > div {
	position: relative;
	padding: 4px 22px 4px 44px !important;
	border-right: 0 !important;
}

body.c3-refresh .c3-home-trust > div::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--c3r-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

body.c3-refresh .c3-home-trust b {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: var(--c3r-ink) !important;
}

body.c3-refresh .c3-home-trust span {
	color: var(--c3r-steel) !important;
}

@media (max-width: 700px) {
	body.c3-refresh .c3-home-trust {
		grid-template-columns: 1fr 1fr !important;
		row-gap: 18px;
		padding-top: 26px !important;
		padding-bottom: 26px !important;
	}
	body.c3-refresh .c3-home-trust > div {
		padding: 2px 6px 2px 34px !important;
	}
	body.c3-refresh .c3-home-trust > div::before {
		left: 2px;
		top: 3px;
		width: 20px;
		height: 20px;
		background-size: 12px;
	}
	body.c3-refresh .c3-home-trust b {
		font-size: 15.5px !important;
	}
	body.c3-refresh .c3-home-trust span {
		font-size: 12.5px !important;
	}
}

/* ---------------------------------------------------------------------------
 * 5. Prices
 * ------------------------------------------------------------------------- */

body.c3-refresh .c3-rate {
	border-radius: 6px;
	border-top-width: 5px;
}

body.c3-refresh .c3-rate-fig {
	font-family: var(--c3r-display);
	font-weight: 400;
	font-size: 58px;
	letter-spacing: .01em;
	color: var(--c3r-red-deep);
}

/* ---------------------------------------------------------------------------
 * 6. Buttons
 * ------------------------------------------------------------------------- */

body.c3-refresh .c3-btn {
	border-radius: 5px !important;
	font-weight: 800 !important;
	letter-spacing: .01em;
	transition: background .15s ease, border-color .15s ease, transform .1s ease !important;
}

body.c3-refresh .c3-btn:active {
	transform: translateY(1px);
}

body.c3-refresh .c3-btn:focus-visible,
body.c3-refresh .c3-home-service-card:focus-visible,
body.c3-refresh .c3-link:focus-visible {
	outline: 3px solid var(--c3r-amber) !important;
	outline-offset: 3px;
}

body.c3-refresh .c3-hero .c3-btn:not(.c3-btn-membership):not(.c3-btn-ghost):hover,
body.c3-refresh .c3-home-actions .c3-btn:not(.c3-btn-membership):not(.c3-btn-ghost):hover,
body.c3-refresh .c3-rates .c3-btn:hover {
	background: var(--c3r-red-deep) !important;
	border-color: var(--c3r-red-deep) !important;
}

/* ---------------------------------------------------------------------------
 * 7. Small things
 * ------------------------------------------------------------------------- */

body.c3-refresh .c3-photo-grid figure {
	border-radius: 6px;
}

body.c3-refresh .c3-faq-item {
	border-radius: 6px;
	border-left: 4px solid var(--c3r-red);
}

body.c3-refresh .c3-mainnav {
	border-bottom: 3px solid var(--c3r-red);
}

@media (prefers-reduced-motion: reduce) {
	body.c3-refresh .c3-btn,
	body.c3-refresh .c3-home-service-card {
		transition: none !important;
	}
}
