/* footer.css - COMPLETO ATUALIZADO (logo igual ao header: quadrado + img dentro) */

/* ===========================
   FOOTER (SECTION – 88vh / FULL BG)
   =========================== */

.footer-section {
  position: relative;
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
  background: var(--color-surface);

  display: flex;
  align-items: stretch;
}

/* ===========================
   LINHA DOURADA NO TOPO DO FOOTER
   =========================== */

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    #c99a05,
    #f5c542,
    #c99a05,
    transparent
  );

  pointer-events: none;
  z-index: 3; /* acima do background e overlay */
}

/* ===========================
   FOOTER ROOT (background ocupa tudo)
   =========================== */

.footer-root {
  position: relative;
  width: 100%;

  /* ✅ garante que o background ocupe toda a área */
  min-height: 88vh;
  display: flex;
  align-items: center;

  padding: var(--spacing-4xl) 0 var(--spacing-3xl);

  color: var(--color-on-surface);

  background-image: url("https://images.pexels.com/photos/15883403/pexels-photo-15883403.jpeg?auto=compress&cs=tinysrgb&h=940&w=1920");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* overlay */
.footer-overlay {
  inset: 0;
  z-index: 1;
  position: absolute;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.95)
  );
}

/* ===========================
   CONTENT WRAPPER
   =========================== */

.footer-content-wrapper {
  position: relative;
  z-index: 2;

  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  max-width: var(--content-max-width);
}

.footer-grid {
  gap: var(--spacing-3xl);
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-3xl);
}

.footer-bottom {
  margin-top: var(--spacing-xl);
}

/* colunas */
.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-brand {
  flex: 1.5;
}

/* CTA coluna com card (se usar no futuro) */
.footer-cta-col {
  border: 1px solid var(--color-border);
  padding: var(--spacing-xl);
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
}

/* ===========================
   DIVIDER / BOTTOM
   =========================== */

.footer-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-border),
    transparent
  );
  margin-bottom: var(--spacing-xl);
}

.footer-bottom-content {
  gap: var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* ===========================
   BRAND (LOGO IGUAL HEADER)
   =========================== */

.footer-logo-container {
  gap: var(--spacing-sm);
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

/* quadrado igual ao header (.navigation-logo-icon) */
.footer-logo-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--dl-color-theme-accent1);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--color-secondary) 30%, transparent);
}

/* imagem igual ao header (.navigation-logo-img) */
.footer-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;

  /* remove sombra antiga pra ficar igual ao header */
  filter: none;
}

.footer-brand-name {
  font-size: var(--font-size-xl);
  letter-spacing: 0.1em;
  color: #ffffff;
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-heading);
}

.footer-description {
  color: var(--color-on-surface-secondary);
  max-width: 360px;
  margin-bottom: var(--spacing-xl);
}

/* ===========================
   SOCIAL (COM IMG)
   =========================== */

.footer-socials {
  gap: var(--spacing-md);
  display: flex;
}

.footer-social-link {
  color: var(--color-on-surface);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  background: var(--color-surface-elevated);

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ícone via imagem */
.footer-social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.footer-social-link:hover {
  transform: translateY(-4px);
  background: var(--color-secondary);
  box-shadow: 0 8px 20px
    color-mix(in oklab, var(--color-secondary) 30%, transparent);
}

.footer-social-link:hover .footer-social-icon {
  filter: brightness(0) saturate(100%) invert(1);
}

/* ===========================
   TITLES
   =========================== */

.footer-heading {
  color: var(--color-secondary);
  display: inline-block;
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.footer-heading::after {
  left: 0;
  width: 30px;
  bottom: -8px;
  height: 2px;
  content: "";
  position: absolute;
  background: var(--color-secondary);
}

/* ===========================
   LINKS
   =========================== */

.footer-nav {
  display: block;
}

.footer-list {
  gap: var(--spacing-sm);
  display: flex;
  padding: 0;
  list-style: none;
  flex-direction: column;
}

.footer-list-item {
  list-style: none;
}

.footer-link {
  color: var(--color-on-surface-secondary);
  display: inline-block;
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
  font-family: var(--font-family-body);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-secondary);
  transform: translateX(6px);
}

/* ===========================
   INFO LIST
   =========================== */

.footer-info-list {
  gap: var(--spacing-lg);
  display: flex;
  padding: 0;
  list-style: none;
  flex-direction: column;
}

.footer-info-item {
  gap: var(--spacing-md);
  display: flex;
  align-items: flex-start;
}

.footer-info-icon-box {
  color: var(--color-secondary);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-info-text {
  color: var(--color-on-surface-secondary);
  line-height: 1.4;
}

/* ===========================
   CTA
   =========================== */

.footer-cta-text {
  color: var(--color-on-surface-secondary);
  margin-bottom: var(--spacing-xl);
}

.footer-whatsapp-btn {
  gap: var(--spacing-sm);
  width: 100%;
  display: flex;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===========================
   LEGAL
   =========================== */

.footer-copyright {
  color: var(--color-on-surface-secondary);
  opacity: 0.6;
  font-size: var(--font-size-xs);
}

.footer-legal {
  gap: var(--spacing-xl);
  display: flex;
}

.footer-legal-link {
  color: var(--color-on-surface-secondary);
  opacity: 0.6;
  font-size: var(--font-size-xs);
  transition: opacity 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--color-secondary);
  opacity: 1;
}

/* ===========================
   RESPONSIVO
   =========================== */

@media (max-width: 991px) {
  .footer-section,
  .footer-root {
    min-height: 88vh;
  }

  .footer-grid {
    gap: var(--spacing-2xl);
  }

  .footer-column {
    flex: 1 1 calc(50% - var(--spacing-2xl));
  }

  .footer-brand {
    flex: 1 1 100%;
    margin-bottom: var(--spacing-xl);
  }
}

@media (max-width: 767px) {
  .footer-root {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
    background-attachment: scroll;
  }

  .footer-column {
    flex: 1 1 100%;
  }

  .footer-bottom-content {
    text-align: center;
    flex-direction: column;
  }

  .footer-legal {
    gap: var(--spacing-lg);
    justify-content: center;
  }
}

@media (max-width: 520px) {
  /* igual header */
  .footer-logo-icon {
    width: 36px;
    height: 36px;
  }

  .footer-brand-logo {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 479px) {
  .footer-logo-container,
  .footer-socials {
    justify-content: center;
  }

  .footer-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-heading {
    width: 100%;
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-list {
    align-items: center;
  }

  .footer-info-item {
    text-align: center;
    align-items: center;
    flex-direction: column;
  }
}
