/*
 * Nibble theme - site-chrome.css
 * Header, navigation / dropdown menu, mobile nav trigger, footer.
 * Consolidated from the legacy HubSpot CSS; order of files and rules is the cascade order (functions/assets.php).
 */

@media (max-width: 1023px) {
  .footer .footer__content {
    margin: 0 auto;
  }
}

/* ==========================================================================
   Header (Figma "Header" 512:3992): logo left, nav right, 106px tall, 55px side padding.
   Markup: header.php + Nibble_Walker_Nav_Menu (functions/menu.php).
   .is-dark = page without a dark hero (dark text); .is-fixed = scrolled (white bar), see site.js.
   ========================================================================== */

footer,
header,
nav {
  display: block;
}

nav ol,
nav ul {
  list-style: none outside none;
}

body.menu-open {
  overflow: hidden;
}

.header {
  left: 0;
  position: fixed;
  top: 0;
  transition: background-color .3s, box-shadow .3s;
  width: 100%;
  z-index: 1000;
  padding: inherit;
}

.header.is-fixed {
  background-color: var(--nb-white);
  box-shadow: 0 -1px 8px 0 rgba(129, 148, 166, .5);
}

.header .header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 2.9rem 5.5rem;
}

.header .header__logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.header .header__logo img {
  display: block;
  height: 4.8rem;
  width: auto;
}

/* Nav (desktop) */
.nav > ul {
  align-items: center;
  display: flex;
  gap: 1.6rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav li {
  margin: 0;
  position: relative;
}

.nav > ul > li > a {
  border-radius: 2.4rem;
  color: var(--nb-white);
  display: inline-block;
  font-family: var(--nb-ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  transition: background-color .3s, color .3s;
  white-space: nowrap;
}

.header.is-dark .nav > ul > li > a,
.header.is-fixed .nav > ul > li > a {
  color: var(--nb-p700);
}

.nav > ul > li:hover > a,
.nav > ul > li > a:focus-visible {
  background-color: var(--nb-p0);
  color: var(--nb-p700);
}

.nav .nav__toggle {
  display: none;
}

/* Dropdown cards (depth 1, ACF image + description). Shown on hover or keyboard focus. */
.dropdown {
  background-color: transparent;
  left: -6.8rem;
  min-width: 40rem;
  opacity: 0;
  padding-top: 2.2rem;
  position: absolute;
  top: 100%;
  transition: opacity .2s, visibility .2s;
  visibility: hidden;
}

.nav .has-dropdown:hover > .dropdown,
.nav .has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown .dropdown__inner {
  background-color: var(--nb-white);
  border-radius: var(--nb-radius-m);
  box-shadow: var(--nb-shadow-5);
  padding: 2rem 2.4rem;
}

.dropdown .dropdown__item + .dropdown__item {
  margin-top: .8rem;
}

.dropdown .dropdown__item a {
  border-radius: var(--nb-radius-s);
  display: block;
  min-height: 5.6rem;
  padding: 1.2rem 1.2rem 1.2rem 6rem;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: background-color .3s;
}

.dropdown .dropdown__item a:hover,
.dropdown .dropdown__item a:focus-visible {
  background-color: var(--nb-p0);
}

.dropdown .dropdown__item figure {
  left: 1.2rem;
  margin: 0;
  position: absolute;
  top: 1.2rem;
}

.dropdown .dropdown__title {
  color: var(--nb-n600);
  display: block;
  font-family: var(--nb-ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.5;
}

.dropdown .dropdown__text {
  color: var(--nb-n400);
  display: block;
  font-family: var(--nb-ff-text);
  font-size: var(--nb-fs-small);
  line-height: var(--nb-lh-small);
  margin-top: .4rem;
}

/* Burger (mobile only) */
.nav-trigger {
  background: none;
  border: 0;
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  height: 1.4rem;
  padding: 0;
  position: relative;
  width: 2.2rem;
}

.nav-trigger::before {
  /* larger tap target (44px) without moving the icon */
  content: "";
  inset: -1.5rem -1.1rem;
  position: absolute;
}

.nav-trigger span {
  background-color: var(--nb-white);
  height: .2rem;
  left: 0;
  position: absolute;
  top: 0;
  transition: top .3s, transform .3s, opacity .3s, background-color .3s;
  width: 100%;
}

.nav-trigger span:nth-child(2) {
  top: .6rem;
}

.nav-trigger span:nth-child(3) {
  top: 1.2rem;
}

.header.is-dark .nav-trigger span,
.header.is-fixed .nav-trigger span,
.nav-trigger.is-active span {
  background-color: var(--nb-p500);
}

.nav-trigger.is-active span:first-child {
  top: .6rem;
  transform: rotate(45deg);
}

.nav-trigger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-trigger.is-active span:nth-child(3) {
  top: .6rem;
  transform: rotate(-45deg);
}

/* Mobile menu: full-screen white panel under the logo + burger (which stay on top). */
@media (max-width: 1023px) {
  .header .header__inner {
    padding: 2.9rem 2.4rem;
  }
  .header .header__logo,
  .nav-trigger {
    position: relative;
    z-index: 2;
  }
  .nav-trigger {
    display: inline-block;
  }
  .header .header__nav {
    background-color: var(--nb-white);
    height: 100%;
    left: 0;
    overflow-y: auto;
    padding: 10.6rem 2.4rem 4rem;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform .3s, visibility .3s;
    visibility: hidden;
    width: 100%;
    z-index: 1;
  }
  .header .header__nav.is-active {
    transform: translateX(0);
    visibility: visible;
  }
  body:has(#wpadminbar) .header .header__nav {
    padding-top: 13.8rem;
  }
  .nav > ul {
    align-items: stretch;
    border-top: 1px solid var(--nb-n50);
    flex-direction: column;
    gap: 0;
  }
  .nav > ul > li {
    border-bottom: 1px solid var(--nb-n50);
  }
  .nav > ul > li > a,
  .header.is-dark .nav > ul > li > a,
  .header.is-fixed .nav > ul > li > a {
    border-radius: 0;
    color: var(--nb-p700);
    display: block;
    font-size: 2rem;
    line-height: 1.2;
    padding: 2rem 0;
  }
  .nav > ul > li:hover > a,
  .nav > ul > li > a:focus-visible {
    background-color: transparent;
    color: var(--nb-p500);
  }
  .nav .has-dropdown > a {
    padding-right: 5.6rem;
  }
  .nav .nav__toggle {
    background: none;
    border: 0;
    cursor: pointer;
    display: block;
    height: 6.4rem;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 5.6rem;
  }
  .nav .nav__toggle span {
    border-bottom: 2px solid var(--nb-p500);
    border-right: 2px solid var(--nb-p500);
    height: 1rem;
    left: 50%;
    margin: -.7rem 0 0 -.5rem;
    position: absolute;
    top: 50%;
    transform: rotate(45deg);
    transition: transform .3s;
    width: 1rem;
  }
  .nav .has-dropdown.is-open > .nav__toggle span {
    margin-top: -.2rem;
    transform: rotate(-135deg);
  }
  .dropdown {
    display: none;
    left: auto;
    min-width: 0;
    opacity: 1;
    padding: 0 0 1.6rem;
    position: static;
    transition: none;
    visibility: visible;
  }
  .nav .has-dropdown.is-open > .dropdown {
    display: block;
  }
  .dropdown .dropdown__inner {
    background-color: var(--nb-p0);
    box-shadow: none;
    padding: .8rem;
  }
}

@media (max-width: 767px) {
  .header .header__inner {
    padding: 2.4rem;
  }
  .header .header__logo img {
    height: 3.2rem;
  }
  .header .header__nav {
    padding-top: 8rem;
  }
  body:has(#wpadminbar) .header .header__nav {
    padding-top: 12.6rem;
  }
}

/* Social icon list of the legacy option footer (fallback, see nibble_render_footer()) */
.socials ul {
  list-style-type: none;
}

.socials li {
  display: inline-block;
  margin-right: 1.5rem;
  vertical-align: middle;
}

.socials a {
  transition: opacity .3s;
}

.socials a:hover {
  opacity: .7;
}

.socials li:last-child {
  margin-right: 0;
}

/* ==========================================================================
   Legacy footer: markup stored in the main-site option `nibble_footer_html_block`.
   Only used when the `nibble_use_theme_footer` filter returns false (see functions/options.php).
   ========================================================================== */

.footer {
  background-color: #fff;
  padding: 8rem 0;
}

.footer .footer__row {
  display: flex;
  justify-content: space-between;
}

.footer .footer__row {
  align-items: flex-start;
}

.footer .footer__row + .footer__row {
  align-items: center;
  margin-top: 5.4rem;
}

.footer .footer__nav {
  flex: 0 0 56%;
  max-width: 56%;
}

.footer .footer__nav ul {
  list-style-type: none;
}

.footer .footer__nav ul:not(.hs-menu-children-wrapper) {
  display: flex;
  gap: 1.6rem;
  justify-content: flex-start;
}

.footer .footer__nav ul:not(.hs-menu-children-wrapper) > li {
  flex: 0 0 22.4rem;
  max-width: 22.4rem;
}

.footer .footer__nav .hs-menu-depth-1 ul {
  margin-top: 1.6rem;
}

.footer .footer__nav .hs-menu-depth-1 > a {
  color: #000;
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 2rem;
  text-decoration: none;
}

.footer .footer__nav .hs-menu-depth-2 {
  margin-bottom: 0;
}

.footer .footer__nav .hs-menu-depth-2 a {
  color: #263344;
  font-family: var(--ff-inter);
  font-size: 1.6rem;
  line-height: 3.2rem;
  text-decoration: none;
}

.footer .footer__nav .hs-menu-depth-2 a:hover {
  text-decoration: underline;
}

.footer .footer__content {
  display: flex;
}

.footer .footer__link {
  color: #263344;
  display: inline-block;
  font-family: var(--ff-inter);
  font-size: 1.4rem;
  line-height: 3.2rem;
  margin-left: 2.3rem;
  text-decoration: underline;
}

.footer .footer__link:hover {
  text-decoration: none;
}

.footer .footer__aside {
  align-items: center;
  display: flex;
}

.footer .footer__aside > a {
  color: #263344;
  font-family: var(--ff-inter);
  font-size: 1.4rem;
  line-height: 3.2rem;
  text-decoration: none;
}

.footer .footer__aside > a:hover {
  text-decoration: underline;
}

.footer .copyright {
  color: #263344;
  font-family: var(--ff-inter);
  font-size: 1.4rem;
  line-height: 3.2rem;
  margin-bottom: 0;
}

.footer .socials {
  margin-left: 6.6rem;
}

.footer .btn {
  --border-radius: 11px;
  font-size: 1.6rem;
  gap: .8rem;
  letter-spacing: .02em;
  line-height: 1.5;
  padding: .6rem 1.4rem;
}

.footer .btn figure {
  align-items: center;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  margin-left: 0;
  width: 2rem;
}

@media (max-width: 1023px) {
  .footer .footer__nav {
    flex: 0 0 65%;
    max-width: 65%;
  }
  .footer .footer__nav ul:not(.hs-menu-children-wrapper) > li {
    flex: 1 1 0;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 4rem 0;
  }
  .footer .footer__row {
    flex-direction: column;
  }
  .footer .footer__nav {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .footer .footer__aside {
    margin-top: 2.4rem;
    justify-content: space-between;
    margin-bottom: 3.3rem;
    width: 100%;
  }
  .footer .socials {
    margin-left: 0;
  }
  .footer .footer__nav ul:not(.hs-menu-children-wrapper) {
    flex-direction: column;
    gap: 0;
  }
  .footer .footer__nav ul:not(.hs-menu-children-wrapper) > li {
    margin-bottom: 1.6rem;
  }
  .footer .footer__nav .hs-menu-depth-1 > a {
    font-size: 1.8rem;
  }
  .footer .footer__nav .hs-menu-depth-1 ul {
    margin-top: 2.1rem;
  }
  .footer .footer__nav .hs-menu-depth-2 {
    margin-bottom: 1.5rem;
  }
  .footer .footer__row + .footer__row {
    align-items: flex-start;
    flex-direction: column-reverse;
    margin-top: .6rem;
  }
  .footer .footer__content {
    flex-direction: column;
    width: 100%;
  }
  .footer .footer__link {
    margin-left: 0;
    margin-top: 1.3rem;
  }
  .footer .btn figure {
    margin-left: .8rem;
    vertical-align: middle;
  }
}

.footer__right {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 4rem;
}

.footer__iso {
  margin: 0;
}

.footer__iso img {
  height: auto;
  max-width: 180px;
}

@media (max-width: 1024px) {
  .footer__right {
    align-items: center;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .footer__right {
    align-items: flex-start;
  }
  .footer__actions .btn.btn--small {
    display: inline-block;
    text-align: center;
    width: 100%;
  }
  .footer__actions:has(.btn) {
    width: 100%;
  }
}

body:has(#wpadminbar) #wrapper header {
  padding-top: 32px;
}

/* ==========================================================================
   Theme footer v2 (Figma "Footer" 512:4444), template-parts/footer.php.
   Top row: menu columns (704px) | ISO logos (180px) | Request a Call (.nb-btn--s).
   Bottom row: copyright + Privacy Policy | email + socials.
   ========================================================================== */

.site-footer {
  background-color: var(--nb-white);
  color: var(--nb-n600);
  padding: 8rem 0;
}

.site-footer__row {
  align-items: flex-start;
  display: flex;
  gap: 4rem;
  justify-content: space-between;
}

.site-footer__row--top {
  gap: 4rem 1.9rem; /* Figma 512:4444: nav 704 + 19 + ISO 180 + 19 + button 170 = 1092 */
}

.site-footer__row--bottom {
  align-items: center;
  margin-top: 5.4rem;
}

.site-footer__nav {
  flex: 0 1 70.4rem;
  min-width: 0;
}

.site-footer__cols {
  display: flex;
  gap: 1.6rem;
}

.site-footer__col {
  display: flex;
  flex: 0 1 22.4rem;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 0;
}

.site-footer__title {
  color: var(--black);
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 2rem;
  margin: 0;
}

.site-footer__title a {
  color: inherit;
  text-decoration: none;
}

.site-footer__links,
.site-footer__socials {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin: 0;
}

.site-footer__links a,
.site-footer__copyright,
.site-footer__privacy,
.site-footer__email {
  color: var(--nb-n600);
  font-family: var(--nb-ff-text);
  font-feature-settings: "cv03" 1, "cv04" 1;
  font-weight: 400;
  line-height: 3.2rem;
}

.site-footer__links a {
  font-size: var(--nb-fs-body);
  text-decoration: none;
}

.site-footer__iso {
  flex: 0 0 18rem;
  margin: 0;
}

.site-footer__iso img {
  display: block;
  height: auto;
  width: 18rem;
}

.site-footer__actions {
  flex: 0 0 auto;
}

.site-footer__legal,
.site-footer__aside {
  align-items: center;
  display: flex;
}

.site-footer__legal {
  gap: 2.3rem;
}

.site-footer__aside {
  gap: 6.6rem;
}

.site-footer__copyright,
.site-footer__privacy,
.site-footer__email {
  font-size: var(--nb-fs-small);
  margin: 0;
}

.site-footer__email {
  text-decoration: none;
}

.site-footer__privacy {
  text-decoration: underline;
}

/* Link to the main-site llms.txt for AI agents: kept in the DOM and readable, but barely visible. */
.site-footer__ai {
  opacity: 0.12;
}

.site-footer__socials {
  align-items: center;
  display: flex;
  gap: 1.8rem;
}

.site-footer__socials li {
  margin: 0;
}

.site-footer__socials a {
  display: block;
  line-height: 0;
  transition: opacity .3s;
}

.site-footer__socials img {
  display: block;
  height: 2.4rem;
  width: auto;
}

@media (hover: hover) {
  .site-footer__links a:hover,
  .site-footer__title a:hover,
  .site-footer__email:hover {
    text-decoration: underline;
  }
  .site-footer__privacy:hover {
    text-decoration: none;
  }
  .site-footer__socials a:hover {
    opacity: .7;
  }
}

@media (max-width: 1023px) {
  .site-footer {
    padding: 7.2rem 0;
  }
  .site-footer__row--top {
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: flex-start;
  }
  .site-footer__nav {
    flex: 0 0 100%;
  }
  .site-footer__col {
    flex: 1 1 0;
  }
  .site-footer__row--bottom {
    flex-wrap: wrap;
    gap: 1.6rem 4rem;
  }
  .site-footer__aside {
    gap: 4rem;
  }
  .site-footer__legal {
    flex-wrap: wrap;
    row-gap: 0;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 5.6rem 0 4rem;
  }
  .site-footer__row--top {
    flex-direction: column;
    gap: 4rem;
  }
  .site-footer__nav {
    flex: 0 0 auto;
    width: 100%;
  }
  .site-footer__cols {
    flex-direction: column;
    gap: 3.2rem;
  }
  .site-footer__col {
    flex: 0 0 auto;
    gap: 1.2rem;
  }
  .site-footer__iso {
    flex: 0 0 auto;
  }
  .site-footer__row--bottom {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 2.4rem;
    margin-top: 4rem;
  }
  .site-footer__aside {
    justify-content: space-between;
    width: 100%;
  }
  .site-footer__legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
}
