/* One floating capsule; a compact identity while reading the page. */
.header, .header.scrolled, .header.menu-open {
  position: fixed;
  inset-inline: calc(var(--page-gutter) + 12px);
  top: 24px;
  height: 66px;
  padding: 0;
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
  transition: top .35s ease;
}
.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(890px, calc(100vw - 250px));
  height: 66px;
  padding: 8px 18px;
  border: 1px solid #e6e9e0;
  border-radius: 999px;
  background: #fffffff5;
  box-shadow: 0 6px 24px #09251c08;
  pointer-events: auto;
  transition: width .45s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.header .brand { gap: 10px; min-height: 48px; }
.header .brand-symbol { display: block; position: relative; width: 48px; height: 34px; overflow: hidden; flex: 0 0 48px; }
.header .brand-symbol img { position: absolute; left: -8px; top: 0; width: 64px; height: 64px; max-width: none; border-radius: 0; mix-blend-mode: normal; }
.header .brand-word { display: grid; }
.header .brand-word strong { font-size: .87rem; font-weight: 600; }
.header .brand-word small { font-size: .51rem; letter-spacing: .02em; }
.header .nav { position: static; display: flex; justify-content: space-between; flex: 1; min-width: 0; gap: 8px; padding: 0; border: 0; box-shadow: none; background: none; }
.header .nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 999px; font-size: .88rem; font-weight: 400; transition: background .2s, color .2s; }
.header .nav a:after { display: none; }
.header .nav a:hover, .header .nav a.active { background: #edf1e8; color: #254732; }
.header .menu { position: relative; display: none; flex-shrink: 0; width: 46px; height: 46px; min-height: 46px; padding: 0; border: 0; border-radius: 50%; background: #193c33; color: white; }
.header .menu span { position: absolute; left: 14px; top: 22px; width: 18px; height: 1.5px; margin: 0; border-radius: 2px; transform-origin: center; transition: transform .3s; }
.header .menu span:first-child { transform: rotate(90deg); }
.header .menu span:last-child { transform: rotate(0); }
.header .menu[aria-expanded=true] span:first-child { transform: rotate(45deg); }
.header .menu[aria-expanded=true] span:last-child { transform: rotate(-45deg); }
.header .header-actions { flex-shrink: 0; gap: 12px; pointer-events: auto; }
.header .language { display: grid; place-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff3b; border-radius: 50%; background: #112e2633; color: white; font-size: .76rem; backdrop-filter: blur(12px); transition: background .25s, color .25s; }
.header .language span { display: none; }
.header.scrolled .language, .header.menu-open .language { background: #fffffff5; color: var(--ink); border-color: #e6e9e0; }
.header .language:hover { background: #fff; color: var(--ink); }
.header .header-cta, .header.scrolled .header-cta {
  position: relative; display: grid; place-items: center;
  width: 54px; height: 54px; padding: 0;
  border: 1px solid #d1b27d; border-radius: 50%;
  background: #c6a46a; color: #173a2f;
  box-shadow: 0 4px 18px #102c2510;
}
.header .header-cta:hover { background: #dfc28f; color: #173a2f; transform: translateY(-2px); }
.header-cta svg { width: 23px; height: 23px; }
.header-contact-label { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; padding: 7px 14px; border-radius: 10px; background: #fff; color: var(--ink); font-size: .72rem; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s; box-shadow: 0 8px 24px #09251c14; }
.header-cta:hover .header-contact-label, .header-cta:focus-visible .header-contact-label { opacity: 1; visibility: visible; transform: none; }
.header.scrolled { top: 16px; }
.header.scrolled .header-shell { width: 124px; padding: 8px 10px; gap: 8px; box-shadow: 0 6px 24px #09251c12; }
.header.scrolled .brand-word { display: none; }
.header.scrolled .menu { display: block; }
.header.scrolled .nav { display: none; }
.header.scrolled.menu-open .header-shell { width: min(890px, calc(100vw - 250px)); gap: 18px; }
.header.scrolled.menu-open .nav { display: flex; animation: navigation-enter .3s ease both; }
@keyframes navigation-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
/* The button precedes the links in keyboard order; links stay native anchors. */
@media(min-width:1051px) {
  .header .brand { order: 0; }
  .header .menu { order: 1; }
  .header .nav { order: 2; }
  html[lang=en] .header .brand-word strong { font-size: .62rem; letter-spacing: .02em; }
  html[lang=en] .header .brand-word small { font-size: .44rem; }
}
@media(max-width:1050px) {
  .header, .header.scrolled, .header.menu-open { inset-inline: calc(var(--page-gutter) + 8px); top: 20px; height: 62px; gap: 14px; }
  .header .header-shell, .header.scrolled .header-shell, .header.scrolled.menu-open .header-shell { width: 124px; height: 62px; padding: 8px 10px; gap: 8px; }
  .header .brand-word { display: none; }
  .header .menu { display: block; }
  .header .nav, .header.scrolled .nav { display: none; position: absolute; top: calc(100% + 14px); inset-inline-start: 0; width: min(390px, calc(100vw - 56px)); padding: 18px; border: 1px solid #e0e6dc; border-radius: 26px; background: #fffffffA; backdrop-filter: blur(20px); box-shadow: 0 18px 40px #0e2c251a; }
  .header .nav.open, .header.scrolled.menu-open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 6px; animation: navigation-enter .25s ease both; }
  .header .nav a { min-height: 54px; justify-content: space-between; padding: 12px 18px; border-radius: 14px; font-size: 1rem; }
  .header .nav a:after { content: '↗'; display: block; position: static; width: auto; height: auto; background: none; color: #987e4f; font: 18px Arial; }
  .header .header-actions { gap: 10px; }
  .header .language { width: 44px; height: 44px; }
  .header .header-cta { width: 50px; height: 50px; }
}
@media(max-width:540px) {
  .header, .header.scrolled, .header.menu-open { top: 20px; inset-inline: 22px; }
  .header .header-actions { gap: 8px; }
  .header .language { width: 42px; height: 42px; }
  .header .header-cta { width: 48px; height: 48px; }
}
@media(prefers-reduced-motion:reduce) {
  .header, .header-shell, .header .menu span, .header-contact-label { transition: none; }
  .header .nav.open, .header.scrolled.menu-open .nav { animation: none; }
}
/* Keep the complete supplied identity visible, including its wordmark. */
.header, .header.scrolled, .header.menu-open { height: 86px; }
.header .header-shell { height: 86px; }
.header .brand-symbol { width: 78px; height: 78px; flex-basis: 78px; overflow: visible; }
.header .brand-symbol img { position: static; display: block; width: 78px; height: 78px; object-fit: contain; }
.header .brand-word { display: none; }
.header.scrolled .header-shell { width: 154px; }
@media(max-width:1050px) {
  .header .header-shell, .header.scrolled .header-shell, .header.scrolled.menu-open .header-shell { width: 154px; height: 86px; }
}
@media(max-width:540px) {
  .header, .header.scrolled, .header.menu-open { inset-inline: 16px; top: 14px; gap: 10px; }
}
