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

:root {
  --panel-width: min(1849px, calc(100vw - 70px));
  --panel-height: 988px;
  --text-light: #f4f4f4;
  --accent: #9f6442;
  --footer-bg: #f4f4f4;
  --base-bg: #eee3d6;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 34px 35px 67px;
  display: grid;
  place-items: center;
  font-family: "Public Sans", sans-serif;
  color: var(--text-light);
  background: var(--base-bg) url("./background.jpg") center / cover no-repeat;
  overflow-x: hidden;
}

body::before {
  content: "";
  display: block;
  grid-area: 1 / 1;
  width: var(--panel-width);
  height: var(--panel-height);
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("./banner.jpg") center / cover no-repeat;
}

.header,
main,
.footer {
  grid-area: 1 / 1;
  width: var(--panel-width);
  position: relative;
  z-index: 1;
}

.header {
  align-self: start;
  display: flex;
  justify-content: center;
  padding-top: 64px;
}

.header img {
  width: min(294px, 30vw);
  min-width: 180px;
  height: auto;
  display: block;
}

main,
.hero {
  min-height: var(--panel-height);
}

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

.hero .container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Tenor Sans", sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-light);
}

.hero p {
  margin: 14px auto 0;
  max-width: 726px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-light);
}

.footer {
  align-self: end;
  width: min(1392px, calc(var(--panel-width) - 140px));
  margin-bottom: -33px;
  z-index: 2;
}

.footer > .container {
  display: grid;
  grid-template-columns: minmax(0, 410px) minmax(0, 361px) minmax(0, 439px);
  justify-content: center;
  gap: 29px;
  background-color: var(--footer-bg);
  color: #000;
  padding: 24px 25px;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer__content:nth-child(-n + 2) {
  min-height: 137px;
  padding: 0px 25px;
}

.footer__content:last-child {
  min-height: 153px;
}

.footer h2 {
  margin: 0;
  font-family: "Tenor Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}

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

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

.footer__content > a,
.footer__content li,
.footer__content li a {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.footer__content ul {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, max-content);
  column-gap: 19px;
  row-gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__content ul li {
  min-width: 0;
}

.footer__content ul li:nth-child(3),
.footer__content ul li:nth-child(4) {
  grid-column: 1 / -1;
}

.footer__content ul li:nth-child(1),
.footer__content ul li:nth-child(2) {
  white-space: nowrap;
}

.footer__content ul li:nth-child(3) {
  max-width: 300px;
}

.footer__content ul li:nth-child(3) a {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  min-width: 64px;
  height: 64px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #1ebe5b);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 0 0 rgba(37, 211, 102, 0.55);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  animation:
    whatsapp-float-y 2.6s ease-in-out infinite,
    whatsapp-pulse 2s infinite;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.22);
  z-index: -1;
  animation: whatsapp-ring 2s ease-out infinite;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: block;
  fill: currentColor;
}

.whatsapp-float span {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.08);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.38),
    0 0 0 10px rgba(37, 211, 102, 0.12);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes whatsapp-float-y {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.35),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }

  70% {
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.35),
      0 0 0 16px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.35),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes whatsapp-ring {
  0% {
    transform: scale(0.92);
    opacity: 0.65;
  }

  70% {
    transform: scale(1.18);
    opacity: 0;
  }

  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::before {
    animation: none;
  }
}

@media (max-width: 1500px) {
  :root {
    --panel-width: min(1849px, calc(100vw - 40px));
  }

  body {
    padding: 20px 20px 46px;
  }

  .header {
    padding-top: 48px;
  }

  .footer {
    width: min(1392px, calc(var(--panel-width) - 56px));
    margin-bottom: -20px;
  }
}

@media (max-width: 1180px) {
  :root {
    --panel-width: calc(100vw - 32px);
    --panel-height: 940px;
  }

  body {
    padding: 16px 16px 32px;
  }

  .hero .container {
    width: min(863px, calc(100% - 40px));
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    max-width: 640px;
    font-size: 17px;
  }

  .footer {
    width: calc(var(--panel-width) - 20px);
    margin-bottom: -12px;
  }

  .footer > .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    padding: 18px 20px;
  }

  .footer__content:nth-child(-n + 2) {
    min-height: auto;
    padding: 16px 0;
  }

  .footer__content:last-child {
    grid-column: 1 / -1;
    min-height: auto;
    gap: 10px;
  }
}

@media (max-width: 820px) {
  :root {
    --panel-width: calc(100vw - 24px);
    --panel-height: auto;
  }

  body {
    padding: 12px;
  }

  body::before {
    min-height: 600px;
  }

  .header {
    padding-top: 28px;
  }

  .header img {
    width: min(240px, 58vw);
    min-width: 150px;
  }

  .hero .container {
    width: calc(100% - 28px);
    padding-top: 118px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    margin-top: 12px;
    max-width: 100%;
    font-size: 16px;
  }

  .footer {
    grid-area: auto;
    align-self: auto;
    width: calc(var(--panel-width) - 16px);
    margin: 12px auto 16px;
  }

  .footer > .container {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 16px;
  }

  .footer__content {
    gap: 8px;
  }

  .footer__content:nth-child(-n + 2),
  .footer__content:last-child {
    min-height: auto;
    padding: 10px 0;
  }

  .footer__content ul {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .footer__content ul li:nth-child(1),
  .footer__content ul li:nth-child(2) {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .hero .container {
    padding-top: 98px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: 24px;
    max-width: 300px;
    margin-inline: auto;
  }

  .hero p,
  .footer__content > a,
  .footer__content li,
  .footer__content li a {
    font-size: 15px;
  }

  .footer h2 {
    font-size: 18px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    height: 58px;
    padding: 0 16px 0 14px;
    gap: 8px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .whatsapp-float span {
    font-size: 13px;
  }
}