/* ============================================
   FOOTER — Formato editorial (ref. makermember.com).
   Topo: apply-CTA + statement grande.
   Meio: 3 groupings pequenos.
   Base: social + meta + logo Flash gigante.
   ============================================ */

.footer {
  position: relative;
  margin-top: clamp(3rem, 8vh, 6rem);
  padding: clamp(3rem, 7vh, 5.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 3vh, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3.5rem);
  color: var(--color-text);
}

/* ===== Top (apply + statement) ===== */
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(0.5rem, 2vh, 1.25rem);
}

.footer__apply {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  text-decoration: none;
  padding-top: 0.35rem;
  transition: color var(--duration-base) var(--ease-apple);
}

.footer__apply-label {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.15rem;
  transition: border-color var(--duration-base) var(--ease-apple);
}

.footer__apply-arrow {
  display: inline-flex;
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform var(--duration-base) var(--ease-apple);
}

.footer__apply-arrow svg {
  width: 100%;
  height: 100%;
}

.footer__apply:hover {
  color: #fff;
}

.footer__apply:hover .footer__apply-label {
  border-bottom-color: var(--color-primary);
}

.footer__apply:hover .footer__apply-arrow {
  transform: translate(4px, -4px);
}

.footer__statement {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw + 0.8rem, 3.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
  max-width: 24ch;
}

.footer__statement-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Divider ===== */
.footer__divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 12%,
    var(--color-border) 88%,
    transparent 100%
  );
}

/* ===== Groups (middle) ===== */
.footer__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(0.5rem, 1vh, 1rem) 0;
}

.footer__group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.footer__group-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin: 0;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-apple);
  width: fit-content;
  max-width: 100%;
}

.footer__link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--gradient-primary);
  transition: width var(--duration-base) var(--ease-apple);
}

.footer__link:hover {
  color: #fff;
}

.footer__link:hover::before {
  width: 12px;
}

.footer__link-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.footer__link--maps {
  margin-top: 0.3rem;
  color: #fff;
}

.footer__link--maps svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-apple);
}

.footer__link--maps:hover svg {
  transform: translateX(3px);
}

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.005em;
}

.footer__address span:first-child {
  color: #fff;
  font-weight: 600;
}

.footer__hours {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: -0.005em;
}

/* ===== Meta row (social + copy + legal) ===== */
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  padding-top: 0.25rem;
}

.footer__social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 0.5rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: rgba(255, 255, 255, 0.82);
  transition:
    background var(--duration-base) var(--ease-apple),
    border-color var(--duration-base) var(--ease-apple),
    color var(--duration-base) var(--ease-apple),
    transform var(--duration-fast) var(--ease-apple);
}

.footer__social-link:hover {
  color: #fff;
  background: rgba(225, 29, 42, 0.14);
  border-color: rgba(225, 29, 42, 0.35);
}

.footer__social-link:active {
  transform: scale(0.94);
}

.footer__social-link svg {
  width: 17px;
  height: 17px;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--color-text-subtle);
  letter-spacing: -0.005em;
  line-height: 1.5;
  order: 2;
}

.footer__dot {
  margin: 0 0.4rem;
  color: var(--color-text-subtle);
}

.footer__cnpj {
  color: var(--color-text-muted);
}

.footer__legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 1.25rem;
  order: 3;
}

.footer__legal-link {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-apple);
}

.footer__legal-link:hover {
  color: #fff;
}

/* ===== Brand gigante (fechamento) ===== */
.footer__brand {
  margin-top: clamp(1rem, 3vh, 2rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

.footer__brand-logo {
  height: clamp(120px, 14vw, 200px);
  width: auto;
  max-width: 100%;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 18px 40px rgba(225, 29, 42, 0.18));
}

/* ===== Responsive ===== */
@media (max-width: 1079px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__brand-logo {
    height: clamp(100px, 16vw, 160px);
  }
}

@media (max-width: 767px) {
  .footer {
    margin-top: clamp(2rem, 6vh, 4rem);
    padding: clamp(2.5rem, 7vh, 4rem) clamp(1rem, 5vw, 1.5rem) clamp(1rem, 3vh, 1.5rem);
    gap: clamp(1.75rem, 4vh, 2.75rem);
  }

  .footer__groups {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
  }

  .footer__group:last-child {
    grid-column: 1 / -1;
  }

  .footer__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer__social {
    order: 1;
  }

  .footer__legal {
    order: 2;
    gap: 1rem;
  }

  .footer__copy {
    order: 3;
  }

  .footer__brand-logo {
    height: clamp(88px, 22vw, 130px);
  }
}

@media (max-width: 480px) {
  .footer__groups {
    grid-template-columns: 1fr;
  }

  .footer__brand-logo {
    height: clamp(72px, 26vw, 110px);
  }
}
