:root {
  --title-font-family: "Great Vibes", sans-serif;
  --bg: #fcf9f8;
  --brown: #775a19;
  --gray: #635d58;
  --light-pink: #ffdea5;
  --dark: #1c1b1b;
  --red: #b52619;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--dark);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: clip;
  text-wrap: wrap;
}

section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  width: 100%;
  min-height: 100vh;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: start;
  background: url("https://images.unsplash.com/photo-1511268011861-691ed210aae8?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
    center bottom / cover no-repeat;
}

.hero .text {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
  gap: 1rem;
  max-width: 672px;
  font-size: 1rem;
}

.overlay {
  color: #c5a059;
  text-transform: uppercase;
}

h1 {
  font-size: 2.5rem;
  font-family: var(--title-font-family);
  color: #fff;
}

.texts {
  color: #e5e2e1;
}

.hero .text a {
  color: #fff;
  background: var(--red);
  padding: 1.125rem 2rem;
  text-align: center;
  width: 100%;
  max-width: 201px;
  text-wrap: nowrap;
  text-decoration: none;
  border-radius: 4px;
}

/* Segunda Seção */
.memories {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.memories-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: fit-content;
  text-align: center;
}

.memories-title h2 {
  font-family: var(--title-font-family);
  width: 100%;
  max-width: 210px;
  font-size: 2.5rem;
  line-height: 1.5rem;
}

.memories-title p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.5rem;
}

.memo-container {
  display: flex;
  justify-content: center;
  width: 100%;
  height: fit-content;
  display: grid;
  gap: 1rem;
  row-gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.memo-card {
  text-align: center;
}

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

.memo-container .card1 {
  grid-column: span 2;
  grid-row: span 2;
}

.memo-container .card2 {
  grid-column: span 2 / span 2;
  grid-row: span 1;
  grid-column-start: 3;
}

.memo-container .card3 {
  grid-column: span 1;
  grid-column-start: 3;
  grid-row-start: 2;
}

.memo-container .card4 {
  grid-column: span 1;
  grid-column-start: 4;
  grid-row-start: 2;
}

.memo-card-title {
  font-size: 1rem;
  color: var(--gray);
}

/* Terceira Seção */
.christmas {
  justify-content: center;
  align-items: center;
}

.christmas-title {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
  justify-content: center;
  width: 100%;
  height: fit-content;
}

.christmas-title h2 {
  text-align: left;
  font-size: 1rem;
  gap: 4rem;
  color: var(--red);
  width: 100%;
  height: fit-content;
}

.christmas-title p {
  font-size: 1rem;
  width: 100%;
  height: fit-content;
}

.x-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.x-container img {
  object-fit: cover;
  aspect-ratio: 286 / 461;
  height: auto;
  width: 100%;
  max-width: 320px;
}

/* Quarta Seção */
.message {
  justify-content: center;
  align-items: center;
  gap: 2rem;
  text-align: center;
  background: var(--gray);
  backdrop-filter: opacity(0.1);
}

.fa-heart {
  color: var(--light-pink);
  font-size: 1.9rem;
}

.message h2 {
  font-size: 2.5rem;
  color: #fff;
  width: 70%;
  font-family: var(--title-font-family);
}

.message-text {
  font-size: 1.5rem;
  line-height: 1.725rem;
  width: 70%;
  color: #e5e2e1;
}

.horizontal-line {
  width: 20%;
  max-width: 6rem;
  height: 4px;
  background: var(--light-pink);
}

.sign {
  padding-top: 1rem;
  color: var(--light-pink);
  font-size: 1rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
}

footer {
  background: var(--bg);
  padding: 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--title-font-family);
  font-size: 1.7rem;
  color: var(--dark);
}

footer h6 {
  margin: 0;
  font-weight: 600;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

footer img {
  height: 30px;
  width: auto;
}

/* Responsividade */
/* Mobile */
@media (max-width: 767px) {
  .hero .text {
    gap: 2.5rem;
  }

  .memo-container {
    display: flex;
    flex-wrap: wrap;
  }

  .christmas h2 {
    font-size: 1.5rem;
  }

  .x-container img {
    width: 80%;
  }

  footer img {
    display: none;
  }
}

/* Ajuste de Fonte */
@media (min-width: 320px) {
  :root {
    font-size: 11px;
  }
}
@media (min-width: 375px) {
  :root {
    font-size: 12px;
  }
}
@media (min-width: 425px) {
  :root {
    font-size: 13px;
  }
}
@media (min-width: 768px) {
  :root {
    font-size: 14px;
  }
}
@media (min-width: 1024px) {
  :root {
    font-size: 15px;
  }
}
@media (min-width: 1440px) {
  :root {
    font-size: 16px;
  }
}
