﻿/* ===========================
   COMPONENTE: Footer
   Depende de: variables.css
=========================== */

.footer {
  position: relative;
  overflow: hidden;
  min-height: clamp(36rem, 72vw, 52rem);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  background-color: var(--color-footer-bg);
  border-top: 1px solid var(--color-navbar-border-dark-strong);
}


.footer .container {
  position: relative;
  z-index: 2;
}

/* ── Assinatura gigante ── */
.footer-headline-wrap {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.footer-headline {
  width: 100%;
  margin: 0 0 calc(-1 * var(--space-8));
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 18rem);
  font-weight: normal;
  line-height: 0.74;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  opacity: 0.08;
  transform-origin: left bottom;
}

/* Estado inicial para animação GSAP — JS revela como marca d'água */
.footer-headline {
  opacity: 0;
}

/* ── Grid editorial ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  min-height: clamp(14rem, 24vw, 20rem);
  padding-top: var(--space-3);
  padding-bottom: var(--space-10);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-col--brand {
  max-width: 24rem;
}

.footer-col--contact {
  max-width: 24rem;
}

.footer-logo {
  width: calc(var(--space-20) + var(--space-10));
  height: auto;
}

.footer-tagline {
  max-width: 22rem;
  margin: 0;
  color: var(--color-white);
  font-size: var(--text-xl);
  line-height: 1.3;
}

.footer-status {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.footer-status span {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--color-text-muted);
  font-family: var(--font-ui-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-status span::before {
  content: '';
  width: var(--space-2);
  height: var(--space-2);
  flex: 0 0 auto;
  background-color: var(--color-primary-light);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  color: var(--color-text-muted);
  background-color: var(--color-navbar-panel-card);
  border: 1px solid var(--color-navbar-border-dark-strong);
  transition:
    border-color var(--dur-fast) var(--ease-machado),
    color var(--dur-fast) var(--ease-machado),
    transform var(--dur-fast) var(--ease-machado);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  /* outline removed — :focus-visible handled globally in reset.css */
  transform: translateY(calc(-1 * var(--space-1)));
}

.footer-col__title {
  margin: 0;
  color: var(--color-text-muted);
  font-family: var(--font-ui-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-text-muted);
  font-family: var(--font-ui-mono);
  font-size: var(--text-sm);
  line-height: 1.35;
  text-decoration-color: transparent;
  text-transform: uppercase;
  transition:
    color var(--dur-fast) var(--ease-machado),
    text-decoration-color var(--dur-fast) var(--ease-machado),
    transform var(--dur-fast) var(--ease-machado);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-white);
  text-decoration-color: var(--color-primary-light);
  /* outline removed — :focus-visible handled globally in reset.css */
  transform: translateX(var(--space-1));
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--space-14);
  padding-inline: var(--space-5);
  color: var(--color-white);
  font-family: var(--font-ui-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition:
    background-color var(--dur-fast) var(--ease-machado),
    border-color var(--dur-fast) var(--ease-machado),
    transform var(--dur-fast) var(--ease-machado);
}

.footer-cta:hover,
.footer-cta:focus-visible {
  background-color: var(--color-navy);
  border-color: var(--color-primary-light);
  /* outline removed — :focus-visible handled globally in reset.css */
  transform: translateY(calc(-1 * var(--space-1)));
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  font-style: normal;
}

.footer-address p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.footer-address a {
  color: var(--color-text-muted);
  text-decoration-color: var(--color-border-light);
  transition:
    color var(--dur-fast) var(--ease-machado),
    text-decoration-color var(--dur-fast) var(--ease-machado);
}

.footer-address a:hover,
.footer-address a:focus-visible {
  color: var(--color-white);
  text-decoration-color: var(--color-primary-light);
  /* outline removed — :focus-visible handled globally in reset.css */
}

/* ── Bottom bar ── */
.footer-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-navbar-border-dark-strong);
}

.footer-copy {
  margin: 0;
  color: var(--color-bg-light);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.footer-copy a {
  color: var(--color-primary-muted);
  transition: color var(--dur-fast) var(--ease-machado);
}

.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: var(--color-primary-light);
  /* outline removed — :focus-visible handled globally in reset.css */
}

.footer-signature {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  margin-top: 0.75rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    #fff 50%,
    rgba(255, 255, 255, 0.8) 60%,
    rgba(255, 255, 255, 0.5) 100%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: footer-shimmer 4s ease-in-out infinite;
}

.footer-signature a {
  text-decoration: none;
  background: inherit;
  background-size: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: inherit;
}

@keyframes footer-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

@media (min-width: 768px) {
  .footer {
    min-height: clamp(34rem, 55vw, 48rem);
    padding-top: var(--space-20);
  }

  .footer-grid {
    grid-template-columns: 1.35fr minmax(0, 0.72fr);
  }

  .footer-col--contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(20rem, 1.55fr) minmax(10rem, 0.7fr) minmax(18rem, 1fr);
    align-items: start;
  }

  .footer-col--contact {
    grid-column: auto;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .footer {
    min-height: 42rem;
  }

  .footer-headline {
    font-size: clamp(4rem, 32vw, 7rem);
  }

  .footer-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-social a,
  .footer-links a,
  .footer-cta,
  .footer-copy a {
    transition: none;
  }
}
