:root {
  --header-height: 82px;
  --header: #ffffff;
  --header-text: var(--navy-900);
  --shadow-header: 0 12px 28px rgba(0, 27, 51, .10);
  --chrome-line: rgba(1, 45, 84, .20);
  --chrome-line-strong: rgba(1, 45, 84, .42);
  --chrome-line-inverse: rgba(255, 255, 255, .22);
  --whatsapp-green: #25d366;
}

body.menu-open {
  overflow: hidden;
}

.shell {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-height);
  color: var(--header-text);
  background: var(--header);
  border-bottom: 1px solid var(--chrome-line);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  backdrop-filter: none;
  transition: box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--chrome-line-strong);
  box-shadow: var(--shadow-header);
}

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

.brand {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .2s var(--ease);
}

.brand:hover {
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.brand:focus-visible {
  box-shadow: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 40px);
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--header-text);
  font-size: 13px;
  font-weight: 750;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  background: var(--green-500);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .26s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--header-text);
  font-size: 13px;
  font-weight: 800;
}

.phone-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--green-500);
  stroke-width: 1.8;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--header-text);
  background: transparent;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  margin: 0;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

.menu-toggle span:nth-child(3) {
  top: 31px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.noscript-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  color: var(--white);
  background: var(--navy-900);
}

.site-footer {
  color: rgba(255, 255, 255, .64);
  background: var(--navy-950);
  border-top: 1px solid var(--chrome-line-inverse);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 110px);
  padding-block: 72px;
}

.footer-brand {
  max-width: 430px;
}

.footer-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: var(--white);
}

.footer-brand p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .64);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 8px;
  color: var(--green-300);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.footer-links a,
.footer-links span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--green-300);
}

.footer-contact-link {
  gap: 9px;
}

.footer-contact-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: rgba(255, 255, 255, .58);
  transition: color .2s var(--ease);
}

.footer-contact-icon--whatsapp {
  fill: currentColor;
}

.footer-contact-icon--instagram {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.footer-contact-icon--instagram .footer-contact-icon-dot {
  fill: currentColor;
  stroke: none;
}

.footer-contact-link:hover .footer-contact-icon,
.footer-contact-link:focus-visible .footer-contact-icon {
  color: rgba(255, 255, 255, .88);
}

.footer-bottom {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--chrome-line-inverse);
  font-size: 12px;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.to-top {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floating-contact {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 68;
  display: grid;
  gap: 6px;
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  transform: translateY(-50%);
}

.floating-contact-link {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 8px 22px rgba(0, 27, 51, .18);
  transition: background-color .24s var(--ease), border-color .24s var(--ease), transform .24s var(--ease);
}

.floating-contact-link span,
.mobile-contact a span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.floating-contact-link svg {
  width: 24px;
  height: 24px;
}

.contact-icon--whatsapp {
  fill: currentColor;
  stroke: none;
}

.contact-icon--phone {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.contact-icon--mail {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.floating-contact-link--whatsapp {
  color: var(--white);
  background: var(--whatsapp-green);
}

.floating-contact-link--phone,
.floating-contact-link--request {
  color: var(--white);
  background: var(--navy-900);
}

.floating-contact-link:hover,
.floating-contact-link:focus-visible {
  border-color: rgba(255, 255, 255, .42);
  transform: translateX(-4px);
}

.mobile-contact {
  display: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  :root {
    --header-height: 76px;
  }

  .brand {
    width: 72px;
    height: 72px;
  }

  .shell {
    width: min(1320px, calc(100% - 48px));
  }

  .header-inner {
    gap: 24px;
  }

  .site-nav {
    gap: 22px;
  }

  .phone-link span {
    display: none;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    grid-column: 3;
    display: block;
  }

  .header-actions {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: auto;
    left: 0;
    height: auto;
    max-height: calc(100dvh - var(--header-height));
    z-index: 79;
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    padding: 10px max(24px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    overflow-y: auto;
    color: var(--header-text);
    background: #ffffff;
    border: 0;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    visibility: hidden;
    transition:
      opacity .22s var(--ease),
      transform .22s var(--ease),
      visibility 0s linear .22s;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav a {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    border: 0;
    font-size: 16px;
    text-align: center;
  }

  .site-nav a::after {
    top: auto;
    right: auto;
    bottom: 8px;
    left: 50%;
    width: 52px;
    height: 3px;
    content: "";
    transform: translateX(-50%) scaleX(0);
    transform-origin: left;
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after,
  .site-nav a:active::after,
  .site-nav a[aria-current="true"]::after {
    transform: translateX(-50%) scaleX(1);
    transform-origin: left;
  }

  .menu-open .mobile-contact {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  body {
    padding-bottom: 0;
  }

  .floating-contact {
    display: none;
  }

  .mobile-contact {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: auto;
    z-index: 70;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    color: var(--white);
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }

  .mobile-contact a {
    width: 48px;
    min-height: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    color: var(--white);
    background: var(--navy-950);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 27, 51, .28);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-contact .mobile-contact-link--whatsapp {
    color: var(--white);
    background: var(--whatsapp-green);
    border-color: rgba(0, 27, 51, .08);
  }

  .mobile-contact .mobile-contact-link--request {
    color: var(--white);
    background: var(--navy-950);
    border-left: 1px solid rgba(255, 255, 255, .18);
  }

  .mobile-contact a:focus-visible {
    outline: 3px solid var(--green-300);
    outline-offset: 3px;
  }

  .mobile-contact svg {
    width: 20px;
    height: 20px;
  }

  .mobile-contact .contact-icon--phone {
    stroke-width: 1.55;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 70px;
  }

  .shell {
    width: min(100% - 30px, 1320px);
  }

  .brand {
    width: 66px;
    height: 66px;
    padding: 0;
  }

  .brand-logo {
    width: 100%;
    height: 100%;
  }

  .footer-main,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .site-footer {
    font-size: 16px;
  }

  .site-header {
    font-size: 16px;
  }

  .floating-contact {
    font-size: 16px;
  }

  .footer-main {
    gap: 48px;
    padding-block: 58px;
  }

  .footer-links {
    gap: 32px;
  }

  .footer-bottom {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 26px;
  }

  .footer-bottom nav {
    justify-content: flex-start;
    gap: 16px;
  }

}
