:root {
  --bg: #E8D8C3;
  --logo: #B40404;
  --secondary: #8C3B2E;
  --accent: #6B7D5C;
  --text: #3B2F2F;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background-color: var(--text);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  a {
    transition: opacity 0.2s ease;
  }

  a:hover {
    opacity: 0.85;
  }
}

.container {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

/* Announcement bar */
.announcement {
  background-color: var(--logo);
  color: var(--white);
  overflow: hidden;
  width: 100%;
  padding: 0.65rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announcement__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.announcement__group {
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Landing */
.landing {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 5rem;
  overflow: hidden;
}

.landing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(35, 22, 18, 0.58), rgba(35, 22, 18, 0.58));
}

.landing__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  display: block;
}

.landing__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing__content {
  width: min(100%, 520px);
  text-align: center;
}

.landing__logo {
  margin-inline: auto;
  margin-bottom: 2rem;
  width: min(100%, 300px);
  aspect-ratio: 320 / 135;
  background-color: var(--bg);
  -webkit-mask-image: url('assets/logo.png');
  mask-image: url('assets/logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.landing__menu-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  font-weight: 400;
  line-height: 1.5;
}

.landing__menu-text [lang="pt"] {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: #DADADA;
}

.landing__menu-text [lang="en"] {
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  color: #A39E97;
}

.landing__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.landing__btn {
  display: inline-block;
  min-width: 9rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  border: 1px solid #FFFFFF;
  background-color: var(--logo);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .landing__btn {
    transition: background-color 0.2s ease;
  }

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

.landing__btn:focus {
  outline: none;
}

.landing__btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.landing__phone {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

.landing__phone:focus {
  outline: none;
}

.landing__phone:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.landing__phone-icon {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .announcement {
    font-size: 0.5rem;
    padding: 0.35rem 0;
    letter-spacing: 0.03em;
  }

  .landing {
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem 2rem;
    min-height: calc(100dvh - 2.5rem);
  }

  .landing::before {
    background: linear-gradient(rgba(35, 22, 18, 0.58), rgba(35, 22, 18, 0.58));
  }

  .landing__content {
    width: 100%;
    margin-inline: auto;
  }

  .landing__logo {
    width: min(100%, 240px);
    margin-bottom: 52px;
  }

  .landing__menu-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 52px;
    line-height: 1.4;
  }

  .landing__menu-text [lang="pt"],
  .landing__menu-text [lang="en"] {
    display: block;
    width: 100%;
  }

  .landing__menu-text [lang="pt"] {
    font-size: 0.9rem;
  }

  .landing__menu-text [lang="en"] {
    font-size: 0.8rem;
  }

  .landing__buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .landing__btn {
    width: 100%;
    min-width: unset;
    padding: 0.95rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
  }

  .landing__phone {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    transform: none;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--logo);
    border: 2px solid var(--white);
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  @media (hover: hover) and (pointer: fine) {
    .landing__phone:hover {
      background-color: var(--secondary);
    }
  }

  .landing__phone-text {
    display: none;
  }

  .landing__phone-icon {
    width: 22px;
    height: 22px;
  }
}

/* Footer */
.footer {
  background-color: var(--text);
  color: var(--bg);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.footer__brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer__legal {
  margin-bottom: 0.5rem;
}

.footer__legal,
.footer__credit {
  opacity: 0.75;
}

.footer a {
  color: var(--bg);
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .footer a:hover {
    color: var(--white);
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 0.75rem 1rem;
    font-size: 0.65rem;
    display: flex;
    justify-content: center;
  }

  .footer .container {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .footer__brand {
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
  }

  .footer__legal {
    margin-bottom: 0.35rem;
  }
}
