/* ==========================================================================
   BRAND — Smart Step adjustments that sit on top of the shared theme:
   logo sizing, the navy artwork hero and small fixes for image-free layouts.
   ========================================================================== */

/* ---------- Logo ---------- */
.brand__logo { block-size: calc(var(--header-h) - 26px); }
.is-scrolled .brand__logo { block-size: calc(var(--header-h-sm) - 20px); }
.brand__name { font-size: 1.2rem; letter-spacing: .01em; }
.brand__name small { color: var(--accent); }

.preloader__seal img {
  inline-size: 124px;
  border-radius: 26px;
  padding: 14px 12px;
  box-shadow: 0 0 0 10px var(--white);
}

.footer-brand__logo { padding: .9rem 1.15rem; border-radius: var(--r-lg); }
.footer-brand__logo img { inline-size: 168px; }

/* ---------- Home hero ---------- */
.hero--image .hero__media { background: #DCE3EC; }
.hero__image { object-position: 20% 55%; }
.page-home .hero--image .hero__veil {
  background:
    linear-gradient(to top, rgba(6, 21, 52, .22), rgba(6, 21, 52, 0) 32%),
    linear-gradient(to bottom, rgba(6, 21, 52, .16), rgba(6, 21, 52, 0) 16%);
}
.page-home .hero__panel {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 40px 80px -30px rgba(2, 10, 30, .65);
}
/* The header stays crisp white over the dark hero */
html:not(.is-scrolled):not(.menu-open) .page-home .site-header,
html:not(.is-scrolled):not(.menu-open) .page-home.hero-image .site-header {
  background: rgba(255, 255, 255, .95);
  border-color: transparent;
}
html:not(.is-scrolled):not(.menu-open) .page-home .menu-pill { background: var(--sky); }
@media (orientation: portrait) {
  .hero__image { object-position: 50% 50%; }
}

/* ---------- "Our promise" panel ---------- */
.promise__photo { background: var(--mist); }
.promise__badge { color: var(--accent); }
.promise__badge .icon { inline-size: 46px; block-size: 46px; stroke-width: 1.2; }

/* ---------- Service / sector cards ---------- */
.stage-card__age { color: var(--accent); box-shadow: var(--shadow-sm); }
.inner-content .stage-card__img { aspect-ratio: 16 / 9; }
a.subject { transition: border-color .25s, transform .35s var(--ease-out), box-shadow .35s; }
a.subject:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- GPS feature stack: artwork behind a light wash ---------- */
.beyond__bg::after { background: linear-gradient(100deg, rgba(246, 248, 251, .90) 25%, rgba(246, 248, 251, .72) 60%, rgba(234, 241, 251, .66)); }

/* ---------- Statement list (sector pages) ---------- */
.statement .tick-list { position: relative; z-index: 1; margin-block-start: .25rem; gap: .7rem; }
.statement .tick-list li { font-size: 1.05rem; }

/* ---------- Mosaic tiles: artwork needs a lighter wash than photos ---------- */
.mosaic-tile::after { background: linear-gradient(to top, rgba(6, 21, 52, .22), rgba(6, 21, 52, 0) 40%); }

/* ---------- Primary button on dark-on-light glass ---------- */
.btn--glass { --btn-bg: var(--white); --btn-bd: var(--line-strong); }
.btn--glass:hover { --btn-bd: var(--accent); --btn-fg: var(--accent); }

/* ---------- Home hero: the coach photo fills the screen, welcome panel on the right ---------- */
.hero__image { object-position: 20% 55%; }
@media (orientation: portrait) {
  .hero__image { object-position: 50% 40%; }
}
/* Fleet page photo rows */
.inner-content .intro-split + .grid { margin-block-start: clamp(1rem, 2vw, 1.5rem); }
figure.media-frame { box-shadow: var(--shadow-sm); }

/* ---------- CEO portrait and team ---------- */
/* The portrait is shown head and shoulders, as on the Our Team page: no drift on scroll, and it is
   enlarged a little from the bottom edge so there is less empty space above the head. */
.promise__photo img { position: absolute; inset-block-end: 0; inset-inline-start: -6%; inline-size: 112%; max-inline-size: none; block-size: 112%; object-position: 50% 100%; }
.promise__badge--logo { padding: 16px; }
.promise__badge--logo img { border-radius: 0; inline-size: 100%; block-size: auto; }
.team-band { margin-block-start: clamp(3.5rem, 7vw, 6rem); }
.staff-card { padding-block: clamp(1.4rem, 2.4vw, 2rem); }
.staff-card__img { inline-size: min(150px, 62%); }
.staff-card__img img { object-position: 50% 18%; }
.staff-card h3 { font-size: 1.12rem; }
.staff-card .staff-card__role { margin-block-end: 0 !important; line-height: 1.5; font-size: .76rem !important; }
.intro-split .media-frame--tall { aspect-ratio: 4 / 5; }
.intro-split .media-frame--tall img { object-position: 50% 20%; }
.team-grid { max-inline-size: 1080px; margin-inline: auto; }
/* a single card left over on the last row of three sits in the middle */
@media (min-width: 1024px) { .grid--3 > .staff-card:last-child:nth-child(3n + 1) { grid-column: 2; } }

/* ---------- Home: fleet band, "more from the group" rows, where we operate ---------- */
.fleet-band {
  display: grid; gap: 1.25rem 2.5rem; align-items: center;
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.5rem, 3.2vw, 2.4rem) clamp(1.4rem, 3.5vw, 2.75rem);
  border-radius: var(--r-lg); background: var(--navy); color: var(--white); box-shadow: var(--shadow);
}
.fleet-band__num { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; color: var(--white); white-space: nowrap; }
.fleet-band__text h3 { margin: 0 0 .35em; color: var(--white); }
.fleet-band__text p { margin: 0; color: rgba(255, 255, 255, .78); max-inline-size: 60ch; }
.fleet-band .btn { justify-self: start; }
@media (min-width: 900px) { .fleet-band { grid-template-columns: auto 1fr auto; } .fleet-band .btn { justify-self: end; } }

.biz-row { display: grid; gap: 1.75rem; align-items: center; }
.biz-row + .biz-row { margin-block-start: clamp(2.75rem, 6vw, 5rem); }
.biz-row__media { aspect-ratio: 4 / 3; }
.biz-row__text .eyebrow .icon { inline-size: 18px; block-size: 18px; }
.biz-row__text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-block-end: .5em; }
.biz-row__text .tick-list { margin-block: 1rem 1.6rem; }
@media (min-width: 900px) {
  .biz-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .biz-row:nth-of-type(even) .biz-row__media { order: 2; }
}

.presence-card { text-align: center; }
.presence-card .card__icon { margin-inline: auto; background: var(--navy); color: var(--white); }
.presence-card h3 { margin-block-end: .15em; }
.presence-card__place { margin: 0 0 .6rem; color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.presence-card p:last-child { color: var(--muted); }

/* ---------- A featured person (IT Services page) ---------- */
.person-card { display: grid; gap: 1.5rem 2.25rem; align-items: center; justify-items: center; text-align: center; }
.person-card__img { inline-size: min(190px, 60vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sky); box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--line); }
.person-card__img img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 18%; }
.person-card__text h3 { margin: 0 0 .15em; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.person-card__text .eyebrow { justify-content: center; }
.person-card__text > p:not(.eyebrow):not(.staff-card__role) { color: var(--muted); margin-block-end: 1rem; }
@media (min-width: 700px) {
  .person-card { grid-template-columns: auto 1fr; justify-items: start; text-align: start; padding-inline: clamp(1.75rem, 4vw, 3rem); }
  .person-card__text .eyebrow { justify-content: flex-start; }
}

/* ---------- Service cards: rows are centred, so an odd card never sits alone on the left ---------- */
.svc-grid { --g: clamp(1rem, 2vw, 1.5rem); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); }
.svc-grid > * { flex: 0 1 100%; }
@media (min-width: 640px)  { .svc-grid > * { flex-basis: calc((100% - var(--g)) / 2); } }
@media (min-width: 1024px) { .svc-grid:not(.svc-grid--2) > * { flex-basis: calc((100% - 2 * var(--g)) / 3); } }
@media (min-width: 1280px) { .svc-grid:not(.svc-grid--2) > * { flex-basis: calc((100% - 3 * var(--g)) / 4); } }

/* ---------- Team: link on each card, and the profile pages (about/team/) ---------- */
a.staff-card { color: inherit; }
.staff-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-block-start: .9rem; font-size: .82rem; font-weight: 700; color: var(--navy); }
.staff-card__more .icon { inline-size: 15px; block-size: 15px; transition: transform .3s; }
a.staff-card:hover .staff-card__more { color: var(--accent); }
a.staff-card:hover .staff-card__more .icon { transform: translateX(4px); }
.profile { display: grid; gap: 2rem; align-items: center; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.profile__photo { inline-size: min(100%, 340px); aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--sky); box-shadow: var(--shadow); }
.profile__photo--tall { aspect-ratio: 4 / 5; }
.profile__photo img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 15%; }
.profile__text h2 { margin-block-end: .2em; }
.profile__role { margin: 0 0 1.1rem; color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.profile .facts { margin-block-start: 1.5rem; }
@media (min-width: 760px) { .profile { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); } }
.focus-card { display: flex; align-items: center; gap: 1.1rem; padding-block: 1.3rem; }
.focus-card__num { min-inline-size: 2.4rem; font-family: var(--font-head); font-size: 1.7rem; line-height: 1; color: var(--accent); opacity: .5; }
.focus-card h3 { margin: 0; font-size: 1.1rem; }
.profile-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-block-start: clamp(2.5rem, 5vw, 4rem); padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.profile-nav__link { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.profile-nav__link small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.profile-nav__link--next { text-align: end; }
.profile-nav__link .icon { inline-size: 20px; block-size: 20px; color: var(--accent); }
.profile-nav__link:hover { color: var(--accent); }
.svc-grid > .stage-card { block-size: auto; }   /* let every card in a row take the height of the tallest */
@media (max-width: 559px) { .profile-nav { display: grid; grid-template-columns: 1fr 1fr; } .profile-nav .btn { grid-column: 1 / -1; grid-row: 2; justify-self: center; } .profile-nav__link--next { justify-self: end; } }

/* ---------- Welcome splash screen (shown once per visit, before the page opens) ---------- */
.preloader { pointer-events: auto; cursor: pointer; animation-delay: 7s; }   /* hides itself after 7s if the scripts fail */
.preloader__curtain, .preloader__curtain--bottom { background: var(--navy); }
.preloader__content { position: relative; display: grid; justify-items: center; padding: 1.5rem; text-align: center; color: var(--white); }
.preloader__seal { inline-size: 190px; margin-block-end: 1.4rem; }
.preloader__rays { fill: rgba(255, 255, 255, .26); }
.preloader__seal img { box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.preloader__welcome { margin: 0 0 .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--silver); }
.preloader__name { margin: 0; font-family: var(--font-head); font-size: clamp(2.5rem, 7vw, 4.2rem); font-weight: 600; line-height: 1.05; color: var(--white); }
.preloader__name small { display: block; margin-block-start: .65rem; font-family: var(--font-body); font-size: clamp(.78rem, 2vw, 1rem); font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--silver); }
.preloader__tag { margin: 1.1rem 0 0; font-family: var(--font-head); font-style: italic; font-size: clamp(1rem, 2.4vw, 1.3rem); color: rgba(255, 255, 255, .82); }
.preloader__bar { display: block; inline-size: min(230px, 60vw); block-size: 2px; margin-block-start: 1.9rem; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.preloader__bar i { display: block; block-size: 100%; background: var(--silver); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .preloader__bar i { transform-origin: right center; }

/* ---------- ISO certification: band under the home page numbers, line in the footer ---------- */
.cert-band { display: grid; gap: .9rem 1.4rem; align-items: center; margin-block-start: 1rem; padding: 1.1rem 1.4rem; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: box-shadow .35s, border-color .3s; }
.cert-band:hover { box-shadow: var(--shadow); border-color: transparent; }
.cert-band__seal { display: grid; place-items: center; inline-size: 56px; block-size: 56px; border-radius: 50%; background: var(--navy); color: var(--white); }
.cert-band__seal .icon { inline-size: 28px; block-size: 28px; stroke-width: 1.4; }
.cert-band__text { display: grid; gap: .15rem; }
.cert-band__text strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.cert-band__text span { color: var(--muted); font-size: .95rem; }
.cert-band__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--navy); white-space: nowrap; }
.cert-band__more .icon { inline-size: 16px; block-size: 16px; transition: transform .3s; }
.cert-band:hover .cert-band__more { color: var(--accent); }
.cert-band:hover .cert-band__more .icon { transform: translateX(4px); }
@media (min-width: 760px) { .cert-band { grid-template-columns: auto minmax(0, 1fr) auto; } }
.footer-brand__cert { display: inline-flex; align-items: center; gap: .45rem; margin: .6rem 0 0; padding: .3rem .8rem .3rem .6rem; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.footer-brand__cert .icon { inline-size: 16px; block-size: 16px; color: var(--accent); }

/* photo rows (Transportation and Fleet pages) */
.photo-row figure { margin: 0; }
.intro-split + .photo-row { margin-block-start: 0; }
