/* ═══════════════════════════════════════════════
   FOOTER — Anigami
   ═══════════════════════════════════════════════ */

.anigami-footer {
  background: var(--color-dark);
  padding: 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 -80px 80px 20px var(--color-dark);
}

/* ── Grid principal ── */
.footer-main {
  position: relative;
  z-index: 1;
  background: var(--color-dark2);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

/* ── Columna general ── */
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 18px;
}

/* ── Columna marca ── */
.footer-logo-area {
  margin-bottom: 16px;
}
.footer-logo-area .custom-logo-link img,
.footer-logo-img {
  width: 100px;
  height: auto;
  object-fit: contain;
  display: block;
}
.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

/* ── Social ── */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(232, 120, 48, 0.08);
}

/* ── Llistes de menú ── */
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav-list li { display: block; }
.footer-nav-list a,
.footer-contact-link {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav-list a:hover,
.footer-contact-link:hover {
  color: var(--color-accent);
}

/* ── Newsletter ── */
.footer-newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.newsletter-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 160px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]:focus {
  border-color: rgba(232, 120, 48, 0.5);
}
.newsletter-form button {
  padding: 10px 24px;
  background: var(--color-accent);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform 0.2s;
}
.newsletter-form button:hover {
  background: #d06a28;
  transform: translateY(-1px);
}

/* ── Certificacions i premis ── */
.footer-certs {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--color-dark);
}
.footer-certs::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--color-dark2));
}
.footer-certs-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.footer-certs-inner h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin: 0;
}
.certs-row {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.cert-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.cert-card img {
  height: 90px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity var(--transition);
}
.cert-card:hover img {
  opacity: 1;
}
/* Textura de gra */
.footer-certs .texture-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
}

/* ── Subvenció ── */
.footer-subv {
  position: relative;
  z-index: 1;
  background: var(--color-dark2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-subv-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-subv-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.footer-subv-logos {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-subv-logos img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity var(--transition);
  display: block;
}
.footer-subv-logos img:hover,
.footer-subv-logos a:hover img {
  opacity: 0.9;
}
.footer-subv-logos a {
  display: flex;
  align-items: center;
}

/* ── Bottom ── */
.footer-bottom {
  position: relative;
  z-index: 1;
  background: var(--color-dark2);
}
.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  margin: 0;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  gap: 16px;
}
.footer-bottom-inner a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom-inner a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 40px 16px 32px;
  }
  .footer-col--brand { grid-column: auto; }
  .footer-newsletter-inner { flex-direction: column; align-items: stretch; }
  .newsletter-label { white-space: normal; }
  .footer-subv-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
  .footer-certs-inner { padding: 60px 16px 80px; gap: 24px; }
  .certs-row { gap: 12px; }
}
