/* ==========================================================================
   Global components — buttons, links, section heads, header, menu, footer
   Reused across every page of the site.
   ========================================================================== */

/* --- Buttons ------------------------------------------------------------- */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--ivory);
  --btn-border: var(--navy);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
/* Fill sweeps in from the left on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover-bg, var(--blue));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--btn-hover-fg, var(--ivory)); border-color: var(--btn-hover-border, var(--blue)); }
.btn:active { transform: translateY(1px); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: var(--color-rule-strong); --btn-hover-bg: var(--navy); --btn-hover-border: var(--navy); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-border: rgba(255, 255, 255, 0.5); --btn-hover-bg: var(--ivory); --btn-hover-fg: var(--navy); --btn-hover-border: var(--ivory); }
.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--navy); --btn-border: var(--ivory); --btn-hover-bg: var(--accent); --btn-hover-fg: var(--navy-900); --btn-hover-border: var(--accent); }
.btn--sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.75rem; }

.btn .arrow { width: 16px; height: 16px; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Text link with animated underline ------------------------------------ */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.link-arrow span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size var(--dur-base) var(--ease-out);
}
.link-arrow:hover span { background-size: 0% 1px; background-position: 100% 100%; }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }
.section--navy .link-arrow, .on-dark .link-arrow { color: var(--ivory); }

/* --- Section heading ------------------------------------------------------ */

.section-index {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--blue);
}
.section-index__num { color: var(--accent); font-variant-numeric: tabular-nums; }
.section-index::after {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.section--navy .section-index { color: var(--accent-on-dark); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-3);
  align-items: end;
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.section-head .section-index { grid-column: 1 / -1; }
.section-head__title { grid-column: 1 / span 8; }
.section-head__aside { grid-column: 9 / -1; }
@media (max-width: 1023px) {
  .section-head__title, .section-head__aside { grid-column: 1 / -1; }
}

/* --- Placeholder marker (content awaiting confirmation) ------------------- */

.tbc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px dashed currentColor;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  opacity: 0.85;
  white-space: nowrap;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  color: var(--ivory);
  transition: transform var(--dur-slow) var(--ease-out);
}
.site-header.is-scrolled { transform: translateY(calc(var(--utility-h) * -1)); }
.site-header.is-hidden { transform: translateY(calc(-100% - 2px)); }

.utility-bar {
  height: var(--utility-h);
  background: var(--navy-900);
  color: var(--color-on-dark-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.utility-bar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.utility-bar__item { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility-bar__item::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.6rem; vertical-align: 1px; background: var(--accent); transform: rotate(45deg); }
.utility-bar__links { display: flex; gap: 1.5rem; }
.utility-bar__links a { transition: color var(--dur-fast); }
.utility-bar__links a:hover { color: var(--ivory); }
@media (max-width: 767px) { .utility-bar__links { display: none; } }

.main-bar {
  display: flex;
  align-items: center;
  position: relative;
  /* height: var(--header-h); */
  border-bottom: 1px solid var(--color-rule-dark);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base);
  padding-top: 15px;
}
.is-scrolled .main-bar {
  padding-top: 0px;
}
.main-bar .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-header.is-scrolled .main-bar,
.site-header.is-solid .main-bar {
  padding: 10px 0px;
  background: rgba(255, 255, 255, 0.62); /* frosted glass, the page shows through */
  color: var(--navy);
  border-color: rgba(16, 36, 58, 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

/* Wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex: none;
  min-height: 44px;
}
.brand{
  height: 84px;
}
.is-scrolled .brand{
  height: 64px;
}

.brand__logo { display: block; height: 64px; width: auto; transition: height var(--dur-base) var(--ease-out);}

/* Transparent header over a dark hero: white logo and links until the page scrolls */
.brand { position: relative; }
.brand__logo.brand__logo--white { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); filter: brightness(0) invert(1); height: 84px; width: auto; max-width: none; }
.brand--light{ filter: brightness(0) invert(1);height: 84px;}



.is-solid .brand, 
.is-solid .brand__logo{ height: 84px ;}

.is-scrolled.is-solid .brand, 
.is-scrolled.is-solid .brand__logo{ height: 64px ;}

.brand { transition: height var(--dur-base) var(--ease-out); }
.brand__logo:not(.brand__logo--white) { transition: height var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.site-header:not(.is-scrolled):not(.is-solid):not(.on-light) .brand__logo--white { opacity: 1; }
.site-header:not(.is-scrolled):not(.is-solid):not(.on-light) .brand__logo:not(.brand__logo--white) { opacity: 0; }
.site-header:not(.is-scrolled):not(.is-solid) .main-bar { border-color: transparent; }
/* .on-light: logo sits on a white area (split hero), so it stays navy while the links stay white */

/* Primary nav */
.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; align-items: center; gap: 0.25rem; }
.nav-item { position: relative; }
.nav-trigger,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
}
.nav-trigger::after,
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-trigger:hover::after, .nav-link:hover::after,
.nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-trigger svg { width: 10px; height: 10px; transition: transform var(--dur-base) var(--ease-out); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -0.5rem;
  min-width: 320px;
  padding: 0.75rem;
  background: var(--white);
  color: var(--ink);
  border-top: 2px solid var(--accent);
  box-shadow: 0 24px 48px -24px rgba(11, 26, 43, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.nav-panel::before { /* hover bridge */
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
.nav-item.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s;
}
.nav-panel a {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-rule);
  transition: background-color var(--dur-fast);
}
.nav-panel li:last-child a { border-bottom: 0; }
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--ivory); }
.nav-panel__title { display: block; font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.nav-panel__desc { display: block; margin-top: 0.15rem; font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.45; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }

/* Language switcher (EN / UA) — inc/links.php hikit_lang_switcher()
   Segmented control sized like .btn--sm; current language is filled like .btn */
.lang-switch {
  --ls-fg: var(--navy); --ls-border: var(--color-rule-strong); --ls-hover-bg: rgba(16, 36, 58, 0.06);
  --ls-on-bg: var(--navy); --ls-on-fg: var(--ivory);
  flex: none;
}
.lang-switch ul {
  position: relative; display: flex; gap: 2px; height: 40px; padding: 3px;
  border: 1px solid var(--ls-border); border-radius: var(--radius-btn);
  transition: border-color var(--dur-base) var(--ease-out);
}
.lang-switch li { display: flex; }
.lang-switch__item {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 0 0.6rem;
  border-radius: calc(var(--radius-btn) - 3px);
  color: var(--ls-fg); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
a.lang-switch__item:hover { background: var(--ls-hover-bg); }
a.lang-switch__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-switch__item.is-current { background: var(--ls-on-bg); color: var(--ls-on-fg); cursor: default; }
.lang-switch:hover ul { border-color: var(--ls-fg); }

/* Light variant: transparent header over a dark hero, and the mobile menu */
.site-header:not(.is-scrolled):not(.is-solid):not(.on-light) .lang-switch,
.lang-switch--light {
  --ls-fg: var(--ivory); --ls-border: rgba(255, 255, 255, 0.5); --ls-hover-bg: rgba(255, 255, 255, 0.12);
  --ls-on-bg: var(--ivory); --ls-on-fg: var(--navy);
}
.lang-switch--light { margin-left: auto; margin-right: 0.75rem; }
@media (prefers-reduced-motion: reduce) { .lang-switch ul, .lang-switch__item { transition: none; } }
.site-header:not(.is-scrolled):not(.is-solid) .header-actions .btn--outline {
  --btn-fg: var(--ivory); --btn-border: rgba(255, 255, 255, 0.5); --btn-hover-bg: var(--ivory); --btn-hover-fg: var(--navy); --btn-hover-border: var(--ivory);
}
.site-header:not(.is-scrolled):not(.is-solid) .header-actions .btn--navy-swap {
  --btn-bg: var(--ivory); --btn-fg: var(--navy); --btn-border: var(--ivory); --btn-hover-bg: var(--accent); --btn-hover-fg: var(--navy-900); --btn-hover-border: var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 48px;
  min-height: 48px;
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu-toggle__lines { position: relative; width: 24px; height: 12px; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { bottom: 0; }

@media (max-width: 1199px) {
  .primary-nav, .header-actions .btn--outline { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { order: 2; }
  .menu-toggle { order: 3; margin-left: 0.5rem; }
  .brand { margin-right: auto; }
}
@media (max-width: 767px) {
  .header-actions { display: none; }
  .brand__logo { height: 48px; }
  /* Header logo (both copies, any header state) must beat the 84px/64px desktop rules above */
  .site-header .brand,
  .site-header .brand .brand__logo,
  .site-header .brand .brand__logo.brand__logo--white { height: 62px; }
}

/* --- Mobile menu ---------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--ivory);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-in-out), visibility 0s linear var(--dur-slow);
}
.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--dur-slow) var(--ease-in-out), visibility 0s;
}
.mobile-menu__top {
  height: var(--header-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--color-rule-dark);
}
.mobile-menu__close { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; min-width: 48px; justify-content: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-menu__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem var(--gutter) 2rem; }
.mobile-group { border-bottom: 1px solid var(--color-rule-dark); }
.mobile-group__trigger,
.mobile-group__link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  text-align: left;
}
.mobile-group__trigger svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); color: var(--accent); }
.mobile-group__trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.mobile-group__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-out); }
.mobile-group__panel > ul { overflow: hidden; }
.mobile-group__trigger[aria-expanded="true"] + .mobile-group__panel { grid-template-rows: 1fr; }
.mobile-group__panel a { display: flex; align-items: center; min-height: 44px; padding-left: 1rem; color: var(--color-on-dark-muted); font-weight: 600; border-left: 1px solid var(--accent); }
.mobile-group__panel li:last-child a { margin-bottom: 1rem; }
.mobile-group__panel a:hover { color: var(--ivory); }
.mobile-menu__foot { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-rule-dark); }
.mobile-menu__foot .btn { width: 100%; }

body.menu-open { overflow: hidden; }

/* Sticky register bar on phones */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky-cta);
  display: none;
  gap: 0.5rem;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--color-rule);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform var(--dur-base) var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; }
@media (max-width: 767px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: var(--color-on-dark);
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-bottom: 1.5rem;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(2rem, 1rem + 4vw, 6rem);
  row-gap: 2.5rem;
  padding-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}
.footer-brand .brand__logo { height: 86px; }
.footer-brand p { margin-top: 1.25rem; max-width: 36ch; color: var(--color-on-dark-muted); }
.footer-brand .social { margin-top: 1.5rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 2rem var(--grid-gap); }
.footer-col h2 { color: var(--accent-on-dark); margin-bottom: 0.75rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 30px; color: var(--color-on-dark-muted); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--ivory); }
.footer-col address { font-style: normal; color: var(--color-on-dark-muted); line-height: 1.5; }
.footer-col address p + p { margin-top: 0.15rem; }
.footer-col address a { min-height: 0; }

.social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.social a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-rule-dark);
  color: var(--color-on-dark-muted);
  transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast);
}
.social a:hover { border-color: var(--ivory); color: var(--navy-900); background: var(--ivory); }
.social svg, .social img { width: 18px; height: 18px; }

@media (max-width: 1023px) {
  .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-rule-dark);
  font-size: 0.8125rem;
  color: var(--color-on-dark-muted);
}
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-bottom a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-bottom a:hover { color: var(--ivory); }
.footer-disclaimer { opacity: 0.85; }


/* --- Folio: broadsheet section header row --------------------------------- */

.folio {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.folio::before { content: ""; width: 40px; height: 1px; background: currentColor; flex: none; }
.folio--dark { color: var(--accent-on-dark); }

/* Headline left, short aside right */
.split-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 1.5rem;
  align-items: end;
  margin-bottom: var(--head-gap);
}
.split-head__title { grid-column: 1 / span 8; }
.split-head__aside { grid-column: 9 / -1; display: grid; gap: 1.25rem; justify-items: start; max-width: 40ch; }
p.split-head__aside, .split-head__aside > p { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.3; }
@media (max-width: 1023px) {
  .split-head__title, .split-head__aside { grid-column: 1 / -1; }
}

.section-foot { display: flex; justify-content: flex-end; margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section-foot--start { justify-content: flex-start; }

.caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--color-rule);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Solid header: the rule sits on the container, not the full bleed bar */
.site-header.is-solid .main-bar { border-bottom-color: transparent; }

/* Very narrow phones: smaller logo, icon-only menu toggle */
@media (max-width: 399px) {
  .brand__logo { height: 40px; }
  .site-header .brand,
  .site-header .brand .brand__logo,
  .site-header .brand .brand__logo.brand__logo--white { height: 62px; }
  .menu-toggle > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Rounded controls, matching the rounded photography */
.btn, .social a { border-radius: var(--radius-btn); }
.nav-panel { border-radius: 0 0 var(--radius-btn) var(--radius-btn); overflow: hidden; }

/* ==========================================================================
   Mobile QA fixes (2026-10-30) — mobile only, desktop untouched
   ========================================================================== */
@media (max-width: 1023px) {
  /* Header: hidden nav/actions still count as flex items, so the 2rem gaps
     pushed the burger 4px past a 320px viewport. */
  .main-bar .container { gap: 0.75rem; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  /* Footer: at 1024 the 4th (contact) column is ~180px, too narrow for the
     unbreakable e-mail address, which overflowed the page by 18px.
     Three link columns + contact on its own row only in this range. */
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-col--contact { grid-column: 1 / -1; }
}

/* ==========================================================================
   Mobile menu as a side drawer (slides in from the right over a dimmed page)
   ========================================================================== */
.mobile-menu {
  inset: 0 0 0 auto;
  width: min(88vw, 420px);
  clip-path: none;
  transform: translateX(100%);
  border-radius: 22px 0 0 22px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(169, 189, 211, 0.16), transparent 60%),
    linear-gradient(180deg, #13294A 0%, var(--navy-900) 100%);
  box-shadow: -30px 0 80px -20px rgba(4, 12, 24, 0.6);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.55s;
}
.mobile-menu.is-open { transform: translateX(0); clip-path: none; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
.mobile-menu-scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-menu) - 1);
  background: rgba(8, 18, 32, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
body.menu-open .mobile-menu-scrim { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }

.mobile-menu__top { border-bottom: 0; }
/* menu logo uses the same size as the header logo */
.mobile-menu__close { gap: 0; width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); font-size: 0; transition: background-color 0.25s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.mobile-menu__close svg { width: 18px; height: 18px; }
.mobile-menu__close:hover { background: rgba(255, 255, 255, 0.08); transform: rotate(90deg); }

.mobile-menu__body { padding: 0.5rem var(--gutter) 2rem; counter-reset: mm; }
.mobile-group { border-bottom: 1px solid rgba(255, 255, 255, 0.08); counter-increment: mm; }
.mobile-group__trigger, .mobile-group__link { min-height: 60px; font-size: 1.625rem; gap: 1rem; }
.mobile-group__trigger::before, .mobile-group__link::before {
  content: counter(mm, decimal-leading-zero);
  order: -1; flex: none; width: 1.75rem;
  font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--steel); opacity: 0.7;
}
.mobile-group__trigger, .mobile-group__link { justify-content: flex-start; }
.mobile-group__trigger svg { margin-left: auto; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--steel); }
.mobile-group__trigger[aria-expanded="true"] { color: #fff; }
.mobile-group__trigger[aria-expanded="true"] svg { background: #fff; color: var(--navy); }
.mobile-group__panel a { margin-left: 2.75rem; padding-left: 0; border-left: 0; font-family: var(--font-sans); font-weight: 500; font-size: 0.9375rem; color: rgba(238, 241, 244, 0.72); }
.mobile-group__panel a:hover, .mobile-group__panel a:focus-visible { color: #fff; }

.mobile-menu__foot { border-top: 0; padding-top: 0.5rem; }

/* Items rise in one after another when the drawer opens */
.mobile-menu .mobile-group, .mobile-menu .mobile-menu__body > ul > li { opacity: 0; transform: translateX(24px); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.mobile-menu.is-open .mobile-menu__body > ul > li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__body > ul > li:nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__body > ul > li:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu__body > ul > li:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu__body > ul > li:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-menu__body > ul > li:nth-child(5) { transition-delay: 0.28s; }
.mobile-menu.is-open .mobile-menu__body > ul > li:nth-child(6) { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu.is-open, .mobile-menu-scrim, .mobile-menu .mobile-menu__body > ul > li { transition: none; }
  .mobile-menu .mobile-menu__body > ul > li { opacity: 1; transform: none; }
}

/* Drawer covers the whole screen */
.mobile-menu { width: 100%; border-radius: 0; box-shadow: none; }
/* Bigger menu type; Contacts gets an arrow badge to match the plus badges */
.mobile-group__trigger, .mobile-group__link { min-height: 68px; font-size: 2rem; }
.mobile-group__link svg { margin-left: auto; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--steel); }
.mobile-group__panel a { font-size: 1.0625rem; min-height: 48px; }
/* Event details and socials fill the space between the list and the buttons */
.mm-info { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem var(--gutter) 1.25rem; }
.mm-info__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.mm-info__date { margin-top: 0.6rem; font-family: var(--font-serif); font-size: 2rem; line-height: 1.2; color: #fff; }
.mm-info__venue { margin-top: 0.25rem; font-size: 1.125rem; color: rgba(238, 241, 244, 0.7); }
.mm-info__social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.mm-info__social a { display: grid; place-items: center; width: 100%; height: 52px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; transition: background-color 0.25s; }
.mm-info__social a:hover, .mm-info__social a:focus-visible { background: rgba(255, 255, 255, 0.1); }
.mm-info__social svg, .mm-info__social img { width: 22px; height: 22px; }
.mobile-menu__body { flex: 0 1 auto; }
.mobile-group__trigger, .mobile-group__link { font-size: clamp(2rem, 1.2rem + 3.6vw, 2.5rem); min-height: 72px; }
/* Whole drawer scrolls on short screens instead of squeezing the list */
.mobile-menu { overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu__body { flex: none; overflow: visible; }
.mm-info { flex: 1 0 auto; }
.mobile-group__trigger, .mobile-group__link { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 2.75rem); min-height: 66px; }
.mobile-menu__body { padding-top: 1.75rem; }

/* Cookie notice */
.cookie { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; max-width: 560px; padding: 1.25rem 1.5rem; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 36, 58, 0.06), 0 30px 60px -20px rgba(16, 36, 58, 0.4); opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.cookie.is-in { opacity: 1; transform: none; }
.cookie__text { flex: 1 1 260px; margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--color-text-muted); }
.cookie__text a { color: var(--navy); font-weight: 600; }
.cookie__actions { display: flex; gap: 0.5rem; }
@media (max-width: 1023px) { .cookie { left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + 76px); max-width: none; } }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

/* Footer newsletter */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.newsletter__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.05; color: #fff; }
.newsletter__text { margin: 0.625rem 0 0; color: rgba(255, 255, 255, 0.7); line-height: 1.55; }
.newsletter__row { display: flex; gap: 0.5rem; }
.newsletter__row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 1.25rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; background: rgba(255, 255, 255, 0.06); font: inherit; font-size: 1rem; color: #fff; }
.newsletter__row input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter__row input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
.newsletter__row input[aria-invalid="true"] { border-color: #FF8A80; }
.newsletter__consent { display: flex; align-items: flex-start; gap: 0.625rem; margin-top: 0.875rem; font-size: 0.8125rem; line-height: 1.5; color: rgba(255, 255, 255, 0.7); cursor: pointer; }
.newsletter__consent input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 5px; background: transparent; cursor: pointer; transition: background-color var(--dur-base), border-color var(--dur-base); }
.newsletter__consent input::before { content: ""; width: 10px; height: 6px; border: 2px solid var(--navy); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--dur-base) var(--ease-out); }
.newsletter__consent input:checked { background: #fff; border-color: #fff; }
.newsletter__consent input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.newsletter__consent input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.newsletter__consent input[aria-invalid="true"] { border-color: #FF8A80; }
.newsletter__consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.newsletter__consent a:hover { text-decoration-thickness: 2px; }
.newsletter__msg { min-height: 1.25rem; margin: 0.625rem 0 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.newsletter__msg.is-error { color: #FFB4AB; }
.newsletter__msg.is-ok { color: #A8E6B8; }
@media (max-width: 1023px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .newsletter__row { flex-direction: column; } .newsletter__row .btn { justify-content: center; } }

/* Phones: tighter gap between a section head and its cards */
@media (max-width: 767px) {
  main .ab-values__head + *:not(.m-slider) { margin-top: 1.25rem; }
  main .ab-values__head + .m-slider { margin-top: 0.5rem; }
}

/* Inner pages: no header background at the top of the page; it frosts in once the page scrolls.
   Pages with a photo hero use the transparent (white) header, pages without one keep navy text. */
.site-header.is-solid:not(.is-scrolled) .main-bar { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Header dropdowns: frosted glass like the scrolled header, no hard white sheet */
.nav-panel { background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 24px 48px -20px rgba(11, 26, 43, 0.4); }
.nav-panel a { border-radius: 10px; border-bottom-color: rgba(16, 36, 58, 0.08); }
.nav-panel a:hover, .nav-panel a:focus-visible { background: rgba(255, 255, 255, 0.7); }
