/* Al Ruwad United: shared stylesheet for all pages.
   Headings are styled by role class (hero-title, title, card-title), never by tag.
   Theme comes from the company letterhead: red and navy from the RJ logo, a silver
   gradient with a sweeping curve, and white pages between them. */
:root {
  color-scheme: light;
  --navy: #2B2E83;
  --navy-deep: #1C1E5C;
  --navy-soft: #3F43A8;
  --red: #E21E26;
  --red-dark: #BE1219;
  --silver-light: #ECEDEF;
  --silver: #D3D4D7;
  --silver-dark: #B3B4B8;
  --paper: #FFFFFF;
  --mist: #F3F4F7;
  --line: #DFE0E7;
  --text: #1B1D3F;
  --muted: #50526B;
  --on-silver: #383A58;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C9CBE6;
  --line-navy: rgba(255, 255, 255, .18);
  --display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(64px, 6.7vw, 104px);
  --flip: 1;
  --silver-sweep: linear-gradient(calc(var(--flip) * 100deg), var(--silver-light) 0%, var(--silver) 58%, var(--silver-dark) 100%);
}
[dir="rtl"] { --flip: -1; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.75 var(--body); overflow-x: clip; }
body:lang(en) { line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
bdi { unicode-bidi: isolate; }

.container { max-width: 1480px; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section-space); }
.section-mist { background: var(--mist); }
.on-navy { color: var(--on-navy); }

/* role classes */
.hero-title { display: block; margin-top: 18px; font: 700 clamp(36px, 4.5vw, 64px)/1.22 var(--display); color: var(--navy); text-wrap: balance; }
.hero-title em { display: block; margin-top: .4em; font-size: .6em; line-height: 1.3; font-style: normal; color: var(--red-dark); }
.hero-text { max-width: 58ch; margin-top: 20px; color: var(--on-silver); font-size: clamp(17px, 1.35vw, 19.5px); }
.on-navy .hero-text { color: var(--on-navy-muted); }
.title { display: block; margin-top: 10px; color: var(--navy); font: 700 clamp(28px, 3vw, 44px)/1.28 var(--display); text-wrap: balance; }
.on-navy .title { color: #fff; }
.card-title { display: block; color: var(--navy); font: 600 20px/1.4 var(--display); text-wrap: balance; }
:lang(en) .hero-title { letter-spacing: -.022em; line-height: 1.12; }
:lang(en) .title { letter-spacing: -.016em; line-height: 1.18; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 14.5px/1.5 var(--display); color: var(--red-dark); }
.eyebrow::before { content: ""; flex: none; width: 22px; height: 3px; border-radius: 2px; background: var(--red); }
.on-navy .eyebrow { color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 18px 56px; align-items: end; margin-bottom: clamp(32px, 3.4vw, 48px); }
.section-head p { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border: 0; border-radius: 6px; font: 600 16px/24px var(--display); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; transform: scaleX(var(--flip)); transition: translate .25s var(--ease); }
.btn:hover svg { translate: calc(var(--flip) * 5px) 0; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

/* a logo sits on its own white tile wherever it appears */
.logo-tile { display: flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; padding: 9px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -14px rgba(28, 30, 92, .55); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 26px -24px rgba(28, 30, 92, .7); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 10px; }
.logo { flex: none; }
.brand-full { height: 58px; width: auto; }
.brand-short { display: none; width: min(236px, calc(100vw - 146px)); height: auto; }
.nav { display: flex; gap: 34px; color: var(--navy); font: 500 16px/24px var(--display); }
.nav a { position: relative; padding-block: 10px; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .28s var(--ease); }
.nav a:hover::after, .nav a.current::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 6px; background: var(--mist); color: var(--navy); font: 500 14.5px/24px var(--display); cursor: pointer; transition: background-color .2s; }
.lang-switch:hover { background: var(--silver-light); }
.lang-switch svg { width: 17px; height: 17px; }
.header-actions .btn { padding: 10px 20px; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 6px; background: var(--mist); color: var(--navy); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* the letterhead's sweeping curve closes the silver bands */
.curve { position: absolute; inset-inline: 0; bottom: -1px; display: block; width: 100%; height: clamp(34px, 5.4vw, 84px); transform: scaleX(calc(var(--flip) * -1)); pointer-events: none; }
.curve-fill { fill: var(--curve-fill, #fff); }
.curve-line { fill: none; stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; }

/* home hero */
.hero { position: relative; isolation: isolate; background: var(--silver-sweep); overflow: hidden; --curve-fill: var(--navy-deep); }
.hero::before, .page-hero::before { content: ""; position: absolute; z-index: -1; inset-block-start: -8%; inset-inline-start: -3%; width: min(48vw, 640px); aspect-ratio: 1 / 1.1; background: url("../img/logos/rj.svg") center / contain no-repeat; opacity: .05; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 64px); padding-block: clamp(40px, 4.4vw, 68px) clamp(72px, 8vw, 124px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* the star sits on a circle, so the wheel needs a square box */
.wheel { position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 1 / 1; container-type: inline-size; direction: ltr; }
.wheel-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel-ring { transform-origin: 300px 300px; animation: turn 70s linear infinite; }
.spoke { stroke: rgba(43, 46, 131, .35); stroke-width: 1.2; transition: stroke .35s; }
.spoke.active { stroke: var(--red); stroke-width: 2; }
.wheel-photos { position: absolute; inset: 0; background: var(--navy-deep); }
.wheel-photos img { position: absolute; left: 50%; top: 50%; width: 76%; height: 76%; translate: -50% -50%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.wheel-photos img.active { opacity: 1; }
.wheel-photos::after { content: ""; position: absolute; inset: 0; background: rgba(28, 30, 92, .76); }
.wheel-edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wheel-edge path { fill: none; stroke: var(--red); stroke-width: 2; }
.wheel-center { position: absolute; left: 50%; top: 50%; width: 50%; translate: -50% -50%; text-align: center; transition: opacity .28s, transform .35s var(--ease); }
.wheel-center.switching { opacity: 0; transform: translateY(8px); }
.wheel-mark { width: max(10.5cqw, 36px); height: auto; margin: 0 auto 1.4cqw; padding: .9cqw; border-radius: 1.6cqw; background: #fff; }
.wheel-center b { display: block; color: #fff; font: 600 clamp(13.5px, 3.2cqw, 22px)/1.35 var(--display); text-wrap: balance; }
.wheel-center ul { margin-top: 1.2cqw; color: #E4E5F4; font-size: clamp(11px, 2.15cqw, 14.5px); line-height: 1.5; }
.node { position: absolute; left: var(--x); top: var(--y); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqw; width: max(20.5cqw, 70px); height: max(20.5cqw, 70px); translate: -50% -50%; padding: 1.1cqw; border: 0; border-radius: 2.4cqw; background: #fff; color: var(--navy); cursor: pointer; box-shadow: 0 0 0 1px rgba(43, 46, 131, .14), 0 14px 26px -16px rgba(28, 30, 92, .75); transition: box-shadow .3s, scale .3s var(--ease); }
.node img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain; }
.node span { font: 500 clamp(10px, 2cqw, 13px)/1.2 var(--display); white-space: nowrap; }
.node:hover { scale: 1.05; }
.node.active { scale: 1.1; box-shadow: 0 0 0 2.5px var(--red), 0 16px 30px -14px rgba(28, 30, 92, .85); }
.node.active span { color: var(--red-dark); }
.node:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2.4cqw; }

/* numbers: five items, an explicit layout at each width */
.stats { background: var(--navy-deep); color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: clamp(20px, 2.2vw, 30px) clamp(14px, 2vw, 28px); border-inline-start: 1px solid var(--line-navy); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { display: block; font: 700 clamp(28px, 3vw, 42px)/1.2 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 2px; color: var(--on-navy-muted); font-size: 15px; line-height: 1.5; }

/* clients */
.clients-band { padding-block: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.clients-label { margin-bottom: 18px; color: var(--muted); font: 500 15px/1.5 var(--display); text-align: center; }
/* two rows of logos moving in opposite directions, held still while hovered */
.client-band { display: grid; gap: 14px; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.client-track { display: flex; width: max-content; animation: client-move 70s linear infinite; }
.client-track.reverse { animation-direction: reverse; }
.client-band:hover .client-track { animation-play-state: paused; }
.client-track img { flex: none; width: clamp(150px, 15vw, 214px); height: auto; margin-inline-end: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
@keyframes client-move { to { transform: translateX(-50%); } }

/* about: photo beside copy holds two columns to 900px */
.about-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 76px); align-items: center; }
.about-media { position: relative; isolation: isolate; }
.about-media img { width: 100%; height: auto; border-radius: 10px; }
.about-media::after { content: ""; position: absolute; inset-block-end: -14px; inset-inline-start: -14px; width: 42%; height: 62%; border-radius: 10px; background: var(--red); z-index: -1; }
.about-copy > p { margin-top: 18px; color: var(--muted); max-width: 66ch; }
.quote { margin-top: 28px; padding-block: 4px; padding-inline-start: 24px; border-inline-start: 3px solid var(--red); }
.quote p { font: 500 clamp(18px, 1.5vw, 21px)/1.6 var(--display); color: var(--navy); }
.quote cite { display: block; margin-top: 8px; color: var(--muted); font: 400 15px/1.5 var(--body); }

/* company file, mission, vision: three up to 900px */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 4vw, 60px); }
.facts article { padding: clamp(22px, 2.4vw, 32px); border-radius: 10px; background: var(--mist); }
.facts .company-file { background: var(--navy); color: #fff; }
.company-file .card-title { color: #fff; margin-bottom: 6px; }
.file-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-block: 10px; border-top: 1px solid var(--line-navy); }
.file-row:first-of-type { border-top: 0; }
.file-row dt { color: var(--on-navy-muted); font-size: 15px; }
.file-row dd { font: 600 16px/1.4 var(--display); text-align: end; }
.bullets { display: grid; gap: 8px; margin-top: 12px; color: var(--muted); }
.bullets li { position: relative; padding-inline-start: 20px; }
.bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* five service cards: three, then two */
.centers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.center { display: flex; flex-direction: column; grid-column: span 2; overflow: hidden; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s, transform .25s var(--ease); }
.center:nth-child(n+4) { grid-column: span 3; }
.center:hover { box-shadow: 0 0 0 1px var(--navy), 0 24px 40px -28px rgba(28, 30, 92, .6); transform: translateY(-4px); }
.center-photo { overflow: hidden; }
/* wide and narrow cards share one photo height, so the crop varies instead of the row */
.center-photo img { width: 100%; height: clamp(180px, 15vw, 230px); object-fit: cover; transition: transform .7s var(--ease); }
.center:hover .center-photo img { transform: scale(1.04); }
.center-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 0 clamp(20px, 2vw, 28px) clamp(20px, 2vw, 26px); }
.center-body .logo-tile { margin-top: -32px; margin-bottom: 12px; }
.center ul { display: grid; gap: 4px; margin-top: 8px; margin-bottom: 16px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.center-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--red-dark); font: 500 14.5px/1.5 var(--display); }
.center-link svg { width: 16px; height: 16px; transform: scaleX(var(--flip)); }

/* gallery slider: three, two, then one and a peek of the next */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { padding: 8px 16px; border: 0; border-radius: 999px; background: var(--mist); color: var(--navy); font: 500 14.5px/1.5 var(--display); cursor: pointer; transition: background-color .2s, color .2s; }
.filter:hover { background: var(--silver-light); }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; }
.slider-track { --per-view: 3; --slide-gap: 14px; display: flex; gap: var(--slide-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--slide-gap)) / var(--per-view)); overflow: hidden; border-radius: 10px; background: var(--mist); scroll-snap-align: start; }
/* photos come from mixed sources, so the slide fixes their shape */
.slide img.slide-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.slide:hover img.slide-photo { transform: scale(1.04); }
.slide figcaption { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 34px 14px 12px; background: linear-gradient(to top, rgba(28, 30, 92, .92), rgba(28, 30, 92, 0)); color: #fff; font: 500 15px/1.4 var(--display); }
.slide .logo-tile { width: 42px; height: 42px; padding: 5px; border-radius: 8px; box-shadow: none; }
.slider-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.slider-note { color: var(--muted); font-size: 14.5px; }
.slider-arrows { display: flex; flex: none; gap: 8px; }
.slider-arrow { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; transition: background-color .2s; }
.slider-arrow:hover { background: var(--red); }
.slider-arrow svg { width: 20px; height: 20px; transform: scaleX(var(--flip)); }
.slider-arrow.prev svg { transform: scaleX(calc(var(--flip) * -1)); }

/* projects: read from the data file the client's Excel sheet updates */
.projects { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px 28px; align-items: center; padding-block: 14px; padding-inline: 4px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.project-row:hover { background: #fff; }
.project-logo { display: flex; align-items: center; justify-content: center; width: 112px; height: 56px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.project-logo img { max-width: 100%; max-height: 100%; width: auto; }
.project-logo span { color: var(--navy); font: 700 18px/1 var(--display); }
.project-row p { color: var(--muted); }
.project-tag { justify-self: end; padding: 3px 12px; border-radius: 999px; background: var(--paper); color: var(--navy); box-shadow: 0 0 0 1px var(--line); font: 500 13.5px/1.7 var(--display); text-align: center; white-space: nowrap; }

/* call to action and offices */
.quote-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); }
.quote-band::before { content: ""; position: absolute; z-index: -1; inset-block-start: -14%; inset-inline-end: -4%; width: min(44vw, 560px); aspect-ratio: 1 / 1.1; background: url("../img/logos/rj-white.svg") center / contain no-repeat; opacity: .05; }
.quote-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(36px, 5vw, 76px); align-items: center; padding-block-end: clamp(24px, 3vw, 48px); }
.quote-row .hero-text { margin-top: 14px; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.office { padding: clamp(20px, 2.2vw, 28px); border-radius: 10px; background: var(--navy); }
.office .card-title { color: #fff; margin-bottom: 8px; }
.office p { color: var(--on-navy-muted); font-size: 15.5px; line-height: 1.6; }
.office ul { display: grid; gap: 2px; margin-top: 10px; font-size: 15.5px; }
.office a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* inner page banner */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--silver-sweep); }
.page-hero-row { padding-block: clamp(40px, 4.4vw, 68px) clamp(72px, 7.6vw, 116px); }
.page-title { display: block; margin-top: 12px; color: var(--navy); font: 700 clamp(32px, 4vw, 56px)/1.25 var(--display); text-wrap: balance; }
:lang(en) .page-title { letter-spacing: -.02em; line-height: 1.14; }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip-links a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 8px; background: #fff; color: var(--navy); font: 500 14.5px/1.5 var(--display); transition: box-shadow .2s, color .2s; }
[dir="rtl"] .chip-links a { padding: 6px 8px 6px 14px; }
.chip-links a:hover { box-shadow: 0 0 0 2px var(--red); color: var(--red-dark); }
.chip-links img { width: 32px; height: 32px; object-fit: contain; }

/* services page: slideshow beside copy holds two columns to 900px */
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 76px); align-items: center; scroll-margin-top: 96px; }
.service-row + .service-row { margin-top: clamp(56px, 6vw, 96px); padding-top: clamp(56px, 6vw, 96px); border-top: 1px solid var(--line); }
.service-row:nth-child(even) .service-media { order: 2; }
/* the photos are stacked to cross-fade, so the box has to carry the shape */
.service-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 10px; background: var(--mist); }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s; }
.service-media img.active { opacity: 1; }
.service-copy .logo-tile { width: 76px; height: 76px; margin-bottom: 14px; }
.service-copy > p { margin-top: 14px; color: var(--muted); max-width: 64ch; }
.service-copy .sub { margin-top: 18px; font: 600 16px/1.5 var(--display); color: var(--navy); }
.service-copy .bullets { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; font-size: 16px; }

/* contact page: form beside details holds two columns to 900px */
.contact-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.contact-form { display: grid; gap: 16px; padding: clamp(22px, 2.6vw, 36px); border-radius: 10px; background: var(--mist); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font: 500 14.5px/1.5 var(--display); color: var(--text); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #C6C8D4; border-radius: 6px; background: #fff; font: 400 16px/24px var(--body); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43, 46, 131, .16); }
.form-note { padding: 10px 14px; background: #E7F3EC; color: #0F5B34; font-size: 15px; }
.contact-side { display: grid; gap: 16px; }
.contact-card { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.contact-card img { width: 100%; height: auto; border-radius: 6px; }
.contact-card p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.contact-card ul { margin-top: 8px; font-size: 15.5px; }
.contact-card a { color: var(--navy); }
.contact-card a:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.direct { padding: clamp(18px, 2vw, 24px); border-radius: 10px; background: var(--navy); color: #fff; }
.direct .card-title { color: #fff; margin-bottom: 6px; }
.direct a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* footer: the letterhead's silver band with its curve along the top */
.site-footer { position: relative; background: linear-gradient(180deg, var(--silver-light), var(--silver)); color: var(--on-silver); padding-block: clamp(30px, 3vw, 44px) 24px; font-size: 15.5px; }
.site-footer .curve { bottom: auto; top: 0; translate: 0 -99%; --curve-fill: var(--silver-light); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 30px; margin-bottom: 24px; }
.footer-col { display: grid; gap: 6px; align-content: start; }
.footer-col b { color: var(--navy); font: 600 15.5px/1.5 var(--display); }
.footer-col a:hover { color: var(--red-dark); }
.footer-brand img { height: 64px; width: auto; }
.certs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-block: 14px; border-top: 1px solid rgba(43, 46, 131, .18); }
.certs b { margin-inline-end: 6px; color: var(--navy); font: 600 14.5px/1.5 var(--display); }
.certs span { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .62); color: var(--navy); font: 500 13px/1.6 var(--display); }
.footer-base { padding-top: 14px; border-top: 1px solid rgba(43, 46, 131, .18); font-size: 14.5px; }

.reveal { transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.waiting { opacity: .22; transform: translateY(22px); }

@keyframes turn { to { transform: rotate(360deg); } }

/* header gets narrow first; the tall lockup gives way before the nav does */
@media (max-width: 1280px) {
  .brand-full { height: 48px; }
  .nav { gap: 24px; }
}

/* service cards: three across gets narrow first */
@media (max-width: 1180px) {
  .center, .center:nth-child(n+4) { grid-column: span 3; }
  .center:last-child { grid-column: span 6; }
  .project-row { grid-template-columns: 112px minmax(0, 1fr) auto; }
  .project-row p { grid-column: 2 / -1; grid-row: 2; }
}

@media (max-width: 900px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: #fff; box-shadow: 0 16px 24px -18px rgba(28, 30, 92, .6); }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; }
  .nav-toggle { display: inline-flex; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .wheel { max-width: 520px; }
  .about-row, .quote-row, .service-row, .contact-row { grid-template-columns: minmax(0, 1fr); }
  /* rule: a stacked row leads with its image (the hero keeps its copy first) */
  .about-media, .service-row .service-media, .service-row:nth-child(even) .service-media { order: -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-file { grid-column: 1 / -1; }
  .stats-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stat { grid-column: span 2; border-bottom: 1px solid var(--line-navy); }
  .stat:nth-child(n+4) { grid-column: span 3; border-bottom: 0; }
  .stat:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .slider-track { --per-view: 2; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .centers .center, .centers .center:nth-child(n+4), .centers .center:last-child { grid-column: span 6; }
  .offices { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .brand-full { display: none; }
  .brand-short { display: block; }
  .header-row { gap: 10px; }
  .header-actions { gap: 6px; }
  .lang-switch { padding: 10px; }
  .lang-switch span { display: none; }
  .header-actions .btn { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .slider-track { --per-view: 1.12; }
  .field-row, .service-copy .bullets { grid-template-columns: minmax(0, 1fr); }
  .project-row { grid-template-columns: 84px minmax(0, 1fr); }
  .project-logo { width: 84px; height: 44px; }
  .project-row p { grid-column: 1 / -1; }
  .project-tag { grid-column: 1 / -1; justify-self: start; }
  .contact-card { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-title { font-size: clamp(27px, 8vw, 36px); }
}

/* the email address needs a full-width line in the footer */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .client-band { -webkit-mask-image: none; mask-image: none; }
  .client-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; row-gap: 14px; }
  .client-track img[aria-hidden] { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.waiting { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
