/*
 * FUSIO Custom Codes - global CSS for fusio.net.
 *
 * Every style FUSIO adds to the site that is not an accessibility fix, in one
 * file loaded on every page (decided on 19 Nov 2026). Accessibility fixes stay
 * apart, in accessibility/assets/css/fusio-a11y-fixes.css, numbered and listed
 * in accessibility/README.md. A new task's CSS may still get a file of its
 * own (features/<name>/assets/css/) when FUSIO decides so.
 *
 * One section per feature or area, each with a header that names its HTML.
 * Every selector is scoped to that feature's classes, so a section does
 * nothing on pages without its markup.
 *
 * Loaded after the theme's main.css and the accessibility CSS
 * (fusio-custom-codes.php), so it wins rules of equal specificity.
 */


/* =========================================================================
 * Home page: "Accessible by design" + "Meet ValioQ" section, after What we do.
 * =========================================================================
 * Approved on 19 Nov 2026 (round 10 of the prototypes kept in the project
 * docs, previews/home-valioq-prototype/). HTML: theme template part
 * templates/home-valioq.php. Logo: features/home-valioq/assets/images/.
 *
 * The section shows the ValioQ page's hero image under #333 at 50%, like the
 * ValioQ page. Inside it, What we do's grid (container-fluid > col-lg-6 >
 * .split-width), so the text lines up with What we do's at every width: a
 * dark column (split-screen-grey) with the copy and a white column with the
 * laptop, the phone, "Meet ValioQ" and the links. Both run edge to edge and
 * are as tall as the white column's content; the image shows above and below
 * them. No text sits on the image.
 *
 * Image URLs (theme frames, ValioQ hero) come from the template as custom
 * properties on the section: --home-valioq-bg, --home-valioq-laptop and
 * --home-valioq-phone.
 */

.home-valioq {
	padding: 2.5rem 0;
	/* The overlay is a gradient layer, not a ::before: axe cannot work out the
	   background of text inside an element with a large positioned ::before.
	   #333 shows while the image loads or if it fails. */
	background-color: #333;
	background-image: linear-gradient(rgba(51, 51, 51, 0.5), rgba(51, 51, 51, 0.5)), var(--home-valioq-bg, none);
	background-position: center;
	background-size: cover;
	color: #333;
}

/* Scroll-in animation: both columns carry the theme's .module class, so the
   theme's main.js animates them like What we do's and Start a project's
   (.come-in in main.css: up from 150px below in .8s once any part is in view;
   .already-visible, no animation, when in view on load). People who ask their
   system for less motion get the columns in place, without the slide
   (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
	.home-valioq .module.come-in {
		transform: none;
		animation: none;
	}
}

/* ---- Left: the dark column ---- */

/* Text vertically centred. The small vertical padding lets the right column
   set the row height, so the dark box runs from the top of the laptop to the
   bottom of the buttons. */
.home-valioq__intro {
	display: flex;
	align-items: center;
}

.home-valioq__intro .split-width {
	width: 100%;
}

/* The size of What we do's text (.split-width header in main.css: 24px, 32px
   from 992px, weight 600), without the <header> element. text-wrap: pretty
   keeps a single word from ending up alone on the last line (ignored where
   unsupported). */
.home-valioq__intro p {
	margin-bottom: 0;
	font-size: 1.5rem;
	font-weight: 600;
	text-wrap: pretty;
}

.home-valioq__intro strong {
	font-weight: 900;
}

/* ---- Right: the white column ---- */

.home-valioq__showcase {
	background: #fff;
}

.home-valioq__showcase .split-width {
	padding: 2.5rem 0;
}

/*
 * Laptop and phone, built from the theme's frames (the ones the portfolio and
 * the ValioQ page use) and scaled to the column. Sizes in cqw (% of the width
 * of .home-valioq__stage-wrap) keep the composition's proportions at any
 * width. Measured on the frame PNGs:
 * - laptop 600 x 354, screen at 76,24, 449 x 281; 82% wide, so it ends at
 *   0.82 x 354/600 = 48.4cqw;
 * - phone 300 x 612, screen at 21,79, 258 x 458; 22% wide (44.9cqw high),
 *   top at 23.5cqw, so it ends at 68.4cqw, level with the bottom of the logo
 *   at 1440px. The stage's min-height keeps the text below clear of it.
 * The rem values before each cqw one are for browsers without container
 * query units.
 */
.home-valioq__stage-wrap {
	container-type: inline-size;
	max-width: 42rem;
	margin: 0 auto;
}

.home-valioq__stage {
	position: relative;
	min-height: 20rem;
	min-height: 68.5cqw;
}

.home-valioq__laptop,
.home-valioq__phone {
	background-repeat: no-repeat;
	background-size: 100% auto;
}

.home-valioq__laptop {
	position: relative;
	width: 82%;
	aspect-ratio: 600 / 354;
	background-image: var(--home-valioq-laptop, none);
}

.home-valioq__phone {
	position: absolute;
	top: 7rem;
	top: 23.5cqw;
	right: 0;
	width: 22%;
	aspect-ratio: 300 / 612;
	background-image: var(--home-valioq-phone, none);
}

.home-valioq__screen {
	position: absolute;
	overflow: hidden;
	background: #fff;
}

.home-valioq__laptop .home-valioq__screen {
	top: 6.78%;
	left: 12.667%;
	width: 74.833%;
	height: 79.379%;
}

.home-valioq__phone .home-valioq__screen {
	top: 12.908%;
	left: 7%;
	width: 86%;
	height: 74.837%;
}

.home-valioq__screen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

/* "Meet ValioQ" (h3): "Meet" starts where the logo starts (both in an
   inline-block), and the pair is centred under the laptop. The logo keeps at
   least 11rem so "Meet" stays smaller than it on phones. */
.home-valioq__brand {
	position: relative;
	width: 82%;
	margin: 0;
	padding-top: 2rem;
	text-align: center;
}

.home-valioq__lockup {
	display: inline-block;
	text-align: left;
}

.home-valioq__meet {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	color: #333;
}

.home-valioq__brand img {
	display: inline-block;
	width: 11rem;
	width: max(34cqw, 11rem);
	max-width: 100%;
	height: auto;
	vertical-align: top;
}

/* The line and the buttons: a block centred under the laptop (from 576px; on
   phones it takes the full width), with the text and the buttons left-aligned
   in it. text-wrap: balance splits the line into two even lines. */
.home-valioq__cta {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 1.5rem;
}

.home-valioq__cta-inner {
	flex: none;
	width: max-content;
	max-width: 100%;
	text-align: left;
}

.home-valioq__cta-inner p {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.4;
	color: #333;
	text-wrap: balance;
}

.home-valioq__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 1.5rem;
}

.home-valioq__actions .btn {
	text-decoration: none;
}

/* The theme's main.css removes the focus ring of every .btn (.btn:focus
   { outline: 0 }) and .btn-primary / .btn-transparent have no focus style of
   their own (WCAG 2.4.7). #333 ring: 12.63:1 on white. Keyboard focus only;
   an outline also shows in Windows high-contrast mode. */
.home-valioq__actions .btn:focus-visible {
	outline: 3px solid #333;
	outline-offset: 3px;
}

@media (min-width: 576px) {
	.home-valioq__cta {
		width: 82%;
	}
}

@media (min-width: 992px) {
	.home-valioq {
		padding: 5rem 0;
	}

	.home-valioq__intro .split-width {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	.home-valioq__intro p {
		font-size: 2rem;
	}

	.home-valioq__showcase .split-width {
		padding: 3.5rem 2.5rem;
	}

	.home-valioq__meet {
		font-size: 1.5rem;
	}
}

@media (min-width: 1200px) {
	.home-valioq__showcase .split-width {
		padding: 3.5rem;
	}

	/* May run up to 2.5rem past each side of the laptop, so the two buttons
	   fit on one line. */
	.home-valioq__cta-inner {
		max-width: min(30rem, calc(100% + 5rem));
	}
}

@media (min-width: 1440px) {
	.home-valioq__showcase .split-width {
		padding: 3.5rem 5rem;
	}
}


/* =========================================================================
 * ValioQ page (/valioq-accessibility-scanner/).
 * =========================================================================
 * HTML: theme template page-valioq-accessibility-scanner.php (16 Nov 2026).
 * Images: features/valioq-page/assets/images/. Until 19 Nov 2026 this
 * section was a file of its own (features/valioq-page/assets/css/
 * valioq-page.css), loaded on this page only; the rules are unchanged.
 *
 * The page is built from the theme's own sections: project hero, device
 * mock-ups and project intro (portfolio pages), the orange services panel
 * (/services/) and the start-project split. This section only adds what
 * those sections do not have. Every selector starts with a valioq- class
 * that only this page's template prints.
 */

/* Hero: ValioQ lockup in place of the client logo; the subline sits on the
   same #333 label as the title (fusio-a11y-fixes.css, Fix 8). */
.valioq-page .project-client-logo {
	width: auto;
	height: 64px;
}

.valioq-page .project-hero .valioq-subline {
	display: table;
	margin: 0.75rem auto 0;
	padding: 0.2em 0.6em;
	background: #333;
	color: #fff;
	text-shadow: none;
}

/* Device mock-ups: the theme sets only the screenshot's width; the images
   carry width/height attributes (no layout shift while loading), so the
   height must follow the width or the screenshot is stretched. */
.valioq-page .portfolio-device img {
	height: auto;
}

/* V02 (audit 16 Nov 2026, WCAG 2.4.7 / 1.4.11): the screenshot links were
   inline (a 20px line box) and .img-container, exactly the screen size,
   clipped the focus ring drawn outside them (phone: nothing visible).
   The link now fills the visible screen and the ring is drawn inside it, in
   two tones: orange #f5a623 against the black bezel = 10.36:1, inner #333
   against the screenshot's light edge = 11.81:1. Keyboard focus only. */
.valioq-page .portfolio-device a {
	display: block;
	height: 100%;
}

.valioq-page .portfolio-device a:focus-visible {
	outline: 4px solid #f5a623;
	outline-offset: -4px;
	box-shadow: inset 0 0 0 7px #333;
}

/* Text sections at the size of the portfolio pages' project intro. */
.valioq-page .project-intro p {
	font-size: 1.25rem;
	line-height: 1.875;
}

.valioq-page .btn {
	text-decoration: none;
	/* Added on the live server before 19 Nov 2026 (not in this project's
	   history); kept as it is live. */
	text-transform: none !important;
}

/* V01 (audit 16 Nov 2026, WCAG 2.4.7): the theme's main.css sets
   .btn:focus { outline: 0; box-shadow: none } and .btn-primary has no focus
   style, so "Visit ValioQ" did not change at all on focus. #333 ring:
   12.63:1 on white, 6.23:1 against the orange button. An outline also stays
   in Windows high-contrast mode. (.btn-secondary turns orange on focus in
   the theme and needs nothing.) */
.valioq-page .btn-primary:focus-visible {
	outline: 3px solid #333;
	outline-offset: 3px;
}

/* Intro text under the section titles of the orange and dark sections. */
.valioq-page .valioq-lead {
	max-width: 46rem;
	margin: 0 auto 2rem;
	font-size: 1.25rem;
	line-height: 1.6;
}

/* Features: the services panel (white at 50% over orange) as a 3-column
   grid. Cells are divided by the same line as the services list. */
.valioq-features {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.valioq-feature {
	padding: 2rem 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.333);
	color: #000;
	text-align: center;
}

.valioq-feature:last-child {
	border-bottom: 0;
}

.valioq-feature .wwd-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	margin: 0 auto 1.25rem;
}

.valioq-feature .wwd-img-wrap img {
	width: 62%;
	height: auto;
}

.valioq-feature h3 {
	margin-bottom: 0.75rem;
}

.valioq-feature p {
	margin: 0;
}

@media (min-width: 768px) {
	.valioq-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.valioq-feature {
		border-right: 1px solid rgba(0, 0, 0, 0.333);
	}

	.valioq-feature:nth-child(2n) {
		border-right: 0;
	}

	.valioq-feature:nth-last-child(-n + 2) {
		border-bottom: 0;
	}
}

@media (min-width: 992px) {
	.valioq-features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.valioq-feature:nth-child(2n) {
		border-right: 1px solid rgba(0, 0, 0, 0.333);
	}

	.valioq-feature:nth-child(3n) {
		border-right: 0;
	}

	.valioq-feature:nth-last-child(-n + 3) {
		border-bottom: 0;
	}
}

/* Standards: #333 boxes with an orange title, like the "Phase" cards on
   /about/. Orange #f5a623 on #333 = 6.23:1. */
.valioq-standards {
	display: grid;
	gap: 1rem;
	margin: 1.5rem 0 2rem;
	padding: 0;
	list-style: none;
}

.valioq-standard {
	padding: 1.25rem 1.5rem;
	background: #333;
	color: #fff;
	line-height: 1.5;
}

.valioq-standard__name {
	display: block;
	margin-bottom: 0.5rem;
	font-family: Montserrat, sans-serif;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	color: #f5a623;
	/* No white-space: nowrap (V03, WCAG 1.4.12): with user text spacing
	   "WCAG 2.2 AA" ran 10px out of the dark box at 768px. It now wraps
	   instead; with normal spacing it still fits on one line. */
}

.valioq-standard span {
	font-size: 1.125rem;
}

@media (min-width: 768px) {
	.valioq-standards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

/* Steps: numbered white circles (the theme's icon circles) joined by an
   orange line on wide screens. */
.valioq-steps {
	display: grid;
	gap: 2.5rem 2rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
}

.valioq-step {
	position: relative;
	text-align: center;
}

.valioq-step__num {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	margin: 0 auto 1.25rem;
	border: 2px solid #000;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
}

.valioq-step__title {
	margin-bottom: 0.5rem;
	font-family: Montserrat, sans-serif;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.3;
	color: #f5a623;
}

.valioq-step p {
	max-width: 18rem;
	margin: 0 auto;
	font-size: 1.125rem;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.valioq-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.valioq-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.valioq-step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 47px;
		left: calc(50% + 48px);
		width: calc(100% - 96px + 2rem);
		height: 2px;
		background: #f5a623;
	}
}

/* Start checking: the start-project split with a longer text (the theme sets
   32px for its one-line intro) and two columns in the orange half. */
.valioq-start .split-screen-grey p {
	font-size: 1.25rem;
	line-height: 1.6;
}

.valioq-start .split-screen-orange img {
	max-width: 120px;
}

/* V03 (audit 16 Nov 2026, WCAG 1.4.12): Bootstrap's .btn { white-space:
   nowrap } cut "Create account" to "CREATE ACCOU" at 320px with user text
   spacing (the rest was orange on the orange panel). The labels wrap now;
   with normal spacing nothing changes from 375px up. */
.valioq-start .btn {
	white-space: normal;
}
