/* =========================================================
   AVELOR Footer — Slice 11
   Source: Claude Design Footer.jsx + styles.css:522+
   ========================================================= */

.av-footer {
  margin-top: 64px;
  font-family: var(--font-sans);
  color: var(--fg-primary);
  /* override Blocksy footer defaults */
  padding: 0;
  background: none;
}

/* Kill Blocksy footer rows that may still render */
.av-footer > .ct-footer-row,
.av-footer > .ct-container { display: none; }

/* =========================================================
   11a — Newsletter band
   ========================================================= */
.av-footer-news {
  background: var(--avelor-champagne);
  border-top: 1px solid rgba(32, 35, 34, 0.06);
  border-bottom: 1px solid rgba(32, 35, 34, 0.06);
}
.av-footer-news-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px var(--container-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.av-footer-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--avelor-graphite);
  opacity: 0.7;
  margin-bottom: 12px;
}
.av-footer-news-title {
  font-family: var(--font-sans);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--avelor-graphite);
}
.av-footer-news-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--avelor-graphite);
  opacity: 0.78;
  margin: 0;
  max-width: 44ch;
}

.av-footer-news-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.av-footer-input {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--avelor-white);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  border: 1px solid rgba(32, 35, 34, 0.08);
}
.av-footer-input input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 14px;
  padding: 12px 0;
  color: var(--fg-primary);
  box-shadow: none;
}
.av-footer-input input[type="email"]::placeholder {
  color: var(--fg-muted);
  opacity: 1;
}
.av-footer-input input[type="email"]:focus,
.av-footer-input input[type="email"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.av-footer-input:focus-within {
  border-color: rgba(32, 35, 34, 0.22);
}
.av-footer-input .av-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  flex-shrink: 0;
  background: var(--avelor-graphite);
  color: var(--avelor-white);
  font-size: 14px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.av-footer-input .av-btn:hover,
.av-footer-input .av-btn:focus-visible {
  background: var(--avelor-deep-green);
}
.av-footer-input .av-btn-ic {
  display: inline-flex;
  align-items: center;
}
.av-footer-input .av-btn-ic svg {
  width: 14px;
  height: 14px;
}

.av-footer-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--avelor-graphite);
  opacity: 0.75;
  cursor: pointer;
  margin: 0;
}
.av-footer-consent input[type="checkbox"] {
  accent-color: var(--avelor-deep-green);
  margin: 2px 0 0;
  flex-shrink: 0;
}
.av-footer-consent a,
.av-footer-consent .av-link {
  color: inherit;
  border-bottom: 1px solid var(--avelor-graphite);
  text-decoration: none;
  padding-bottom: 1px;
}
.av-footer-consent a:hover {
  color: var(--avelor-deep-green);
  border-bottom-color: var(--avelor-deep-green);
}

/* =========================================================
   11b — Main band (graphite) + Trust strip
   ========================================================= */
.av-footer-main {
  background: var(--avelor-graphite);
  color: var(--avelor-white);
  padding: 64px var(--container-pad) 36px;
}
.av-footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(254, 254, 254, 0.10);
}

/* Brand column */
.av-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 360px;
}
.av-footer-logo {
  display: inline-block;
  line-height: 0;
}
.av-footer-logo img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.av-footer-brand-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(254, 254, 254, 0.72);
  margin: 0;
}
.av-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.av-footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--avelor-white);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.av-footer-contact .ic {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(254, 254, 254, 0.08);
  flex-shrink: 0;
}
.av-footer-contact .ic svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}
.av-footer-contact:hover { color: var(--avelor-champagne); }
.av-footer-contact--static { cursor: default; }
.av-footer-contact--static:hover { color: var(--avelor-white); }

/* Link columns */
.av-footer-col-title {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(254, 254, 254, 0.55);
  margin: 6px 0 18px;
}
.av-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.av-footer-col li { margin: 0; }
.av-footer-col a {
  font-size: 14px;
  color: rgba(254, 254, 254, 0.85);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.av-footer-col a:hover { color: var(--avelor-champagne); }

/* Trust strip */
.av-footer-trust {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0 4px;
}
.av-footer-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.av-footer-trust-item .ic {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(254, 254, 254, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.av-footer-trust-item .ic svg {
  width: 18px;
  height: 18px;
  color: var(--avelor-champagne);
}
.av-footer-trust-item .t {
  font-size: 13px;
  font-weight: 500;
  color: var(--avelor-white);
  line-height: 1.3;
}
.av-footer-trust-item .m {
  font-size: 12px;
  color: rgba(254, 254, 254, 0.6);
  margin-top: 2px;
  line-height: 1.3;
}

/* =========================================================
   11c — Bottom strip (near-black band)
   ========================================================= */
.av-footer-bottom {
  background: #16181A;
  color: rgba(254, 254, 254, 0.55);
  font-size: 12px;
}
.av-footer-bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px var(--container-pad);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
}
.av-footer-copy {
  white-space: nowrap;
}
.av-footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.av-footer-legal a {
  color: rgba(254, 254, 254, 0.7);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.av-footer-legal a:hover { color: var(--avelor-white); }
.av-footer-legal .sep { opacity: 0.4; }

.av-footer-pay {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.av-footer-pay .pay {
  padding: 4px 10px;
  border: 1px solid rgba(254, 254, 254, 0.12);
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(254, 254, 254, 0.78);
  background: rgba(254, 254, 254, 0.03);
  white-space: nowrap;
}

.av-footer-social {
  display: flex;
  gap: 6px;
}
.av-footer-soc {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(254, 254, 254, 0.14);
  color: rgba(254, 254, 254, 0.85);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.av-footer-soc:hover {
  background: var(--avelor-champagne);
  border-color: var(--avelor-champagne);
  color: var(--avelor-graphite);
}

/* =========================================================
   Mobile (≤900px)
   ========================================================= */
@media (max-width: 900px) {
  .av-footer { margin-top: 32px; }

  .av-footer-news-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 20px;
  }
  .av-footer-news-title { font-size: 28px; }
  .av-footer-input { padding: 6px; }
  .av-footer-input input[type="email"] { padding: 10px 12px; }
  .av-footer-input .av-btn { padding: 12px 16px; }
  /* Collapse "Підписатися" text label, keep chevron icon only on narrow screens */
  .av-footer-input .av-btn > span:first-child { display: none; }

  .av-footer-main { padding: 48px 20px 28px; }
  .av-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 32px;
  }
  .av-footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .av-footer-trust {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-top: 28px;
  }

  .av-footer-bottom-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px 28px;
    text-align: left;
    align-items: start;
  }
  .av-footer-copy { white-space: normal; }
  .av-footer-legal { gap: 8px 12px; }
  .av-footer-pay { order: 3; }
  .av-footer-social { order: 4; }
}
