/* ============================================================================
   XYZ BIM — the portable site chrome
   v1 · the header and footer any project can wear.

   WHY THIS FILE EXISTS

   brand.css gives a project the house colour, type and rhythm. It does not
   give it the house *header* — and a shared palette with a different header
   still reads as a different company. chrome.css looked like it should cover
   that, but it is 31 KB of the home page specifically: .hero, .mark-big,
   .compare, .pmodal, the project grid. A project cannot adopt those without
   adopting the home page's markup and its JavaScript.

   So this is the missing layer: two components, no dependencies, no JS
   required, and markup short enough to paste. Load it after brand.css and
   your page has the mother site's header.

       <link rel="stylesheet" href="https://brand.xyzbim.eu/v1/brand.css">
       <link rel="stylesheet" href="https://brand.xyzbim.eu/v1/site.css">
       <link rel="stylesheet" href="/your-project.css">   <!-- optional -->

   The markup is in site.html next to this file. Copy it verbatim; the only
   thing you change is the project name in .xsite-nav__where and the links.

   It deliberately does NOT style your page body. Bring your own layout - this
   only claims .xsite-* class names, so it cannot collide with what you have.
   ========================================================================= */

/* ---------------------------------------------------------------- header -- */

.xsite-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 12px var(--pad, 24px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--f-sans);
}
/* color-mix is recent; this is what older engines get. */
@supports not (background: color-mix(in srgb, red 50%, blue)){
  .xsite-nav{ background: var(--bg); }
}

.xsite-nav__mark{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.xsite-nav__mark svg{
  width: 26px;
  height: auto;
  display: block;
  color: currentColor;
}

.xsite-nav__word{ display: flex; flex-direction: column; line-height: 1.05; }
.xsite-nav__word b{
  font-weight: 500;          /* the wordmark is medium, never bold */
  font-size: 13px;
  letter-spacing: .01em;
}
.xsite-nav__word em{
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Which project this is. The one line each site changes. */
.xsite-nav__where{
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: clamp(10px, 2vw, 18px);
  border-left: 1px solid var(--rule);
  align-self: stretch;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.xsite-nav__links{
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.xsite-nav__links a{
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--tr-fast), border-color var(--tr-fast);
}
.xsite-nav__links a:hover{ color: var(--ink); border-bottom-color: var(--accent); }
.xsite-nav__links a[aria-current]{ color: var(--ink); border-bottom-color: var(--ink-3); }
.xsite-nav a:focus-visible,
.xsite-foot a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

.xsite-nav__home{
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.xsite-nav__home:hover{ color: var(--accent); }

/* Language switcher. Optional - a single-language project just omits it.
   The active language is marked with aria-current, not only with colour. */
.xsite-nav__lang{
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
  flex: 0 0 auto;
}
.xsite-nav__lang a{
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
  text-decoration: none;
  padding: 3px 6px;
  border: 1px solid transparent;
  transition: color var(--tr-fast), border-color var(--tr-fast);
}
.xsite-nav__lang a:hover{ color: var(--ink); }
.xsite-nav__lang a[aria-current]{
  color: var(--ink);
  border-color: var(--rule);
}

/* Optional light/dark toggle. Square, like everything else in the house. */
.xsite-nav__toggle{
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 10px;
  border: 1px solid var(--rule);
  background: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.xsite-nav__toggle:hover{ border-color: var(--accent); }
.xsite-nav__toggle:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 720px){
  .xsite-nav{ flex-wrap: wrap; gap: 10px 16px; }
  .xsite-nav__where{ border-left: 0; padding-left: 0; }
  .xsite-nav__links{ width: 100%; margin-left: 0; order: 3; gap: 14px; }
}

/* ---------------------------------------------------------------- footer -- */

.xsite-foot{
  margin-top: clamp(48px, 8vw, 120px);
  padding: clamp(28px, 5vw, 56px) var(--pad, 24px);
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  font-family: var(--f-sans);
  color: var(--ink-2);
}
.xsite-foot__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 3vw, 44px);
  max-width: var(--max, 1680px);
  margin: 0 auto;
}
.xsite-foot__tag{
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.xsite-foot a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--tr-fast);
}
.xsite-foot a:hover{ border-bottom-color: var(--accent); }
.xsite-foot ul{ list-style: none; margin: 0; padding: 0; }
.xsite-foot li{ padding: 3px 0; font-size: 13.5px; }
.xsite-foot p{ margin: 0; font-size: 13.5px; }

.xsite-foot__mail{
  font-size: clamp(15px, 2vw, 20px);
  color: var(--ink);
  border-bottom-width: 1px;
}

.xsite-foot__bottom{
  max-width: var(--max, 1680px);
  margin: clamp(24px, 4vw, 44px) auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule-2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media print{
  .xsite-nav{ position: static; background: none; backdrop-filter: none; }
}
