/**
 * Footer Origo — Escandalós i potent. BRAND DECK.
 */

.footer-origo {
  background: var(--origo-dark);
  color: var(--origo-cream);
  margin-top: 0;
}

/* Franja superior: missió (un sol CTA a la secció Col·laborar) */
.footer-origo-strip {
  background: linear-gradient(135deg, #1e2d2c 0%, var(--origo-dark) 50%, #1a2928 100%);
  padding: 2.5rem 1.5rem;
  border-bottom: 3px solid var(--origo-blue);
  box-shadow: 0 4px 0 rgba(160, 201, 203, 0.15);
}

.footer-origo-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .footer-origo-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .footer-origo-container { padding-left: 2rem; padding-right: 2rem; }
  .footer-origo-strip {
    padding: 3.5rem 2rem;
  }
}

.footer-origo-strip-inner {
  text-align: center;
}

.footer-origo-tagline {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Contingut principal */
.footer-origo-main {
  padding: 3rem 0 2.5rem;
}

.footer-origo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-origo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-origo-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 3rem;
  }
}

.footer-origo-brand {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .footer-origo-brand {
    grid-column: span 1;
  }
}

.footer-origo-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
  display: block;
}

.footer-origo-gracias {
  font-size: 1rem;
  color: rgba(245, 244, 237, 0.85);
  margin: 0;
  line-height: 1.5;
}

.footer-origo-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--origo-blue);
  margin: 0 0 1.25rem;
}

.footer-origo-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-origo-menu li {
  margin-bottom: 0.5rem;
}

.footer-origo-menu a {
  color: rgba(245, 244, 237, 0.9);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-origo-menu a:hover {
  color: var(--origo-lime);
}

.footer-origo-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-origo-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: rgba(245, 244, 237, 0.9);
}

.footer-origo-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-origo-contact a:hover {
  color: var(--origo-lime);
}

.footer-origo-contact-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--origo-blue);
  margin-top: 0.15rem;
}

.footer-origo-contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-origo-newsletter-text {
  font-size: 0.9375rem;
  color: rgba(245, 244, 237, 0.8);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.footer-origo-form {
  display: flex;
  gap: 0.5rem;
}

.footer-origo-input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-origo-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-origo-input:focus {
  outline: none;
  border-color: var(--origo-blue);
  box-shadow: 0 0 0 3px rgba(160, 201, 203, 0.25);
}

.footer-origo-submit {
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--origo-blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-origo-submit:hover {
  background: var(--origo-lime);
  color: var(--origo-dark);
  transform: scale(1.02);
}

/* Barra inferior */
.footer-origo-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.footer-origo-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-origo-copy {
  font-size: 0.875rem;
  color: rgba(245, 244, 237, 0.7);
  margin: 0;
}

.footer-origo-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-origo-legal a {
  font-size: 0.875rem;
  color: rgba(245, 244, 237, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-origo-legal a:hover {
  color: var(--origo-lime);
}

/* ========== CTA flotant "Fes un donatiu" (cantonada inferior dreta, totes les pàgines) ========== */
.origo-float-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, var(--origo-blue) 0%, #7eb5b8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(39, 56, 55, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: origo-float-cta-breathe 3s ease-in-out infinite;
}

.origo-float-cta:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(39, 56, 55, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.origo-float-cta-text {
  white-space: nowrap;
}

.origo-float-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.origo-float-cta-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

@keyframes origo-float-cta-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(39, 56, 55, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; }
  50% { transform: scale(1.04); box-shadow: 0 10px 28px rgba(39, 56, 55, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
}

