/*
Theme Name: FixReef
Template: twentytwentyfive
Description: FixReef's main site: a Twenty Twenty-Five child theme with the FixReef colours, header, footer and homepage. The repair portal and store keep their own styling from the fixreef-repairs plugin.
Version: 0.1.0
Requires at least: 6.7
Text Domain: fixreef
*/

/* Homepage sections (patterns/home-*.php). Colours and type come from theme.json. */

.fr-eyebrow {
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fr-hero {
	position: relative;
}

.fr-hero .wp-block-cover__inner-container {
	max-width: 1200px;
}

.fr-steps .wp-block-column,
.fr-facts .wp-block-column {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
}

.fr-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--brand-dark);
	font-weight: 700;
}

.fr-fact-value {
	line-height: 1.1;
}

.fr-brands p {
	opacity: 0.85;
}

.fr-repairs .wp-block-post-featured-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

.fr-repairs .wp-block-post-title a {
	text-decoration: none;
}

.fr-repairs .wp-block-post-title a:hover {
	text-decoration: underline;
}

.fr-photo img {
	border-radius: 16px;
}

/* Header: logo, menu and the Request a repair button on one row. */
.fr-header .wp-block-navigation {
	font-weight: 500;
}

/* No white strip between the last section and the footer. */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

.fr-fact-value {
	font-size: clamp(1.75rem, 3vw, 2.4rem) !important;
}

/* Header account link (WooCommerce Customer account block): icon and "My account", icon only on phones,
   where the menu collapses too (600px, WordPress's navigation breakpoint). */
.fr-account .wc-block-customer-account__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.fr-account {
	font-size: var(--wp--preset--font-size--medium); /* Same as the menu (Twenty Twenty-Five's navigation). */
	font-weight: 500;
}

.fr-account .wc-block-customer-account__link:hover .label {
	text-decoration: underline;
}

@media (max-width: 599px) {
	/* Phones: the logo and the button keep their size; the menu, cart and account shrink to icons. */
	.fr-header .wp-block-site-logo {
		flex-shrink: 0;
	}

	.fr-header .wp-block-site-logo img {
		width: 64px;
		height: auto;
	}

	.fr-header .wp-block-button__link {
		white-space: nowrap;
		padding: 0.55em 0.8em;
		font-size: 0.8rem;
	}

	.fr-header .wp-block-group.is-nowrap {
		gap: 0.6rem;
	}

	.fr-account .label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}
