/* Ayamen R125 — canonical footer owner.
   The Projects footer is the reference. Global.css retains only the original structural
   primitives; this file owns the visible footer geometry/typography for every route. */

.footer.ui-dark{
  --t-background:#0c436a;
  --t-background-rgb:12,67,106;
  --t-text:#fff;
  --t-text-rgb:255,255,255;
  --t-heading:#fff;
  --t-primary:#f6921e;
  color:#fff;
}
.footer,
.footer .footer__inner,
.footer .footer__inner::before,
.footer .footer__container,
.footer .footer__bottom,
.footer .footer__bottom-container,
.footer .ayamen-footer-billboard{
  background:#0c436a!important;
  background-color:#0c436a!important;
}
.footer{margin-top:0!important;color:#fff!important}
.footer .footer__inner{position:relative;z-index:10}
.footer .footer__inner::before{
  left:0!important;right:0!important;border-radius:0!important;background:#0c436a!important;
}
.footer .footer__container{
  width:100%!important;max-width:none!important;margin-inline:0!important;border-radius:0!important;
  display:flex!important;flex-direction:column!important;
}
.footer .footer__bottom{border-radius:0!important}
.footer .footer-breadcrumps,
.footer .footer-info,
.footer .legal-notice,
.footer .footer__bottom{visibility:visible!important;opacity:1!important}
.footer .footer-breadcrumps{display:block!important}
.footer .footer-info,.footer .legal-notice{display:flex!important}
.footer .footer__bottom{display:block!important}
.footer .footer__lines{color:#fff!important;opacity:.22!important;pointer-events:none}
.footer .footer-breadcrumps{border-bottom:1px solid rgba(255,255,255,.18)!important}
.footer .footer-breadcrumps::after{background:#0c436a!important}
.footer .footer-breadcrumps::before{background:linear-gradient(90deg,rgba(12,67,106,0),#0c436a)!important}

/* One identical page-name scale/rhythm on every route. */
.footer .footer-info{margin-bottom:0!important;min-height:0!important;height:auto!important}
.footer .footer-info__menu{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:flex-start!important;align-content:flex-start!important;
  gap:4px!important;row-gap:4px!important;
  width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:0!important;
}
.footer .footer-info__menu>li,
.footer .footer-info__menu>li>a.btn,
.footer .footer-info__menu>li>a.btn>.btn__content,
.footer .footer-info__menu .btn__text.h4{
  width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;
}
.footer .footer-info__menu>li{display:block!important;flex:0 0 auto!important}
.footer .footer-info__menu>li>a.btn{display:inline-flex!important;align-items:flex-start!important}
.footer .footer-info__menu>li>a.btn>.btn__content{display:flex!important;align-items:center!important;justify-content:flex-start!important}
.footer .footer-info__menu .btn__text.h4{
  display:block!important;
  font-family:AyamenSans,Helvetica,Arial,sans-serif!important;
  font-size:clamp(30px,2vw,38px)!important;
  font-weight:500!important;
  letter-spacing:-.04em!important;
  line-height:1.12!important;
  text-transform:none!important;
  white-space:nowrap!important;
  color:#fff!important;
}
html[dir="rtl"] .footer .footer__container{direction:rtl!important;text-align:right!important}
html[dir="rtl"] .footer .footer-info{direction:rtl!important}
html[dir="rtl"] .footer .footer-info__menu{direction:rtl!important;text-align:right!important;align-items:flex-start!important}
html[dir="rtl"] .footer .footer-info__menu .btn__text.h4{
  font-family:AyamenCamel,AyamenHelvetica,Tahoma,Arial,sans-serif!important;
  font-size:clamp(30px,2vw,38px)!important;
  font-weight:500!important;
  letter-spacing:0!important;
  line-height:1.18!important;
}

/* Shared small-copy scale so breadcrumbs/legal cannot vary by page-specific type variables. */
.footer .footer-breadcrumps,
.footer .breadcrumbs,
.footer .breadcrumbs .btn__text,
.footer .legal-notice,
.footer .legal-notice p,
.footer .legal-notice a,
.footer .legal-notice .btn__text{
  font-family:AyamenSans,Helvetica,Arial,sans-serif!important;
  font-size:13px!important;font-weight:400!important;letter-spacing:0!important;
  line-height:1.4!important;text-transform:none!important;
}
html[dir="rtl"] .footer .footer-breadcrumps,
html[dir="rtl"] .footer .breadcrumbs,
html[dir="rtl"] .footer .breadcrumbs .btn__text,
html[dir="rtl"] .footer .legal-notice,
html[dir="rtl"] .footer .legal-notice p,
html[dir="rtl"] .footer .legal-notice a,
html[dir="rtl"] .footer .legal-notice .btn__text{
  font-family:AyamenHelvetica,Tahoma,Arial,sans-serif!important;
  line-height:1.5!important;
}
.footer .footer-info__menu a,
.footer .footer-info__menu .btn,
.footer .footer-info__menu .btn__text,
.footer .legal-notice a,
.footer .legal-notice .btn__text,
.footer .breadcrumbs a,
.footer .breadcrumbs .btn__text{color:#fff!important}
.footer .breadcrumbs__item--disabled,
.footer .breadcrumbs__item--disabled .btn__text,
.footer .text-color-small,
.footer .legal-notice__author a{color:rgba(255,255,255,.52)!important}
.footer .breadcrumbs [aria-current="page"] .btn__text,
.footer .footer-info__menu a[aria-current="page"] .btn__text{color:#f6921e!important}
.footer .footer-info__menu a{position:relative}
.footer .footer-info__menu a[aria-current="page"] .btn__text::after{
  content:"";display:inline-block;inline-size:.32em;block-size:.32em;margin-inline-start:.34em;
  border-radius:50%;background:currentColor;vertical-align:.23em;
}

.footer .footer-info__btn{
  color:#0c436a!important;background:#fff!important;
  --t-button-primary-text:#0c436a;--t-button-primary-background:#fff;
}
.footer .footer-info__btn .btn__text{color:#0c436a!important}
.footer .ayamen-footer-social{color:#fff!important;border-color:rgba(255,255,255,.5)!important}
.footer .ayamen-footer-social .btn__icon{display:grid;place-items:center}
.footer .ayamen-footer-social svg{display:block;inline-size:20px!important;block-size:20px!important;max-inline-size:none}
.footer .ayamen-footer-top{color:#fff!important;border-color:rgba(255,255,255,.28)!important}
.footer .ayamen-footer-arrow-up{display:block;inline-size:40px!important;block-size:40px!important}
.footer .legal-notice{margin-top:auto!important}
html[dir="rtl"] .footer .breadcrumbs,
html[dir="rtl"] .footer .legal-notice{text-align:right!important}
html[dir="rtl"] .footer .legal-notice__right{align-items:flex-start!important;text-align:right!important}

/* Same information-canvas dimensions on every desktop route. */
@media (min-width:980px){
  .footer .footer__container{
    height:clamp(560px,68svh,620px)!important;
    min-height:560px!important;
    padding-block:clamp(28px,4svh,42px)!important;
  }
}
@media (min-width:980px) and (max-height:760px){
  .footer .footer__container{height:520px!important;min-height:520px!important;padding-block:24px!important}
  .footer .footer-info__menu .btn__text.h4{font-size:30px!important;line-height:1.12!important}
  html[dir="rtl"] .footer .footer-info__menu .btn__text.h4{font-size:30px!important;line-height:1.18!important}
}

/* Remove route-specific footer geometry differences. */
.footer--about{margin-top:0!important}
.footer--compound::before{background:#0c436a!important}
.footer .footer__bottom::before{background:linear-gradient(0deg,rgba(12,67,106,0) 80%,#0c436a)!important}
.footer--contacts .footer__bottom::before{background:linear-gradient(0deg,rgba(12,67,106,0) 80%,#0c436a)!important}

/* Billboard/logo treatment remains identical everywhere. */
.footer .footer__bottom picture,
.footer .footer__bottom img{display:block!important;visibility:visible!important;opacity:1!important}
.footer .ayamen-footer-billboard img{inline-size:100%;block-size:100%;object-fit:cover;object-position:center}
.footer .footer__logo a{display:block}
.footer .footer__logo .ayamen-footer-logo-stack{
  position:relative;display:block;inline-size:clamp(118px,12vw,180px);aspect-ratio:583.51/404.67;
}
.footer .footer__logo .ayamen-footer-logo-stack__wordmark,
.footer .footer__logo .ayamen-footer-logo-stack__symbol{
  position:absolute!important;inset:0!important;display:block!important;inline-size:100%!important;block-size:100%!important;
  max-inline-size:none!important;aspect-ratio:583.51/404.67!important;object-fit:contain!important;object-position:center!important;
}
.footer .footer__logo .ayamen-footer-logo-stack__wordmark{filter:brightness(0) invert(1)!important}
.footer .footer__logo .ayamen-footer-logo-stack__symbol{clip-path:inset(0 0 54.15% 0);filter:none!important;pointer-events:none}
html[dir="rtl"] .footer .footer__logo .ayamen-footer-logo-stack{direction:ltr}

@media (max-width:979px){
  .footer .footer__container{height:auto!important;min-height:0!important}
  .footer .footer-info__menu{gap:8px!important;row-gap:8px!important}
  .footer .footer-info__menu .btn__text.h4{
    font-size:clamp(28px,7vw,38px)!important;line-height:1.2!important;white-space:normal!important;
  }
  html[dir="rtl"] .footer .footer-info__menu .btn__text.h4{line-height:1.28!important}
  .footer .footer__logo .ayamen-footer-logo-stack{inline-size:clamp(88px,25vw,118px)}
}

/* ============================================================
   Ayamen R126 — final footer ownership lock
   ------------------------------------------------------------
   This block is intentionally scoped to the canonical footer ID/class.
   The footer adapter is also loaded LAST on every full route. Together
   these rules prevent About/Landing/RTL/performance/final-fix stylesheets
   from stretching the five navigation rows or changing footer rhythm.
   ============================================================ */

#footer.ayamen-footer-canonical .footer-info__menu {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: max-content !important;
  grid-template-rows: repeat(5, max-content) !important;
  grid-auto-rows: max-content !important;
  align-content: start !important;
  justify-content: start !important;
  align-items: start !important;
  justify-items: start !important;
  gap: 4px !important;
  row-gap: 4px !important;
  column-gap: 0 !important;
  width: max-content !important;
  max-width: 100% !important;
  height: max-content !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#footer.ayamen-footer-canonical .footer-info__menu > li {
  display: block !important;
  position: relative !important;
  inline-size: max-content !important;
  max-inline-size: 100% !important;
  block-size: max-content !important;
  min-block-size: 0 !important;
  max-block-size: none !important;
  flex: none !important;
  align-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
}

#footer.ayamen-footer-canonical .footer-info__menu > li > a.btn,
#footer.ayamen-footer-canonical .footer-info__menu > li > a.btn > .btn__content,
#footer.ayamen-footer-canonical .footer-info__menu > li > a.btn > .btn__content > .btn__text {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
  margin-block: 0 !important;
}

#footer.ayamen-footer-canonical .footer-info__menu > li > a.btn {
  display: inline-flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

#footer.ayamen-footer-canonical .footer-info__menu > li > a.btn > .btn__content {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu {
  direction: rtl !important;
  text-align: right !important;
  align-content: start !important;
  justify-content: start !important;
  align-items: start !important;
  justify-items: start !important;
}

html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu > li,
html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu > li > a.btn,
html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu > li > a.btn > .btn__content {
  direction: rtl !important;
  text-align: right !important;
}

/* The legal row must remain at the bottom of the blue information canvas;
   it must never participate in menu-row distribution. */
#footer.ayamen-footer-canonical .legal-notice {
  flex: none !important;
  margin-top: auto !important;
}

@media (max-width: 979px) {
  #footer.ayamen-footer-canonical .footer-info__menu {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-rows: max-content !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    row-gap: 8px !important;
  }

  #footer.ayamen-footer-canonical .footer-info__menu > li {
    inline-size: auto !important;
    width: auto !important;
    max-inline-size: 100% !important;
  }
}


/* ============================================================
   Ayamen R127 — isolated footer navigation component
   ------------------------------------------------------------
   Landing/About load additional text, reveal and button systems that do not
   exist on Projects.  The footer navigation no longer participates in those
   generic systems: its links use footer-only classes, do not initialize the
   shared button clone plugin, and every visual offset is normalized here.
   This makes the Projects footer geometry the actual shared geometry instead
   of trying to out-specificity page-family animation rules.
   ============================================================ */

#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
  gap: 2px !important;
  row-gap: 2px !important;
  column-gap: 0 !important;
  width: max-content !important;
  max-width: 100% !important;
  height: max-content !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  overflow: visible !important;
  contain: none !important;
}

#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-item,
#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link,
#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__content,
#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__text {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  align-self: auto !important;
}

#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-item {
  display: block !important;
  list-style: none !important;
  line-height: 1 !important;
}

#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link {
  display: inline-block !important;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent !important;
}

#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__content,
#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__text {
  display: inline !important;
}

#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__text {
  font-family: AyamenSans, Helvetica, Arial, sans-serif !important;
  font-size: clamp(30px, 2vw, 38px) !important;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: -.04em !important;
  line-height: 1.12 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  color: inherit !important;
}

html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] {
  direction: rtl !important;
  text-align: right !important;
  align-items: flex-start !important;
}

html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link,
html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__content,
html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__text {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__text {
  font-family: AyamenCamel, AyamenHelvetica, Tahoma, Arial, sans-serif !important;
  font-size: clamp(30px, 2vw, 38px) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
}

#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link[aria-current="page"] {
  color: #f6921e !important;
}

#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link[aria-current="page"] .ayamen-footer-nav-link__text::after {
  content: "" !important;
  display: inline-block !important;
  inline-size: .32em !important;
  block-size: .32em !important;
  margin-inline-start: .34em !important;
  border-radius: 50% !important;
  background: currentColor !important;
  vertical-align: .23em !important;
}

#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link:not([aria-current="page"]):hover,
#footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link:not([aria-current="page"]):focus-visible {
  color: rgba(255,255,255,.72) !important;
}

@media (min-width: 980px) and (max-height: 760px) {
  #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__text {
    font-size: 30px !important;
    line-height: 1.12 !important;
  }
  html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__text {
    font-size: 30px !important;
    line-height: 1.18 !important;
  }
}

@media (max-width: 979px) {
  #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] {
    width: 100% !important;
    gap: 8px !important;
    row-gap: 8px !important;
  }
  #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__text {
    font-size: clamp(28px, 7vw, 38px) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }
  html[dir="rtl"] #footer.ayamen-footer-canonical .footer-info__menu[data-ayamen-footer-nav="isolated"] .ayamen-footer-nav-link__text {
    line-height: 1.28 !important;
  }
}
