:root {
  --mel: #F5B301;
  --mel-suau: #F7C93E;
  --taronja: #E8850C;
  --fosc: #2B2118;
  --fosc-70: rgba(43, 33, 24, 0.7);
  --fosc-80: rgba(43, 33, 24, 0.8);
  --fosc-90: rgba(43, 33, 24, 0.9);
  --crema: #FFF8E7;
  --crema-75: rgba(255, 248, 231, 0.75);
  --mel-50: rgba(245, 179, 1, 0.5);
  --font-titol: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-cos: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-cos);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  line-height: 1.65;
  color: var(--crema);
  background-color: var(--fosc);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--mel);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--mel-suau);
}

:focus-visible {
  outline: 3px solid var(--mel);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--mel);
  color: var(--fosc);
  font-weight: 600;
  border-radius: 0 0 0.6rem 0.6rem;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--fosc);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--fosc);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--fosc-70), var(--fosc-80) 55%, var(--fosc-90));
}

.bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.4s ease-in-out;
}

.bg__img.is-active {
  opacity: 1;
}

.container {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

main {
  flex: 1 0 auto;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: clamp(3rem, 10vh, 6rem);
}

.hero__kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-titol);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mel);
}

.hero__title {
  margin: 0;
  font-family: var(--font-titol);
  font-weight: 700;
  font-size: clamp(2.8rem, 2rem + 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(43, 33, 24, 0.55);
}

.hero__tld {
  color: var(--mel);
}

.hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.hero__mail-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.72em 1.35em 0.72em 3.05em;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-titol);
  font-size: clamp(0.9rem, 0.82rem + 0.35vw, 1.05rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--crema);
  text-decoration: none;
  border: 2px solid var(--mel-50);
  border-radius: 999px;
  background-color: rgba(43, 33, 24, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 231, 0.06),
    0 2px 10px rgba(43, 33, 24, 0.25);
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.hero__mail-btn > span {
  position: relative;
  z-index: 1;
}

.hero__mail-icon {
  position: absolute;
  top: 50%;
  left: 1.1em;
  z-index: 1;
  width: 1.4em;
  height: 1.4em;
  transform: translateY(-50%);
}

.hero__mail-btn::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -70%;
  width: 45%;
  z-index: 0;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  opacity: 0;
  transform: translateX(0) skewX(-18deg);
  transition: transform 0.65s ease, opacity 0.3s ease;
  pointer-events: none;
}

.hero__mail-btn:hover,
.hero__mail-btn:focus-visible {
  color: var(--fosc);
  background-color: var(--mel);
  border-color: var(--mel-suau);
  box-shadow:
    0 0 0 4px rgba(245, 179, 1, 0.16),
    0 0 26px rgba(245, 179, 1, 0.5),
    0 8px 24px rgba(43, 33, 24, 0.4);
}

.hero__mail-btn:hover::after,
.hero__mail-btn:focus-visible::after {
  opacity: 1;
  transform: translateX(420%) skewX(-18deg);
}

.hero__subtitle {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--crema-75);
  text-shadow: 0 2px 14px rgba(43, 33, 24, 0.6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  margin: 2.25rem 0 0;
  font-family: var(--font-titol);
  font-size: clamp(1.05rem, 0.95rem + 0.8vw, 1.4rem);
  text-shadow: 0 2px 14px rgba(43, 33, 24, 0.6);
}

.hero__email {
  font-weight: 600;
  color: var(--mel);
  text-decoration-color: var(--mel-50);
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.hero__email:hover {
  color: var(--mel-suau);
  text-decoration-color: currentColor;
}

.hero__sep {
  color: var(--taronja);
}

.hero__friend {
  font-weight: 500;
  font-size: 0.92em;
  color: var(--crema-75);
}

.hero__friend-icon {
  display: inline-block;
  width: 6.1em;
  height: 6.1em;
  margin-inline-end: 0.4rem;
  vertical-align: middle;
  position: relative;
  top: -0.12em;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(43, 33, 24, 0.55));
  /* transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); */
  transition: none;
}

.hero__friend:hover .hero__friend-icon {
  /* transform: scale(1.06) rotate(-4deg); */
  transform: none;
}

.hero__friend a {
  color: var(--mel);
  text-decoration-color: var(--mel-50);
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.hero__friend a:hover {
  color: var(--mel-suau);
  text-decoration-color: currentColor;
}
