/* Genie Clean custom styling — layered on top of Blocksy Customizer settings */

/* ---- Sticky header (mobile-first priority: click-to-call always reachable) ---- */
#header.ct-header {
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ---- Logo: image only, no duplicate text title underneath ---- */
.site-title-container {
	display: none;
}

/* ---- Logo: 50% larger than Blocksy's default 50px header height ----
   Set via Blocksy's own --logo-max-height variable (not a forced img height)
   so the logo container/header row grows to match instead of the taller
   image just overflowing past a still-50px-tall header. ---- */
.site-logo-container {
	--logo-max-height: 75px;
}
.site-logo-container .default-logo {
	width: auto !important;
}

/* ---- Mobile header: the row wraps tightly around the logo with zero
   vertical breathing room, so the taller 2026 logo touches the top/
   bottom edges of the bar. Desktop's row is naturally taller (nav
   item padding) so it isn't affected — add padding on mobile only. ---- */
@media (max-width: 999px) {
	#header.ct-header .site-branding {
		padding-top: 8px;
		padding-bottom: 8px;
	}
}

/* ---- Hero: force white text over the background photo, overriding Blocksy's own heading/paragraph color rules ---- */
.gc-hero h1,
.gc-hero p {
	color: #ffffff !important;
}

/* ---- Hero: "Instant Gutter Quote" button — deliberately a "sale banner"
   look (bright orange/red, bold, pulsing) rather than the site's usual
   green pill buttons, so it stands out as the attention-grabbing offer ---- */
.gc-sale-button .wp-block-button__link {
	background: linear-gradient(135deg, #ff8a00, #ff1744);
	color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 16px 36px;
	border-radius: 50px;
	box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5);
	animation: gc-sale-pulse 1.8s ease-in-out infinite;
}
.gc-sale-button .wp-block-button__link:hover {
	background: linear-gradient(135deg, #ff1744, #ff8a00);
	color: #ffffff;
}
@keyframes gc-sale-pulse {
	0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5); }
	50% { transform: scale(1.045); box-shadow: 0 8px 28px rgba(255, 23, 68, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
	.gc-sale-button .wp-block-button__link {
		animation: none;
	}
}

/* ---- Services grid: card treatment ---- */
.services-grid .wp-block-column {
	background: var(--theme-palette-color-8);
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 14px;
	padding: 18px 24px !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	display: flex;
	flex-direction: column;
	min-height: 220px;
	position: relative;
}
/* Tighten the gap between cards in a row, and between the two grid rows
   (row 1's margin-bottom carries the same shared block-gap value) */
.services-grid.wp-block-columns {
	gap: 16px !important;
}
.services-grid.wp-block-columns:first-of-type {
	margin-bottom: 16px !important;
}
/* Stretched link: the whole card is clickable, not just the heading text */
.services-grid .wp-block-column h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.services-grid .wp-block-column:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.10);
	border-color: var(--theme-palette-color-1);
}
.services-grid .wp-block-column img {
	border-radius: 10px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 14px;
}
.services-grid .wp-block-column h3 {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 20px;
}
.services-grid .wp-block-column h3 a {
	text-decoration: none;
	color: inherit;
}
.services-grid .wp-block-column p {
	margin: 0;
	opacity: 0.8;
	font-size: 15px;
}

/* ---- Trust bar: icon + label row ---- */
.trust-bar-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}
.trust-bar-item svg {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	color: var(--theme-palette-color-1);
}

/* ---- Stats bar ---- */
.stats-band {
	gap: 16px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.stats-bar-item {
	text-align: center;
	flex: 1 1 160px;
	line-height: 1;
}
.stats-bar-item .stat-number {
	display: block;
	font-family: var(--theme-heading-font-family, inherit);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.1;
}
.stats-bar-item .stat-label {
	display: block;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.85;
	margin-top: 4px;
}

/* ---- Before / after comparison ---- */
.before-after-compare {
	gap: 12px !important;
}
.before-after-compare .wp-block-column {
	position: relative;
}
.before-after-compare figure {
	margin: 0;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
}
.before-after-compare figure img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	width: 100%;
}
.before-after-compare figcaption {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--theme-palette-color-4);
	color: #fff;
	padding: 4px 14px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ---- CTA color bands: full-bleed section breaks ---- */
.cta-band {
	padding-top: 60px;
	padding-bottom: 60px;
}

/* ---- Breadcrumbs (location pages) ---- */
.gc-breadcrumbs {
	font-size: 14px;
	opacity: 0.75;
	margin-bottom: 24px;
}
.gc-breadcrumbs a {
	color: inherit;
	text-decoration: underline;
}
.gc-breadcrumbs .sep {
	margin: 0 4px;
}
.gc-breadcrumbs span:not(.sep) {
	font-weight: 600;
	opacity: 1;
}

/* ---- Contact form embed: shared by the Contact page and every service page ---- */
.contact-form-embed {
	max-width: 640px;
	margin: 24px auto;
	padding: 24px 28px;
	background: var(--theme-palette-color-8);
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 14px;
}
.contact-form-embed h2,
.contact-form-embed h3 {
	margin-top: 0;
	margin-bottom: 6px;
}
.contact-form-embed > p {
	margin-top: 0;
	margin-bottom: 16px;
}
@media (min-width: 1000px) {
	.contact-form-embed {
		max-width: 50%;
	}
}
.contact-form-embed .wpcf7-form p {
	margin: 0 0 12px;
}
.contact-form-embed .wpcf7-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0;
	font-size: 14px;
}
.contact-form-embed .wpcf7-form input[type="text"],
.contact-form-embed .wpcf7-form input[type="email"],
.contact-form-embed .wpcf7-form input[type="tel"],
.contact-form-embed .wpcf7-form textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 9px 14px;
	border: 1px solid #b7c1c8;
	border-radius: 10px;
	background: var(--theme-palette-color-6);
	font-family: inherit;
	font-size: 15px;
}
.contact-form-embed .wpcf7-form input[type="text"]:focus,
.contact-form-embed .wpcf7-form input[type="email"]:focus,
.contact-form-embed .wpcf7-form input[type="tel"]:focus,
.contact-form-embed .wpcf7-form textarea:focus {
	border-color: var(--theme-palette-color-1);
	background: #ffffff;
}
.contact-form-embed .wpcf7-form textarea {
	min-height: 90px;
	resize: vertical;
}
.contact-form-embed .wpcf7-form input[type="submit"] {
	display: block;
	margin: 4px auto 0;
	padding: 12px 32px;
	border: none;
	border-radius: 999px;
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-8);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	min-height: 44px;
}
.contact-form-embed .wpcf7-form input[type="submit"]:hover {
	opacity: 0.9;
}
.contact-form-embed .wpcf7-form .wpcf7-not-valid-tip {
	color: #c0392b;
	font-size: 13px;
	font-weight: 500;
}
.contact-form-embed .wpcf7-response-output {
	margin-top: 20px !important;
	border-radius: 10px;
	text-align: center;
}

/* ---- Homepage featured reviews: eye-catching highlight cards ---- */
.featured-reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 12px 0 28px;
}
.featured-review-card {
	position: relative;
	background: var(--theme-palette-color-8);
	border-radius: 20px;
	padding: 44px 28px 28px;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.featured-review-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}
.featured-review-card .quote-mark {
	position: absolute;
	top: 4px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 64px;
	line-height: 1;
	font-family: Georgia, serif;
	color: var(--theme-palette-color-1);
	opacity: 0.3;
}
.featured-review-card .review-score-badge {
	margin-bottom: 14px;
}
.featured-review-body {
	font-size: 16.5px;
	font-style: italic;
	line-height: 1.5;
	margin: 0 0 16px;
}
.featured-review-author {
	font-weight: 700;
	margin: 0 0 10px;
}
@media (max-width: 999px) {
	.featured-reviews-grid {
		grid-template-columns: 1fr;
	}
}
@media (min-width: 1000px) {
	.featured-reviews-grid {
		align-items: stretch;
	}
	.featured-review-card {
		display: flex;
		flex-direction: column;
	}
	.featured-review-body {
		flex-grow: 1;
	}
}

/* ---- Reviews grid: card treatment (mirrors .services-grid) ---- */
.reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 32px 0;
}
.review-card {
	background: var(--theme-palette-color-8);
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 14px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.review-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.10);
	border-color: var(--theme-palette-color-1);
}
.review-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}
.review-score-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	background: var(--theme-palette-color-4);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	padding: 4px 12px;
	border-radius: 30px;
	line-height: 1.4;
}
.review-score-badge small {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.85;
}
.review-verified {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.7;
	white-space: nowrap;
}
.review-category {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--theme-palette-color-1);
	margin-bottom: 6px;
}
.review-title {
	margin: 0 0 8px;
	font-size: 18px;
}
.review-body {
	margin: 0;
	opacity: 0.85;
	font-size: 15px;
	flex-grow: 1;
}
.review-meta {
	margin: 14px 0 0;
	font-size: 13px;
	font-weight: 600;
	opacity: 0.6;
}
.review-reply {
	margin-top: 16px;
	padding: 14px 16px;
	background: var(--theme-palette-color-6);
	border-radius: 10px;
	border-left: 3px solid var(--theme-palette-color-1);
}
.review-reply strong {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}
.review-reply p {
	margin: 0;
	font-size: 14px;
	opacity: 0.85;
}

/* ---- Mobile: thumb-sized tap targets ---- */
@media (max-width: 689px) {
	.wp-block-button__link {
		min-height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.services-grid .wp-block-column {
		min-height: auto;
	}
	.stats-bar-item .stat-number {
		font-size: 32px;
	}
	.reviews-grid {
		grid-template-columns: 1fr;
	}
}
@media (min-width: 690px) and (max-width: 999px) {
	.reviews-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- About page: founder photo next to intro text ---- */
.about-intro {
	align-items: center;
	margin-bottom: 32px;
}
.about-founder-photo img {
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ---- Homepage: small circular founder photo in the "Meet the Team" band ---- */
.home-about {
	align-items: center;
}
.home-about-photo img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0 auto;
	box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}

/* ---- Get a Quote page: cut the excess whitespace above the H1 by half
   (Blocksy's default --theme-content-vertical-spacing is 60px/50px mobile;
   only padding-top is reduced here, padding-bottom is left untouched) ---- */
body.page-id-9 [data-vertical-spacing*="top"] {
	padding-top: 30px;
}
@media (max-width: 689.98px) {
	body.page-id-9 [data-vertical-spacing*="top"] {
		padding-top: 25px;
	}
}

/* ---- Get a Quote page: reserve space for the GHL survey iframe so it
   doesn't cause a layout shift once its script resizes it. Heights below
   are the iframe's actual measured rendered height (plus a small buffer)
   at mobile (390px viewport, 449px measured) and desktop (1280px
   viewport, 341px measured) widths - re-measure and update these if the
   survey's questions/content are ever changed. ---- */
.gc-quote-embed {
	position: relative;
	min-height: 460px;
}
@media (min-width: 1000px) {
	.gc-quote-embed {
		min-height: 350px;
	}
}
.gc-quote-embed-skeleton {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 24px;
	background: var(--theme-palette-color-7);
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 14px;
	opacity: 1;
	transition: opacity 0.25s ease;
}
.gc-quote-embed.is-loaded .gc-quote-embed-skeleton {
	opacity: 0;
	pointer-events: none;
}
.gc-skeleton-line,
.gc-skeleton-block {
	border-radius: 6px;
	background: linear-gradient(90deg, var(--theme-palette-color-5) 25%, var(--theme-palette-color-6) 50%, var(--theme-palette-color-5) 75%);
	background-size: 200% 100%;
	animation: gc-skeleton-shimmer 1.4s ease-in-out infinite;
}
.gc-skeleton-line {
	height: 14px;
}
.gc-skeleton-title {
	width: 55%;
	height: 22px;
}
.gc-skeleton-block {
	flex: 1;
	border-radius: 10px;
}
.gc-skeleton-label {
	margin: 0;
	text-align: center;
	font-size: 14px;
	color: var(--theme-text-color);
	opacity: 0.65;
}
@keyframes gc-skeleton-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.gc-skeleton-line,
	.gc-skeleton-block {
		animation: none;
	}
}

/* ---- Guide pages: dashed placeholder box for photos not yet supplied.
   The description lives in aria-label/HTML comment for whoever adds the
   real photo later, not as visible page text. ---- */
.gc-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	margin: 24px 0;
	padding: 24px;
	border: 2px dashed var(--theme-palette-color-5);
	border-radius: 14px;
	background: var(--theme-palette-color-7);
	color: var(--theme-text-color);
	opacity: 0.55;
	font-size: 14px;
	text-align: center;
}

/* ---- Homepage: remove the gap between the sticky header and the full-width hero image ---- */
body.page-id-7 [data-vertical-spacing*="top"] {
	padding-top: 0;
}

/* ---- Footer band: areas we cover + logo + contact, sitewide, above the copyright footer ---- */
.gc-footer-band {
	background-color: var(--theme-palette-color-1);
	color: #ffffff;
	padding: 40px 24px;
}
.gc-footer-band-inner {
	max-width: 1290px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.gc-footer-band-logo {
	height: 90px;
	width: auto;
	flex-shrink: 0;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.gc-footer-band-areas {
	flex: 1 1 320px;
}
.gc-footer-band-areas h3 {
	color: #ffffff;
	margin: 0 0 6px;
	font-size: 20px;
}
.gc-footer-band-areas ul {
	margin: 0;
	padding-left: 20px;
	color: rgba(255,255,255,0.9);
	display: inline-block;
	text-align: left;
}
.gc-footer-band-areas li {
	margin-bottom: 2px;
}
.gc-footer-band-contact {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}
.gc-footer-band-contact a {
	color: #ffffff;
	font-weight: 600;
}
@media (max-width: 689.98px) {
	.gc-footer-band-inner {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}
	/* the 320px flex-basis is meant as a row-layout width; in the column
	   layout above it becomes a fixed height, leaving empty space below
	   the (much shorter) bullet list — reset it to the content height */
	.gc-footer-band-areas {
		flex-basis: auto;
	}
	.gc-footer-band-contact {
		align-items: center;
	}
}

/* ---- Gallery: "photo roll" per service — 1-up on mobile, 2-up on
   desktop, advanced with arrow buttons (see js/photo-roll.js). The
   track still scroll-snaps so touch swipe/drag keeps working too. ---- */
.photo-roll-wrap {
	position: relative;
	margin: 0 0 32px;
	padding: 0 44px;
}
.photo-roll {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 4px 0 20px;
	margin: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.photo-roll::-webkit-scrollbar {
	display: none;
}
.photo-roll-item {
	flex: 0 0 100%;
	width: 100%;
	scroll-snap-align: start;
	margin: 0;
	background: var(--theme-palette-color-8);
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 14px;
	overflow: hidden;
}
.photo-roll-item img {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
}
.photo-roll-item figcaption {
	padding: 8px 12px;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
}
.photo-roll-item.is-before figcaption {
	color: #b23b3b;
}
.photo-roll-item.is-after figcaption {
	color: var(--theme-palette-color-1);
}
@media (min-width: 783px) {
	.photo-roll-item {
		flex: 0 0 calc(50% - 8px);
		width: calc(50% - 8px);
	}
	.photo-roll-item img {
		height: 420px;
	}
}

/* ---- Gallery: prev/next arrow buttons ---- */
.photo-roll-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	background: var(--theme-palette-color-1);
	box-shadow: 0 4px 14px rgba(0,0,0,0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #ffffff;
	padding: 0;
}
.photo-roll-arrow:hover {
	background: var(--theme-palette-color-2);
	transform: translateY(-50%) scale(1.08);
}
.photo-roll-arrow:disabled {
	opacity: 0.35;
	cursor: default;
	background: var(--theme-palette-color-1);
	color: #ffffff;
	transform: translateY(-50%);
}
.photo-roll-arrow--prev {
	left: 0;
}
.photo-roll-arrow--next {
	right: 0;
}
@media (max-width: 600px) {
	.photo-roll-wrap {
		padding: 0 38px;
	}
	.photo-roll-arrow {
		width: 40px;
		height: 40px;
		font-size: 15px;
	}
	.photo-roll-item img {
		height: 280px;
	}
}

/* ---- Top utility bar: Checkatrade rating + phone/email, sitewide,
   above the sticky header (not inside it — it scrolls away on its own,
   the header keeps its usual sticky behaviour). See inc/topbar.php. ---- */
.gc-topbar {
	background: #333333;
	color: #e9e9e9;
}
.gc-topbar-inner {
	max-width: 1290px;
	margin: 0 auto;
	height: 38px;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.gc-topbar-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}
.gc-topbar-rating:hover .gc-rating-count,
.gc-topbar-rating:hover .gc-rating-score,
.gc-topbar-rating:hover .gc-rating-scale {
	color: #ffffff;
}
.gc-stars {
	display: inline-flex;
	gap: 1px;
	flex: none;
	line-height: 0;
}
.gc-stars svg {
	width: 13px;
	height: 13px;
}
.gc-star-full {
	fill: #f4b400;
}
.gc-star-empty {
	fill: #6b6b6b;
}
.gc-rating-score {
	font-weight: 700;
	font-size: 13px;
	color: #ffffff;
	flex: none;
}
.gc-rating-scale {
	font-weight: 700;
	color: #ffffff;
	font-size: 13px;
}
.gc-rating-count {
	font-size: 12.5px;
	color: #c9c9c9;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gc-topbar-contact {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: none;
}
.gc-topbar-contact a {
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #e9e9e9;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
.gc-topbar-contact svg {
	width: 14px;
	height: 14px;
	flex: none;
	stroke: var(--theme-palette-color-1);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 0.15s ease;
}
.gc-topbar-contact a:hover {
	color: #ffffff;
}
.gc-topbar-contact a:hover svg {
	stroke: #3ee85a;
}

/* Mobile: no room for both the Checkatrade block and the phone/email
   block, so the phone/email side drops entirely (it's already reachable
   elsewhere in the mobile header) and the full Checkatrade block —
   stars, score and review count — is centred as the whole bar. Still a
   single fixed-height row, never wraps. */
@media (max-width: 699px) {
	.gc-topbar-contact {
		display: none;
	}
	.gc-topbar-inner {
		justify-content: center;
		padding: 0 14px;
	}
	.gc-topbar-rating {
		gap: 7px;
	}
}
