/*
Theme Name: Durrat Trial
Description: قالب الموقع العام لدره الخليج (LOCAL-006): صفحات «أعمالنا» بهوية BRAND-003 المعتمدة. يعتمد على إضافة Durrat Content لقراءة البيانات وأصول الهوية.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: durrat-trial
*/

/*
 * BRAND-003 tokens with the WEB-DESIGN-001 (Direction A) values, unit 1. Accent #0075F4 is
 * decoration only (stripes, bars), never text or a background behind small white text. Links
 * #005EC4 are underlined. Semantic colours (line, input, error, success, warning) are the
 * direction's proposed UI roles. Type: H1 48 / 34 (below 768), H2 40 / 30, H3 24 / 22, weight 600,
 * line height 1.35; body 18/1.85 desktop, 16/1.85 mobile; helper 14/1.7. Radius 4px. Container
 * 1248px; side margins 48 / 32 / 20 / 16. The Arabic font family is set by durrat_trial_font_faces().
 */
:root {
	--primary: #1A136E;
	--primary-hover: #302788;
	--accent: #0075F4;
	--text: #0E2143;
	--muted: #596579;
	--link: #005EC4;
	--surface: #F5F7FA;
	--border: #D5DBE5;
	--input: #7A8496;
	--error: #A61B29;
	--success: #17643E;
	--warning: #805600;
	--footer-bg: #111044;
	--white: #FFFFFF;
	--radius: 4px;
	--gutter: 20px;
	--wrap: 1248px;
	--font-ar: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
	--font-en: "Inter", Arial, sans-serif;
	/* EXPERIENCE-001 motion tokens: short responses, one easing. */
	--t-fast: .14s;
	--t-med: .24s;
	--ease-out: cubic-bezier(.2, .7, .2, 1);
	--header-h: 84px;
}
@media (max-width: 359px) { :root { --gutter: 16px; } }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; scroll-padding-bottom: 32px; }
.has-js { scroll-padding-top: calc(var(--header-h) + 16px); } /* Anchors and focus land below the sticky header; site.js keeps --header-h equal to its real height. */
.has-js .site-header a, .has-js .site-header button { scroll-margin-block: calc(-1 * var(--header-h) - 16px); } /* The header's own items: never counted as hidden behind the header, or the page jumps to centre them. */
.has-js .site-nav li:last-child a { scroll-margin-block-end: 12px; } /* On a short phone the panel scrolls: its last link must come fully into it. */
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-ar);
	font-size: 16px;
	line-height: 1.85;
	font-weight: 400;
	overflow-wrap: anywhere;
}
@media (min-width: 768px) { body { font-size: 18px; } }
[lang="en"], bdi[lang="en"] { font-family: var(--font-en); letter-spacing: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3 { color: var(--primary); font-weight: 600; line-height: 1.35; margin: 0; }
h1 { font-size: 34px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
@media (min-width: 768px) {
	h1 { font-size: 48px; }
	h2 { font-size: 40px; }
	h3 { font-size: 24px; }
}
small, .small { font-size: 14px; line-height: 1.7; }
p { margin: 0 0 16px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.skip-link { position: absolute; inset-inline-start: 8px; top: -100px; z-index: 40; background: var(--primary); color: var(--white); padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 8px; color: var(--white); outline-color: var(--accent); }

/* Local environment note (not shown in production). */
.env-note { background: var(--surface); border-block-end: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 24px; padding-block: 4px; }

/* ------------------------------------------------------------------ Header */
/* EXPERIENCE-001: one sticky row on wide screens; a thin line shows how far the page has been read
   (CSS scroll timeline; absent where unsupported). Below 960 the number and the request button are a
   navy strip above the logo row, which scrolls away; the logo row and the menu stay. */
.site-header { position: relative; z-index: 30; background: var(--white); border-block-end: 1px solid var(--border); }
.has-js .site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); } /* EXPERIENCE-001.1: sticky with JavaScript only; without it the header (and its open navigation) scrolls away with the page. */
.site-header::after { content: ""; position: absolute; inset-block-end: -1px; inset-inline: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: scroll()) {
		.site-header::after { animation: read-progress linear both; animation-timeline: scroll(root block); }
	}
}
@keyframes read-progress { to { transform: scaleX(1); } }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; min-height: 84px; padding-block: 6px; }
.brand { display: inline-block; padding: 8px 0; line-height: 0; } /* Clear space ≥ 0.25 × symbol height. */
.brand .logo { width: 150px; height: auto; }
.brand-text { font-weight: 600; font-size: 22px; line-height: 32px; color: var(--primary); }
/* SITE-IDENTITY-001: an owner logo of any proportion, held by height within the original logo's space. */
.brand .logo.is-custom { width: auto; height: auto; max-width: 180px; max-height: 52px; }
@media (max-width: 959px) { .brand .logo.is-custom { max-width: 150px; max-height: 44px; } }
.footer-brand .logo.is-custom { width: auto; height: auto; max-width: 200px; max-height: 64px; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
@media (min-width: 960px) and (max-width: 1239px) { .site-nav ul { gap: 16px; } .header-actions .header-phone { display: none; } } /* ABOUT-PAGE-001: one row with the longer menu; the number stays in the footer and the contact lines. */
@media (min-width: 960px) and (max-width: 1023px) { .header-inner { column-gap: 14px; } .site-nav ul { gap: 10px; } .site-nav a { font-size: 14px; } }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; transition: color var(--t-fast) linear; }
.site-nav a::after { content: ""; position: absolute; inset-block-end: 2px; inset-inline: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out); }
.site-nav a:hover { color: var(--link); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav a[aria-current] { color: var(--primary); }
.menu-toggle { display: none; }
/* Buttons: 52px, 12×24, 16/600, radius 4; secondary outlined; disabled readable, not faded. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius); background: var(--primary); color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.6; text-align: center; transition: background-color var(--t-fast) linear, transform var(--t-fast) var(--ease-out); }
.button:hover { background: var(--primary-hover); color: var(--white); }
.button:active { transform: translateY(1px); }
/* On the dark bands of Direction A (home intro, homes band): light buttons, white focus ring. */
.button-light { background: var(--white); color: var(--primary); }
.button-light:hover { background: #E6EDFC; color: var(--primary); }
.button-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .75); }
.button-outline-light:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.text-link { color: var(--link); font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 6px; }
.text-link:hover { color: var(--link); text-decoration-thickness: 2px; }
@media (min-width: 768px) {
	.brand .logo { width: 164px; }
}
/*
 * Below 960 (the navigation, the number and the request button no longer fit one row): the toggle
 * opens the navigation as a panel under the sticky row, over the content, with a short drop
 * (EXPERIENCE-001; it was in the page flow, which moved the page). Hidden links cannot take focus.
 */
@media (max-width: 959px) {
	:root { --header-h: 68px; --strip-h: 52px; }
	.has-js .site-header:has(.header-actions) { top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--strip-h)); }
	/* A strip that has scrolled away comes back while its number or button has the focus. */
	.has-js .site-header:has(.header-actions:focus-within) { top: var(--wp-admin--admin-bar--height, 0px); }
	.header-inner { gap: 0 16px; padding-block: 0; min-height: 0; }
	.brand { padding-block: 10px; }
	.brand .logo { width: 132px; }
	.has-js .menu-toggle {
		display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto;
		min-width: 48px; min-height: 48px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius);
		background: var(--white); color: var(--primary); font: 600 16px/24px var(--font-ar); cursor: pointer;
	}
	.menu-icon { display: inline-block; width: 18px; }
	.menu-icon span { display: block; height: 2px; margin: 4px 0; background: var(--primary); transition: transform .15s ease, opacity .15s ease; }
	.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
	.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.site-nav { flex-basis: 100%; margin: 0; }
	.has-js .site-nav {
		position: absolute; inset-block-start: 100%; inset-inline: 0; margin: 0; padding: 8px var(--gutter) 16px;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		background: var(--white); border-block-end: 3px solid var(--accent); box-shadow: 0 16px 32px rgba(14, 33, 67, .14);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
	}
	.has-js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav li + li { border-block-start: 1px solid var(--border); }
	.site-nav a { width: 100%; min-height: 52px; padding-inline: 4px; }
	.site-nav a::after { content: none; }
	.site-nav a[aria-current] { box-shadow: inset -3px 0 0 var(--accent); padding-inline-start: 12px; }
	/* The number and the request button: a navy strip above the logo row. */
	.header-actions { order: -1; flex-basis: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; background: var(--primary); }
	.header-actions .header-phone { color: var(--white); font-size: 15px; }
	.header-actions .header-phone:hover { color: var(--white); }
	.header-actions :focus-visible { outline-color: var(--white); outline-offset: 2px; }
	.header-actions .header-cta { flex: 0 1 auto; min-height: 44px; padding: 6px 16px; font-size: 15px; background: var(--white); color: var(--primary); }
	.header-actions .header-cta:hover { background: #E6EDFC; color: var(--primary); }
}
@media (prefers-reduced-motion: reduce) {
	.menu-icon span, .site-nav, .site-nav a, .site-nav a::after, .button { transition: none !important; }
	.button:active { transform: none; }
}

/* ------------------------------------------------------------------ Page */
/* Short pages (empty state, 404): the footer stays at the bottom of the screen. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > * { flex-shrink: 0; }
main { display: block; flex: 1 0 auto; }
main:focus { outline: none; }
/* Inside main only: WordPress also gives <body> the class «page», which added a blank strip above the header and below the footer. */
main .page { padding-block: 32px 64px; }
@media (min-width: 768px) { main .page { padding-block: 48px 64px; } }
.page-head { margin-block-end: 32px; }
.stripe { display: block; width: 64px; height: 4px; background: var(--accent); margin-block-start: 12px; }
.lead { font-size: inherit; color: var(--text); max-width: 46rem; }
.back { margin: 48px 0 0; }
.back-link { font-weight: 600; }
.empty-state { background: var(--surface); border-radius: 4px; padding: 24px; color: var(--text); max-width: 46rem; }

/* ------------------------------------------------------------------ Cards («أعمالنا») */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
/* Few items: no card wider than a card of the full grid, no lone card stretched across the page. */
.cards:has(> li:only-child) { grid-template-columns: minmax(0, 26rem); }
@media (min-width: 1024px) { .cards:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 24rem)); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--primary); }
.card:focus-within { outline: 3px solid var(--link); outline-offset: 2px; }
/* Whole image shown (no crop): 4:3 frame on the surface colour. */
/* The image is positioned inside the frame so its own height cannot stretch the 4:3 frame. */
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface); }
@media (max-width: 599px) { .card-media { aspect-ratio: 16 / 10; } } /* One column: a lower frame (the image is contained, never cropped). */
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 24px; flex: 1; }
.card-title { font-size: 20px; line-height: 30px; }
.card-title a { color: var(--primary); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* One link per card, whole card clickable. */
.card-title a:focus-visible { outline: none; }
.card-meta { color: var(--muted); font-size: 14px; line-height: 24px; margin: 0; }
.card-scope { font-size: 14px; line-height: 24px; margin: 0; }
.card-scope .label { color: var(--muted); }
.card-text { font-size: 16px; line-height: 27px; margin: 0; }
.card-more { margin-top: auto; padding-top: 8px; color: var(--link); font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--primary); text-decoration: none; font-weight: 600; }
.pagination .page-numbers:hover { background: var(--surface); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ------------------------------------------------------------------ Project details */
.crumbs { font-size: 14px; line-height: 24px; color: var(--muted); margin-block-end: 16px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.project-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; }
.project-facts div { display: flex; gap: 8px; }
.project-facts dt { color: var(--muted); font-size: 14px; }
.project-facts dt::after { content: ":"; }
.project-facts dd { margin: 0; font-weight: 600; font-size: 16px; }
.project-hero { margin: 0 0 48px; background: var(--surface); border-radius: 4px; overflow: hidden; display: flex; justify-content: center; }
.project-hero img { width: auto; max-width: 100%; max-height: 640px; object-fit: contain; }
.project-body { max-width: 46rem; }
.section + .section { margin-top: 48px; }
.project-body + .section { margin-top: 48px; }
.section h2 { margin-block-end: 16px; }
.section p:last-child { margin-bottom: 0; }
.scope-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scope-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 16px; font-weight: 600; font-size: 16px; line-height: 24px; }
.table-scroll { overflow-x: auto; }
.qty-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.qty-table th { background: var(--primary); color: var(--white); font-weight: 600; text-align: start; padding: 12px; }
.qty-table td { padding: 12px; border-block-end: 1px solid var(--border); text-align: start; vertical-align: top; }
.qty-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.details-list { margin: 0; display: grid; gap: 12px; }
.details-list div { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .details-list div { grid-template-columns: minmax(10rem, 16rem) 1fr; } }
.details-list dt { color: var(--muted); font-size: 14px; line-height: 24px; }
.details-list dd { margin: 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Two images: two columns of the full width instead of an empty third column. */
@media (min-width: 600px) { .gallery:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface); border-radius: 4px; overflow: hidden; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cta { background: var(--surface); border-radius: 4px; padding: 32px; }

/* Preview: the same page, clearly marked for the signed-in editor. */
.preview-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--primary); color: var(--white); border-radius: 4px; padding: 12px 16px; margin-block-end: 24px; font-size: 16px; line-height: 24px; }
.preview-note strong { background: var(--white); color: var(--primary); border-radius: 4px; padding: 0 8px; }

/* Plain pages */
.entry { max-width: 46rem; }

/* ------------------------------------------------------------------ Site pages (LOCAL-007) */
/* Bands alternate white / surface so sections read as a sequence, not a stack of equal boxes. */
.site-page .band { padding-block: 48px; }
.site-page .band h2 { margin-block-end: 24px; max-width: 46rem; }
.band.scope, .band.items-cards, .band.works-alt, .band.items-faq { background: var(--surface); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-block-end: 24px; }
.band-head h2 { margin: 0; }
.band-link { font-weight: 600; }
@media (min-width: 768px) { .site-page .band { padding-block: 64px; } }

/* Hero: text and the projects entry first; homes as a clear secondary entry; abstract motif or a real image. */
.hero { padding-block: 40px 48px; border-block-end: 1px solid var(--border); overflow: hidden; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero-text { max-width: 40rem; }
.hero .lead { margin: 24px 0 0; }
/* Actions wrap with real gaps (no touching buttons); on a phone the buttons take the full width. */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0 0; }
.hero-actions .button { min-width: 14rem; }
.hero-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.hero-note { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 27px; max-width: 40rem; }
@media (max-width: 479px) {
	.hero-actions { flex-direction: column; align-items: stretch; }
	.hero-actions .button { min-width: 0; width: 100%; }
	.hero-actions .text-link { justify-content: center; }
}
.secondary-entry { margin-top: 32px; padding: 16px 20px; background: var(--surface); border-inline-start: 4px solid var(--accent); border-radius: 4px; max-width: 34rem; }
.secondary-entry .entry-title { font-size: 20px; line-height: 30px; margin: 0 0 8px; }
.secondary-entry p { margin: 0 0 8px; font-size: 16px; line-height: 27px; }
.entry-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.hero-figure { margin: 0; background: var(--surface); border-radius: 4px; overflow: hidden; display: flex; justify-content: center; }
.hero-figure img { width: auto; max-width: 100%; max-height: 420px; object-fit: contain; }
.motif { display: none; }
@media (max-width: 1023px) { .hero-visual:has(> .motif) { display: none; } } /* No empty grid row (and gap) under the text. */
@media (min-width: 1024px) {
	.hero { padding-block: 64px; }
	.hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	/* The brand symbol, enlarged, one colour at 10%, clipped at the band edge, never behind text. */
	.motif { display: block; position: relative; min-height: 340px; }
	.service-hero .motif { min-height: 240px; } /* Shorter service intros: the motif follows the text height. */
	.motif::before { content: ""; position: absolute; inset: -40px -120px -40px 0; background: var(--motif) no-repeat left center / contain; opacity: .1; }
}

/* Cards for alternatives (scope, type of need). Not numbered: they are choices, not steps. */
.scope-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.scope-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 28px 24px 24px; }
.scope-card::before { content: ""; position: absolute; top: 0; inset-inline-start: 24px; width: 32px; height: 4px; background: var(--accent); }
.scope-card h3 { margin: 0 0 8px; }
.scope-card p { margin: 0; font-size: 16px; line-height: 27px; }
.band-note { margin: 24px 0 0; max-width: 46rem; padding: 16px 20px; background: var(--white); border-inline-start: 4px solid var(--primary); border-radius: 4px; }
.band.items-options .band-note, .band.items-panel .band-note { background: var(--surface); }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 24px 0 0; }
@media (max-width: 479px) { .band-actions .button { width: 100%; } }

/* Options (needs, alternative to works): columns with an accent rule on top. */
.option-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.option-list li { border-block-start: 4px solid var(--accent); padding-block-start: 16px; }
.option-list h3 { margin: 0 0 8px; }
.option-list p { margin: 0; font-size: 16px; line-height: 27px; }

/* Information panel and questions. */
.info-panel { max-width: 46rem; padding: 24px; background: var(--surface); border-inline-start: 4px solid var(--accent); border-radius: 4px; }
.info-panel p { margin: 0; }
.faq { margin: 0; max-width: 46rem; }
.faq div { border-block-start: 1px solid var(--border); padding-block: 16px; }
.faq div:last-child { border-block-end: 1px solid var(--border); }
.faq dt { font-weight: 700; color: var(--primary); }
.faq dd { margin: 8px 0 0; }

/* ------------------------------------------------------------------ Catalog (LOCAL-008) */
.catalog-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin: 0 0 32px; padding: 16px 20px; background: var(--surface); border-radius: 4px; }
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: min(100%, 16rem); flex: 1 1 16rem; }
.filter-field label { font-size: 14px; line-height: 24px; color: var(--text); font-weight: 600; }
.filter-field input, .filter-field select { min-height: 52px; padding: 10px 14px; border: 1px solid var(--input); border-radius: var(--radius); font: inherit; font-size: 16px; background: var(--white); color: var(--text); }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.results-count { color: var(--muted); font-size: 14px; line-height: 24px; margin: 0 0 16px; }
/* A device card has two links (details, enquiry): no whole-card overlay. */
.device-card .card-title a::after { content: none; }
.device-card .card-title a { text-decoration: underline; text-underline-offset: 3px; }
.device-card:focus-within { outline: none; }
.device-card .card-title a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; } /* Each link shows its own focus. */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: auto 0 0; padding-top: 8px; }
.card-link { font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; min-height: 44px; }
.button-small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.device-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .device-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .device-layout .specs { margin-top: 0; } }
.device-hero { margin-bottom: 0; }
/* The model on its own line under the name: smaller, left-to-right, never split from its code. */
.device-model { display: block; width: fit-content; margin-top: 4px; font-size: .75em; line-height: 1.4; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
h1 .device-model { font-size: 20px; line-height: 30px; margin-top: 8px; }
.device-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; } /* Inside the .cta panel: text and button side by side when there is room. */
.device-ask p { margin: 0; flex: 1 1 16rem; font-size: 16px; line-height: 27px; }
@media (max-width: 479px) { .device-ask .button { width: 100%; } }
.specs .note { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 27px; }
.empty-state h2 { margin-block-end: 8px; }

/* ------------------------------------------------------------------ Secondary actions and the request form (LOCAL-008) */
[hidden] { display: none !important; }
.button-secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.button-secondary:hover { background: #EDF3FC; color: var(--primary); }
.button:disabled, .button[aria-disabled=true] { background: #E4E8EE; border-color: #E4E8EE; color: var(--muted); cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; min-height: 44px; color: var(--link); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.request-page { padding-block: 32px 64px; }
.request-form { max-width: 44rem; display: flex; flex-direction: column; gap: 20px; }
.request-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.request-form legend { font-weight: 700; color: var(--text); padding: 0; margin-block-end: 8px; }
.request-form .field { display: flex; flex-direction: column; gap: 6px; }
.request-form label { font-weight: 600; font-size: 16px; color: var(--text); }
/* Fields (Direction A): 52px, 10×14, input border #7A8496, radius 4; an error is a 2px error border. */
.request-form input[type=text], .request-form input[type=tel], .request-form input[type=email], .request-form select, .request-form textarea { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--input); border-radius: var(--radius); font: inherit; font-size: 16px; line-height: 1.6; background: var(--white); color: var(--text); }
.request-form textarea { resize: vertical; min-height: 142px; }
.request-form input:focus-visible, .request-form select:focus-visible, .request-form textarea:focus-visible { outline-offset: 2px; }
/* Same weight as the field rule above (element + attribute), so the error border actually shows. */
.request-form input[aria-invalid=true], .request-form select[aria-invalid=true], .request-form textarea[aria-invalid=true], .request-form [aria-invalid=true] { border: 2px solid var(--error); }
.request-form .req { color: var(--error); }
.request-form .optional, .request-form .help { color: var(--muted); font-weight: 400; }
.request-form .help { margin: 0; font-size: 14px; line-height: 1.7; }
.field-error { margin: 0; color: var(--error); font-size: 14px; line-height: 1.7; font-weight: 600; }
.type-choice { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--primary); background: var(--surface); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.request-form .service-choice { display: grid; grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); gap: 8px; } /* Six services in two columns: a shorter form (overrides .type-choice). */
.request-form .service-choice .field-error { grid-column: 1 / -1; }
/* LOCAL-008-C: contact number and services. The number always reads left to right. */
.header-actions { display: flex; align-items: center; gap: 12px 20px; }
.phone-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; white-space: nowrap; }
.phone-link bdi { font-family: var(--font-en); letter-spacing: .02em; }
.header-phone { color: var(--primary); text-decoration: none; }
.header-phone:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-line { margin: 12px 0 0; color: var(--text); }
.request-contact { margin: 8px 0 0; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 24px; grid-template-columns: repeat( auto-fill, minmax( min( 100%, 16rem ), 1fr ) ); }
.service-list li { position: relative; padding-inline-start: 20px; font-weight: 600; color: var(--text); }
.service-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.services .lead { margin-bottom: 16px; }
.check-group .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 400; }
.check:has(input:checked) { border-color: var(--primary); background: var(--surface); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.request-summary { padding: 12px 16px; background: var(--surface); border-inline-start: 4px solid var(--primary); border-radius: 4px; }
.request-summary p { margin: 0; }
.request-summary p + p { margin-top: 8px; }
.request-summary [data-summary-type] { font-weight: 700; color: var(--primary); }
.summary-source { color: var(--muted); font-size: 14px; }
.device-changed { color: var(--text); font-weight: 600; }
.more-details { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.more-details summary { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-weight: 700; cursor: pointer; }
.more-details summary::before { content: "+"; display: inline-flex; justify-content: center; width: 1.25em; color: var(--primary); }
.more-details[open] summary::before { content: "−"; }
.more-details summary::-webkit-details-marker { display: none; }
.more-details summary { list-style: none; }
.more-details .summary-hint { font-weight: 400; font-size: 14px; line-height: 24px; color: var(--muted); }
.more-details .type-fields { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }
.no-type-note { margin: 8px 0 0; color: var(--muted); }
.attachments { display: flex; flex-direction: column; gap: 8px; padding: 16px !important; border: 1px dashed var(--input) !important; border-radius: var(--radius); }
.attachments:focus { outline: 3px solid var(--link); outline-offset: 2px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-input:focus-visible + .file-button { outline: 3px solid var(--link); outline-offset: 2px; }
.file-button { align-self: flex-start; cursor: pointer; }
.file-list { margin: 0; padding: 0; list-style: none; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-block: 4px; overflow-wrap: anywhere; }
/*
 * Notices (Direction A): a coloured bar on the reading side and a light background, per meaning.
 * success = the request is stored; info = a repeat of a stored request; warning = not settled or
 * not confirmed (check the status); error = refused or failed. The states come from request.js.
 */
.form-errors, .form-result, .form-alert { padding: 16px 20px; border: 0; border-inline-start: 4px solid var(--link); border-radius: 0; background: #EDF3FC; color: var(--text); }
.form-errors { border-inline-start-color: var(--error); background: #FEF0F1; }
.form-errors strong { color: #8D1C28; }
.form-errors ul { margin: 8px 0 0; padding-inline-start: 20px; }
.form-errors p, .form-result p { margin: 0; }
.form-result p + p { margin-top: 8px; }
.form-alert { margin: 0 0 16px; }
.form-result[data-state=success] { border-inline-start-color: var(--success); background: #EDF7F1; }
.form-result[data-state=duplicate] { border-inline-start-color: var(--link); background: #EDF3FC; }
.form-result[data-state=failed], .form-result[data-state=conflict] { border-inline-start-color: var(--error); background: #FEF0F1; }
.form-result[data-state=unknown], .form-result[data-state=not-found], .form-result[data-state=pending] { border-inline-start-color: var(--warning); background: #FFF7E5; }
.form-result:focus-visible, .form-errors:focus-visible { outline-offset: 2px; }
.result-title { font-weight: 600; font-size: 20px; line-height: 1.5; color: var(--text); }
.form-result bdi[data-ref] { font-family: var(--font-en); letter-spacing: .02em; white-space: nowrap; } /* A reference never breaks at its hyphens. */
/* Unit 7: a device name or a long model may wrap (it overflowed at 390 when every bdi was kept on one line); the model stays LTR. */
.form-result [data-result-device], .request-summary [data-summary-device-text] { overflow-wrap: anywhere; }
.form-result bdi.model, .request-summary bdi.model { font-family: var(--font-en); overflow-wrap: anywhere; }
.request-form.is-done > :not(.form-result) { opacity: .6; }
.form-actions .button { min-width: 12rem; }
@media (max-width: 479px) { .form-actions .button { width: 100%; } }

/* Local test data: never presented as company work. */
.test-badge { display: inline-block; margin: 0; padding: 0 8px; border: 1px dashed var(--muted); border-radius: 4px; color: var(--text); background: var(--white); font-size: 12px; line-height: 20px; }
.page-head .test-badge { margin-block-end: 12px; }
.test-note { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 24px; }

/* ------------------------------------------------------------------ Home (WEB-DESIGN-001 Direction A, unit 2) */
/* Dark two-column intro: text and actions, then the intro image in a thin frame with an accent bar. */
.home-a .home-hero { position: relative; background: var(--primary); color: var(--white); border-block-end: 0; padding-block: 40px 32px; }
.home-a .home-hero h1 { color: var(--white); font-size: 39px; line-height: 1.24; }
.home-a .home-hero .stripe { background: var(--accent); }
.home-a .home-hero .lead { color: #E0E5F7; font-size: 17px; line-height: 1.9; }
.home-a .home-hero .hero-note { color: #C6CBE7; }
.home-a .home-hero .text-link, .home-a .home-hero .text-link:hover { color: var(--white); }
.home-a .home-hero :focus-visible, .home-a .home-band :focus-visible { outline-color: var(--white); }
.home-a .hero-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 20px 0 0; font-size: 14px; color: #C6CBE7; }
.home-a .hero-secondary a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); font-weight: 600; text-underline-offset: 5px; }
.home-a .home-hero .hero-inner { gap: 36px; }
.home-a .home-figure { position: relative; margin: 0; padding: 0 0 12px 12px; background: none; overflow: visible; display: block; }
.home-a .home-figure::before { content: ""; position: absolute; inset: 12px 12px 0 0; border: 1px solid #5A5FA7; }
.home-a .home-figure::after { content: ""; position: absolute; top: 0; right: 0; width: 86px; height: 4px; background: var(--accent); }
.home-a .home-figure img { position: relative; width: 100%; height: 278px; max-height: none; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 400px) { .home-a .home-hero h1 { font-size: 45px; } }
@media (min-width: 768px) {
	.home-a .home-hero { padding-block: 56px; }
	.home-a .home-figure img { height: 420px; }
	.home-a .home-hero .lead { font-size: 19px; }
}
@media (min-width: 1024px) {
	.home-a .home-hero { padding-block: 64px; }
	.home-a .home-hero .hero-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 72px; }
	.home-a .home-hero h1 { font-size: 50px; }
	.home-a .home-figure { padding: 0 0 18px 18px; }
	.home-a .home-figure::before { inset: 18px 18px 0 0; }
	.home-a .home-figure img { height: 514px; object-position: 52% 45%; }
}
@media (min-width: 1200px) { .home-a .home-hero h1 { font-size: 60px; line-height: 1.23; } }
@media (max-width: 359px) { .home-a .home-hero h1 { font-size: 34px; } }
.home-a .home-hero .motif::before { opacity: .06; }

/* Sections: 64px rhythm on phones, 96px on wide screens; white and light bands alternate. */
.home-a .band { padding-block: 64px; }
@media (min-width: 1024px) { .home-a .band { padding-block: 96px; } }
.home-a .section-head { margin-block-end: 32px; }
.home-a .section-head h2 { margin: 0; }
.home-a .section-head .lead { margin: 16px 0 0; color: var(--muted); }
@media (min-width: 1024px) {
	.home-a .section-head { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-block-end: 48px; }
	.home-a .section-head .lead { max-width: 27rem; margin: 0; font-size: 17px; }
}

/* The six services: line icon, number, name; maintenance and duct carry their request link. */
.service-cards-a { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 40px; }
@media (min-width: 768px) { .service-cards-a { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .service-cards-a { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service-card-a { display: flex; gap: 20px; padding: 24px 0; border-block-start: 1px solid #ADB8CC; }
.service-card-a h3 { font-size: 22px; margin: 4px 0 0; }
.service-num { font-family: var(--font-en); font-size: 13px; color: var(--link); }
.service-icon { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.service-link { margin: 8px 0 0; }
.service-link .text-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) { .service-card-a { padding: 30px 0; } .service-icon { width: 44px; height: 44px; } .service-card-a h3 { font-size: 23px; } }

/* Works: white band with the accent mark at its edge; cards as before (test data stays marked). */
.home-a .band.works { position: relative; background: var(--white); }
.home-a .band.works::before { content: ""; position: absolute; top: 0; right: 0; width: 70px; height: 6px; background: var(--accent); }

/* Unit 3: each service's short description under its name. */
.service-desc { margin: 8px 0 0; font-size: 16px; line-height: 1.75; color: var(--muted); }

/* Unit 3: H-03 condensed into a supply/installation strip after the services. */
.scope-strip { background: var(--surface); border-block: 1px solid var(--border); padding-block: 32px; }
.scope-strip h2 { font-size: 24px; margin: 0; }
.scope-strip-note { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.scope-strip-link { margin: 4px 0 0; }
.scope-strip-link .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.scope-strip-items { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.scope-strip-items li { border-inline-start: 4px solid var(--accent); padding-inline-start: 16px; }
.scope-strip-items h3 { font-size: 18px; margin: 0; }
.scope-strip-items p { margin: 4px 0 0; font-size: 16px; line-height: 1.75; }
@media (min-width: 768px) { .scope-strip-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1024px) {
	.scope-strip { padding-block: 40px; }
	.scope-strip-inner { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 56px; align-items: start; }
	.scope-strip-items { margin: 0; }
}

/* Unit 3: about, vision and mission (light band; the values beside the text on wide screens). */
.home-a .band.about-a { background: var(--surface); }
.about-a h2 { margin: 0; }
.about-a .lead { margin: 24px 0 0; font-size: 18px; line-height: 1.9; }
.about-a-values { display: grid; gap: 24px; margin-top: 32px; }
.about-a-value { background: var(--white); border: 1px solid var(--border); border-block-start: 4px solid var(--primary); border-radius: 4px; padding: 24px; }
.about-a-value h3 { margin: 0 0 8px; font-size: 20px; }
.about-a-value p { margin: 0; font-size: 16px; line-height: 1.8; }
@media (min-width: 1024px) {
	.about-a-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
	.about-a-values { margin-top: 0; }
}

/* Unit 3: the start steps, numbered (they are a sequence). */
.steps-a h2 { margin: 0 0 32px; }
.steps-a-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
.steps-a-list li { border-block-start: 1px solid #ADB8CC; padding: 24px 0; }
.steps-a-list h3 { font-size: 21px; margin: 6px 0 0; }
.steps-a-list p { margin: 8px 0 0; font-size: 16px; line-height: 1.8; }
.step-num { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--link); }
@media (min-width: 768px) { .steps-a-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* VISUAL-FINAL-001: the home page on phones. A 48px section rhythm instead of 64px, and three
   different shapes for three different things that used to look alike (each a list under rules):
   the supply/installation strip keeps its side marks; the works alternative becomes one white panel
   with hairline dividers on a white band (so it no longer merges with the grey strip above it); the
   start steps become a numbered sequence joined by a line. Same texts, sizes, sections and links. */
@media (max-width: 767px) {
	.home-a .band { padding-block: 48px; }
	.home-a .section-head { margin-block-end: 24px; }
	.home-a .band.works-alt { background: var(--white); }
	.home-a .works-alt .option-list { gap: 0; margin-top: 24px; border: 1px solid var(--border); border-block-start: 4px solid var(--accent); border-radius: 4px; }
	.home-a .works-alt .option-list li { border: 0; padding: 20px; }
	.home-a .works-alt .option-list li + li { border-block-start: 1px solid var(--border); }
	.home-a .works-alt .band-actions .button { width: 100%; }
	.home-a .steps-a h2 { margin-block-end: 24px; }
	.home-a .steps-a-list li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; border: 0; padding: 0 0 24px; }
	.home-a .steps-a-list li:last-child { padding-block-end: 0; }
	.home-a .steps-a-list li:not(:last-child)::before { content: ""; position: absolute; top: 36px; bottom: 0; inset-inline-start: 17px; width: 2px; background: var(--border); }
	.home-a .steps-a-list .step-num { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }
	.home-a .steps-a-list h3, .home-a .steps-a-list p { grid-column: 2; }
	.home-a .steps-a-list h3 { margin-top: 4px; }
	.home-a .steps-a + .catalog-band { padding-block-start: 0; }
}

/* Homes entry: dark band. */
.home-band { background: var(--primary); color: var(--white); padding-block: 48px; }
.home-band h2 { color: var(--white); font-size: 34px; margin: 0; }
.home-band p { color: #E1E7F7; font-size: 18px; margin: 24px 0 0; }
.home-band .band-actions { margin-top: 24px; }
@media (max-width: 479px) { .home-band .button { width: 100%; } }
@media (min-width: 768px) {
	.home-band { padding-block: 64px; }
	.home-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
	.home-band h2 { font-size: 42px; flex: 0 1 26rem; }
	.home-band-inner > div { flex: 0 1 34rem; }
	.home-band p { font-size: 20px; margin-top: 0; }
}

/* Devices (or the enquiry alternative): a light box with the accent rule. */
.catalog-entry { padding: 28px 24px; background: var(--surface); border-inline-start: 4px solid var(--accent); }
.catalog-entry h2 { font-size: 28px; }
.catalog-entry .band-lead { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.catalog-entry .band-actions { margin-top: 24px; }
@media (max-width: 479px) { .catalog-entry .button { width: 100%; } }
@media (min-width: 768px) {
	.catalog-entry { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; }
	.catalog-entry h2 { font-size: 32px; }
	.catalog-entry .band-lead { font-size: 17px; }
	.catalog-entry .band-actions { margin: 0; flex-shrink: 0; }
}

/* Closing call: heading beside the number (from its shared source), the description and the button. */
.home-a .closing-inner .contact-line { font-size: 16px; color: var(--muted); }
.home-a .closing-inner .phone-link { color: var(--primary); }
@media (min-width: 768px) {
	.home-a .closing-inner { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
	.home-a .closing-inner > h2 { grid-row: 1 / span 3; }
	.home-a .closing-inner > :not(h2) { grid-column: 2; border-inline-start: 1px solid var(--border); padding-inline-start: 48px; margin: 0; padding-block: 8px; }
	.home-a .closing-inner .phone-link bdi { font-size: 32px; }
}

/* ------------------------------------------------------------------ Service pages, Direction A (unit 4) */
/* Breadcrumb: the navigation's own labels. */
.breadcrumb ol { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 12px; color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb li { display: flex; align-items: center; min-height: 44px; }

/* Split intro: text beside the intro image (offset frame) or a navy brand panel. */
.intro-a { padding-block: 0 48px; border-block-end: 1px solid var(--border); }
.intro-a-surface { background: var(--surface); }
.intro-a-grid { display: grid; gap: 32px; align-items: center; padding-block-start: 16px; }
.intro-a h1 { font-size: 36px; line-height: 1.3; margin: 0; }
.intro-a .lead { margin: 20px 0 0; font-size: 18px; line-height: 1.85; max-width: 40rem; }
.intro-a-figure { position: relative; margin: 0; padding: 0 0 12px 12px; }
.intro-a-figure::before { content: ""; position: absolute; inset: 12px 12px 0 0; border: 1px solid var(--border); }
.intro-a-figure img { position: relative; display: block; width: 100%; height: 260px; object-fit: cover; }
.intro-a-panel { position: relative; height: 200px; background: var(--primary); overflow: hidden; }
.intro-a-panel::before { content: ""; position: absolute; inset: -30% -10% -30% 35%; background: var(--motif) no-repeat center / contain; opacity: .08; }
.intro-a-panel::after { content: ""; position: absolute; inset: 24px; border: 1px solid #5A5FA7; }
@media (max-width: 359px) { .intro-a h1 { font-size: 32px; } }
@media (min-width: 768px) {
	.intro-a h1 { font-size: 44px; }
	.intro-a-figure img { height: 360px; }
	.intro-a-panel { height: 320px; }
}
@media (min-width: 960px) {
	.intro-a { padding-block-end: 72px; }
	.intro-a-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; padding-block-start: 32px; }
	.intro-a h1 { font-size: 52px; }
	.intro-a .lead { font-size: 20px; }
	.intro-a-figure { padding: 0 0 18px 18px; }
	.intro-a-figure::before { inset: 18px 18px 0 0; }
	.intro-a-figure img { height: 420px; }
	.intro-a-panel { height: 400px; }
}

/* Numbered rows (services): number, title, explanation; one rule between rows, no repeated cards. */
.service-a .band { padding-block: 64px; }
@media (min-width: 1024px) { .service-a .band { padding-block: 96px; } }
.service-a .band h2 { font-size: 30px; }
@media (min-width: 768px) { .service-a .band h2 { font-size: 36px; } }
.row-list { list-style: none; margin: 0; padding: 0; border-block-end: 1px solid var(--border); }
.row-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px 16px; border-block-start: 1px solid var(--border); padding-block: 24px; }
.row-item h3 { font-size: 21px; margin: 0; grid-column: 2; }
.row-item p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted); grid-column: 2; }
.row-num { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--link); padding-top: 4px; }
.row-list-compact .row-item { grid-template-columns: minmax(0, 1fr); }
.row-list-compact .row-item h3, .row-list-compact .row-item p { grid-column: 1; }
@media (min-width: 960px) {
	.row-item { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; padding-block: 28px; align-items: baseline; }
	.row-item h3 { font-size: 23px; grid-column: auto; }
	.row-item p { font-size: 17px; grid-column: auto; }
	.row-list-compact .row-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
	.row-list-compact .row-item h3, .row-list-compact .row-item p { grid-column: auto; }
}

/* Three-item strip (projects scope). */
@media (min-width: 1200px) { .scope-strip-3 .scope-strip-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Dark band: heading beside label/explanation rows. */
.dark-band-a { background: var(--primary); color: var(--white); padding-block: 64px; }
.dark-band-a h2 { color: var(--white); font-size: 30px; margin: 0 0 32px; max-width: 26rem; }
.dark-list { margin: 0; }
.dark-list div { border-block-start: 1px solid #4A4F95; padding-block: 18px; }
.dark-list div:last-child { border-block-end: 1px solid #4A4F95; }
.dark-list dt { font-weight: 600; font-size: 18px; color: var(--white); }
.dark-list dd { margin: 6px 0 0; color: #D7DCF2; font-size: 16px; line-height: 1.8; }
@media (min-width: 960px) {
	.dark-band-a { padding-block: 96px; }
	.dark-band-a-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
	.dark-band-a h2 { font-size: 40px; margin: 0; }
	.dark-list div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 24px; align-items: baseline; }
	.dark-list dd { margin: 0; }
}

/* Need cards (homes): numbered, a navy rule on top, on the light band. */
.service-a .band.need-a { background: var(--surface); }
.need-grid-a { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.need-grid-a li { background: var(--white); border-block-start: 3px solid var(--primary); padding: 24px 18px; }
.need-grid-a h3 { font-size: 21px; margin: 16px 0 10px; }
.need-grid-a p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
@media (max-width: 359px) { .need-grid-a { grid-template-columns: 1fr; } }
@media (min-width: 1101px) {
	.need-grid-a { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
	.need-grid-a li { padding: 32px 24px; }
	.need-grid-a h3 { font-size: 23px; margin: 28px 0 16px; }
	.need-grid-a p { font-size: 16px; }
}

/* Editorial: heading beside the content (homes services). */
.editorial-a-grid { display: grid; gap: 24px; }
.editorial-a h2 { margin: 0; }
@media (min-width: 960px) { .editorial-a-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 100px; align-items: start; } }

/* A short row with one link (homes: a specific device). */
.ask-row-a { padding-block: 40px; border-block: 1px solid var(--border); }
.ask-row-a h2 { font-size: 22px; margin: 0 0 8px; }
.ask-row-a p { margin: 0; font-size: 16px; line-height: 1.8; max-width: 46rem; }
.ask-row-a-link { margin-top: 12px !important; }
.ask-row-a-link .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (min-width: 960px) { .ask-row-a-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; } .ask-row-a-link { margin: 0 !important; flex-shrink: 0; } }

/* Questions on white with a rule, so the light closing row below stays a separate area. */
.service-a .band.items-faq { background: var(--white); border-block-start: 1px solid var(--border); }

/* One closing row: heading and text, then the button and the company number. */
.service-a .band.closing { background: var(--surface); }
.service-a .closing-inner h2 { margin: 0; }
.service-a .closing-inner p { margin: 12px 0 0; }
.service-a .closing-actions { margin-top: 24px; }
@media (max-width: 479px) { .service-a .closing-actions .button { width: 100%; } }
@media (min-width: 960px) {
	.service-a .closing-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px; align-items: center; }
	.service-a .closing-inner > h2 { grid-column: 1; grid-row: 1; }
	.service-a .closing-inner > p[data-unit] { grid-column: 1; grid-row: 2; }
	.service-a .closing-actions { grid-column: 2; grid-row: 1; margin: 0; }
	.service-a .closing-inner > .contact-line { grid-column: 2; grid-row: 2; margin: 8px 0 0; }
}

/* ------------------------------------------------------------------ Works and project details, Direction A (unit 5) */
/* Shared project card: image frame, then city/type, title, scope, text, details mark; a rule, not a box. */
.project-card { border: 0; border-block-end: 1px solid var(--border); border-radius: 0; overflow: visible; }
.project-card:hover { border-color: var(--primary); }
.project-card .card-media { aspect-ratio: 4 / 3; border-radius: 0; }
.project-card .card-body { padding: 20px 0 24px; gap: 8px; }
.project-card .card-meta { order: 0; color: var(--link); font-size: 14px; line-height: 24px; }
.project-card .card-title { font-size: 21px; line-height: 1.5; }
.project-card .card-title a { color: var(--text); }
.project-card:hover .card-title a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.project-card .card-scope, .project-card .card-text { color: var(--muted); }
.project-card .card-more { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.project-card .card-more::after { content: "←"; font-family: var(--font-en); }
.project-card .test-badge { align-self: flex-start; }
@media (min-width: 1024px) { .project-card .card-title { font-size: 23px; } }
/* PROJECTS-CONTENT-003: text card for a project without an image: a surface panel with the primary
   rule on top and a faint brand mark, sized by its text (no empty image frame). */
/* LAUNCH-CONTENT-001: an illustrative cover fills its frame and always says what it is. */
.card-media.is-illustration { margin: 0; overflow: hidden; }
.card-media.is-illustration img { object-fit: cover; }
.card-media figcaption { position: absolute; inset-block-end: 0; inset-inline: 0; padding: 4px 12px; background: rgba(17, 16, 68, .86); color: var(--white); font-size: 13px; line-height: 1.6; }
.project-cover.is-illustration { display: block; }
.project-cover figcaption { padding: 8px 14px; background: var(--primary); color: var(--white); font-size: 14px; }
.project-cover.is-illustration img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 767px) { .project-cover.is-illustration img { aspect-ratio: 16 / 9; } }
.project-brief-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-block: 32px; }
.project-brief-sections h2 { margin: 0 0 12px; font-size: 24px; }
.project-brief-sections .project-brief-lead { margin: 0 0 16px; }
.project-solution { padding: 24px; background: var(--surface); }
.project-solution p { margin: 0; line-height: 1.85; }
.project-solution .project-solution-note { margin-block-start: 10px; font-size: 14px; color: var(--muted); }
@media (min-width: 960px) { .project-brief-sections { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; } }
.project-card.is-text { background: var(--surface); border: 0; border-block-start: 4px solid var(--primary); overflow: hidden; }
.project-card.is-text:hover { border-color: var(--accent); }
.project-card.is-text::before { content: ""; position: absolute; inset-block-start: 20px; inset-inline-end: 20px; width: 44px; height: 44px; background: var(--mark) no-repeat center / contain; opacity: .1; pointer-events: none; }
.project-card.is-text .card-body { padding: 24px 24px 28px; gap: 10px; }
.project-card.is-text .card-meta, .project-card.is-text .card-title { padding-inline-end: 52px; }
.project-card.is-text .card-text { color: var(--text); }
.works-grid.is-text-only { gap: 24px; }
@media (min-width: 1024px) {
	.works-grid.is-text-only { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.works-grid.is-text-only > li:nth-child(even) { margin-top: 0; }
	.works-grid.is-text-only:has(> li:only-child) { grid-template-columns: minmax(0, 26rem); }
	.works-grid.is-text-only:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 24rem)); }
}

/* «أعمالنا»: heading band, two-column gallery (staggered on wide screens), empty state, request row. */
.works-a-head { padding-block: 0 32px; }
.works-a-head h1 { font-size: 36px; margin: 16px 0 0; }
.works-a-body { padding-block: 16px 64px; }
.works-grid { gap: 40px 32px; }
@media (min-width: 600px) and (max-width: 1023px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.works-a-head h1 { font-size: 52px; }
	.works-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px 48px; }
	.works-grid > li:nth-child(even) { margin-top: 64px; }
	.works-grid:has(> li:only-child) { grid-template-columns: minmax(0, 36rem); }
	.works-grid:has(> li:nth-child(2):last-child) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.works-empty { border-inline-start: 4px solid var(--accent); padding: 24px 28px; font-size: 18px; }
.works-a-ask, .project-a-ask { background: var(--surface); }
.works-a-ask { padding-block: 48px; }
.works-a-ask h2, .project-a-ask h2 { margin: 0; font-size: 26px; }
.works-a-ask p, .project-a-ask p { margin: 8px 0 0; color: var(--muted); }
.works-a-ask-inner, .project-a-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
@media (max-width: 479px) { .works-a-ask .button, .project-a-ask .button { width: 100%; } }

/* Project details: heading, cover image, facts beside the description, images, one request row. */
.project-a-head { padding-block: 0 32px; }
.project-a-head .preview-note { margin: 24px 0 0; }
.project-a-head .test-badge { margin: 16px 0 0; }
.project-a-head h1 { font-size: 32px; line-height: 1.35; margin: 16px 0 0; max-width: 56rem; overflow-wrap: anywhere; }
@media (min-width: 768px) { .project-a-head h1 { font-size: 44px; } }
@media (min-width: 1024px) { .project-a-head h1 { font-size: 52px; } }
.project-cover { margin: 0 0 48px; background: var(--surface); display: flex; justify-content: center; }
.project-cover img { width: auto; max-width: 100%; max-height: 560px; object-fit: contain; }
.project-a-grid { display: grid; gap: 40px; }
.project-facts-a { margin: 0; display: grid; gap: 0; align-content: start; }
.project-facts-a div { border-block-start: 1px solid var(--border); padding-block: 14px; }
.project-facts-a div:last-child { border-block-end: 1px solid var(--border); }
.project-facts-a dt { color: var(--muted); font-size: 14px; line-height: 24px; }
.project-facts-a dd { margin: 4px 0 0; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.project-a-main { max-width: 46rem; }
.project-a-main .section + .section { margin-top: 40px; }
.project-a-lead { font-size: 18px; line-height: 1.85; }
@media (min-width: 960px) {
	.project-a-grid { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 80px; align-items: start; }
	.project-a-grid.is-single { grid-template-columns: minmax(0, 1fr); }
	.project-facts-a { position: sticky; top: 24px; }
}
.project-a .gallery-section { margin-top: 64px; }
@media (min-width: 1024px) { .project-a .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.project-a-ask { margin-top: 64px; padding: 32px; }
.project-a .back { margin: 40px 0 64px; }
/* PROJECTS-CONTENT-003, «عرض مختصر»: the description as the lead under the heading, the facts that
   exist on one line; the page then holds only sections with data. */
.project-brief-intro { margin-top: 24px; max-width: 46rem; }
.project-brief-lead { margin: 0; font-size: 20px; line-height: 1.8; }
.project-brief-facts { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.project-brief-facts div { border-inline-start: 4px solid var(--accent); padding-inline-start: 12px; }
.project-brief-facts dt { color: var(--muted); font-size: 14px; line-height: 24px; }
.project-brief-facts dd { margin: 0; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.project-brief .project-a-grid { margin-top: 8px; }
.project-brief .project-a-ask { margin-top: 40px; }
@media (min-width: 1024px) { .project-brief-lead { font-size: 22px; } }

/* ------------------------------------------------------------------ Catalog and device details, Direction A (unit 6) */
/* Neutral brand panel for a device without an image (decorative; never a stand-in device photo). */
.device-placeholder { position: absolute; inset: 0; display: block; background: var(--surface); }
.device-placeholder::before { content: ""; position: absolute; inset: 34%; background: var(--mark) no-repeat center / contain; opacity: .09; }

/* Catalog: heading band, one filter bar between rules, cards in up to three columns. */
.catalog-a-head { padding-block: 0 32px; }
.catalog-a-head h1 { font-size: 36px; margin: 16px 0 0; }
.catalog-a-head .lead { margin: 20px 0 0; max-width: 46rem; }
@media (min-width: 1024px) { .catalog-a-head h1 { font-size: 52px; } }
.catalog-a-body { padding-block: 0 64px; }
.catalog-bar { border-block: 1px solid var(--border); padding-block: 24px; margin-block-end: 40px; }
.catalog-a .catalog-filters { margin: 0; padding: 0; background: none; }
.catalog-a .results-count { margin: 12px 0 0; }
.device-grid { gap: 24px; }
@media (min-width: 1024px) { .device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.device-card .card-media { aspect-ratio: 4 / 3; background: var(--surface); }
.device-card .card-media.is-empty { position: relative; }
.device-card .card-body { padding: 24px; gap: 10px; }
.card-brand { margin: 0; color: var(--link); font-size: 14px; font-weight: 600; line-height: 24px; overflow-wrap: anywhere; }
.device-card .card-title { font-size: 22px; line-height: 1.45; overflow-wrap: anywhere; }
.card-specs { margin: 4px 0 0; display: grid; gap: 4px; }
.card-specs div { display: grid; grid-template-columns: minmax(0, 6rem) minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 24px; }
.card-specs dt { color: var(--muted); overflow-wrap: anywhere; }
.card-specs dd { margin: 0; overflow-wrap: anywhere; }
.device-card .card-actions { padding-top: 16px; }
.catalog-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; max-width: 40rem; margin-inline: auto; padding: 40px 24px; border: 1px solid var(--border); }
.catalog-empty-mark { display: block; width: 64px; height: 64px; background: var(--mark) no-repeat center / contain; opacity: .2; margin-block-end: 8px; }
.catalog-empty h2 { font-size: 24px; margin: 0; }
.catalog-empty p { margin: 4px 0 0; }
.catalog-empty .button { margin-top: 16px; }
@media (max-width: 479px) { .catalog-empty .button { width: 100%; } }

/* Device details: the image (or the brand panel) beside the brand, name, model, text and the enquiry. */
.device-a { padding-block: 0 64px; }
.device-a .preview-note { margin: 24px 0 0; }
.device-a-top { display: grid; gap: 32px; margin-top: 16px; align-items: start; }
.device-a-media { position: relative; background: var(--surface); }
.device-a-media.is-empty { aspect-ratio: 4 / 3; }
.device-a-media .device-hero { margin: 0; display: flex; justify-content: center; }
.device-a-media .device-hero img { width: auto; max-width: 100%; max-height: 520px; object-fit: contain; }
.device-a-brand { margin: 0; color: var(--link); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.device-a-intro .test-badge { margin-block-end: 12px; }
.device-a-intro h1 { font-size: 32px; line-height: 1.35; margin: 8px 0 0; overflow-wrap: anywhere; }
.device-a-intro h1 .device-model { font-size: 18px; margin-top: 10px; }
.device-a-intro .lead { margin: 20px 0 0; font-size: 18px; line-height: 1.85; }
.device-a-ask { margin-top: 32px; padding-top: 24px; border-block-start: 1px solid var(--border); }
.device-a-ask h2 { font-size: 20px; margin: 0; }
.device-a-ask p { margin: 8px 0 16px; font-size: 16px; line-height: 1.8; color: var(--muted); }
@media (max-width: 479px) { .device-a-ask .button { width: 100%; } }
/* CONTENT-CONTACT-002: quote request first, WhatsApp beside it (no floating bar), then the confirmation note. */
.device-a-ask .button + .button { margin-inline-start: 12px; }
.device-a-ask p.device-a-confirm { margin: 12px 0 0; font-size: 14px; }
@media (max-width: 479px) { .device-a-ask .button + .button { margin: 12px 0 0; } }
.whatsapp-link { font-weight: 600; }
.footer-contact .footer-whatsapp { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 960px) {
	.device-a-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 80px; margin-top: 32px; }
	.device-a-intro h1 { font-size: 44px; }
}
.specs-a { margin-top: 64px; }
.specs-a h2 { font-size: 30px; }
.spec-rows { gap: 0; }
.spec-rows div { grid-template-columns: minmax(0, 1fr); border-block-start: 1px solid var(--border); padding-block: 16px; }
.spec-rows div:last-child { border-block-end: 1px solid var(--border); }
.spec-rows dt { font-size: 15px; }
.spec-rows dd { font-size: 18px; overflow-wrap: anywhere; }
@media (min-width: 768px) { .spec-rows div { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 32px; align-items: baseline; } }
.device-a .gallery-section { margin-top: 64px; }
.device-a .back { margin-top: 48px; }

/* ------------------------------------------------------------------ Request form, Direction A (unit 7) */
/* Light page, the form as one white panel with the summary beside it on wide screens. */
.request-a { background: var(--surface); }
.request-a .request-page { padding-block: 0 64px; }
.request-a .page-head { padding-block-start: 0; margin-block-end: 32px; }
.request-a .page-head h1 { font-size: 36px; margin: 16px 0 0; }
.request-a .page-head .lead { margin: 20px 0 0; max-width: 40rem; }
@media (min-width: 1024px) { .request-a .page-head h1 { font-size: 52px; } }
.request-a .request-form { max-width: none; background: var(--white); border: 1px solid var(--border); border-block-start: 4px solid var(--primary); padding: 24px 16px; gap: 24px; }
@media (min-width: 600px) { .request-a .request-form { padding: 32px 28px; } }
@media (min-width: 1024px) {
	/* Spacing by margins, not row gaps: the summary spans the rows, and empty rows must not add gaps. */
	.request-a .request-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); column-gap: 48px; row-gap: 0; padding: 40px; align-items: start; }
	.request-a .request-form > * { grid-column: 1; margin-block-start: 24px; }
	.request-a .request-form > :first-child { margin-block-start: 0; }
	.request-a .request-form > .request-summary { grid-column: 2; grid-row: 1 / span 14; position: sticky; top: 24px; margin-block-start: 0; }
}
/* Context: options side by side; the chosen one marked by a frame and a light fill (as before). */
@media (min-width: 600px) {
	.request-a .type-choice:not(.service-choice) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.request-a .type-choice:not(.service-choice) > legend, .request-a .type-choice:not(.service-choice) > .field-error { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .request-a .service-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.request-a .choice { overflow-wrap: anywhere; }
/* Contact fields in pairs; a rule before the description and before the optional parts. */
.contact-fields { display: grid; gap: 20px; padding-block-start: 24px; border-block-start: 1px solid var(--border); }
@media (min-width: 768px) { .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
.request-a .more-details { border: 0; border-block: 1px solid var(--border); border-radius: 0; padding: 12px 0; }
.request-a .attachments { padding: 24px !important; background: var(--surface); }
.request-a .file-list li { background: var(--white); border: 1px solid var(--border); padding: 8px 12px; margin-top: 8px; }
/* Summary: a quiet panel; on wide screens it stays in view beside the form. */
.request-a .request-summary { border: 1px solid var(--border); border-inline-start: 4px solid var(--primary); padding: 16px 20px; }
.request-a .request-summary [data-summary-device] { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* Sending: full-width button; while sending it says so and is disabled (one request at a time, as before). */
.request-a .form-actions .button { width: 100%; min-height: 56px; }
.request-a .request-form[aria-busy=true] [data-submit]::after { content: ""; display: inline-block; width: 16px; height: 16px; margin-inline-start: 12px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; content: "" / ""; animation: durrat-spin .8s linear infinite; vertical-align: -3px; }
@keyframes durrat-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .request-a .request-form[aria-busy=true] [data-submit]::after { animation: none; } }
/* The outcome inside the form: a panel with a top rule in the colour of its meaning and a mark. */
.request-a .form-result { position: relative; padding: 24px 20px; border: 1px solid var(--border); border-block-start: 4px solid var(--link); background: var(--white); }
.request-a .form-result[data-state=success] { border-block-start-color: var(--success); background: #F3FAF6; }
.request-a .form-result[data-state=duplicate] { border-block-start-color: var(--link); }
.request-a .form-result[data-state=failed], .request-a .form-result[data-state=conflict] { border-block-start-color: var(--error); background: #FEF6F6; }
.request-a .form-result[data-state=unknown], .request-a .form-result[data-state=not-found], .request-a .form-result[data-state=pending] { border-block-start-color: var(--warning); background: #FFFAEF; }
.request-a .form-result::before { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-block-end: 12px; border-radius: 50%; font-family: var(--font-en); font-weight: 700; font-size: 20px; }
.request-a .form-result[data-state=success]::before, .request-a .form-result[data-state=duplicate]::before { content: "✓" / ""; background: #DDF0E5; color: var(--success); }
.request-a .form-result[data-state=failed]::before, .request-a .form-result[data-state=conflict]::before { content: "!" / ""; background: #F9DFE2; color: var(--error); }
.request-a .form-result[data-state=unknown]::before, .request-a .form-result[data-state=not-found]::before, .request-a .form-result[data-state=pending]::before { content: "?" / ""; background: #FBEBC8; color: var(--warning); }
.request-a .result-title { font-size: 22px; }
.request-a .form-result .button { margin-top: 8px; }
@media (max-width: 479px) { .request-a .form-result .button { width: 100%; } }
.request-a .form-errors { border: 1px solid #F0C6CB; border-block-start: 4px solid var(--error); }

/* ------------------------------------------------------------------ Not found, Direction A (CONTENT-READY-001) */
/* One bordered panel with a primary top rule, as the request panels; the label carries a short rule. */
.not-found-a { padding-block: 40px 56px; }
.not-found-panel { max-width: 780px; margin-inline: auto; padding: 32px 20px; background: var(--white); border: 1px solid var(--border); border-block-start: 4px solid var(--primary); }
.not-found-label { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--link); font-size: 14px; font-weight: 600; }
.not-found-label::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.not-found-code { margin: 0 0 16px; font-family: var(--font-en); font-size: 72px; line-height: 1; color: var(--primary); }
.not-found-panel h1 { margin: 0 0 16px; font-size: 26px; }
.not-found-panel > p:not([class]) { margin: 0 0 24px; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (max-width: 479px) { .not-found-actions .button { width: 100%; } }
@media (min-width: 768px) {
	.not-found-a { padding-block: 80px 120px; }
	.not-found-panel { padding: 56px; }
	.not-found-code { font-size: 96px; }
	.not-found-panel h1 { font-size: 34px; }
}

/* ------------------------------------------------------------------ Footer */
/* Direction A: dark footer, three columns (brand / request / contact), stacked on phones. */
.site-footer { position: relative; isolation: isolate; overflow: hidden; overflow: clip; background-color: var(--footer-bg); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 72px); color: var(--white); font-size: 15px; line-height: 1.8; }
/* The art sits in the far corner, away from the text, and fades into the footer's colour. */
.footer-art { position: absolute; z-index: -1; inset-block-start: 0; inset-inline-end: 0; width: min(62vw, 300px); height: 200px; pointer-events: none; }
.footer-art img { position: absolute; inset-block-start: -24px; inset-inline-end: -48px; width: auto; height: 260px; max-width: none; opacity: .07; }
.footer-art.has-image { width: 100%; height: 170px; clip-path: polygon(0 0, 100% 0, 100% 100%, 56px 100%, 0 calc(100% - 56px)); }
.footer-art.has-image img { inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.footer-art.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--footer-bg), rgba(17, 16, 68, .45)); }
.footer-art.has-image ~ .footer-top { padding-block-start: 200px; }
@media (min-width: 900px) {
	.footer-art { width: 460px; height: 100%; }
	.footer-art img { inset-block-start: 50%; inset-inline-end: -96px; height: 420px; transform: translateY(-50%); }
	.footer-art.has-image { width: 36%; height: 100%; }
	.footer-art.has-image img { inset: 0; height: 100%; transform: none; }
	.footer-art.has-image::after { background: linear-gradient(90deg, rgba(17, 16, 68, .35), var(--footer-bg)); }
	.footer-art.has-image ~ .footer-top, .footer-art.has-image ~ .footer-bottom { padding-inline-end: calc(36% + 24px); }
	.footer-art.has-image ~ .footer-top { padding-block-start: 64px; }
}
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .45); transition: text-decoration-color var(--t-fast) linear; }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: 48px 0; }
.footer-brand .logo { width: 180px; height: auto; margin-block-end: 20px; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { margin: 0; color: #D0D6E8; max-width: 32rem; }
.footer-title { color: var(--white); font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact p { margin: 0; }
.footer-contact:focus { outline: none; }
.footer-contact .phone-link { font-size: 25px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: #C5CCE4; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; padding-block: 20px 24px; border-top: 1px solid #3D3B67; font-size: 13px; line-height: 1.7; color: #C5CCE4; }
.footer-bottom p { margin: 0; }
/* DEV-CREDIT-001: the developer's line, last and quieter than the company's own links. */
.footer-credit { order: 3; flex-basis: 100%; font-size: 12px; color: #9AA3C7; }
.footer-credit a { display: inline-flex; align-items: center; min-height: 44px; color: #C5CCE4; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--white); }
@media (min-width: 768px) {
	.footer-top { grid-template-columns: 1.3fr .8fr 1fr; gap: 48px; padding-top: 64px; }
	.footer-brand .logo { width: 190px; }
	.footer-bottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 56px; }
}

/* ------------------------------------------------------------------ EXPERIENCE-002: shared by the home page and the inner pages */
/* The inner pages' own layer is in assets/pages.css, so the home page does not load it. */
:root { --rise: 12px; }
@media (min-width: 768px) { :root { --rise: 20px; } }
.card-more::after { transition: transform var(--t-fast) var(--ease-out); }
.card:hover .card-more::after { transform: translateX(-5px); }
.scope-strip { border-block: 0; }
.scope-strip-items li { border-inline-start: 0; border-block-start: 3px solid var(--primary); padding: 16px 0 0; }
.scope-strip-items li + li { border-block-start-color: var(--accent); }
.site-page .band.closing, .works-a-ask { background: var(--primary); color: #E0E5F7; }
.site-page .closing h2, .works-a-ask h2, .project-a-ask h2 { color: var(--white); }
.site-page .closing-inner p, .works-a-ask p, .project-a-ask p { color: #E0E5F7; }
.site-page .closing .button, .works-a-ask .button, .project-a-ask .button { background: var(--white); color: var(--primary); }
.site-page .closing .button:hover, .works-a-ask .button:hover, .project-a-ask .button:hover { background: #E6EDFC; color: var(--primary); }
.site-page .closing-inner .contact-line { color: #D6DCF2; }
.site-page .closing-inner .phone-link, .site-page .closing-inner .whatsapp-link { color: var(--white); }
.site-page .closing :focus-visible, .works-a-ask :focus-visible, .project-a-ask :focus-visible { outline-color: var(--white); }
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }
