/*
 * EXPERIMENT (branch experiment/banner-light, theme 0.38.0-try10): About Us.
 * Page /about/ (patterns about-*) and the "About TorqTek" cards on the home
 * page (pattern home-about). Colors from theme.json only; "Sky" is the light
 * blue of the business card. Logical properties only (right-to-left ready).
 *
 * Contrast (AA): home cards, look "About dark" — white on the card 14:1, Sky
 * numbers and icons on the card 5.2:1, navy text on the Sky card 6.1:1;
 * look "About light blue" — navy on the light blue (25% Sky) 12.7:1, white
 * on the navy cards 16.4:1, Sky on navy 6.1:1. Page: Sky on navy 6.1:1;
 * kickers and point numbers are the accent darkened with 25% navy
 * (#1860AD): 5.8:1 on the light gray, 6.3:1 on white.
 */

/* ---------- Home: "About TorqTek" cards ---------- */

.torqtek-about-home {
	--torqtek-about-card: color-mix(in srgb, var(--wp--preset--color--navy) 82%, var(--wp--preset--color--steel));
}

/* Look A, "About dark" (default): background like the dark banner. */
.torqtek-about-home,
.torqtek-about-home.is-style-torqtek-about-dark {
	background: linear-gradient(180deg, var(--wp--preset--color--navy-deep) 0%, var(--wp--preset--color--navy) 100%);
	color: var(--wp--custom--color--on-navy);
}

.torqtek-about-home h2.wp-block-heading {
	color: var(--wp--preset--color--surface);
}

.torqtek-about-home .wp-block-group.torqtek-acards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-block: 0;
}

@media (min-width: 768px) {
	.torqtek-about-home .wp-block-group.torqtek-acards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.torqtek-acards > .torqtek-acard {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 1.5rem 1.5rem 1.75rem;
	min-block-size: 13rem;
	border-radius: var(--wp--preset--border-radius--small);
	background-color: var(--torqtek-about-card);
	color: var(--wp--custom--color--on-navy);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.torqtek-acard > * {
	margin-block: 0;
}

.torqtek-acard > .torqtek-acard-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--sky);
}

/* Icon under the number (line icons: Lucide, ISC licence). */
.torqtek-acard > .torqtek-acard-num::after {
	content: "";
	display: block;
	inline-size: 1.75rem;
	block-size: 1.75rem;
	margin-block: 1.25rem 0;
	background: currentcolor;
	-webkit-mask: var(--torqtek-icon) center / contain no-repeat;
	mask: var(--torqtek-icon) center / contain no-repeat;
}

.torqtek-acard:nth-child(1) {
	--torqtek-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='20' x='4' y='2' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M16 6h.01M12 6h.01M12 10h.01M12 14h.01M16 10h.01M16 14h.01M8 10h.01M8 14h.01'/%3E%3C/svg%3E");
}

.torqtek-acard:nth-child(2) {
	--torqtek-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

.torqtek-acard:nth-child(3) {
	--torqtek-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.torqtek-acard > h3.wp-block-heading {
	margin-block-start: auto;
	padding-block-start: 1.75rem;
	font-size: var(--wp--preset--font-size--large);
}

.torqtek-acard > h3 a {
	color: var(--wp--preset--color--surface);
	text-decoration: none;
}

/* The whole card is the link. */
.torqtek-acard > h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.torqtek-acard > p:last-child {
	margin-block-start: 0.4rem;
	font-size: var(--wp--preset--font-size--small);
}

.torqtek-acard:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(2, 21, 41, 0.28);
}

.torqtek-acard:hover > h3 a {
	text-decoration: underline;
}

.torqtek-acard > h3 a:focus-visible {
	outline: none;
}

.torqtek-acard:has(a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--sky);
	outline-offset: 3px;
}

/* Look A: the middle card on Sky with navy text. */
.torqtek-about-home:not(.is-style-torqtek-about-sky) .torqtek-acard:nth-child(2) {
	background-color: var(--wp--preset--color--sky);
	color: var(--wp--preset--color--navy);
}

.torqtek-about-home:not(.is-style-torqtek-about-sky) .torqtek-acard:nth-child(2) > .torqtek-acard-num,
.torqtek-about-home:not(.is-style-torqtek-about-sky) .torqtek-acard:nth-child(2) > h3 a {
	color: var(--wp--preset--color--navy);
}

/* Look B, "About light blue": light blue like the Q of the logo (25% Sky
   on white — pure Sky is too bright for a whole band), navy text, navy
   cards with white text and Sky numbers and icons. */
.torqtek-about-home.is-style-torqtek-about-sky {
	background: color-mix(in srgb, var(--wp--preset--color--sky) 25%, var(--wp--preset--color--surface));
	color: var(--wp--preset--color--navy);
}

.torqtek-about-home.is-style-torqtek-about-sky h2.wp-block-heading {
	color: var(--wp--preset--color--navy);
}

.torqtek-about-home.is-style-torqtek-about-sky .torqtek-acard {
	background-color: var(--wp--preset--color--navy);
}

.torqtek-about-home.is-style-torqtek-about-sky .torqtek-acard:has(a:focus-visible) {
	outline-color: var(--wp--preset--color--navy);
}

@media (prefers-reduced-motion: reduce) {
	.torqtek-acards > .torqtek-acard {
		transition: none;
	}

	.torqtek-acard:hover {
		transform: none;
	}
}

/* ---------- Page /about/ ---------- */

.torqtek-about .wp-block-group.torqtek-about-head {
	max-inline-size: 48rem;
	margin-block: 0 2rem;
}

.torqtek-about-head > * {
	margin-block: 0;
}

.torqtek-about-head > .torqtek-about-kicker {
	margin-block-end: 0.75rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 75%, var(--wp--preset--color--navy));
}

.torqtek-about-head > h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--xx-large);
}

.torqtek-about-head > .torqtek-about-sub {
	margin-block-start: 0.75rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
}

:lang(ar) .torqtek-about-head > .torqtek-about-kicker {
	letter-spacing: 0;
}

.torqtek-about-company .wp-block-group > p {
	max-inline-size: 44em;
	margin-block: 0 1rem;
}

/* Numbered points 01–03 (an ordered list; numbers drawn here). */
.torqtek-about ol.torqtek-about-points {
	display: grid;
	gap: 1.75rem;
	max-inline-size: 48rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: torqtek-point;
}

.torqtek-about-points > li {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	margin: 0;
	counter-increment: torqtek-point;
}

.torqtek-about-points > li::before {
	content: counter(torqtek-point, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: color-mix(in srgb, var(--wp--preset--color--accent-bright) 75%, var(--wp--preset--color--navy));
}

/* Key capabilities box (inside 02). */
.torqtek-about .wp-block-group.torqtek-about-caps {
	max-inline-size: 48rem;
	margin-block: 2.5rem 0;
	padding: 1.5rem 1.75rem;
	border-radius: var(--wp--preset--border-radius--small);
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--surface);
}

.torqtek-about-caps > * {
	margin-block: 0;
}

.torqtek-about-caps > h3.wp-block-heading {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sky);
}

.torqtek-about-caps > ul.torqtek-about-caps-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0;
	margin-block-start: 0.75rem;
	padding: 0;
	list-style: none;
}

.torqtek-about-caps-list > li {
	margin: 0;
}

.torqtek-about-caps-list > li + li::before {
	content: "/";
	margin-inline: 0.75rem;
	color: var(--wp--preset--color--sky);
}

/* Our Leadership: navy band, two cards. */
.torqtek-about-leadership .torqtek-about-head > .torqtek-about-sub {
	color: var(--wp--custom--color--on-navy);
}

.torqtek-about-leadership .wp-block-group.torqtek-leaders {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	max-inline-size: 60rem;
	margin-block: 0;
}

@media (min-width: 768px) {
	.torqtek-about-leadership .wp-block-group.torqtek-leaders {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.torqtek-leaders > .torqtek-leader {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	margin: 0;
	padding: 1rem;
	border-radius: var(--wp--preset--border-radius--small);
	background-color: color-mix(in srgb, var(--wp--preset--color--navy) 82%, var(--wp--preset--color--steel));
}

.torqtek-leader > figure.torqtek-leader-photo {
	margin: 0;
}

.torqtek-leader-photo img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: 50% 20%;
	border-radius: var(--wp--preset--border-radius--small);
}

.torqtek-leader-text.wp-block-group > * {
	margin-block: 0;
}

.torqtek-leader-text > h3.wp-block-heading {
	margin-block-start: 0.25rem;
	color: var(--wp--preset--color--surface);
}

.torqtek-leader-text > .torqtek-leader-role {
	margin-block: 0.25rem 0.75rem;
	color: var(--wp--preset--color--sky);
	font-weight: 600;
}

.torqtek-leader-text > p:last-child {
	color: var(--wp--custom--color--on-navy);
	font-size: var(--wp--preset--font-size--small);
}

/* Image style "Zoom in": the photo is enlarged inside the same frame (for a
   portrait taken from farther away, so the faces match in size; Jim Bond,
   Artem 2026-11-20). The frame size does not change. */
.torqtek-leader > figure.torqtek-leader-photo {
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--small);
}

.wp-block-image.is-style-torqtek-zoom {
	overflow: hidden;
}

.wp-block-image.is-style-torqtek-zoom img {
	transform: scale(1.3);
	transform-origin: 50% 28%;
}

/* A Leader card without a photo: text across the card. */
.torqtek-leader:not(:has(img[src])) {
	grid-template-columns: minmax(0, 1fr);
}

body:not(.editor-styles-wrapper) .torqtek-leader-photo:not(:has(img[src])) {
	display: none;
}
