/*
Theme Name: GOCYC
Theme URI: https://gocyc.ae
Author: GOCYC
Author URI: https://gocyc.ae
Description: Block theme for the GOCYC marketing site. Replaces the Nicepage build. Built RTL-ready so Arabic can be added without a rebuild.
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Version: 0.30.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gocyc
Tags: block-theme, full-site-editing, rtl-language-support
*/

/*
 * Nearly all styling lives in theme.json.
 * Only add CSS here when the block system genuinely cannot express it.
 *
 * RTL RULE: never use `left` / `right` / `margin-left` / `padding-right` etc.
 * Always use logical properties — `inline-start`, `inline-end`, `margin-inline`,
 * `padding-block` — so the Arabic build needs no separate stylesheet.
 */

/*
 * Route marker — the signature element.
 *
 * A section label styled after cycling wayfinding: a tabular number, a short
 * caps label, and a rule that runs to the edge of the container. Built with
 * flexbox and logical properties so it mirrors correctly in Arabic without a
 * separate RTL stylesheet.
 *
 * Markup (shipped inside patterns, never hand-assembled by editors):
 *   <p class="gocyc-marker"><span>01</span>What we do</p>
 */
/*
 * Shape tokens, taken from the app rather than invented here:
 *   buttons and inputs  8px  (AuthButton, UpdatedInput)
 *   cards               12px (SurfaceStyles createSurfaceBoxStyle default)
 * The app is rounded but restrained — nothing is a pill except avatars.
 */
:root {
	--gocyc-radius-control: 8px;
	--gocyc-radius-card: 12px;
}

.gocyc-marker {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-block-end: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--signal);
}

.gocyc-marker > span {
	font-variant-numeric: tabular-nums;
	opacity: 0.75;
}

/* The rule fills whatever space is left, and flips with the writing direction. */
.gocyc-marker::after {
	content: "";
	flex: 1 1 auto;
	block-size: 1px;
	background-color: currentColor;
	opacity: 0.35;
}

/* On dark sections the marker switches to floodlight yellow. */
.has-asphalt-background-color .gocyc-marker {
	color: var(--wp--preset--color--floodlight);
}

/*
 * Hero rotator — the four services cycling in the headline.
 *
 * Carried over from the Nicepage build because it is the one piece of motion on
 * the site that says something: GOCYC does four things, not one.
 *
 * Pure CSS, no library. The list is a real <ul> so it reads correctly to
 * assistive tech and to search engines — all four services are in the markup,
 * not injected by script.
 */
.gocyc-rotator {
	display: inline-grid;
	margin: 0;
	padding: 0;
	list-style: none;
	vertical-align: bottom;
	overflow: hidden;
	/* Height of one line, so the others are clipped out of view. */
	block-size: 1.15em;
}

.gocyc-rotator > li {
	grid-area: 1 / 1;
	margin: 0;
	color: var(--wp--preset--color--signal);
	white-space: nowrap;
	opacity: 0;
	transform: translateY(100%);
	animation: gocyc-rotate 12s infinite;
}

.gocyc-rotator > li:nth-child(1) { animation-delay: 0s; }
.gocyc-rotator > li:nth-child(2) { animation-delay: 3s; }
.gocyc-rotator > li:nth-child(3) { animation-delay: 6s; }
.gocyc-rotator > li:nth-child(4) { animation-delay: 9s; }

@keyframes gocyc-rotate {
	0%              { opacity: 0; transform: translateY(100%); }
	4%, 21%         { opacity: 1; transform: translateY(0); }
	25%, 100%       { opacity: 0; transform: translateY(-100%); }
}

/*
 * Motion is decorative here, so when it is unwelcome we do not merely slow it
 * down — we drop to a static list of all four services, which communicates the
 * same thing without moving.
 */
@media (prefers-reduced-motion: reduce) {
	.gocyc-rotator {
		display: block;
		block-size: auto;
	}

	.gocyc-rotator > li {
		opacity: 1;
		transform: none;
		animation: none;
	}

	.gocyc-rotator > li + li::before {
		content: " · ";
		color: var(--wp--preset--color--haze);
	}

	.gocyc-rotator > li {
		display: inline;
	}
}

/*
 * Package cards.
 *
 * Wolfi's hides its service prices behind buttons. GOCYC's own page promises
 * "transparent pricing", so the price is the loudest thing on the card.
 */
/* Same stretch-not-percentage rule as .gocyc-quote — see the note there. */
.gocyc-card {
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid rgba(244, 241, 234, 0.14);
	border-radius: var(--gocyc-radius-card);
	background: var(--wp--preset--color--elevated);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gocyc-card:hover,
.gocyc-card:focus-within {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--signal);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.gocyc-card__flag {
	display: flex;
	align-items: center;
	min-block-size: 1.5rem;
	margin-block-end: 0.35rem;
}

.gocyc-card__price {
	font-family: var(--wp--preset--font-family--mono);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
	font-weight: 600;
	line-height: 1.1;
	color: var(--wp--preset--color--signal);
	font-variant-numeric: tabular-nums;
}

.gocyc-card__price small {
	display: block;
	margin-block-start: 0.15rem;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--haze);
}

.gocyc-card ul {
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0;
	list-style: none;
	flex: 1 1 auto;
}

.gocyc-card ul li {
	position: relative;
	padding-inline-start: 1.35rem;
	margin-block-end: 0.45rem;
	font-size: 0.95rem;
	color: var(--wp--preset--color--haze);
}

/* Logical inset so the tick mirrors in Arabic. */
.gocyc-card ul li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.55em;
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--signal);
}

/* Price list — dotted leaders, like a workshop rate card. */
.gocyc-rate {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding-block: 0.5rem;
	border-block-end: 1px solid rgba(244, 241, 234, 0.10);
}

.gocyc-rate__name { flex: 0 1 auto; }

.gocyc-rate__dots {
	flex: 1 1 auto;
	border-block-end: 1px dotted rgba(244, 241, 234, 0.25);
	transform: translateY(-0.25em);
}

.gocyc-rate__price {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
	color: var(--wp--preset--color--sand);
}

/*
 * Reviews.
 *
 * Was a bare paragraph in a box. These are real riders vouching for a service
 * that involves letting a stranger work on an expensive bike at your home, so
 * they deserve to read as testimony: the rating restored from the original
 * page, the quote given room, and the handle attributed properly.
 */
/*
 * Stretch as a flex item rather than block-size:100%.
 *
 * With a percentage height the card sized itself against the column while the
 * column sized itself without the card — so a quote needing 310px was clamped
 * to the column's 251px and the overflow landed on top of the row beneath it.
 * Making the column a flex container gives equal-height cards with no such
 * circularity, because stretch resolves after the row height is known.
 */
.wp-block-column:has( > .gocyc-quote ),
.wp-block-column:has( > .gocyc-card ) {
	display: flex;
}

.gocyc-quote {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--elevated);
	border: 1px solid rgba(244, 241, 234, 0.10);
	border-radius: var(--gocyc-radius-card);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.gocyc-quote:hover {
	border-color: rgba(0, 166, 82, 0.45);
	transform: translateY(-3px);
}

.gocyc-quote__stars {
	display: flex;
	gap: 2px;
	margin-block-end: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--floodlight);
	font-size: 0.85rem;
	letter-spacing: 0.1em;
}

.gocyc-quote__text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--wp--preset--color--sand);
}

/* A quiet mark, set behind the text rather than pushing it down. */
.gocyc-quote::after {
	content: "\201D";
	position: absolute;
	inset-block-start: 0.35rem;
	inset-inline-end: 1rem;
	font-size: 4.5rem;
	line-height: 1;
	color: var(--wp--preset--color--signal);
	opacity: 0.14;
	pointer-events: none;
}

.gocyc-quote__by {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-block-start: var(--wp--preset--spacing--40);
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid rgba(244, 241, 234, 0.10);
}

.gocyc-quote__avatar {
	inline-size: 2rem;
	block-size: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--asphalt);
	background: var(--wp--preset--color--signal);
	border-radius: 50%;
}

.gocyc-quote__handle {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	font-style: normal;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--haze);
}


/*
 * Scroll-driven reveal. Uses the native view() timeline where supported so
 * there is no JavaScript and no layout thrash; browsers without it simply show
 * the content, which is the correct fallback.
 */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.gocyc-reveal {
			animation: gocyc-rise linear both;
			animation-timeline: view();
			animation-range: entry 10% cover 28%;
		}
	}
}

@keyframes gocyc-rise {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

/*
 * Forms.
 *
 * Fluent Forms ships Bootstrap-ish defaults — blue info icons, red asterisks,
 * everything full width. None of that belongs here, and a booking form that is
 * one long column of identical boxes is tiring to fill in. Fields that are
 * naturally short are paired.
 */
.fluentform .ff-el-group {
	margin-block-end: var(--wp--preset--spacing--30);
}

.fluentform .ff-el-input--label label {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--sand);
}

/*
 * Required marker: quiet, and in the palette rather than alarm red.
 * The class sits on .ff-el-input--label itself, not on a wrapper — so the
 * earlier descendant selector never matched and the asterisks stayed red.
 */
.fluentform .ff-el-input--label.ff-el-is-required > label:after,
.fluentform label.ff-el-is-required:after {
	color: var(--wp--preset--color--signal) !important;
	margin-inline-start: 0.15rem;
}

/*
 * Paired fields drifted a few pixels apart because a label carrying a tooltip
 * icon is taller than one without. Reserve a consistent label row.
 */
.fluentform .ff-el-input--label {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	/*
	 * Fixed, not min: the tooltip icon is taller than the label text, so a
	 * min-height still let rows with an icon push their input 6px lower than
	 * the field paired beside it.
	 */
	block-size: 1.6rem;
	margin-block-end: 0.35rem;
}

.fluentform .ff-el-input--label label { margin: 0; line-height: 1.2; }

.fluentform .ff-el-tooltip {
	display: inline-flex;
	align-items: center;
	block-size: 1rem;
	inline-size: 1rem;
}

.fluentform .ff-el-tooltip svg { block-size: 0.9rem; inline-size: 0.9rem; }

/* The default help tooltip is a blue circle. Make it disappear into the label. */
.fluentform .ff-el-tooltip,
.fluentform .ff-el-help-message {
	color: var(--wp--preset--color--haze);
}

.fluentform .ff-el-tooltip svg { fill: var(--wp--preset--color--haze); }

.fluentform .ff-el-help-message {
	font-size: 0.8rem;
	margin-block-start: 0.3rem;
}

.fluentform .ff-el-form-control,
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="date"],
.fluentform input[type="time"],
.fluentform select,
.fluentform textarea {
	/* Native pickers and dropdowns render dark instead of a white sheet. */
	color-scheme: dark;
	inline-size: 100%;
	padding: 0.75rem 0.9rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--sand);
	background: var(--wp--preset--color--elevated);
	border: 1px solid rgba(244, 241, 234, 0.20);
	border-radius: 2px;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fluentform .ff-el-form-control:focus,
.fluentform input:focus,
.fluentform select:focus,
.fluentform textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--signal);
	box-shadow: 0 0 0 3px rgba(0, 166, 82, 0.16);
}

.fluentform textarea { min-block-size: 5.5rem; resize: vertical; }

.fluentform .ff-btn-submit {
	padding: 0.9rem 2rem;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--asphalt);
	background: var(--wp--preset--color--signal);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.fluentform .ff-btn-submit:hover { background: var(--wp--preset--color--signal-deep); }

/*
 * Pair short fields. Fluent Forms puts container_class on the group wrapper, so
 * this is driven from the form definition rather than by nth-child guessing.
 */
@media (min-width: 640px) {
	.fluentform .ff_t_container,
	.fluentform form > .ff-t-cell { display: block; }

	.gocyc-field-half { display: inline-block; inline-size: calc(50% - 0.5rem); vertical-align: top; }
	.gocyc-field-half + .gocyc-field-half { margin-inline-start: 1rem; }
}

/* Validation errors in the palette, not default red-on-white. */
.fluentform .error.text-danger,
.fluentform .ff-el-is-error .text-danger {
	font-size: 0.85rem;
	color: #b3261e;
}

/* Placeholders need to sit between the text and the field. */
.fluentform ::placeholder { color: var(--wp--preset--color--haze); opacity: 1; }

/* Skip link — visible only on keyboard focus */
.skip-link:focus {
	position: fixed;
	inset-block-start: var(--wp--preset--spacing--30);
	inset-inline-start: var(--wp--preset--spacing--30);
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--asphalt);
	color: var(--wp--preset--color--sand);
	border-radius: 4px;
	text-decoration: none;
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Booking picker — calendar left, package right
   ========================================================================== */

/*
 * touch-action: manipulation removes the ~300ms double-tap-to-zoom gesture on
 * these controls. Without it a quick second tap on a small calendar cell is
 * interpreted as double-tap and the browser zooms the page — which is what it
 * looked like when picking a date.
 */
.gocyc-cal__day,
.gocyc-cal__slot,
.gocyc-cal__nav,
.gocyc-pick__btn {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.gocyc-booking {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: 1fr;
	align-items: start;
}

/* The group wrapper is a flow layout; its stacking margins fight the grid gap. */
.gocyc-booking > * { margin-block: 0; }

@media (min-width: 900px) {
	.gocyc-booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* The summary is about the whole booking, so it sits under both columns. */
.gocyc-booking__summary { grid-column: 1 / -1; }

/*
 * Calendar and rider details share one panel. The rule marks the seam between
 * choosing a slot and saying who you are, without splitting them into two boxes.
 */
.gocyc-bookingcol__title {
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	padding-block-start: var(--wp--preset--spacing--40);
	border-block-start: 1px solid rgba(244, 241, 234, 0.12);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--floodlight);
}

/* Fluent Forms ships its own top margin; the seam above already spaces this. */
.gocyc-bookingcol .fluentform { margin-block-start: 0; }

.gocyc-panel {
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--elevated);
	border: 1px solid rgba(244, 241, 234, 0.12);
	border-radius: var(--gocyc-radius-card);
}

/* --- calendar ------------------------------------------------------------ */

.gocyc-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-block-end: var(--wp--preset--spacing--30);
}

.gocyc-cal__month {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand);
}

.gocyc-cal__nav {
	inline-size: 2rem;
	block-size: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--wp--preset--color--sand);
	border: 1px solid rgba(244, 241, 234, 0.18);
	border-radius: 2px;
	cursor: pointer;
}

.gocyc-cal__nav:hover { border-color: var(--wp--preset--color--signal); }

.gocyc-cal__body {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--wp--preset--spacing--30);
}

/*
 * At phone width the seven-day grid plus a slot column overflows the viewport.
 * Stack them and lay the slots out horizontally instead.
 */
@media (max-width: 560px) {
	.gocyc-cal__body { grid-template-columns: 1fr; }

	.gocyc-cal__slots {
		flex-direction: row;
		flex-wrap: wrap;
		min-inline-size: 0;
	}

	.gocyc-cal__slot { flex: 1 1 auto; text-align: center; min-block-size: 2.75rem; }

	/* Horizontal on phones, so reserve a row not a column. */
	.gocyc-cal__slots { min-block-size: 6.5rem; }

	/* Comfortable tap targets — small cells invite the double-tap that zooms. */
	.gocyc-cal__day { min-block-size: 2.75rem; font-size: 1rem; }

	.gocyc-panel { padding: var(--wp--preset--spacing--30); }
}

/* Never let the picker push the page sideways. */
.gocyc-booking, .gocyc-panel, .gocyc-cal__grid { min-inline-size: 0; max-inline-size: 100%; }

.gocyc-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.gocyc-cal__dow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	padding-block: 0.35rem;
	color: var(--wp--preset--color--haze);
}

.gocyc-cal__day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--sand);
	background: rgba(244, 241, 234, 0.05);
	border: 1px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

.gocyc-cal__day:hover:not(:disabled) { background: rgba(0, 166, 82, 0.18); }

.gocyc-cal__day:disabled {
	color: rgba(244, 241, 234, 0.25);
	background: transparent;
	cursor: not-allowed;
}

.gocyc-cal__day.is-selected {
	border-color: var(--wp--preset--color--signal);
	background: rgba(0, 166, 82, 0.22);
	font-weight: 700;
}

/* --- time slots ---------------------------------------------------------- */

.gocyc-cal__slots {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-inline-size: 5.5rem;
	/*
	 * Reserve the space the slots will occupy. Without this the page grew by
	 * ~157px the moment a date was picked, shifting everything under the
	 * reader's finger.
	 */
	min-block-size: 13rem;
}

.gocyc-cal__slot {
	padding: 0.6rem 0.75rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--sand);
	background: rgba(244, 241, 234, 0.05);
	border: 1px solid rgba(244, 241, 234, 0.14);
	border-radius: 3px;
	cursor: pointer;
}

.gocyc-cal__slot:hover { border-color: var(--wp--preset--color--signal); }

.gocyc-cal__slot.is-selected {
	background: var(--wp--preset--color--signal);
	border-color: var(--wp--preset--color--signal);
	color: var(--wp--preset--color--asphalt);
	font-weight: 700;
}

.gocyc-cal__hint {
	margin: 0;
	font-size: 0.85rem;
	color: var(--wp--preset--color--haze);
}

.gocyc-cal__tz {
	margin-block-start: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--haze);
}

/* --- package picker ------------------------------------------------------ */

.gocyc-pick + .gocyc-pick { margin-block-start: 8px; }

.gocyc-pick {
	padding: var(--wp--preset--spacing--30);
	background: rgba(244, 241, 234, 0.04);
	border: 1px solid rgba(244, 241, 234, 0.12);
	border-radius: 4px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gocyc-pick.is-selected {
	border-color: var(--wp--preset--color--signal);
	background: rgba(0, 166, 82, 0.10);
}

/*
 * A selected card previously only changed its border, leaving the button
 * still saying "Choose" in the same colour — so there was no confirmation
 * that the click had registered.
 */
.gocyc-pick.is-selected [data-gocyc="choose"] {
	background: transparent;
	color: var(--wp--preset--color--signal);
	border: 1px solid var(--wp--preset--color--signal);
}

.gocyc-pick.is-selected [data-gocyc="choose"]::before {
	content: "\2713\00a0";
	font-weight: 700;
}

.gocyc-pick__row {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
}

.gocyc-pick__name { font-weight: 700; flex: 1 1 auto; }

.gocyc-pick__price {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--wp--preset--color--signal);
	white-space: nowrap;
}

.gocyc-pick__meta {
	margin: 0.15rem 0 0;
	font-size: 0.8rem;
	color: var(--wp--preset--color--haze);
}

.gocyc-pick__actions {
	display: flex;
	gap: 0.5rem;
	margin-block-start: 0.65rem;
}

.gocyc-pick__btn {
	padding: 0.45rem 0.9rem;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wp--preset--color--asphalt);
	background: var(--wp--preset--color--signal);
	border: 0;
	border-radius: var(--gocyc-radius-control);
	cursor: pointer;
}

.gocyc-pick__btn--ghost {
	background: transparent;
	color: var(--wp--preset--color--sand);
	border: 1px solid rgba(244, 241, 234, 0.20);
	font-weight: 600;
}

/*
 * Revealed once "Single service" is chosen — the job still has to be picked.
 * Scoped to :not([hidden]) because a bare `display: block` would outrank the
 * hidden attribute and leak the dropdown onto every unselected card.
 */
.gocyc-pick__single:not([hidden]) {
	display: block;
	margin-block-start: 0.9rem;
}

.gocyc-pick__singlelabel {
	display: block;
	margin-block-end: 0.4rem;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--haze);
}

.gocyc-pick__single select {
	inline-size: 100%;
	min-block-size: 44px;
	padding: 0.6rem 0.75rem;
	border-radius: var(--gocyc-radius-control);
	border: 1px solid rgba(244, 241, 234, 0.20);
	background: var(--wp--preset--color--asphalt);
	color: var(--wp--preset--color--sand);
	font-size: 0.95rem;
}

.gocyc-pick__single select:focus-visible {
	outline: 2px solid var(--wp--preset--color--signal);
	outline-offset: 2px;
}

.gocyc-pick__detail {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.gocyc-pick__detail li {
	position: relative;
	padding-inline-start: 1.1rem;
	margin-block-end: 0.3rem;
	font-size: 0.88rem;
	color: var(--wp--preset--color--haze);
}

.gocyc-pick__detail li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.5em;
	inline-size: 0.4rem;
	block-size: 0.4rem;
	border-radius: 50%;
	background: var(--wp--preset--color--signal);
}

.gocyc-booking__summary {
	margin-block-start: var(--wp--preset--spacing--30);
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85rem;
	color: var(--wp--preset--color--sand);
	background: rgba(0, 166, 82, 0.12);
	border-inline-start: 3px solid var(--wp--preset--color--signal);
	border-radius: 2px;
}

/*
 * The picker owns date, time and package, so the matching form controls are
 * redundant UI. They stay in the DOM — Fluent Forms still validates and stores
 * them — but are hidden from sight.
 */
.gocyc-has-picker .ff-el-group:has( [name="preferred_date"] ),
.gocyc-has-picker .ff-el-group:has( [name="preferred_time"] ),
.gocyc-has-picker .ff-el-group:has( [name="service"] ) {
	display: none;
}

/* The picker fills this from the rate card, so the raw field is redundant UI. */
.gocyc-has-picker .ff-el-group:has( [name="single_service"] ) { display: none; }

/* Rate card rows are bookable. */
.gocyc-rate {
	inline-size: 100%;
	text-align: start;
	background: none;
	border-inline: 0;
	border-block-start: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
	touch-action: manipulation;
}

.gocyc-rate:hover .gocyc-rate__name,
.gocyc-rate:focus-visible .gocyc-rate__name { color: var(--wp--preset--color--signal); }

.gocyc-rate__book {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--signal);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.gocyc-rate:hover .gocyc-rate__book,
.gocyc-rate:focus-visible .gocyc-rate__book { opacity: 1; }

@media (hover: none) {
	.gocyc-rate__book { opacity: 1; }
}

/* ==========================================================================
   Links hub
   ========================================================================== */

.gocyc-applinks {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
	margin-block-end: var(--wp--preset--spacing--50);
}

@media (min-width: 520px) {
	.gocyc-applinks { grid-template-columns: 1fr 1fr; }
}

.gocyc-applinks__btn {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-block-size: 3.75rem;
	padding: 0.7rem 1.25rem;
	text-decoration: none;
	color: var(--wp--preset--color--asphalt);
	background: var(--wp--preset--color--sand);
	border-radius: var(--gocyc-radius-control);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gocyc-applinks__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
	text-decoration: none;
}

.gocyc-applinks__label {
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
}

.gocyc-applinks__store { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }

.gocyc-linkgroup + .gocyc-linkgroup { margin-block-start: var(--wp--preset--spacing--50); }

.gocyc-linkgroup__title {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: 1.35rem;
	font-weight: 700;
}

.gocyc-linklist { margin: 0; padding: 0; list-style: none; }

.gocyc-linklist li + li { margin-block-start: 8px; }

.gocyc-linkrow {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	text-decoration: none;
	color: var(--wp--preset--color--sand);
	background: rgba(244, 241, 234, 0.04);
	border: 1px solid rgba(244, 241, 234, 0.12);
	border-radius: 4px;
	/* Tap targets stay comfortable and never trigger double-tap zoom. */
	min-block-size: 3.25rem;
	touch-action: manipulation;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gocyc-linkrow:hover,
.gocyc-linkrow:focus-visible {
	border-color: var(--wp--preset--color--signal);
	background: rgba(0, 166, 82, 0.10);
	text-decoration: none;
}

.gocyc-linkrow__text { display: flex; flex-direction: column; flex: 1 1 auto; min-inline-size: 0; }

.gocyc-linkrow__name { font-weight: 600; }

.gocyc-linkrow__meta {
	font-size: 0.85rem;
	color: var(--wp--preset--color--haze);
	/* Long descriptions truncate rather than wrapping a row to three lines. */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gocyc-linkrow__arrow {
	flex: 0 0 auto;
	color: var(--wp--preset--color--signal);
	font-size: 1.1rem;
	transition: transform 0.15s ease;
}

.gocyc-linkrow:hover .gocyc-linkrow__arrow { transform: translateX(3px); }

/* The arrow points the other way when the page is in Arabic. */
[dir="rtl"] .gocyc-linkrow__arrow { transform: scaleX(-1); }
[dir="rtl"] .gocyc-linkrow:hover .gocyc-linkrow__arrow { transform: scaleX(-1) translateX(3px); }

/* ==========================================================================
   Mobile pass
   Findings from automated device testing at 320/390/393/810px, not by eye.
   ========================================================================== */

/*
 * Navigation links were rendering 21–24px tall. That is well under the ~44px
 * that can be tapped reliably, and it applied to every nav item in the header
 * and footer — the most-used controls on the site.
 */
.wp-block-navigation .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	touch-action: manipulation;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-inline-size: 44px;
	min-block-size: 44px;
	touch-action: manipulation;
}

/* Footer links sat at 21px for the same reason. */
footer .wp-block-navigation-item__content,
footer a {
	min-block-size: 44px;
	display: inline-flex;
	align-items: center;
}

.gocyc-pick__btn,
.gocyc-cal__nav {
	min-block-size: 44px;
	min-inline-size: 44px;
}

@media (max-width: 400px) {
	/*
	 * The display-size rotator ran 34px past a 320px viewport. Let it size down
	 * and wrap rather than pushing the page sideways.
	 */
	.gocyc-rotator {
		block-size: auto;
		max-inline-size: 100%;
	}

	.gocyc-rotator > li { white-space: normal; }

	/* Seven columns plus gaps did not fit 320px. */
	.gocyc-cal__grid { gap: 2px; }

	.gocyc-cal__day { font-size: 0.85rem; }

	.gocyc-panel { padding: var(--wp--preset--spacing--30); }

	/* Labels were 12.8px; nudge up for legibility on small screens. */
	.gocyc-marker { font-size: 0.75rem; letter-spacing: 0.12em; gap: 0.5rem; }

	.gocyc-pick__meta { font-size: 0.85rem; }
}

/* Belt and braces: nothing may push the document sideways. */
html, body { overflow-x: clip; }

/* The wordmark is a link home — in the header and the footer. It rendered
   23px tall, so it was the hardest thing on the page to hit accurately. */
.wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	touch-action: manipulation;
}

/* Pagination is a primary control on the blog and was 25–27px. */
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 44px;
	min-inline-size: 44px;
	padding-inline: 0.5rem;
	touch-action: manipulation;
}

/* Team profile links were 22px — the smallest targets left on the site. */
.gocyc-teamlink {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	touch-action: manipulation;
}

/* Contact — the label sits above the value, so the row reads as a channel. */
.gocyc-ways__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--signal);
	margin-block-end: 0.15rem;
}

.gocyc-ways .gocyc-linkrow { align-items: flex-start; padding-block: 1.1rem; }
.gocyc-ways .gocyc-linkrow__name { font-size: 1.1rem; }
.gocyc-ways .gocyc-linkrow__meta { white-space: normal; }
.gocyc-ways .gocyc-linkrow__arrow { align-self: center; }

/*
 * App-first booking block.
 *
 * The app is the better product for this job — live mechanic status, service
 * history, and the Support thread — so on the services page it sits above the
 * web form rather than after it. The web form stays for people who have not
 * installed it, which is most first-time visitors.
 */
.gocyc-appfirst {
	position: relative;
	margin-block-end: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--50);
	border-radius: var(--gocyc-radius-card);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(0, 166, 82, 0.22) 0%, transparent 60%),
		var(--wp--preset--color--elevated);
	border: 1px solid rgba(0, 166, 82, 0.45);
}

.gocyc-appfirst__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
	line-height: 1.15;
}

.gocyc-appfirst__text {
	max-inline-size: 52ch;
	margin: 0 0 var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--haze);
}

.gocyc-applinks--compact { margin-block: 0; }

/* Reads as a quiet hand-off, not a second call to action. */
.gocyc-orweb {
	margin-block: 0 var(--wp--preset--spacing--40);
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--haze);
}

/*
 * Logo lockup. The wordmark is 981x339 from the app; height is capped and the
 * width left to follow so it never distorts, and the tap target stays >=44px.
 */
.gocyc-logo {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	flex: 0 0 auto;
}

.gocyc-logo img {
	display: block;
	block-size: clamp(26px, 2.4vw, 34px);
	inline-size: auto;
	max-inline-size: 100%;
}
