:root {
  --brand-blue: #005091;
  --brand-green: #6c9c30;
  --ink: #172a36;
  --paper: rgba(255, 255, 255, 0.88);
  --shadow: 0 7px 22px rgba(27, 58, 72, 0.1);
}

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

html {
  min-width: 320px;
  background-color: #eef5f8;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: #eef5f8;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    url("assets/img/bg-web-spagro.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.main-content {
  display: flex;
  flex: 1 0 auto;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding-top: clamp(3rem, 7.5vh, 5.5rem);
}

.link-profile {
  width: min(100%, 530px);
  text-align: center;
}

.brand-logo {
  display: block;
  width: clamp(250px, 25vw, 380px);
  max-width: 100%;
  height: auto;
  margin: 0 auto clamp(2.75rem, 6vh, 4rem);
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.72))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.42));
}

.social-links {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  min-height: 62px;
  padding: 0 1.125rem;
  border: 1px solid currentColor;
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.social-link::after {
  width: 32px;
  content: "";
}

.social-link img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: transform 180ms ease;
}

.social-link--whatsapp {
  border-color: rgba(108, 156, 48, 0.7);
  color: #4d7621;
}

.social-link--instagram {
  border-color: rgba(0, 80, 145, 0.62);
  color: var(--brand-blue);
}

.social-link--location {
  border-color: rgba(0, 80, 145, 0.62);
  color: var(--brand-blue);
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 25px rgba(27, 58, 72, 0.15);
  transform: translateY(-2px);
}

.social-link:hover img {
  transform: scale(1.06);
}

.social-link--whatsapp:hover {
  border-color: var(--brand-green);
  color: #3f6818;
}

.social-link--instagram:hover,
.social-link--location:hover {
  border-color: var(--brand-blue);
  color: #003f73;
}

.social-link:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 4px;
}

.social-link:active {
  background-color: rgba(248, 251, 252, 0.98);
  box-shadow: 0 4px 13px rgba(27, 58, 72, 0.13);
  transform: translateY(0);
}

.site-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 4rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer a {
  color: rgba(23, 42, 54, 0.6);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.site-footer a:hover {
  color: rgba(23, 42, 54, 0.85);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
}

.entrance {
  opacity: 0;
  animation: enter 560ms cubic-bezier(0.22, 0.75, 0.28, 1) forwards;
}

.entrance--logo {
  animation-delay: 60ms;
}

.entrance--whatsapp {
  animation-delay: 190ms;
}

.entrance--instagram {
  animation-delay: 330ms;
}

.entrance--location {
  animation-delay: 470ms;
}

.entrance--footer {
  animation-delay: 570ms;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (min-height: 100svh) {
  body,
  .site-shell {
    min-height: 100svh;
  }
}

@media (max-width: 600px) {
  body {
    background-position: 64% center;
  }

  .site-shell {
    padding-inline: 5vw;
  }

  .main-content {
    padding-top: clamp(3rem, 7.5vh, 4rem);
  }

  .brand-logo {
    width: 55vw;
    margin-bottom: 2.75rem;
  }

  .link-profile {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .brand-logo {
    width: clamp(187.5px, 18.75vw, 285px);
  }
}

@media (max-height: 620px) {
  .main-content {
    align-items: flex-start;
    padding-top: 1.5rem;
  }

  .brand-logo {
    width: min(46vh, 230px);
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .social-link:hover,
  .social-link:hover img {
    transform: none;
  }
}
