/* One header and one footer on every page (owner pass 23.11): the service-page chrome,
   with the same four links and the same footer. Service pages and the homepage style it
   through layout.css + service-page.css. Pages built on older stylesheets (films, cases,
   404, legal, /work) load this file instead, so every rule is scoped to .site-chrome and
   stands on its own, whatever the legacy CSS does to bare header/footer/nav elements. */
.site-chrome, .site-chrome *, .site-chrome *::before, .site-chrome *::after { box-sizing: border-box; }
.site-chrome { direction: rtl; font-family: var(--body); letter-spacing: 0; text-transform: none; }

/* The old headers were fixed, so legacy pages pushed content down by their height.
   This header sits in the flow, so those offsets fall away. */
body:has(> header.site-chrome) { --header-h: 0px; }
body:has(> header.site-chrome) main > .doc:first-child, body:has(> header.site-chrome) main > [data-mobile-consent-slot]:first-child + .doc { padding-top: clamp(40px, 7vw, 88px); }

/* Header: dark and steady, like the service pages. */
header.site-chrome {
  position: relative; inset: auto; z-index: 50; transform: none;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 80px; margin: 0; padding: 16px 4vw;
  background: var(--deep); color: var(--paper);
  border: 0; border-bottom: 1px solid rgb(202 205 234 / 20%); box-shadow: none;
}
.site-chrome .indigo-wordmark, .site-chrome .footer-wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  color: inherit; font: 800 30px/1.2 var(--display); text-decoration: none;
}
header.site-chrome .indigo-nav {
  position: static; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2vw, 32px);
  margin: 0; padding: 0; background: none; font: 400 16px/1.5 var(--body);
}
.site-chrome .indigo-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  color: inherit; font: inherit; text-decoration: none;
}
.site-chrome .indigo-nav a:hover, .site-chrome .indigo-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .22em; }
.site-chrome :focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* Footer: the service-page link grid and legal row. */
footer.site-chrome {
  /* The bottom padding keeps the legal row above the floating WhatsApp and a11y buttons. */
  display: block; margin: 0; padding: 32px 4vw 96px;
  background: var(--deep); color: var(--paper); text-align: start;
  border: 0; border-top: 1px solid rgb(202 205 234 / 22%);
}
.site-chrome .footer-findability {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 24px;
  margin-top: 20px; padding-block: 16px; border-block: 1px solid var(--lilac); font: 400 16px/1.5 var(--body);
}
.site-chrome .footer-findability a, .site-chrome .footer-bottom a, .site-chrome .footer-bottom button {
  display: inline-flex; align-items: center; min-height: 44px; color: inherit; font: inherit;
}
.site-chrome .footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 20px; font: 400 16px/1.5 var(--body);
}
.site-chrome .footer-bottom p { margin: 0; color: inherit; font: inherit; }
.site-chrome .footer-bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.site-chrome .footer-bottom button {
  padding: 0; border: 0; background: transparent; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em;
}

@media (max-width: 720px) {
  /* Four short links fit one row on a 360px phone: no menu button to open first. */
  header.site-chrome { flex-wrap: wrap; gap: 0; min-height: 0; padding: 8px 24px; }
  .site-chrome .indigo-wordmark { font-size: 28px; }
  header.site-chrome .indigo-nav { display: flex; flex-basis: 100%; justify-content: space-between; gap: 0 12px; }
  footer.site-chrome { padding: 32px 24px max(24px, env(safe-area-inset-bottom, 0px)); }
  .site-chrome .footer-findability { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
