/* ============================================
   LA EVA — Footer
   ============================================ */

.site-footer {
  width: 100%;
  overflow: hidden;
}

.footer__split {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer__media {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
}

.footer__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  background: #fefbf4;
}

.footer__panel-top {
  flex: 1;
  width: 100%;
  padding: 24px 16px 20px;
}

.footer__heading {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
  color: #1f1c17;
}

.footer__form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccb48f;
}

.footer__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #1f1c17;
  outline: none;
}

.footer__input::placeholder {
  color: rgba(31, 28, 23, 0.45);
}

.footer__submit {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #1f1c17;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.footer__submit:hover {
  transform: translateX(4px);
}

.footer__newsletter-desc {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
  color: rgba(31, 28, 23, 0.55);
}

.footer__links-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 0;
  margin-bottom: 12px;
}

.footer__col {
  min-width: 0;
}

.footer__col-title {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75;
  color: #1f1c17;
}

.footer__links {
  display: flex;
  flex-direction: column;
}

.footer__link {
  display: inline-block;
  width: fit-content;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25;
  color: #1f1c17;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

.footer__link:hover {
  color: #1f1c17;
  text-decoration-color: #1f1c17;
}

.footer__link--external {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer__link-icon {
  font-size: 10px;
  line-height: 1;
}

.footer__panel-bottom {
  position: relative;
  flex-shrink: 0;
  background: #1f1c17;
  color: #c5a25d;
  padding: 28px 16px 24px;
}

.footer__panel-bottom a {
  color: #c5a25d;
  text-decoration: none;
}

.footer__panel-bottom a:hover {
  color: #c5a25d;
  text-decoration: underline;
}

.footer__decoration {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.footer__torn-svg {
  display: block;
  width: calc(100% + 40px);
  height: 14px;
  transform: translateX(20px);
}

.footer__legal {
  position: relative;
  z-index: 1;
}

.footer__company-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__company--secondary {
  margin-top: 0;
}

.footer__company-meta {
  margin-top: 12px;
}

.footer__company-name {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c5a25d;
}

.footer__company-info {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #c5a25d;
}

.footer__company-info:last-of-type {
  margin-bottom: 0;
}

.footer__cert-link {
  display: inline-block;
  line-height: 0;
}

.footer__cert-img {
  display: block;
  width: 8.25rem;
  max-width: 100%;
  height: auto;
  margin-top: 4px;
}

.footer__legal-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0 6px;
  border: 0;
  background: #2f2b24;
}

.footer__copyright {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #6b7280;
}

.footer__contact-btn {
  position: absolute;
  right: 16px;
  bottom: 24px;
  z-index: 2;
  padding: 10px 24px;
  border-radius: 999px;
  background: #fff;
  color: #1f1c17;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.footer__contact-btn:hover {
  color: #1f1c17;
  transform: translateY(-2px);
}

@media (min-width: 992px) {
  .footer__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .footer__media {
    min-height: 100%;
    align-self: stretch;
    align-items: center;
  }

  .footer__image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
  }

  .footer__panel-top {
    padding: 32px 40px 24px;
  }

  .footer__heading {
    font-size: 2.775rem;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .footer__links-row {
    column-gap: 24px;
    margin-bottom: 24px;
  }

  .footer__panel-bottom {
    padding: 36px 40px 32px;
  }

  .footer__decoration {
    top: -18px;
  }

  .footer__torn-svg {
    width: calc(100% + 160px);
    height: 24px;
    transform: translateX(160px);
  }

  .footer__company-grid {
    gap: 24px;
  }

  .footer__company-name,
  .footer__company-info {
    font-size: 0.75rem;
    line-height: 1rem;
    white-space: normal;
  }

  .footer__company-meta {
    margin-top: 16px;
  }

  .footer__legal-divider {
    display: block;
  }

  .footer__copyright {
    font-size: 0.75rem;
    margin-top: 6px;
  }

  .footer__contact-btn {
    right: 40px;
    bottom: 36px;
  }
}

@media (min-width: 1280px) {
  .footer__panel-top {
    padding: 40px 56px 28px;
  }

  .footer__heading {
    font-size: 3.375rem;
    line-height: 1.15;
  }
}

@media (max-width: 991px) {
  .footer__contact-btn {
    position: static;
    display: inline-block;
    margin-top: 20px;
  }
}
