/* Rules theme.json cannot express. Keep this file small — anything that can be
   a theme.json token belongs there, so it stays editable in the Site Editor. */

/* Check list used by the "why us" section. */
.rozmo-checks { list-style: none; padding-left: 0; }
.rozmo-checks li { position: relative; padding-left: 30px; }
.rozmo-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.52em;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--wp--preset--color--signal-deep);
	border-bottom: 2px solid var(--wp--preset--color--signal-deep);
	transform: rotate(-45deg);
}

/* Service cards: the coloured top rule is driven by the service-group term,
   which theme.json has no way to reach. */
.rozmo-service-cards .wp-block-post { height: 100%; }
.rozmo-service-cards .wp-block-post > .wp-block-group {
	height: 100%;
	border-top: 3px solid var(--wp--preset--color--group-comms);
}
.rozmo-service-cards .wp-block-post.service-group-software > .wp-block-group {
	border-top-color: var(--wp--preset--color--group-software);
}
.rozmo-service-cards .wp-block-post-title a { text-decoration: none; }
.rozmo-service-cards .wp-block-post-title a:hover { color: var(--wp--preset--color--signal-deep); }
.rozmo-service-cards .wp-block-post-terms a { text-decoration: none; }

/* Details/summary: a usable affordance without a plugin. */
.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--plex-mono);
	color: var(--wp--preset--color--signal-deep);
	font-size: 20px;
	line-height: 1;
	flex: none;
}
.wp-block-details[open] summary::after { content: "–"; }

/* Navigation on dark grounds: remove underlines, keep a visible focus ring. */
.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation a:hover { text-decoration: underline; }
:where(a):focus-visible,
:where(button):focus-visible,
.wp-block-details summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--signal);
	outline-offset: 2px;
}

/* Term labels read as labels, not links, wherever they appear. */
.wp-block-post-terms a { text-decoration: none; }
.wp-block-post-terms a:hover { text-decoration: underline; }

/* Full-bleed sections butt directly against each other. The global block gap
   still applies inside content, where it is wanted. */
.wp-site-blocks > * + *,
.wp-site-blocks main.wp-block-group > * + * { margin-block-start: 0; }

/* --- Service highlights: the bullets edited on each service page --- */
.rozmo-highlights { list-style: none; padding-left: 0; margin: 0; }
.rozmo-highlights li {
	position: relative;
	padding-left: 18px;
	color: var(--wp--preset--color--text-muted);
	line-height: 1.5;
	margin-bottom: 6px;
}
.rozmo-highlights li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wp--preset--color--signal-deep);
}
.rozmo-service-cards .wp-block-post-title a { text-decoration: none; }
.rozmo-service-cards .wp-block-read-more { text-decoration: none; font-weight: 600; }
.rozmo-service-cards .wp-block-read-more:hover { text-decoration: underline; }

/* --- Filter tabs --- */
.rozmo-tabs {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: var(--wp--preset--spacing--40);
}
.rozmo-tab {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text-muted);
	cursor: pointer;
}
.rozmo-tab:hover { border-color: var(--wp--preset--color--signal-deep); color: var(--wp--preset--color--body); }
.rozmo-tab.is-on {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--text-invert);
}
.rozmo-service-cards .wp-block-post[hidden] { display: none; }

/* --- Diagrams --- */
.rozmo-figure { width: 100%; }
.rozmo-diagram { width: 100%; height: auto; display: block; }
.rozmo-diagram text { font-family: var(--wp--preset--font-family--plex-sans); }
.rt-label, .dv-label { font-size: 15px; font-weight: 600; fill: var(--wp--preset--color--body); }
.rt-sub, .dv-sub { font-size: 12.5px; fill: var(--wp--preset--color--text-muted); }
.rt-item { font-size: 14px; fill: var(--wp--preset--color--body); }
.rt-answered { font-family: var(--wp--preset--font-family--plex-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; fill: var(--wp--preset--color--go); }
.dv-badge { font-family: var(--wp--preset--font-family--plex-mono); font-size: 13px; font-weight: 500; fill: var(--wp--preset--color--text-invert); }
@media (max-width: 781px) { .rozmo-diagram { min-height: 200px; } }

/* --- Numbered process steps --- */
.rozmo-step-num {
	width: 34px; height: 34px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--wp--preset--color--group-comms);
	color: #fff;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 14px; font-weight: 600;
	margin: 0;
}

/* --- Mobile refinements --- */
@media (max-width: 600px) {
	/* The header CTA wraps to its own row and pushes the hero down; the hero
	   carries the same call to action twenty pixels later. */
	.rozmo-header-cta { display: none; }

	/* Four stacked stat rows is a lot of scrolling for four short facts. */
	.rozmo-stat-band .wp-block-columns { flex-wrap: wrap !important; }
	.rozmo-stat-band .wp-block-column { flex-basis: calc(50% - 10px) !important; }
}
.rozmo-service-cards .wp-block-read-more { display: inline-block; }

/* --- Enquiry form --- */
.rozmo-enquiry { --rz-field-border: var(--wp--preset--color--line); }
.rozmo-form p { margin: 0 0 16px; }
.rozmo-form label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--body);
	margin-bottom: 6px;
}
.rozmo-form input[type="text"],
.rozmo-form input[type="email"],
.rozmo-form input[type="tel"],
.rozmo-form select,
.rozmo-form textarea {
	width: 100%;
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming the page on focus */
	color: var(--wp--preset--color--body);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--rz-field-border);
	border-radius: 8px;
	padding: 11px 13px;
	box-sizing: border-box;
}
.rozmo-form textarea { resize: vertical; }
.rozmo-form input:focus-visible,
.rozmo-form select:focus-visible,
.rozmo-form textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--signal-deep);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--signal-deep);
}
.rozmo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .rozmo-form-row { grid-template-columns: 1fr; } }

.rozmo-submit {
	width: 100%;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: 0;
	border-radius: 6px;
	padding: 14px 24px;
	background: var(--wp--preset--color--go);
	color: #fff;
}
.rozmo-submit:hover { background: var(--wp--preset--color--go-deep); }
.rozmo-submit:focus-visible { outline: 2px solid var(--wp--preset--color--signal-deep); outline-offset: 2px; }
.rozmo-fineprint { font-size: 12.5px; color: var(--wp--preset--color--text-muted); margin-top: 12px !important; text-align: center; }

/* The honeypot must be reachable by bots and invisible to people, without
   display:none, which some bots skip. */
.rozmo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rozmo-form-notice {
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 15px;
	border: 1px solid;
}
.rozmo-form-notice.is-ok  { background: #E8F6EE; border-color: #A8DCC0; color: #0A5C36; }
.rozmo-form-notice.is-err { background: #FDEDEC; border-color: #F2B8B5; color: #8A1C13; }

/* --- Post list --- */
.rozmo-postlist > li + li { border-top: 1px solid var(--wp--preset--color--line); padding-top: var(--wp--preset--spacing--50); }
.rozmo-postlist .wp-block-post-title a { text-decoration: none; }
.rozmo-postlist .wp-block-post-title a:hover { color: var(--wp--preset--color--signal-deep); }
