/* ACE — shared Arabic / English design system. Original brand assets are unchanged. */
@font-face {
  font-family: Cairo;
  src: url("./Cairo-361d129b6115.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("./Montserrat-c81d9f9fbcdc.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --brand: #f5820b;
  --brand-hover: #ff9a35;
  --identity-gray: #55565a;
  --canvas: #08080a;
  --surface: #151518;
  --surface-raised: #202024;
  --text: #fff;
  --text-muted: #b9bbc1;
  --border: #37373d;
  --on-brand: #000;
  --font-ar: Cairo, system-ui, sans-serif;
  --font-en: Montserrat, Cairo, sans-serif;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --content-width: 1240px;
  --page-gutter: clamp(18px, 4vw, 48px);
  --section-space: clamp(56px, 7vw, 88px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 112px;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(6rem + 24px + env(safe-area-inset-bottom, 0px));
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.85;
  text-align: start;
  overflow-wrap: break-word;
}

html[lang="en"] body,
[lang="en"] {
  font-family: var(--font-en);
  line-height: 1.7;
}

main,
section,
article,
aside,
nav,
header,
footer,
div,
figure {
  min-width: 0;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

figure,
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 750;
  overflow-wrap: normal;
  word-break: normal;
}

html[lang="en"] :is(h1, h2, h3, h4) {
  hyphens: auto;
  overflow-wrap: break-word;
}

:is(h1, h2, h3, h4) a {
  overflow-wrap: inherit;
  hyphens: inherit;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.35;
}

h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  line-height: 1.45;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.6;
}

h4 {
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button,
input,
select,
textarea,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--canvas);
}

::selection {
  background: var(--brand);
  color: var(--on-brand);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(var(--content-width), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}

.muted,
.lead,
.section-heading > p {
  color: var(--text-muted);
}

.accent {
  color: var(--brand);
}

.section {
  padding-block: var(--section-space);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading > p {
  max-width: 65ch;
  margin-top: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 750;
}

.eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--brand);
}

.button,
.icon-button,
.copy-phone,
.close-dialog,
.menu-toggle,
.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.icon-button:hover,
.copy-phone:hover,
.close-dialog:hover,
.menu-toggle:hover,
.language-switch:hover {
  border-color: #73747b;
  background: var(--surface-raised);
  text-decoration: none;
}

.button.primary,
.site-footer .button.primary,
.quick-contact .button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

.button.primary:hover,
.site-footer .button.primary:hover,
.quick-contact .button.primary:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  color: var(--on-brand);
}

.button.small {
  min-height: 46px;
  padding-inline: 14px;
  font-size: 0.875rem;
}

.icon-button,
.copy-phone,
.close-dialog,
.menu-toggle {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 10px;
}

.icon,
.button svg,
.icon-button svg,
.copy-phone svg,
.close-dialog svg,
.menu-toggle svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.button:disabled,
.button[aria-disabled="true"],
.icon-button:disabled,
.copy-phone:disabled,
.close-dialog:disabled,
.menu-toggle:disabled {
  border-color: var(--border);
  background: #303038;
  color: #d0d0d5;
  cursor: not-allowed;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  max-width: calc(100% - 24px);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 750;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: #0c0c0f;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 86px;
  padding-block: 14px;
}

.brand {
  display: block;
  flex: 0 1 auto;
  min-width: 72px;
  width: 118px;
  border-radius: 4px;
}

.brand img {
  width: 100%;
  height: auto;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-switch {
  min-width: 46px;
  padding-inline: 10px;
  background: transparent;
  font-family: var(--font-en);
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow-wrap: normal;
}

.desktop-nav,
.header-actions .header-quote {
  display: none;
}

.mobile-nav {
  max-height: calc(100dvh - 104px);
  padding: 12px var(--page-gutter) 24px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
}

.mobile-nav .wrap {
  width: min(100%, var(--content-width));
}

.nojs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-bottom: 16px;
}

.nojs-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--text);
  font-size: 0.875rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--brand);
}

.mobile-nav .button.primary {
  justify-content: center;
  margin-top: 12px;
  background: var(--brand);
  color: var(--on-brand);
}

.hero {
  padding-block: clamp(40px, 6.5vw, 84px) var(--section-space);
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.hero-copy h1 {
  max-width: 100%;
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

html[lang="en"] .hero-copy h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.3;
}

.hero-copy .lead {
  max-width: 54ch;
  font-size: 1.0625rem;
}

.hero-copy .button-row {
  margin-top: 28px;
}

.hero-note {
  max-width: 60ch;
  margin-top: 20px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--brand);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.hero-visual {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.hero-visual img,
.hero-visual figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-raised);
}

.hero-visual figcaption {
  padding: 14px 8px 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* Full-width cinematic hero; content can grow freely at larger text sizes. */
.hero-cinematic {
  --hero-gradient-direction: to right;
  position: relative;
  isolation: isolate;
  padding: 0;
  border-bottom: 1px solid #614323;
  background: var(--canvas);
}

html[dir="rtl"] .hero-cinematic {
  --hero-gradient-direction: to left;
}

.hero-cinematic > .hero-visual {
  position: absolute;
  z-index: -2;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--canvas);
}

.hero-cinematic > .hero-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.hero-cinematic > .hero-visual figcaption.visually-hidden {
  padding: 0;
}

.hero-cinematic::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #08080a45 0%, #08080aab 30%, #08080ad9 62%, #08080af0 100%);
  pointer-events: none;
}

.hero-visual > .slide-stage {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.hero-cinematic .hero-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: max(640px, calc(100svh - 86px));
  /* Content may grow at enlarged text sizes without covering neighbouring sections. */
  padding-block: 104px 56px;
}

.hero-cinematic .hero-copy {
  width: min(100%, 900px);
  margin-inline: 0 auto;
  text-align: start;
}

.hero-cinematic .hero-copy h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.25rem, 5.1vw, 4.5rem);
  font-weight: 700;
  line-height: 1.28;
  text-wrap: balance;
  text-shadow: 0 2px 16px #0004;
}

.hero-copy h1 > span {
  display: block;
}

html[lang="en"] .hero-cinematic .hero-copy h1 {
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.hero-cinematic .lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: #e2e2e7;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.9;
  text-align: start;
  text-wrap: pretty;
}

.hero-cinematic .hero-note {
  width: fit-content;
  max-width: 100%;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid #ffffff40;
  color: #e2e2e7;
  font-size: .8125rem;
  line-height: 1.8;
}

.hero-cinematic .button-row {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.hero-cinematic .button {
  min-height: 50px;
  padding-inline: 24px;
}

.hero-cinematic .button.secondary {
  border-color: #82828a;
  background: #101013;
}

.hero-cinematic .button.secondary:hover {
  border-color: var(--brand);
  background: var(--surface-raised);
}

.service-grid,
.project-grid,
.related-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.service-card,
.related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.service-card:hover,
.related-card:hover {
  border-color: #946131;
  background: #1b1b1f;
  text-decoration: none;
}

.service-card:focus-within {
  border-color: var(--brand);
}

.service-media {
  position: relative;
  border-start-start-radius: calc(var(--radius) - 1px);
  border-start-end-radius: calc(var(--radius) - 1px);
}

.service-image-link {
  display: block;
  border-radius: inherit;
}

.slide-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  background: #101013;
  overflow: hidden;
  isolation: isolate;
}

.slide-stage .slide-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: none;
  pointer-events: none;
}

.slide-stage .slide-image.is-current {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.slide-stage .slide-image.is-next {
  z-index: 3;
  opacity: 1;
}

.service-card > img,
.related-card > img,
.project-grid > article > img,
.project-grid > figure > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-start-start-radius: calc(var(--radius) - 1px);
  border-start-end-radius: calc(var(--radius) - 1px);
  object-fit: cover;
  background: var(--surface-raised);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.card-body p {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card-body h3 > a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
}

.card-body h3 > a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--brand);
  font-size: 0.9375rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.split-layout,
.study-block,
.maintenance-panel,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.split-layout > div > p + p,
.study-copy > p + p {
  margin-top: 16px;
}

.split-layout h2 + p,
.faq-layout h2 + p {
  margin-top: 20px;
}

.process-list,
.process-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}

.process-list li:first-child {
  padding-top: 0;
}

.step-number {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid #685037;
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-family: var(--font-en);
  font-size: 0.9375rem;
  font-weight: 700;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.stats-section {
  padding-block: 40px;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.stat {
  min-width: 0;
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--brand);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 750;
  line-height: 1.4;
}

.stat span {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.stat small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.stats-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.project-grid > article,
.project-grid > figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-grid figcaption {
  padding: 20px 24px;
}

.project-grid figcaption p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.study-block {
  align-items: center;
  margin-top: 32px;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.study-block > img,
.study-block > figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: var(--radius);
  background: #e6e6e6;
  object-fit: contain;
}

.study-copy h2,
.study-copy h3 {
  margin-bottom: 16px;
}

.study-copy p,
.maintenance-panel p {
  color: var(--text-muted);
}

.study-copy > .button {
  margin-top: 24px;
}

.maintenance-panel .scope-list {
  margin-top: 20px;
}

.maintenance-panel {
  align-items: center;
  padding: clamp(20px, 3.5vw, 48px);
  border: 1px solid #76512e;
  border-radius: var(--radius-lg);
  background: #181613;
}

.maintenance-panel > img,
.maintenance-panel > figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
}

.maintenance-panel h2,
.maintenance-panel h3 {
  margin-bottom: 16px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 20px 4px;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.8;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 28px;
  color: var(--brand);
  font-family: system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.faq-list details[open] > summary::after {
  content: "−";
}

.faq-list summary:hover {
  color: var(--brand);
}

.faq-list details > p {
  max-width: 65ch;
  padding: 0 4px 24px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.section.wrap.brands-section {
  --text: #f4f4f5;
  --text-muted: #b9b9c0;
  width: 100%;
  max-width: none;
  padding-inline: max(var(--page-gutter), calc((100% - 1240px) / 2));
  background: #000;
  color: var(--text);
}

.brands-grid.brand-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 0;
  margin: 0;
  padding: 0;
  direction: rtl;
  list-style: none;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-wall .brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100px;
  padding: 22px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #202024;
}

/* Optical bounds remove empty source margins; original files and proportions stay intact. */
.brand-mark {
  position: relative;
  display: block;
  flex: 0 1 var(--mark-width);
  width: var(--mark-width);
  max-width: 100%;
  aspect-ratio: var(--mark-ratio);
  overflow: hidden;
}

.brand-wall .brand-mark img {
  position: absolute;
  display: block;
  left: var(--source-left);
  top: var(--source-top);
  width: var(--source-width);
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.branch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.branch-card {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #101013;
}

.branch-card > h3 {
  margin-bottom: 8px;
}

.branch-card > p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.branch-departments {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.department {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.department h4,
.department > h3 {
  margin-bottom: 12px;
  color: var(--brand);
}

.phone-link {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.phone-link bdi,
.phone-row bdi {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-en);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
}

.phone-link label,
.phone-link .label,
.phone-link > span,
.phone-row label {
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
}

.copy-phone {
  background: transparent;
}

.branch-card .button-row {
  gap: 8px;
}

.site-footer {
  padding-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--canvas);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-layout .brand {
  width: 174px;
  margin-bottom: 18px;
}

.footer-layout > div > img {
  width: 174px;
  height: auto;
  margin-bottom: 18px;
}

.footer-logo {
  width: 174px;
  height: auto;
  margin-bottom: 18px;
}

.footer-layout p {
  max-width: 45ch;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-layout h2,
.footer-layout h3,
.footer-layout h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-layout > div > a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-block: 16px;
}

.social-links a,
.map-link,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
}

.footer-nav,
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-nav a,
.footer-info > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-info > a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.quick-contact {
  position: fixed;
  z-index: 45;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px var(--page-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: #0c0c0f;
}

.quick-contact .button {
  min-width: 0;
  min-height: 48px;
  padding-inline: 10px;
  font-size: 0.875rem;
}

.breadcrumb {
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: block;
  min-width: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 12px;
  color: #80818b;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
}

.service-hero {
  padding-block: 32px 48px;
  border-bottom: 1px solid var(--border);
}

.service-hero h1 {
  max-width: 100%;
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.service-hero .lead {
  max-width: 68ch;
  font-size: 1.0625rem;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  padding-block: 48px var(--section-space);
}

.service-content > section + section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.service-content h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.service-content h3 {
  margin-block: 24px 12px;
}

.service-content p {
  max-width: 68ch;
  color: var(--text-muted);
}

.service-content p + p {
  margin-top: 16px;
}

.scope-list {
  margin: 0;
  padding-inline-start: 24px;
  color: var(--text-muted);
}

.scope-list li {
  padding-inline-start: 4px;
}

.scope-list li + li {
  margin-top: 12px;
}

.scope-list li::marker {
  color: var(--brand);
}

.contact-panel {
  padding: 24px;
  border: 1px solid #76512e;
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-panel h2,
.contact-panel h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.contact-panel p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-panel > .button {
  display: flex;
  width: 100%;
  margin-top: 24px;
}

.contact-panel > .text-link {
  display: flex;
  margin-top: 12px;
}

.contact-panel .button-row {
  align-items: stretch;
}

.contact-panel .button-row .button {
  flex: 1 1 180px;
}

.related-grid > a:not(.service-card):not(.related-card) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.related-card {
  gap: 16px;
  padding: 24px;
}

.related-card > span {
  margin-top: auto;
  color: var(--brand);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.related-grid > a:not(.service-card):not(.related-card):hover {
  border-color: var(--brand);
}

dialog.modal {
  width: min(640px, calc(100% - 32px));
  max-width: 640px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #62626d;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 80px #0008;
}

dialog.modal:not([open]) {
  display: none;
}

dialog.modal::backdrop {
  background: #000b;
}

.modal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  flex: 1 1 10rem;
  min-width: 0;
  font-size: 1.5rem;
}

.close-dialog {
  width: 46px;
  min-height: 46px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}

.modal > p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.dialog-branches {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.dialog-branch {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #101013;
}

.dialog-branch > h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.dialog-branch > p {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.dialog-branch [data-kind] + [data-kind],
.dialog-branch [data-contact-kind] + [data-contact-kind] {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dialog-branch h4 {
  color: var(--brand);
}

#share-dialog label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}

#share-url {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #73747b;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--text);
  direction: ltr;
  font-family: var(--font-en);
  font-size: 1rem;
  text-align: left;
}

#share-status {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

[data-phone-copy-status]:not(:empty) {
  margin-top: 20px;
  padding: 12px 16px;
  border-inline-start: 2px solid var(--brand);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.9375rem;
}

.copy-status:not(:empty) {
  position: fixed;
  z-index: 60;
  inset-inline: var(--page-gutter);
  bottom: calc(6rem + 36px + env(safe-area-inset-bottom, 0px));
  width: fit-content;
  max-width: min(560px, calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
  padding: 14px 20px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.9375rem;
}

@media (min-width: 600px) {
  .brand {
    width: 154px;
  }

  .header-inner {
    gap: 24px;
    min-height: 92px;
  }

  .header-actions {
    gap: 12px;
  }

  .language-switch {
    padding-inline: 14px;
  }

  .service-grid,
.project-grid,
.related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brands-grid.brand-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .branch-departments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-layout > :first-child {
    grid-column: 1 / -1;
  }

  .quick-contact {
    padding-inline: max(var(--page-gutter), calc((100% - 600px) / 2));
  }
}

@media (min-width: 960px) {
  
  body {
    padding-bottom: 0;
  }

  .quick-contact {
    display: none;
  }

  .copy-status:not(:empty) {
    bottom: 24px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
  }

  .hero-cinematic .hero-layout {
    align-items: end;
    min-height: max(680px, calc(100svh - 85px));
    padding-block: 120px 64px;
  }

  .split-layout,
.study-block,
.maintenance-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .project-grid,
.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brands-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-departments {
    gap: 20px;
  }

  .footer-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 56px;
  }

  .footer-layout > :first-child {
    grid-column: auto;
  }

  .service-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 48px;
  }

  .contact-aside {
    align-self: stretch;
  }

  .contact-panel {
    position: sticky;
    top: 120px;
  }
}

@media (min-width: 1120px) {
  .brand {
    width: 174px;
  }

  .header-inner {
    gap: 24px;
    min-height: 84px;
  }

  .desktop-nav {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 16px;
  }

  .desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding-block: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 650;
    text-decoration: none;
  }

  .desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
    color: var(--brand);
  }

  .desktop-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.55em;
  }

  .header-actions .header-quote {
    display: inline-flex;
  }

  .menu-toggle,
.mobile-nav,
.nojs-nav {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .brands-grid.brand-wall {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0;
  }
}

@media (max-width: 359px) {
  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .brand {
    width: 108px;
  }

  .language-switch {
    padding-inline: 8px;
  }

  .button-row > .button {
    flex: 1 1 180px;
  }

  .card-body,
.branch-card,
.dialog-branch,
.contact-panel {
    padding: 20px;
  }

  .process-list li {
    gap: 12px;
  }

  .quick-contact {
    gap: 8px;
  }

  .quick-contact .button {
    padding-inline: 6px;
  }

  .hero-cinematic .button-row > .button {
    width: 100%;
  }

}

@media (max-height: 700px) and (min-width: 960px) {
  .contact-panel {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep the approved photo sequence; reduce decorative UI motion. */
  *:not(.slide-image),
*::before,
*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  :root {
    --brand: LinkText;
    --text: CanvasText;
    --text-muted: CanvasText;
    --border: ButtonBorder;
    --surface: Canvas;
    --surface-raised: Canvas;
    --canvas: Canvas;
  }

  :focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }

  .button.primary,
.site-footer .button.primary,
.quick-contact .button.primary,
.mobile-nav .button.primary {
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }

  .service-card,
.branch-card,
.contact-panel,
.maintenance-panel,
.dialog-branch,
.brand-wall .brand-tile {
    border-color: ButtonBorder;
  }

  .hero-cinematic::before {
    background: Canvas;
  }

  .hero-cinematic .hero-copy h1 {
    text-shadow: none;
  }

  .hero-cinematic .lead,
.hero-cinematic .hero-note,
.brand-name {
    color: CanvasText;
  }

  dialog.modal::backdrop {
    background: Canvas;
    opacity: 0.75;
  }
}

@media  print {
  body {
    padding-bottom: 0;
  }

  .site-header {
    position: static;
  }

  .quick-contact,
.menu-toggle,
.copy-phone,
.header-actions,
dialog.modal {
    display: none !important;
  }

  .contact-panel {
    position: static;
  }

  .section,
.hero,
.contact-section {
    padding-block: 24px;
  }

  .hero-cinematic .hero-layout {
    min-height: 0;
    padding-block: 32px;
  }

  .service-card,
.branch-card {
    break-inside: avoid;
  }
}

/* Keep focused and anchored content above the persistent mobile contact bar. */
@media (max-width: 1119px) {
  html { scroll-padding-bottom: calc(6rem + 24px + env(safe-area-inset-bottom, 0px)); }
  .button,
.icon-button,
.hero-note { scroll-margin-block: 112px calc(6rem + 24px + env(safe-area-inset-bottom, 0px)); }
}

/* Current presentation: native company marks on a black field. */
.brand-needs-glow .brand-mark {
  filter: drop-shadow(0 0 .7px #ffffffeb) drop-shadow(0 0 2.2px #ffffff91);
}
/* The light follows only the original alpha edges, never a rectangular tile. */
.brand-needs-glow:has(img[src*="samsung"]),
.brand-needs-glow:has(img[src*="schreder"]),
.brand-needs-glow:has(img[src*="phoenix"]) { --brand-edge-glow: #fffffff5; }
.brand-needs-glow:has(img[src*="samsung"]) .brand-mark,
.brand-needs-glow:has(img[src*="schreder"]) .brand-mark,
.brand-needs-glow:has(img[src*="phoenix"]) .brand-mark {
  filter: drop-shadow(0 0 1px var(--brand-edge-glow)) drop-shadow(0 0 3px #ffffffc2);
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.social-link:hover { background: #ffffff12; }
.social-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.social-link .social-icon { display: block; width: 32px; height: 32px; object-fit: contain; }
.whatsapp-link { margin-top: 0; }
.social-links { gap: 10px; }

/* Keep each contact action beside its own number at every card width. */
.branch-departments {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

/* One uninterrupted zoom; the outgoing photograph fades in place. */
.slide-stage .slide-image.is-cinematic-enter {
  z-index: 3;
  animation: ace-cinematic-in 1500ms ease-out both;
}

.slide-stage .slide-image.is-cinematic-exit {
  z-index: 2;
  animation: ace-cinematic-out 1500ms ease-out both;
}

@keyframes ace-cinematic-in {
  0% { opacity: 0; transform: scale(1.12); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes ace-cinematic-out {
  0% { opacity: 1; transform: scale(1); }
  35%, 100% { opacity: 0; transform: scale(1); }
}
.phone-row {
  --phone-action-size: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
  min-width: 0;
  margin-block: 12px;
}
.phone-label {
  flex: 0 0 100%;
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 400;
}
.phone-link {
  display: flex;
  flex: 0 0 auto;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  text-decoration: none;
}
.phone-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; }
.phone-link bdi {
  white-space: nowrap;
  overflow-wrap: normal;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
}
.phone-link:hover bdi { text-decoration-color: currentColor; }
.phone-row .whatsapp-link,
.phone-row .copy-phone {
  width: var(--phone-action-size);
  min-width: var(--phone-action-size);
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
}
.phone-row .copy-phone { color: var(--text-muted); }
.phone-row .copy-phone:hover { color: var(--text); background: #ffffff12; }
.phone-row .copy-phone svg { width: 14px; height: 14px; }
.phone-row .whatsapp-link .social-icon { width: 20px; height: 20px; }
@media (max-width: 599px), (pointer: coarse) {
  .phone-row { --phone-action-size: 44px; }
}
.map-link { gap: 10px; text-decoration: none; }
.map-link > span:not(.visually-hidden) { text-decoration: underline; text-underline-offset: 4px; }
.map-link .social-icon { width: 24px; height: 28px; flex: 0 0 24px; object-fit: contain; }
.share-link { color: var(--text); background: transparent; border: 0; cursor: pointer; }
.share-link svg { flex: 0 0 32px; }
.service-hero.hero-cinematic { padding: 0; }
.service-hero.hero-cinematic .hero-layout { min-height: max(560px, calc(100svh - 164px)); }
.service-hero.hero-cinematic .hero-copy h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); }
.service-hero.hero-cinematic .hero-copy .lead { max-width: 760px; font-size: 1.0625rem; }
.service-hero.hero-cinematic .eyebrow { display: block; margin: 0 0 18px; color: #ffbc77; }
.service-hero.hero-cinematic .hero-copy { max-width: 1040px; }
@media  print { .service-hero.hero-cinematic .hero-layout { min-height: 0; } }

/* Picture sources share the existing, stable image stage. */
.slide-stage picture { display: contents; }

/* Helpful service navigation with the existing ACE palette and type system. */
.service-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 28px; }
.service-filters button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); background: transparent; font: inherit; font-size: .875rem; cursor: pointer; }
.service-filters button:hover { color: var(--text); border-color: var(--brand); }
.service-filters button[aria-pressed="true"] { color: var(--on-brand); background: var(--brand); border-color: var(--brand); font-weight: 700; }
.service-content .guide-intro { font-size: 1.0625rem; line-height: 1.95; }
.decision-list { padding-inline-start: 24px; color: var(--text-muted); }
.decision-list li { padding-inline-start: 6px; margin-block: 14px; }
.decision-list li::marker { color: var(--brand); }
.delivery-steps { margin: 0; padding-inline-start: 30px; }
.delivery-steps li { padding-inline-start: 14px; padding-block: 4px 20px; border-bottom: 1px solid var(--border); }
.delivery-steps li::marker { color: var(--brand); font-weight: 700; }
.delivery-steps h3 { margin-block: 20px 8px; font-size: 1.125rem; }
.service-faq .faq-list summary { font-size: 1rem; }
.service-faq .faq-list details > p { font-size: 1rem; padding-inline: 4px 28px; }
.branch-title-link { color: inherit; text-decoration: none; }
.branch-title-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }
.branch-intro { padding-block: clamp(48px,7vw,88px); }
.branch-intro h1 { max-width: 950px; margin-bottom: 24px; }
.branch-intro p { max-width: 64ch; color: var(--text-muted); }
.branch-detail { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; padding-bottom: var(--section-space); }
.visit-details { padding: 28px; border-inline-start: 2px solid var(--brand); }
.visit-details h3 { margin-block: 24px 12px; font-size: 1.125rem; }
.visit-details p { margin-block: 16px; color: var(--text-muted); }
@media (min-width: 960px) { .branch-detail { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 40px; } }

/* Same original letterforms; small switch labels do not request a second full typeface. */
@font-face { font-family: "ACE-ar-switch"; src: url("./Cairo-switch-a56c620c7e19.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
.language-switch[lang="ar"] { font-family: "ACE-ar-switch", Cairo, sans-serif; }
@font-face { font-family: "ACE-en-switch"; src: url("./Montserrat-switch-81d97c64c2ff.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
.language-switch[lang="en"] { font-family: "ACE-en-switch", Montserrat, sans-serif; }

/* Original Montserrat figures for Arabic contact numbers and statistics. */
@font-face { font-family: "ACE-numerals"; src: url("./Montserrat-numerals-71e9eb215df5.woff2") format("woff2"); font-style: normal; font-weight: 400 750; font-display: swap; }
html[lang="ar"] .phone-row bdi, html[lang="ar"] .stat strong, html[lang="ar"] .step-number { font-family: "ACE-numerals", Montserrat, sans-serif; }

/* Contextual actions reserve header space and never shift the page as they appear. */
[data-header-quote][data-suppressed] { visibility: hidden; pointer-events: none; }
.display-settings { flex: 0 0 44px; color: var(--text); }
.display-dialog { max-width: 520px; }
.display-option {
  display: flex; align-items: center; gap: 14px; min-height: 64px;
  margin-block: 20px 12px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-raised); cursor: pointer; font-weight: 650;
}
.display-option input { width: 22px; height: 22px; min-height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--brand); }
.display-option:hover { border-color: var(--brand); }
.display-option:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.presentation-paused .slide-image { animation: none !important; transition: none !important; }
#projects > .study-block { margin-top: 0; }
@media (max-width: 599px) {
  :root { --section-space: 44px; }
  .card-body { padding: 18px; }
  .card-body p { margin-block: 8px 12px; }
  .service-grid { gap: 16px; }
  .process-list li { padding-block: 16px; }
  .process-list li:first-child { padding-top: 0; }
  .brand-wall .brand-tile { min-height: 76px; padding-block: 14px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 16px; align-items: start; }
  .footer-nav h2 { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
  .header-actions { gap: 4px; }
  .header-actions .language-switch { padding-inline: 4px; min-width: 44px; }
}

/* Workshop pass: engineering photography leads; controls and reading order stay quiet. */
.hero-cinematic .hero-layout { align-items: end; }
.hero-cinematic .hero-copy h1 { text-wrap: pretty; }
.service-hero.hero-cinematic .hero-copy { max-width: 900px; }
.site-header .language-switch,
.site-header .display-settings,
.site-header .menu-toggle { border-color: transparent; background: transparent; }
.site-header .language-switch:hover,
.site-header .display-settings:hover,
.site-header .menu-toggle:hover { background: var(--surface-raised); }
.service-card { border: 0; border-radius: 0; background: transparent; }
.service-card:hover { background: transparent; }
.service-card .service-media { border-radius: 4px; }
.service-card .slide-stage { aspect-ratio: 8 / 5; }
.service-card .card-body { padding: 20px 0 12px; }
.service-card .card-body h3 { line-height: 1.5; }
.service-card .card-body p { margin-block: 10px 12px; }
.service-card .card-link { min-height: 44px; text-decoration-thickness: 1px; }
.service-card .card-link:hover { text-decoration-thickness: 2px; }
.service-grid { row-gap: 36px; }
.service-filters { gap: 4px 22px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.service-filters button { padding: 12px 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; }
.service-filters button:hover { border-color: var(--text-muted); }
.service-filters button[aria-pressed="true"] { background: transparent; color: var(--brand); border-color: var(--brand); }
.step-number { border: 0; border-radius: 0; font-size: 1.5rem; justify-items: start; }
.study-block,
.maintenance-panel { padding: 0; border: 0; border-radius: 0; background: transparent; }
.study-block > picture,
.maintenance-panel > picture { display: block; overflow: hidden; border-radius: 4px; }
.study-block > picture img,
.maintenance-panel > picture img { width: 100%; height: auto; }
.related-card { padding: 24px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.related-card:hover { background: transparent; border-color: var(--brand); }
.contact-panel { border: 0; border-top: 2px solid var(--brand); border-radius: 0; }
.section-links { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-block: 16px; border-bottom: 1px solid var(--border); }
.section-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); font-size: .875rem; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 6px; }
.section-links a:hover { color: var(--brand); text-decoration-color: currentColor; }
.service-content > section { scroll-margin-top: 112px; }
@media (min-width: 960px) {
  #services > .section-heading,
  .brands-section > .section-heading,
  .contact-section > .wrap > .section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: end; gap: 48px; max-width: none; margin-bottom: 36px; }
  #services > .section-heading > p,
  .brands-section > .section-heading > p,
  .contact-section > .wrap > .section-heading > p { margin-top: 0; }
}
@media (max-width: 599px) {
  .hero-cinematic .hero-copy h1 { font-size: 2.25rem; line-height: 1.33; }
  .hero-cinematic .lead { margin-top: 20px; }
  .hero-cinematic .hero-note { margin-top: 20px; }
  .hero-cinematic .button-row { gap: 12px; margin-top: 24px; }
  .hero-cinematic .button { padding-inline: 18px; }
  /* Landscape photos retain their full scene on narrow screens. */
  .service-card .slide-stage { aspect-ratio: 16 / 9; }
  .service-card .card-body { padding: 16px 0 4px; }
  .service-grid { row-gap: 24px; }
  .service-filters { column-gap: 20px; }
  .section-links { gap: 4px 20px; padding-block: 12px; }
  dialog.modal { width: calc(100% - 16px); padding: 16px; }
  .dialog-branch { padding: 12px; }
}
@media (max-width: 359px) {
  /* Whole Arabic and English words still fit at 200% text enlargement. */
  .hero-cinematic .hero-copy h1,
  .service-hero.hero-cinematic .hero-copy h1 { font-size: 1.75rem; }
  html[lang="en"] .hero-cinematic .hero-copy h1 { font-size: 1.625rem; }
}
/* At enlarged text, leave the viewport to the document and its in-page actions. */
.presentation-reflow .site-header { position: static; }
.presentation-reflow .quick-contact { display: none; }
.presentation-reflow body { padding-bottom: 0; }
.presentation-reflow { scroll-padding-block: 16px; }
.presentation-reflow .button,
.presentation-reflow .icon-button,
.presentation-reflow .hero-note,
.presentation-reflow .service-content > section { scroll-margin-block: 16px; }
.presentation-reflow .copy-status:not(:empty) { bottom: 16px; }
.presentation-reflow .process-list li { flex-direction: column; gap: 8px; }
.presentation-reflow .process-list .step-number { flex-basis: auto; }
.presentation-reflow .process-list .step-content { width: 100%; }
.presentation-reflow .footer-nav { grid-template-columns: minmax(0, 1fr); }
@media (forced-colors: active) {
  .hero-cinematic::before { background: Canvas; }
  .service-filters button[aria-pressed="true"] { color: Highlight; border-color: Highlight; }
}
