@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* Shared header, navigation, mobile menu and footer, based on the homepage. */
:root {
  --header-height: 78px;
  --header: 78px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid rgba(217, 225, 228, .94);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
}

.site-header .container,
.footer > .container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 100%;
}

.header-inner > .logo {
  justify-self: start;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.logo-mark {
  position: relative;
  flex: none;
  width: 39px;
  height: 39px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: none;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  border: 1.6px solid #fff;
  border-radius: 50%;
}

.logo-mark::before {
  inset: 7px 5px;
  transform: rotate(34deg);
}

.logo-mark::after {
  inset: 5px 7px;
  transform: rotate(-34deg);
}

.logo-mark i {
  position: absolute;
  left: 16.5px;
  top: 16.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.logo-copy strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.logo-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(19px, 1.65vw, 28px);
}

.desktop-nav > a {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-height);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  transition: right .2s ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after,
.desktop-nav > a[aria-current="page"]::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
}

.site-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-header .btn-primary {
  border: 0;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 108, 123, .14);
}

.site-header .btn-outline {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.header-actions > .btn-outline {
  display: none;
}

.header-actions > .btn-primary {
  display: inline-flex;
}

.header-actions #openSearch {
  display: grid;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.site-header .icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.site-header .icon-btn svg {
  width: 18px;
  height: 18px;
}

.header-actions #openSearch:hover {
  border-color: transparent;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
}

.mobile-panel {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1300;
  width: min(380px, 90vw);
  height: 100dvh;
  padding: 22px;
  overflow: auto;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(102%);
  background: #fff;
  box-shadow: -20px 0 60px rgba(23, 36, 51, .18);
  transition: transform .28s ease, visibility .28s;
}

.mobile-panel.open {
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.mobile-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.mobile-close svg {
  width: 18px;
  height: 18px;
}

.mobile-nav {
  padding-top: 16px;
}

.mobile-nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

.mobile-nav a[aria-current="page"] {
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.mobile-panel > .btn {
  width: 100%;
  margin-top: 20px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  background: rgba(23, 36, 51, .54);
  transition: opacity .23s ease, visibility .23s;
}

.mobile-overlay.open {
  visibility: visible;
  opacity: 1;
}

.footer {
  margin-top: 0;
  padding: 62px 0 28px;
  background: #111f2b;
  color: #9cabb5;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, .75fr);
  align-items: start;
  gap: 56px;
  padding: 0 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer .logo-copy strong,
.footer h4 {
  color: #fff;
}

.footer .logo-copy span {
  color: rgba(255, 255, 255, .56);
}

.footer-brand p {
  max-width: 360px;
  margin-top: 16px;
  color: #9cabb5;
  font-size: 12px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.footer-col li,
.footer-col a {
  color: #9cabb5;
  font-size: 12px;
  line-height: 1.55;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 23px;
  border-top: 0;
  color: #7f909b;
  font-size: 10px;
}

.footer-note {
  max-width: 470px;
  text-align: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.footer-social-link {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  color: #d8e5e8;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.footer-social-link:hover {
  border-color: rgba(155, 214, 217, .62);
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social-link:focus-visible {
  outline: 3px solid rgba(155, 214, 217, .28);
  outline-offset: 3px;
}

.footer-social-link .bi {
  display: inline-block;
  color: inherit;
  font-size: 17px;
  line-height: 1;
}

.footer-social-link[data-network="instagram"] .bi,
.footer-social-link[data-network="whatsapp"] .bi {
  font-size: 18px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1119px) {
  :root {
    --header-height: 72px;
    --header: 72px;
  }

  .desktop-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions > .btn {
    display: none;
  }

  .site-header .container,
  .footer > .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .menu-toggle {
    display: grid;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 52px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 66px;
    --header: 66px;
  }

  .header-inner {
    gap: 12px;
  }

  .site-header .container,
  .footer > .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .logo-mark {
    width: 35px;
    height: 35px;
  }

  .logo-mark i {
    left: 14.5px;
    top: 14.5px;
  }

  .logo-copy strong {
    font-size: 14px;
  }

  .logo-copy span {
    font-size: 7px;
  }

  .header-actions #openSearch,
  .menu-toggle {
    width: 39px;
    height: 39px;
    min-height: 39px;
  }

  .mobile-panel {
    width: min(350px, 92vw);
    padding: 19px;
  }

  .footer {
    padding: 46px 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    font-size: 11px;
  }

  .footer-note {
    max-width: none;
    text-align: left;
  }

  .footer-socials {
    margin-top: 18px;
  }

  .footer-social-link {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 390px) {
  .site-header .container,
  .footer > .container {
    width: min(calc(100% - 26px), var(--container));
  }

  .logo-copy span {
    display: none;
  }
}
