/* =========================
   FOOTER LAYOUT
========================= */

.site-footer {
  --footer-green: #a9d5c1;
  --footer-green-light: #c8e5d7;
  --footer-dark-green: #123f35;
  --footer-black: #121715;
  --footer-white: #f8faf8;

  position: relative;

  padding: 70px 50px 35px;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 255, 255, 0.6),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      var(--footer-green-light) 0%,
      var(--footer-green) 55%,
      #8fc5ad 100%
    );

  color: var(--footer-dark-green);
}

footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 26px clamp(32px, 6vw, 100px);
  color: #6f7b77;
  font-size: 11px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--ink);
  font-weight: 800;
}

/* =========================
   MAIN LAYOUT
========================= */

.footer-layout {
  display: grid;

  width: min(1450px, 100%);
  margin-inline: auto;

  grid-template-columns:
    1fr
    minmax(420px, 600px)
    1fr;

  align-items: center;

  row-gap: 42px;
}

/* =========================
   CENTER SOCIAL AREA
========================= */

.footer-center {
  grid-column: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
}

/* =========================
   NOTE FROM EFFREY
========================= */

.footer-introduction {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 626px;
  flex-direction: column;
  padding: 45px 50px 48px;

  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;

  background: whitesmoke;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  box-shadow:
    0 25px 45px rgba(16, 58, 48, 0.25),
    0 0 25px rgba(111, 194, 161, 0.12);

  color: var(--footer-white);
  overflow: hidden;
  text-align: left;

  transform: rotate(-1.3deg);
}

/* Borde interior de la nota */

.footer-introduction::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 16px;

  border: 1px dashed rgba(169, 214, 192, 0.18);
  border-radius: 10px;

  pointer-events: none;
}

/* Textura delicada */

.footer-introduction::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;

  background-image: radial-gradient(
    circle,
    rgba(169, 214, 192, 0.11) 1px,
    transparent 1.5px
  );

  background-size: 19px 19px;
  opacity: 0.14;

  pointer-events: none;
}

.footer-introduction > * {
  position: relative;
  z-index: 2;
}

/* Título pequeño de la nota */

.note-heading {
  margin: 0 0 21px;
  padding: 0 5px 12px;

  border-bottom: 2px solid rgba(169, 214, 192, 0.2);

  color: #662b14;
  font-family: "Nothing You Could Do", cursive;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Contenido de la nota */

.note-message {
  width: 100%;
}

.note-message p {
  margin: 0 0 17px;
  padding: 0 5px 13px;

  border-bottom: 2px solid rgba(39, 54, 147, 0.793);

  color: rgb(5, 37, 8);
  font-family: "Nothing You Could Do", cursive;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1;
}

.nothing-you-could-do-regular {
  font-family: "Nothing You Could Do", cursive;
  font-weight: 400;
  font-style: normal;
}

.note-message .note-invitation {
  margin-bottom: 0;
  color: #5e370a;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 700;
}

/* =========================
   EMAIL AND COPY
========================= */

.footer-email-row {
  display: flex;
  width: 100%;
  max-width: 620px;
  align-items: center;
  justify-content: center;
  gap: 20px;

  /* Empuja el correo al fondo de la nota */
  margin-top: auto;
  padding: 25px 5px 0;

  border-top: 1px dashed rgba(169, 214, 192, 0.551);
}

.footer-email-link {
  padding-bottom: 5px;
  overflow-wrap: anywhere;

  color: rgba(40, 60, 4, 0.827);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 400;
  text-decoration: none;

  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.footer-email-link:hover {
  border-color: #126b3d;
  color: #448512;
}

.copy-button {
  flex-shrink: 0;
  padding: 9px 17px;

  border: 1px solid #1b7148;
  border-radius: 999px;

  background-color: rgba(172, 255, 47, 0.538);
  color: #01180d;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.copy-button:hover {
  background-color: #a9d6c0;
  color: var(--footer-black);
  transform: translateY(-2px);
}

.copy-button:focus-visible {
  outline: 3px solid var(--footer-white);
  outline-offset: 4px;
}

/* =========================
   SOCIAL CARDS
========================= */

.footer-social-links {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  gap: 22px;

  margin: 0;
}

.footer-rights {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  margin: 24px 0 0;
  text-align: center;
  line-height: 1.6;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.footer-social-card {
  display: flex;

  width: 86px;
  height: 86px;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 5px;

  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;

  background: rgba(248, 250, 248, 0.8);

  color: var(--footer-dark-green);

  box-shadow:
    0 12px 25px rgba(18, 63, 53, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  backdrop-filter: blur(8px);

  text-decoration: none;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.footer-social-card:hover {
  z-index: 5;

  filter: brightness(1.12);
  border-color: var(--footer-green);
  box-shadow:
    0 24px 34px rgba(40, 62, 51, 0.32),
    0 0 22px rgba(200, 190, 155, 0.28);

  transform: translateY(-6px);
}

.footer-social-card:focus-visible {
  outline: 4px solid var(--footer-dark-green);
  outline-offset: 5px;
}

.footer-social-card svg {
  width: 32px;
  height: 40px;
  fill: currentColor;
}

.footer-social-card span {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-location {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
}

.footer-location > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-location-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
}

.location-text {
  font-size: 15px;
}

/* =========================
   BACK TO TOP
========================= */

.footer-back-to-top {
  grid-column: 3;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;

  gap: 10px;
  justify-self: end;
  align-self: center;
  color: #123f35;
  font-size: 14px;
  text-decoration: none;
  font-weight: 700;
}

.back-to-top-arrow {
  display: block;

  font-size: 34px;
  font-weight: 900;
  line-height: 0.8;

  color: #3f1239;
}

.footer-back-to-top:hover {
  text-decoration: underline;
}

/* =========================
   TABLET
=========================*/

@media (max-width: 1100px) {
  .site-footer {
    padding: 50px 24px 30px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-center {
    grid-column: 1;
    grid-row: 2;

  }  

  .footer-location {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .footer-social-links {
    flex-wrap: wrap;
  }

  .footer-rights {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;

  }

  .footer-social-card {
    width: 67px;
    height: 46px;
  }

  .footer-back-to-top {
    display: none;
  }

}

