.menu-toggle-btn,
.drawer-overlay {
  display: none;
}

.nav-drawer {
  display: contents;
}

@media (max-width: 980px) {
  .site-header {
    height: 96px;
    padding: 0 18px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
    z-index: 10050;
  }

  .brand {
    position: relative;
    z-index: 10002;
    gap: 12px;
  }

  .brand-logo {
    width: 54px;
  }

  .brand-text,
  .brand-sub {
    font-size: 17px;
  }

  .menu-toggle-btn {
    position: relative;
    z-index: 10002;
    width: 54px;
    height: 54px;
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
  }

  .menu-toggle-btn span {
    width: 38px;
    height: 6px;
    border-radius: 999px;
    background: #dce3e3;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  body.drawer-open .menu-toggle-btn span:nth-child(1) {
    transform: translateY(14px) rotate(45deg);
  }

  body.drawer-open .menu-toggle-btn span:nth-child(2) {
    opacity: 0;
  }

  body.drawer-open .menu-toggle-btn span:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
  }

  .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 10000;
  }

  .nav-drawer {
    position: fixed;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: min(92vw, 520px);
    background: #dce3e3;
    border-radius: 34px;
    padding: 24px 22px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    box-shadow: -8px 14px 40px rgba(0, 0, 0, 0.22);
    transform: translateX(calc(100% + 28px));
    transition: transform 0.28s ease;
    z-index: 10001;
    overflow: hidden;
  }

  .nav-drawer::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background-image: url("images/marca/circular v2.svg"); */
    background-repeat: no-repeat;
    background-position: center 62%;
    background-size: 72%;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
  }

  .nav-drawer > * {
    position: relative;
    z-index: 1;
  }

  body.drawer-open {
    overflow: hidden;
  }

  body.drawer-open .site-header {
    z-index: 20000;
  }

  body.drawer-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.drawer-open .nav-drawer {
    transform: translateX(0);
  }

  .nav-drawer .menu {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .nav-drawer .menu a {
    color: #1d7479;
    font-family: "Raleway", sans-serif;
    font-size: clamp(34px, 8vw, 46px);
    font-weight: 400;
    line-height: 1;
    border-radius: 999px;
    padding: 18px 22px;
    background: transparent;
    transition: font-weight 0.2s ease;
  }

  .nav-drawer .menu a:hover {
    background: transparent;
    font-weight: 400;
  }

  .nav-drawer .menu a.current {
    font-weight: 500;
    color: #2f4f4f;
    background: transparent;
  }

  .nav-drawer .socials {
    order: 2;
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: left;
    gap: 10px;
  }

  .nav-drawer .social-btn {
    width: 66px;
    height: 66px;
    background: transparent;
  }

  .nav-drawer .social-btn img {
    width: 44px;
    height: 44px;
    filter: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 88px;
    padding: 0 14px;
  }

  .brand {
    z-index: 10000;
  }

  .brand-logo {
    width: 34px;
  }

  .brand-text,
  .brand-sub {
    font-size: 13px;
  }

  .menu-toggle-btn {
    z-index: 10003;
    width: 40px;
    height: 40px;
    gap: 5px;
  }

  .menu-toggle-btn span {
    width: 26px;
    height: 4px;
  }

  body.drawer-open .menu-toggle-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  body.drawer-open .menu-toggle-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-drawer {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    border-radius: 28px;
    padding: 30px 20px 24px 20px;
  }

  .nav-drawer .menu a {
    font-size: clamp(24px, 7.1vw, 34px);
    padding: 14px 23px 0px 23px;
  }

  .nav-drawer .social-btn {
    width: 40px;
    height: 40px;
  }

  .nav-drawer .social-btn img {
    width: 38px;
    height: 38px;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 76px 16px 30px;
    margin-top: -20px;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  }

  .site-footer > .footer-main {
    order: 1;
    margin: 0 auto 20px;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .site-footer > .footer-locations {
    order: 3;
    margin: 0 auto 20px;
    max-width: 92%;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
    text-align: center;
  }

  .site-footer > .footer-locations + .footer-divider {
    order: 2;
    margin: 0 auto 20px;
    width: 92%;
    max-width: none;
  }

  .site-footer > .footer-main + .footer-divider {
    order: 4;
    margin: 0 auto 20px;
    width: 92%;
    max-width: none;
  }

  .site-footer > .footer-socials {
    order: 5;
    margin: 0 auto 18px;
    gap: 14px;
  }

  .site-footer > .footer-legal {
    order: 6;
    font-size: 12px;
    text-align: center;
  }

  .site-footer .footer-brand {
    justify-content: center;
    gap: 8px;
  }

  .site-footer .footer-brand .brand-logo,
  .site-footer .footer-nav {
    display: none;
  }

  .site-footer .footer-brand-via,
  .site-footer .footer-brand-sub {
    font-size: 17px;
    line-height: 1;
  }

  .site-footer .footer-brand-via {
    font-weight: 700;
  }

  .site-footer .footer-brand-sub {
    font-style: italic;
    font-weight: 400;
  }

  .site-footer .footer-social-btn {
    width: 44px;
    height: 44px;
  }

  .site-footer .footer-social-btn img {
    width: 44px;
    height: 44px;
  }

  .site-footer .footer-to-top {
    top: 16px;
    right: 16px;
    width: 58px;
    height: 54px;
  }
}
