* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  overflow-x: hidden;
}

main {
  width: 100%;
}


/* =====================================================
   BARRA SUPERIOR DESKTOP
   ===================================================== */

.desktop-header {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 42px;

  z-index: 1000;

  background: rgba(255, 255, 255, 0.14);

  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 260ms ease, color 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
}

.company-profile-page .desktop-header[data-scrolled="true"] {
  position: fixed;
  color: #171717;
  background: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.company-profile-page .desktop-header[data-scrolled="true"] .desktop-brand,
.company-profile-page .desktop-header[data-scrolled="true"] .desktop-nav a {
  color: #171717;
}

.company-profile-page .desktop-header[data-scrolled="true"] .brand-logo {
  filter: none;
  mix-blend-mode: multiply;
}

.desktop-header .desktop-brand--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(6.25rem, 7vw, 8.25rem);
  height: 100%;
  min-height: 0;
  margin: 0;
  padding-block: 0;
  overflow: hidden;
  line-height: 0;
  position: static;
}

.desktop-header .desktop-brand--logo .brand-logo {
  display: block;
  width: 145%;
  max-width: none;
  height: auto;
  filter: none;
  mix-blend-mode: multiply;
  margin: 0;
  transform: none;
  position: static;
}


/* LOGO */

.desktop-brand {
  display: inline-block;

  color: #111;
  text-decoration: none;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.22em;

  white-space: nowrap;

  transition: opacity 0.25s ease;
}

.desktop-brand:hover {
  opacity: 0.5;
}


/* NAVEGAÇÃO */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;

  color: #111;
  text-decoration: none;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 9px;
  font-weight: 400;

  letter-spacing: 0.12em;

  white-space: nowrap;

  transition:
    opacity 0.25s ease,
    color 0.25s ease;
}

.desktop-nav a:hover {
  opacity: 0.5;
}


/* PÁGINA ATUAL */

.desktop-nav a.active {
  font-weight: 600;
}

.desktop-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 100%;
  height: 1px;

  background: #111;

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}


/* =====================================================
   PÁGINAS
   ===================================================== */

.page {
  position: relative;

  width: 100%;

  line-height: 0;
}

.page picture {
  display: block;
}

.page img {
  display: block;

  width: 100%;
  height: auto;
  aspect-ratio: auto 16 / 9;

  margin: 0;
  padding: 0;
}

[id^="portfolio-projeto-"],
#portfolio {
  scroll-margin-top: 74px;
}

.portfolio-project-link {
  display: block;
  cursor: pointer;
}

.portfolio-project-link:focus-visible {
  outline: 1px solid rgba(17, 21, 19, 0.72);
  outline-offset: -8px;
}


/* =====================================================
   SUMÁRIO FLUTUANTE DAS SEÇÕES
   ===================================================== */

.company-profile-sections-nav {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 900;

  width: min(calc(100vw - 40px), 1500px);
  padding: 6px;

  overflow: hidden;

  background: rgba(244, 245, 242, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(7, 12, 11, 0.14);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);

  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.company-profile-sections-nav.is-ready {
  opacity: 1;
  visibility: visible;
}

.company-profile-sections-nav.is-content-obstructed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

.company-profile-sections-nav__track {
  display: flex;
  align-items: center;
  gap: 4px;

  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
}

.company-profile-sections-nav__track::-webkit-scrollbar {
  display: none;
}

.company-profile-sections-nav__link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 clamp(12px, 1vw, 18px);

  color: rgba(20, 24, 23, 0.68);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;

  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(9px, 0.64vw, 11px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;

  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.company-profile-sections-nav__link:hover,
.company-profile-sections-nav__link:focus-visible {
  color: #111513;
  background: rgba(255, 255, 255, 0.34);
}

.company-profile-sections-nav__link:focus-visible {
  outline: 1px solid rgba(17, 21, 19, 0.62);
  outline-offset: -2px;
}

.company-profile-sections-nav__link.is-active {
  color: #101412;
  background: rgba(255, 255, 255, 0.58);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .company-profile-sections-nav {
    background: rgba(234, 236, 232, 0.9);
  }
}


/* =====================================================
   PÁGINA 37 — PROPOSTA
   ===================================================== */

.page-37 {
  position: relative;

  width: 100%;

  line-height: 0;
}

.proposal-link {
  position: absolute;

  left: 44.3%;
  top: 61.7%;

  width: 34%;
  height: 3%;

  z-index: 10;

  cursor: pointer;
}


/* =====================================================
   PÁGINA 41 — CONTATO
   ===================================================== */

.page-41 {
  position: relative;

  width: 100%;

  line-height: 0;
}


/* E-MAIL */

.email-link {
  position: absolute;

  left: 35.4%;
  top: 85.2%;

  width: 18%;
  height: 3.5%;

  z-index: 10;

  cursor: pointer;
}


/* WHATSAPP */

.whatsapp-link {
  position: absolute;

  left: 35.4%;
  top: 89.2%;

  width: 12%;
  height: 3.5%;

  z-index: 10;

  cursor: pointer;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 768px) {

  /*
    O HTML desktop redireciona automaticamente
    para ./mobile/.

    Esta regra serve apenas como segurança.
  */

  .desktop-header {
    display: none;
  }

  .company-profile-sections-nav {
    display: none;
  }

  .page img {
    width: 100%;
    height: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .company-profile-sections-nav__link {
    transition: none;
  }
}

.copyright-footer {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:64px;
  padding:18px 5vw;
  color:rgba(244,242,237,.58);
  background:#171a19;
  font:10px/1.4 Arial,Helvetica,sans-serif;
  letter-spacing:.12em;
  text-align:center;
  text-transform:uppercase;
}
