/* ==========================================================================
   Site chrome: the home page header + footer on every inner page and post.
   Markup: templates/home/site-header-bar.php, templates/home/site-footer-bar.php
   (printed by header.php / footer.php). Loaded with assets/css/home/header.css
   and footer.css by inc/scripts.php on pages that do not use home-header.php.
   Everything is scoped to body.aa-site-chrome so page styles are untouched.
   The responsive rules mirror the Seattle copies (seattle.css sections 1/19),
   which in turn mirror assets/css/home/style.css.
   ========================================================================== */

/* Scoped resets (home style.css provides these on the home page). Zero
   specificity so every header.css / footer.css class rule still wins. */
:where(.aa-site-chrome .hero-header__header-section, .aa-site-chrome .full-bleed-section--footer),
:where(.aa-site-chrome .hero-header__header-section, .aa-site-chrome .full-bleed-section--footer) *,
:where(.aa-site-chrome .hero-header__header-section, .aa-site-chrome .full-bleed-section--footer) *::before,
:where(.aa-site-chrome .hero-header__header-section, .aa-site-chrome .full-bleed-section--footer) *::after { box-sizing: border-box; }
:where(.aa-site-chrome .hero-header__header-section) :where(h1, h2, h3, p, ul, li, figure) { margin: 0; padding: 0; }
:where(.aa-site-chrome .hero-header__header-section) :where(button) { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
:where(.aa-site-chrome .hero-header__header-section) :where(a) { color: inherit; }
:where(.aa-site-chrome .hero-header__header-section, .aa-site-chrome .full-bleed-section--footer) :where(img) { max-width: 100%; }
.aa-site-chrome .hero-header__header-section,
.aa-site-chrome .full-bleed-section--footer { font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1A182B; }
.aa-site-chrome .hero-header__header-section a,
.aa-site-chrome .hero-header__header-section a:hover,
.aa-site-chrome .hero-header__header-section a:focus,
.aa-site-chrome .full-bleed-section--footer a:not(.footer__link) { text-decoration: none; }
.aa-site-chrome .hero-header__header-section :is(a, button):focus-visible,
.aa-site-chrome .full-bleed-section--footer a:focus-visible { outline: 3px solid #8B6CFF; outline-offset: 3px; }
.aa-site-chrome .full-bleed-section--footer p,
.aa-site-chrome .full-bleed-section--footer ul,
.aa-site-chrome .full-bleed-section--footer li { font-size: 16px; }

/* The header is position: fixed (the old tta-header was sticky and in flow),
   so this spacer keeps page content where it started. */
.aa-site-chrome-spacer { display: block; height: 64px; }
@media (max-width: 767.98px) { .aa-site-chrome-spacer { height: 76px; } }
.admin-bar.aa-site-chrome .hero-header__header-section { top: 32px; }
@media (max-width: 782px) { .admin-bar.aa-site-chrome .hero-header__header-section { top: 46px; } }
@media (max-width: 767.98px) { .admin-bar.aa-site-chrome .hero-header__header-section { top: 58px; } }
@media (max-width: 600px) { .admin-bar.aa-site-chrome .hero-header__header-section { top: 12px; } }

/* Header: centring + responsive (from home style.css). */.aa-site-chrome .hero-header__header-section { left: 50%; transform: translateX(-50%); }
.aa-site-chrome .site-nav-toggle { display: none; }
@media (max-width: 1439px) {
  .aa-site-chrome .hero-header__header-section { width: calc(100% - 48px); padding-inline: 20px; }
  .aa-site-chrome .hero-header__group { display: flex; width: 100%; justify-content: space-between; column-gap: 20px; }
  .aa-site-chrome .hero-header__navigation-main { flex: 1 1 auto; gap: 0; }
  .aa-site-chrome .hero-header__row-2 { width: auto; }
}
@media (max-width: 1100px) {
  .aa-site-chrome .hero-header__header-section { width: calc(100% - 32px); }
  .aa-site-chrome .hero-header__row-2 { gap: 6px; }
  .aa-site-chrome .hero-header__button, .aa-site-chrome .hero-header__button-2 { padding-inline: 12px; }
}
@media (max-width: 900px) {
  .aa-site-chrome .hero-header__row-2 { display: none; }
  .aa-site-chrome .hero-header__group { position: relative; align-items: center; }
  .aa-site-chrome .hero-header__navigation-main { display: none; position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(20, 12, 72, .18); }
  .aa-site-chrome .hero-header__navigation-main.is-open { display: flex; }
  .aa-site-chrome .hero-header__navigation-list { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
  .aa-site-chrome .hero-header__navigation-list li { width: 100%; }
  .aa-site-chrome .nav-menu { justify-content: space-between; }
  .aa-site-chrome .site-nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid #E3E3E5; border-radius: 20px; background: #fff; color: #1A182B; font: inherit; }
  .aa-site-chrome .site-nav-toggle__icon { display: none; }
}
@media (max-width: 767.98px) {
  .aa-site-chrome .hero-header__header-section { top: 12px; width: calc(100% - 24px); height: auto; min-height: 58px; padding: 9px 12px; border-radius: 18px; }
  .aa-site-chrome .hero-header__group { height: auto; min-height: 40px; }
  .aa-site-chrome .company-logo__image { width: 120px; height: auto; }
  .aa-site-chrome .site-nav-toggle { width: 44px; min-width: 44px; padding: 0; }
  .aa-site-chrome .site-nav-toggle__label { display: none; }
  .aa-site-chrome .site-nav-toggle__icon { display: flex; width: 20px; flex-direction: column; gap: 4px; }
  .aa-site-chrome .site-nav-toggle__icon span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
}

/* Footer: full-width band + responsive (from home style.css). */
.aa-site-chrome .full-bleed-section--footer {
  width: 100%;
  background: linear-gradient(0deg, #1A182B 0%, #1A182B 100%), linear-gradient(180deg, #6E47FF 0%, #3D278C 55%, #150079 100%);
}
.aa-site-chrome .footer { width: min(100%, 1440px); max-width: 100%; margin-inline: auto; }
@media (max-width: 1439px) {
  .aa-site-chrome .footer { height: auto !important; min-height: 0; gap: 32px; }
  .aa-site-chrome .footer__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; height: auto; gap: 32px 24px; }
  .aa-site-chrome .footer__row > [class*="__stack"] { position: static; width: auto; max-width: 100%; height: auto; }
  .aa-site-chrome .footer__list, .aa-site-chrome .footer__list-2, .aa-site-chrome .footer__list-3 { width: 100%; height: auto; }
  .aa-site-chrome .footer__list-3 { min-height: 163px; }
  .aa-site-chrome .footer__list-item-2 { width: 100%; height: auto; min-height: 32px; }
  .aa-site-chrome .footer__text-2 { white-space: normal; }
  .aa-site-chrome .footer__text-3 { width: auto; }
  .aa-site-chrome .footer__row-3 { height: auto; width: 100%; flex-wrap: wrap; gap: 16px; }
  .aa-site-chrome .footer__row-4 { flex-wrap: wrap; gap: 16px; }
  .aa-site-chrome .footer__label-3 { left: 24px; top: auto; bottom: -72px; width: calc(100% - 48px); height: 190px; }
  .aa-site-chrome .footer__title { top: 8px; font-size: clamp(72px, 17vw, 180px); line-height: 1; letter-spacing: -5px; }
}
@media (max-width: 767.98px) {
  .aa-site-chrome .footer { overflow: visible; padding: 56px 20px 24px !important; }
  .aa-site-chrome .footer__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .aa-site-chrome .footer__stack-5 { grid-column: 1 / -1; }
  .aa-site-chrome .footer__list-3 { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 10px; min-height: 0; margin-bottom: 24px; overflow: visible; }
  .aa-site-chrome .footer__text-5 { position: static; width: 100%; flex: 0 0 100%; }
  .aa-site-chrome .footer__list-3 > img { position: static; flex: 0 0 auto; object-fit: contain; }
  .aa-site-chrome .footer__container-inventivai-by { flex: 0 0 100%; }
  .aa-site-chrome .footer__row-3 { align-items: flex-start; }
  .aa-site-chrome .footer__row-4 { gap: 12px; }
  .aa-site-chrome .footer__icon-3 { width: 96px; height: auto; }
  .aa-site-chrome .footer__label { font-size: 12px; }
  .aa-site-chrome .footer__label-2 { white-space: normal; }
  .aa-site-chrome .footer__label-3 { position: static; width: 100%; height: auto; padding: 8px 0 0; overflow: visible; }
  .aa-site-chrome .footer__title { position: static; font-size: clamp(40px, 12vw, 64px); line-height: 1; letter-spacing: -2px; }
}

/* Keep the logo at full size on narrow desktops/tablets; both header buttons
   open the same lead popup, so "Talk with us" steps aside when space is short. */
.aa-site-chrome .company-logo { flex-shrink: 0; }
@media (min-width: 901px) and (max-width: 1180px) {
  .aa-site-chrome .hero-header__button { display: none; }
}
