/* Iglu - estilos */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #141A1F;
  --color-text: #FFFFFF;
  --color-line: rgba(99, 107, 116, 0.2);
  --color-hover: rgba(37, 49, 59, 0.6);
  --color-tooltip: #636B74;
  --color-tooltip-fab: rgba(97, 97, 97, 0.92);
  --color-whatsapp: #25D366;

  --font-base: 'Montserrat', sans-serif;

  --radius-video: 12px;
  --video-ratio: 42.857%; /* 21:9 */
  --client-logo-height: 50px;
  --client-logo-gap: 120px;
  --client-logo-opacity: 0.2;
}

@media (max-width: 768px) {
  :root {
    --video-ratio: 56.25%; /* 16:9 */
    --client-logo-height: 30px;
    --client-logo-gap: 50px;
  }
}


/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}


/* Divider */

.divider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.divider > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.divider::before,
.divider::after {
  content: "";
  flex: 0 1 50%;
  height: 1px;
  background: var(--color-line);
}

.divider--end::before { flex-basis: 99.999%; }
.divider--end::after  { flex-basis: 0.001%; }


/* Tooltips: data-tooltip="..." */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
  display: none;
  position: absolute;
  left: 50%;
  z-index: 1500;
  pointer-events: none;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--color-tooltip);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  box-shadow: 0 1px 2px 0 rgba(21, 21, 21, 0.08),
              0 2px 4px 0 rgba(21, 21, 21, 0.08);
}

[data-tooltip]::before {
  content: "";
  top: calc(100% + 4.5px);
  transform: translateX(-50%);
  border: 5.66px solid transparent;
  border-top: 0;
  border-bottom-color: var(--color-tooltip);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  display: block;
  animation: tooltip-delay 100ms;
}

@keyframes tooltip-delay {
  from, to { opacity: 0; }
}

[data-tooltip-variant="fab"]::after {
  top: calc(100% + 14px);
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--color-tooltip-fab);
  font-size: 11px;
  line-height: 14px;
  box-shadow: none;
  transform-origin: top center;
}

[data-tooltip-variant="fab"]::before {
  top: calc(100% + 8.5px);
  border-width: 5.5px;
  border-top: 0;
  border-bottom-color: var(--color-tooltip-fab);
}

[data-tooltip-variant="fab"]:hover::before {
  animation: tooltip-fade 200ms ease 100ms both;
}

[data-tooltip-variant="fab"]:hover::after {
  animation: tooltip-grow 200ms ease 100ms both;
}

@keyframes tooltip-fade {
  from { opacity: 0; }
}

@keyframes tooltip-grow {
  from { opacity: 0; transform: translateX(-50%) scale(0.75); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}


/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 10px 0;
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
  width: 100px;
  height: 120px;
  padding: 24.6px 0 0 39px;
}

.site-header__logo img {
  width: 62px;
  height: auto;
}

.site-header__tagline {
  flex-grow: 1;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.00938em;
}


/* Redes */

.social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.social__link {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: -5px;
}

.social__link:hover {
  background-color: var(--color-hover);
}

.social__link img {
  width: 25px;
  height: 25px;
}


/* Video */

.reel {
  position: relative;
  height: 0;
  padding-top: var(--video-ratio);
  margin: 0 3px;
  overflow: hidden;
  border-radius: var(--radius-video);
}

.reel__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Clientes */

.clients {
  padding: 20px;
  margin-bottom: 15px;
  text-align: center;
}

.clients .divider span {
  font-size: 13px;
  line-height: 1.6;
}

.marquee {
  overflow: hidden;
  padding-block: 40px;
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
}

.marquee__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: calc(var(--client-logo-height) + 4px);
  padding-inline-end: var(--client-logo-gap);
}

.marquee__item::before,
.marquee__item::after {
  left: calc(50% - var(--client-logo-gap) / 2);
}

.marquee__item img {
  width: auto;
  height: var(--client-logo-height);
  opacity: var(--client-logo-opacity);
}

.marquee:not(.is-animated) .marquee__track {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 30px;
  width: auto;
}

.marquee.is-animated .marquee__track {
  animation: marquee-scroll var(--marquee-duration, 60s) linear infinite;
}

.marquee.is-offscreen .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-distance, 50%))); }
}


/* Footer */

.site-footer {
  padding: 20px 0;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.site-footer__col {
  width: 100%;
  padding: 0 15px;
}

.site-footer__col:first-child {
  min-height: 120px;
}

.site-footer__logo {
  display: inline-block;
  width: 100px;
  padding: 7px 0 0 19px;
}

.site-footer__logo img {
  width: 62px;
  height: auto;
}

.site-footer__info {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__info p {
  padding-top: 0.5rem;
}

.site-footer__social {
  padding-top: 1rem;
}

.site-footer__bottom {
  padding: 0 15px;
}

@media (max-width: 767px) {
  .site-footer__col {
    text-align: center;
  }

  .site-footer__logo {
    padding-top: 12px;
  }

  .site-footer__social {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .site-footer__col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .site-footer__col {
    padding-inline: 1px;
    margin-left: 25px;
    margin-right: 20px;
  }

  .site-footer__logo {
    padding-top: 4px;
  }

  .site-footer__social .social__link {
    margin-right: -10px;
  }

  .site-footer__bottom {
    padding-inline: 1px;
    margin: 35px 0 0 25px;
  }
}


/* WhatsApp */

.whatsapp-fab {
  position: fixed;
  right: 28px;
  bottom: 58px;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  color: var(--color-text);
  box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2),
              0 6px 10px 0 rgba(0, 0, 0, 0.14),
              0 1px 18px 0 rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-fab:active {
  box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2),
              0 12px 17px 2px rgba(0, 0, 0, 0.14),
              0 5px 22px 4px rgba(0, 0, 0, 0.12);
}

.whatsapp-fab svg {
  width: 2.2rem;
  height: 2.2rem;
}
