/*
Theme Name: Rudd
Description: Block theme for Rudd Lockmasters Security Services. Business data comes from the Rudd Core plugin.
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 8.2
Author: Highly Reactive Limited
Text Domain: rudd
License: Proprietary
*/

/* Most styling lives in theme.json. This file covers what it can't express. */

/* Header: the template part wrapper is sticky, so it sticks for the whole page. */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.rudd-header {
	border-bottom: 3px solid var(--wp--preset--color--brass);
}
.rudd-logo img {
	display: block;
	height: auto;
}
.rudd-header .wp-block-navigation a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brass);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}
@media (max-width: 599px) {
	.rudd-call .wp-block-button__link {
		padding: 0.6rem 0.9rem;
		font-size: var(--wp--preset--font-size--small);
	}
}

/* Eyebrow text above headings */
.rudd-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 800;
	font-size: var(--wp--preset--font-size--small);
}

/* Photo placeholder: obviously not a real photo (HANDOVER.md rule 6). */
.rudd-photo-placeholder {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.5rem;
	color: var(--wp--preset--color--navy-deep);
	font-weight: 700;
	background: repeating-linear-gradient(
		-45deg,
		var(--wp--preset--color--brass-soft) 0 18px,
		var(--wp--preset--color--mist) 18px 36px
	);
	border: 2px dashed var(--wp--preset--color--brass);
}

/* Checklist list style */
.is-style-rudd-check {
	list-style: none;
	padding-left: 0;
}
.is-style-rudd-check li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.5rem;
}
.is-style-rudd-check li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.35em;
	width: 0.45rem;
	height: 0.85rem;
	border: solid var(--wp--preset--color--brass);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

/* Service cards from [rudd_services] */
.rudd-services {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.rudd-service-card,
.rudd-card {
	background: var(--wp--preset--color--white);
	border: 1px solid #D9DDE3;
	border-top: 4px solid var(--wp--preset--color--brass);
	padding: 1.25rem 1.5rem;
}
.rudd-service-card h3 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--large);
}
.rudd-service-card h3 a {
	text-decoration: none;
}
.rudd-service-card h3 a:hover {
	text-decoration: underline;
}
.rudd-service-card p {
	margin: 0.25rem 0 0;
	color: var(--wp--preset--color--steel);
}
.rudd-badge {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.1rem 0.45rem;
	font: 700 0.75rem/1.4 var(--wp--preset--font-family--archivo);
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--steel);
	vertical-align: middle;
}

/* Hours and contact */
.rudd-hours {
	border-collapse: collapse;
	width: 100%;
}
.rudd-hours th,
.rudd-hours td {
	text-align: left;
	padding: 0.35rem 0;
	border-bottom: 1px solid rgb(127 127 127 / 0.25);
	font-weight: 400;
}
.rudd-hours th {
	padding-right: 1rem;
	font-weight: 700;
}
.rudd-contact {
	font-style: normal;
}
.rudd-open-now {
	display: inline-block;
	font-weight: 800;
	padding-left: 1.1rem;
	position: relative;
}
.rudd-open-now::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 0.6rem;
	height: 0.6rem;
	margin-top: -0.3rem;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
}
.rudd-open-now.is-open::before {
	background: #2E9E5B;
	opacity: 1;
}

/* Dark sections: links and hours borders stay legible. */
.has-navy-background-color a:where(:not(.wp-element-button)),
.has-navy-deep-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--white);
}
.has-navy-background-color :where(h1, h2, h3, h4),
.has-navy-deep-background-color :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--white);
}
