/**
 * Virelisse Luxury Footer.
 * Scoped under .v-footer.
 * Deep forest ground, warm paper type, restrained gold accents.
 */

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.v-footer {
  --v-footer-bg: var(--v-color-forest-deep, #13241f);
  --v-footer-text: var(--v-color-paper, #f7f5f0);
  --v-footer-accent: var(--v-color-gold, #c4a86a);
  --v-footer-muted: rgba(247, 245, 240, 0.62);
  --v-footer-line: rgba(247, 245, 240, 0.14);
  --v-footer-focus: 0 0 0 2px var(--v-footer-bg), 0 0 0 4px var(--v-footer-accent);

  position: relative;
  /* Pull ~20px closer to Brand Values without changing internal footer padding. */
  margin: -1.25rem 0 0;
  padding: 0;
  background: var(--v-footer-bg);
  color: var(--v-footer-text);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.v-footer__inner {
  width: min(100%, 82rem);
  margin-inline: auto;
  /* Refined: ~24px less total vertical air than 1.14.0, still generous. */
  padding:
    clamp(3.25rem, 6.5vw, 5.5rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(1.75rem, 3.5vw, 2.75rem);
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.v-footer-nl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--v-space-7);
  padding-bottom: clamp(2.25rem, 4.5vw, 4rem);
  border-bottom: 1px solid var(--v-footer-line);
}

.v-footer-nl__copy {
  display: flex;
  flex-direction: column;
  gap: var(--v-space-3);
}

.v-footer-nl__eyebrow {
  margin: 0;
  font-family: var(--v-font-body);
  font-size: var(--v-text-xs);
  font-weight: var(--v-font-weight-medium, 500);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--v-footer-accent);
}

.v-footer-nl__heading {
  margin: 0;
  font-family: var(--v-font-display);
  font-weight: var(--v-font-weight-light, 300);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--v-footer-text);
}

.v-footer-nl__desc {
  margin: 0;
  max-width: 34rem;
  font-size: var(--v-text-md);
  font-weight: var(--v-font-weight-light, 300);
  line-height: var(--v-leading-relaxed, 1.65);
  color: var(--v-footer-muted);
}

.v-footer-nl__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--v-space-3);
  width: 100%;
}

.v-footer-nl__label {
  font-size: var(--v-text-xs);
  font-weight: var(--v-font-weight-medium, 500);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--v-footer-muted);
}

/* Stacked on mobile / tablet — input underline, bordered Subscribe. */
.v-footer-nl__control {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--v-space-4);
  width: 100%;
}

.v-footer-nl .v-footer-nl__input {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 3rem;
  min-height: 3rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(247, 245, 240, 0.45);
  border-radius: 0;
  background: transparent;
  color: var(--v-footer-text);
  font-family: var(--v-font-body);
  font-size: var(--v-text-md);
  line-height: 1.4;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--v-duration-fast, 150ms) var(--v-ease-standard, ease);
}

.v-footer-nl .v-footer-nl__input::placeholder {
  color: var(--v-footer-muted);
  opacity: 1;
}

.v-footer-nl .v-footer-nl__input:hover {
  border-bottom-color: rgba(247, 245, 240, 0.7);
}

.v-footer-nl .v-footer-nl__input:focus {
  outline: none;
  border-bottom-color: var(--v-footer-accent);
}

.v-footer-nl .v-footer-nl__input:focus-visible {
  box-shadow: var(--v-footer-focus);
}

.v-footer-nl .v-footer-nl__control.is-error .v-footer-nl__input {
  border-bottom-color: var(--v-color-danger, #b33a3a);
}

.v-footer-nl .v-footer-nl__submit::before,
.v-footer-nl .v-footer-nl__submit::after {
  content: none;
  display: none;
}

.v-footer-nl .v-footer-nl__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex: 0 0 auto;
  min-height: 48px;
  margin: 0;
  padding: 0 clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--v-footer-text);
  border-radius: 0;
  background: transparent;
  color: var(--v-footer-text);
  font-family: var(--v-font-body);
  font-size: var(--v-text-xs);
  font-weight: var(--v-font-weight-semibold, 600);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color var(--v-duration-fast, 150ms) var(--v-ease-standard, ease),
    color var(--v-duration-fast, 150ms) var(--v-ease-standard, ease);
}

.v-footer-nl .v-footer-nl__submit:hover {
  background: var(--v-footer-text);
  color: var(--v-footer-bg);
}

.v-footer-nl .v-footer-nl__submit:focus-visible {
  outline: none;
  box-shadow: var(--v-footer-focus);
}

.v-footer-nl .v-footer-nl__submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.v-footer-nl__status {
  margin: 0;
  font-size: var(--v-text-sm);
  line-height: 1.5;
  color: var(--v-footer-muted);
}

.v-footer-nl__status[data-state="success"] {
  color: var(--v-footer-accent);
}

.v-footer-nl__status[data-state="error"] {
  color: #e8a0a0;
}

/*
 * Desktop: two balanced editorial columns.
 * Left = typography. Right = long continuous form filling the column.
 * Toteme / COS / Massimo Dutti pattern — not a tiny floating field.
 */
@media (min-width: 900px) {
  .v-footer-nl {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(3rem, 5vw, 5rem);
  }

  .v-footer-nl__copy {
    max-width: 34rem;
  }

  .v-footer-nl__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    gap: 0.875rem;
  }

  .v-footer-nl__label {
    letter-spacing: 0.22em;
  }

  /* One continuous floor line under the full control — long input + Subscribe. */
  .v-footer-nl__control {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 3.75rem;
    border-bottom: 1px solid rgba(247, 245, 240, 0.55);
  }

  .v-footer-nl__control:focus-within {
    border-bottom-color: var(--v-footer-accent);
  }

  .v-footer-nl__control.is-error {
    border-bottom-color: var(--v-color-danger, #b33a3a);
  }

  .v-footer-nl .v-footer-nl__input {
    flex: 1 1 auto;
    width: auto;
    height: 3.75rem;
    min-height: 3.75rem;
    font-size: var(--v-text-lg, 1.125rem);
    border: 0;
    border-bottom: 0;
  }

  .v-footer-nl .v-footer-nl__input:hover,
  .v-footer-nl .v-footer-nl__input:focus,
  .v-footer-nl .v-footer-nl__control.is-error .v-footer-nl__input {
    border-bottom-color: transparent;
  }

  .v-footer-nl .v-footer-nl__submit {
    flex: 0 0 auto;
    align-self: center;
    height: 3.75rem;
    min-height: 3.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--v-footer-text);
    letter-spacing: 0.2em;
  }

  .v-footer-nl .v-footer-nl__submit:hover {
    background: transparent;
    color: var(--v-footer-accent);
  }
}

/* --------------------------------------------------------------------------
   Navigation columns
   -------------------------------------------------------------------------- */

.v-footer-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--v-space-8) var(--v-space-6);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--v-footer-line);
}

.v-footer-nav__col {
  min-width: 0;
}

.v-footer-nav__title {
  margin: 0 0 var(--v-space-4);
  font-family: var(--v-font-body);
  font-size: var(--v-text-xs);
  font-weight: var(--v-font-weight-medium, 500);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--v-footer-text);
}

.v-footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.v-footer-nav__link {
  display: inline-flex;
  align-items: center;
  padding-block: 0.2rem;
  min-height: 44px;
  font-size: var(--v-text-sm);
  font-weight: var(--v-font-weight-light, 300);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--v-footer-muted);
  text-decoration: none;
  border-radius: 0;
  transition: color var(--v-duration-fast, 150ms) var(--v-ease-standard, ease);
}

.v-footer-nav__link:hover,
.v-footer-nav__link:focus-visible {
  color: var(--v-footer-text);
}

.v-footer-nav__link:focus-visible {
  outline: none;
  box-shadow: var(--v-footer-focus);
}

@media (min-width: 640px) {
  .v-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .v-footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--v-space-8) var(--v-space-7);
  }

  .v-footer-nav__link {
    min-height: 0;
    padding-block: 0.15rem;
  }
}

/* --------------------------------------------------------------------------
   Bottom utility row
   -------------------------------------------------------------------------- */

.v-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--v-space-6);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.v-footer-bottom__primary {
  display: flex;
  flex-direction: column;
  gap: var(--v-space-4);
}

.v-footer-bottom__copy {
  margin: 0;
  font-size: var(--v-text-xs);
  letter-spacing: 0.04em;
  color: var(--v-footer-muted);
}

.v-footer-bottom__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.v-footer-bottom__legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--v-text-xs);
  letter-spacing: 0.06em;
  color: var(--v-footer-muted);
  text-decoration: none;
}

.v-footer-bottom__legal-link:hover,
.v-footer-bottom__legal-link:focus-visible {
  color: var(--v-footer-text);
}

.v-footer-bottom__legal-link:focus-visible {
  outline: none;
  box-shadow: var(--v-footer-focus);
}

.v-footer-bottom__meta {
  display: flex;
  flex-direction: column;
  gap: var(--v-space-4);
}

.v-footer-bottom__locale-select {
  appearance: none;
  min-height: 44px;
  padding: 0.4rem 0;
  border: 0;
  border-bottom: 1px solid var(--v-footer-line);
  border-radius: 0;
  background: transparent;
  color: var(--v-footer-muted);
  font-size: var(--v-text-xs);
  letter-spacing: 0.06em;
  cursor: not-allowed;
  opacity: 0.85;
}

.v-footer-bottom__payments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.v-footer-bottom__pay-label {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v-footer-muted);
  line-height: 1;
}

.v-footer-bottom__pay:not(:last-child) .v-footer-bottom__pay-label::after {
  content: "·";
  margin-left: 0.85rem;
  color: rgba(247, 245, 240, 0.28);
}

@media (min-width: 900px) {
  .v-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--v-space-8);
  }

  .v-footer-bottom__primary {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--v-space-5) var(--v-space-7);
  }

  .v-footer-bottom__legal-link {
    min-height: 0;
  }

  .v-footer-bottom__meta {
    flex-direction: row;
    align-items: center;
    gap: var(--v-space-6);
  }

  .v-footer-bottom__locale-select {
    min-height: 0;
    min-width: 11rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .v-footer-nav__link,
  .v-footer-nl__input,
  .v-footer-nl__submit {
    transition: none !important;
  }
}
