/* ==========================================================================
   Calyra - site footer and consent banner
   Replaces the template footer. No social links by request.
   ========================================================================== */

/* ------------------------------- footer -------------------------------- */
.c-foot {
  background: var(--c-dark, #322f3b);
  color: color-mix(in srgb, var(--c-light, #efefef) 88%, var(--c-dark, #322f3b));
  font-family: var(--c-sans, system-ui, sans-serif);
  font-size: .875rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.c-foot__wrap {
  width: min(100% - 2.5rem, 76rem);
  margin: 0 auto;
}

/* top: brand + link columns */
.c-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 3rem 2.5rem;
  padding: 4rem 0 3rem;
}
.c-foot__brand {
  font-family: var(--c-serif, Georgia, serif);
  font-size: 1.5rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.125rem;
}
.c-foot__pitch {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  color: color-mix(in srgb, var(--c-light, #efefef) 74%, var(--c-dark, #322f3b));
}
.c-foot__badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.c-foot__badge {
  display: inline-flex; align-items: center; gap: .4375rem;
  border: 1px solid color-mix(in srgb, var(--c-light, #efefef) 22%, transparent);
  border-radius: 100px;
  padding: .375rem .75rem;
  font-size: .75rem;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--c-light, #efefef) 80%, var(--c-dark, #322f3b));
  white-space: nowrap;
}
.c-foot__badge svg { width: .875rem; height: .875rem; flex: none; color: var(--c-accent, #847c9b); }

.c-foot__coltitle {
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent, #847c9b);
  margin: 0 0 1.125rem;
  font-weight: 500;
}
.c-foot__list { list-style: none; margin: 0; padding: 0; }
.c-foot__list li { margin-bottom: .625rem; }
.c-foot__list a {
  color: color-mix(in srgb, var(--c-light, #efefef) 80%, var(--c-dark, #322f3b));
  text-decoration: none;
  transition: color .2s ease;
}
.c-foot__list a:hover,
.c-foot__list a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: .2em; }

/* seller block */
.c-foot__seller {
  border-top: 1px solid color-mix(in srgb, var(--c-light, #efefef) 14%, transparent);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem 2.5rem;
}
.c-foot__sellerItem { min-width: 0; }
.c-foot__sellerLabel {
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c-light, #efefef) 52%, var(--c-dark, #322f3b));
  margin: 0 0 .375rem;
}
.c-foot__sellerValue {
  margin: 0;
  color: color-mix(in srgb, var(--c-light, #efefef) 88%, var(--c-dark, #322f3b));
  font-size: .8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.c-foot__sellerValue a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--c-light,#efefef) 30%, transparent); }
.c-foot__sellerValue a:hover { color: #fff; border-bottom-color: #fff; }

/* legal notice strip */
.c-foot__notice {
  border-top: 1px solid color-mix(in srgb, var(--c-light, #efefef) 14%, transparent);
  padding: 1.75rem 0;
}
.c-foot__notice p {
  margin: 0 0 .75rem;
  font-size: .75rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--c-light, #efefef) 58%, var(--c-dark, #322f3b));
  max-width: 90ch;
}
.c-foot__notice p:last-child { margin-bottom: 0; }
.c-foot__notice a { color: color-mix(in srgb, var(--c-light,#efefef) 75%, var(--c-dark,#322f3b)); }

/* bottom bar */
.c-foot__bottom {
  border-top: 1px solid color-mix(in srgb, var(--c-light, #efefef) 14%, transparent);
  padding: 1.5rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: color-mix(in srgb, var(--c-light, #efefef) 58%, var(--c-dark, #322f3b));
}
.c-foot__bottomLinks { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.c-foot__bottomLinks a { color: inherit; text-decoration: none; }
.c-foot__bottomLinks a:hover { color: #fff; }
.c-foot__bottomLinks button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.c-foot__bottomLinks button:hover { color: #fff; }

@media (max-width: 991px) {
  .c-foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; padding: 3rem 0 2.5rem; }
  .c-foot__brandCol { grid-column: 1 / -1; }
  .c-foot__pitch { max-width: 46ch; }
}
@media (max-width: 599px) {
  .c-foot__top { grid-template-columns: 1fr; gap: 2rem; }
  .c-foot__seller { grid-template-columns: 1fr; gap: 1.25rem; }
  .c-foot__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .c-foot__bottomLinks { gap: .75rem 1.25rem; }
}

/* --------------------------- consent banner ---------------------------- */
.c-consent {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 9999;
  background: #fff;
  color: var(--c-dark, #322f3b);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 24px 60px rgba(0,0,0,.22);
  font-family: var(--c-sans, system-ui, sans-serif);
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: center;
  animation: c-consent-in .35s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes c-consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .c-consent { animation: none; } }

.c-consent__title {
  font-family: var(--c-serif, Georgia, serif);
  font-size: 1.125rem;
  margin: 0 0 .375rem;
}
.c-consent__text {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--c-muted, #6b6878);
  max-width: 68ch;
}
.c-consent__text a { color: var(--c-accent, #847c9b); }
.c-consent__actions { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.c-consent__btn {
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 500;
  padding: .75rem 1.25rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.c-consent__btn--accept { background: var(--c-dark, #322f3b); color: var(--c-light, #efefef); }
.c-consent__btn--accept:hover { background: var(--c-accent, #847c9b); color: #fff; }
.c-consent__btn--reject { background: #fff; color: var(--c-dark, #322f3b); border-color: color-mix(in srgb, var(--c-dark,#322f3b) 20%, #fff); }
.c-consent__btn--reject:hover { border-color: var(--c-dark, #322f3b); }
.c-consent__btn--link {
  background: none; border: 0; padding: .75rem .25rem;
  color: var(--c-muted, #6b6878); text-decoration: underline; text-underline-offset: .2em;
}
.c-consent__btn--link:hover { color: var(--c-dark, #322f3b); }

/* preferences panel */
.c-consent__prefs { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--c-dark,#322f3b) 12%, #fff); padding-top: 1.25rem; margin-top: .25rem; }
.c-consent__row { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem 0; }
.c-consent__row + .c-consent__row { border-top: 1px solid color-mix(in srgb, var(--c-dark,#322f3b) 8%, #fff); }
.c-consent__rowMain { flex: 1; min-width: 0; }
.c-consent__rowTitle { font-weight: 600; font-size: .875rem; margin: 0 0 .25rem; }
.c-consent__rowDesc { font-size: .75rem; line-height: 1.55; color: var(--c-muted, #6b6878); margin: 0; }
.c-consent__toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--c-muted,#6b6878); white-space: nowrap; padding-top: .125rem; }
.c-consent__toggle input { width: 1.125rem; height: 1.125rem; accent-color: var(--c-accent, #847c9b); cursor: pointer; }
.c-consent__toggle input:disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 767px) {
  .c-consent { grid-template-columns: 1fr; padding: 1.25rem; left: .625rem; right: .625rem; bottom: .625rem; max-height: 88vh; overflow-y: auto; }
  .c-consent__actions { width: 100%; }
  .c-consent__btn--accept, .c-consent__btn--reject { flex: 1 1 auto; }
}
