/* Shared chrome: header, footer, buttons, decorative markers. */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: var(--header-height);
}

.site-header__bar {
  background-image: linear-gradient(180deg, #000000 0%, #f2295b00 52%);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 10px;
}

.site-header .site-logo {
  grid-column: 1;
  justify-self: start;
  padding-top: 10px;
}

.site-logo {
  display: block;
  flex: 0 0 auto;
  width: var(--logo-width);
}

.site-logo img {
  width: var(--logo-width);
  height: auto;
}

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(20px, 2.4vw, 36px);
  margin: 0;
  padding-top: 10px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  color: var(--color-canvas);
  padding: 5px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-canvas);
  background-color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  border-radius: 0;
  text-align: center;
}

.site-header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.2vw, 14px);
  padding-top: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.lang-switch__btn--flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  height: 28px;
  margin: 0;
  padding: 2px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.82;
}

.lang-switch__btn--flag.is-active,
.lang-switch__btn--flag[aria-pressed="true"] {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.lang-switch__btn--flag:hover {
  opacity: 1;
}

.lang-switch__btn--flag:focus-visible {
  opacity: 1;
  outline: 2px solid var(--color-canvas);
  outline-offset: 2px;
}

.lang-switch__flag {
  display: block;
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 1px;
  pointer-events: none;
}

.btn-contact {
  grid-column: unset;
  justify-self: unset;
  box-sizing: border-box;
  min-height: 44px;
  max-height: 48px;
  min-width: 170px;
  max-width: 190px;
  width: max-content;
  padding: 0 22px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-contact:hover,
.btn-contact:focus-visible {
  background: #2168a6;
}

.btn-dark {
  width: 100%;
  padding: 18px 0;
  background: var(--color-accent);
  color: var(--color-canvas);
  font-size: 20px;
  font-weight: 500;
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: #2c1d16;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-accent);
  background: transparent;
}

.btn-text:hover,
.btn-text:focus-visible {
  color: var(--color-primary);
}

.btn-text svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-text-light {
  color: var(--color-muted);
}

.btn-text-light:hover,
.btn-text-light:focus-visible {
  color: var(--color-canvas);
}

.menu-toggle {
  display: none;
  grid-column: unset;
  justify-self: unset;
  width: 44px;
  height: 44px;
  margin: 0;
  color: var(--color-canvas);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: auto;
  background: currentColor;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-drawer[hidden] {
  display: none !important;
}

.site-footer {
  background: var(--color-black);
  color: var(--color-canvas);
  padding: 20px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--container));
  margin-inline: auto;
}

.site-footer p,
.site-footer__legal {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-canvas);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.site-footer__legal span {
  color: var(--color-canvas);
}

.site-footer__credit {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-canvas);
}

.site-footer__credit a {
  color: var(--color-canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  color: #ffffff;
}

.whatsapp-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px) + 16px);
  bottom: max(22px, env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe57;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.whatsapp-float__icon {
  display: block;
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: max(18px, env(safe-area-inset-right, 0px) + 12px);
    bottom: max(18px, env(safe-area-inset-bottom, 0px) + 12px);
  }

  .whatsapp-float__icon {
    width: 26px;
    height: 26px;
  }
}

.marker {
  display: inline-block;
  width: 23px;
  height: 23px;
  margin-right: 10px;
  background: var(--color-marker);
  flex: 0 0 auto;
}

.marker-sm {
  width: 15px;
  height: 15px;
}

.marker-slate {
  background: var(--color-marker-alt);
}

.marker-accent {
  background: var(--color-accent);
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .site-nav {
    gap: clamp(16px, 1.8vw, 28px);
  }

  .site-nav a {
    font-size: 14px;
  }

  .btn-contact {
    min-width: 168px;
    padding-inline: 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .site-header__actions {
    gap: 8px;
  }

  .lang-switch {
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-header .site-logo {
    grid-column: 1;
  }

  .site-nav,
  .site-header__actions .btn-contact {
    display: none;
  }

  .site-header__actions {
    grid-column: 2;
    padding-top: 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-drawer.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: var(--color-white);
    padding: 24px 0;
    overflow: auto;
    transform: translateX(24px);
    transition: transform 0.25s ease;
  }

  .nav-drawer.is-open .nav-drawer__panel {
    transform: none;
  }

  .nav-drawer__close {
    display: block;
    margin: 0 16px 16px auto;
    width: 40px;
    height: 40px;
    color: var(--color-menu-mobile);
    font-size: 28px;
    line-height: 1;
  }

  .nav-drawer__close:hover {
    color: #bbbbbb;
  }

  .nav-drawer__links {
    display: flex;
    flex-direction: column;
  }

  .nav-drawer__links a {
    display: block;
    padding: 8px 32px;
    color: var(--color-menu-mobile);
    font-size: 15px;
    font-weight: 600;
  }

  .nav-drawer__links a:hover,
  .nav-drawer__links a[aria-current="page"] {
    color: var(--color-menu-hover);
  }
}

@media (max-width: 767px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .site-logo {
    align-self: flex-end;
  }
}

.contact-form__field-error {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #7b474c;
}

.contact-form__status a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.contact-form__status a:hover,
.contact-form__status a:focus-visible {
  color: var(--color-secondary);
}

/* Client logo carousel — shared by Home and Projetos e Serviços */
.clients__carousel {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
}

.clients__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  transition: transform 4s ease;
}

.clients__track.is-instant {
  transition: none;
}

.clients__item {
  flex: 0 0 calc((100% - 128px) / 5);
  min-width: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clients__item img {
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
