/*
Theme Name: Reachin
Theme URI: https://reachin.media
Author: Anything Hosted Ltd
Author URI: https://anythinghosted.uk
Description: Shared block theme for the SuperFly WiFi, MagnetPass and CoverGenie sites. One codebase for the whole multisite network; each site picks its own style variation and sets its own contact details under Settings, General.
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reachin
*/

/* Sticky header. The template part wrapper is the element that has to stick,
   not the Group inside it, otherwise it only sticks within its own height. */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	box-shadow: 0 1px 0 rgb(0 0 0 / 0.08);
}

/* Landing pages: full-width sections butt up against each other. */
.is-landing > .alignfull {
	margin-block-start: 0;
}
.is-landing > .alignfull + .alignfull {
	margin-block-start: 0;
}
main > .is-landing {
	margin-block-start: 0;
}

/* Feature cards (four-up feature row). */
.feature-card {
	height: 100%;
}
.feature-card h3 {
	margin-block-end: 0.5rem;
}

/* Step numbers (Get, Evaluate, Order, Satisfaction). */
.step-number {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	margin-block-end: 0.5rem;
}

/* List block style: Checklist (two columns on wider screens). */
.wp-block-list.is-style-checklist {
	list-style: none;
	padding-inline-start: 0;
	columns: 2 14rem;
	column-gap: var(--wp--preset--spacing--50);
}
.wp-block-list.is-style-checklist li {
	position: relative;
	padding-inline-start: 1.75rem;
	margin-block-end: 0.6rem;
	break-inside: avoid;
}
.wp-block-list.is-style-checklist li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.35em;
	width: 1.1em;
	height: 1.1em;
	border-radius: 50%;
	background: var(--wp--preset--color--primary)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")
		center / 70% no-repeat;
}

/* Gallery block style: Logos (greyscale, colour on hover). Replaces the old
   two-images-per-logo hover swap with one image per client. */
.wp-block-gallery.is-style-logos {
	align-items: center;
}
.wp-block-gallery.is-style-logos .wp-block-image img {
	object-fit: contain;
	max-height: 80px;
	width: auto;
	margin-inline: auto;
	filter: grayscale(1);
	opacity: 0.6;
	transition: filter 0.25s ease, opacity 0.25s ease;
}
.wp-block-gallery.is-style-logos .wp-block-image:hover img,
.wp-block-gallery.is-style-logos .wp-block-image a:focus-visible img {
	filter: none;
	opacity: 1;
}

/* Reveal on scroll. Only hides content once the script has confirmed it is
   running, so nothing is ever hidden with JS disabled. */
.reachin-js .is-landing > .alignfull:not(:first-child) {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reachin-js .is-landing > .alignfull.is-revealed {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.reachin-js .is-landing > .alignfull:not(:first-child) {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Footer divider. */
.footer-rule {
	border: 0;
	border-top: 1px solid currentColor;
	opacity: 0.2;
}

/* Details (FAQ) blocks. */
.wp-block-details {
	border-block-end: 1px solid var(--wp--preset--color--base-2);
	padding-block: var(--wp--preset--spacing--30);
}
.wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
}
