/* ============================================================
   FOOTER - Estilos Completos e Responsivos
   Gtec Hidrojateamento - Hidrojateamento em Bauru
   ============================================================ */

/* ============================================================
   VARIÁVEIS & CORES (Herdadas do style.css)
   ============================================================ */
:root {
  --footer-bg: #0f1419;
  --footer-bg-light: #1a1f2e;
  --footer-text: #e5e7eb;
  --footer-text-muted: #9ca3af;
  --footer-border: rgba(249, 115, 22, 0.2);
  --footer-hover: var(--color-primary);
  --footer-transition: 0.3s ease;
}

/* ============================================================
   FOOTER - CONTAINER PRINCIPAL
   ============================================================ */
.footer {
  background: linear-gradient(135deg, var(--footer-bg) 0%, var(--footer-bg-light) 100%);
  color: var(--footer-text);
  border-top: 2px solid var(--footer-border);
  margin-top: 80px;
  font-family: var(--font-body);
}

.footer__main {
  padding: 60px 0 40px;
}

.footer__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* ============================================================
   COLUNA 1: SOBRE A EMPRESA
   ============================================================ */
.footer__column--about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo-wrapper {
  margin-bottom: 12px;
}

.footer__logo {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0.95);
  transition: filter var(--footer-transition);
}

.footer__logo:hover {
  filter: brightness(1.1);
}

.footer__about-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--footer-text-muted);
  margin: 0;
}

.footer__about-text strong {
  color: var(--footer-text);
  font-weight: 600;
}

/* ============================================================
   REDES SOCIAIS
   ============================================================ */
.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 1.1rem;
  transition: all var(--footer-transition);
}

.footer__social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

/* ============================================================
   COLUNAS DE LINKS
   ============================================================ */
.footer__column--services,
.footer__column--links,
.footer__column--contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__column-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 8px;
}

.footer__column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.footer__column-title--secondary {
  margin-top: 24px;
  font-size: 0.95rem;
}

/* ============================================================
   LISTAS DE LINKS
   ============================================================ */
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  color: var(--footer-text-muted);
  font-size: 0.95rem;
  transition: all var(--footer-transition);
  position: relative;
  display: inline-block;
  width: fit-content;
}

.footer__link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--footer-transition);
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__link:hover::before {
  width: 100%;
}

/* ============================================================
   SEÇÃO DE CONTATO
   ============================================================ */
.footer__contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.footer__contact-item i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 2px 0;
}

.footer__contact-value {
  font-size: 0.95rem;
  color: var(--footer-text-muted);
  margin: 0;
  line-height: 1.5;
}

.footer__contact-value a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--footer-transition);
}

.footer__contact-value a:hover {
  color: var(--color-primary);
}

/* ============================================================
   BOTÃO CTA DO RODAPÉ
   ============================================================ */
.footer__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #0d7e52 100%);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--footer-transition);
  margin-top: 12px;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}

.footer__cta-btn:hover {
  background: linear-gradient(135deg, #0d7e52 0%, var(--color-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5);
}

.footer__cta-btn i {
  font-size: 1.1rem;
}

/* ============================================================
   SEÇÃO INFERIOR - COPYRIGHT & LEGAL
   ============================================================ */
.footer__bottom {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--footer-border);
  padding: 24px 0;
}

.footer__bottom-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer__copyright {
  font-size: 0.85rem;
  color: var(--footer-text-muted);
  margin: 0;
}

.footer__copyright p {
  margin: 0;
}

.footer__copyright strong {
  color: var(--color-primary);
  font-weight: 600;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__legal-link {
  color: var(--footer-text-muted);
  font-size: 0.85rem;
  transition: color var(--footer-transition);
  white-space: nowrap;
}

.footer__legal-link:hover {
  color: var(--color-primary);
}

.footer__legal-sep {
  color: rgba(255, 255, 255, 0.2);
}

.footer__credits {
  font-size: 0.85rem;
  color: var(--footer-text-muted);
  text-align: right;
}

.footer__credits p {
  margin: 0;
}

.footer__credits strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVIDADE - TABLET (1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer__column-title::after {
    width: 30px;
  }
}

/* ============================================================
   RESPONSIVIDADE - MOBILE (768px)
   ============================================================ */
@media (max-width: 768px) {
  .footer__main {
    padding: 40px 0 30px;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__column--about {
    text-align: center;
  }

  .footer__logo-wrapper {
    display: flex;
    justify-content: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__column-title {
    font-size: 1rem;
  }

  .footer__column-title::after {
    width: 100%;
    left: 0;
  }

  .footer__list {
    gap: 8px;
  }

  .footer__link {
    font-size: 0.9rem;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__cta-btn {
    width: 100%;
    justify-content: center;
  }

  .footer__bottom-container {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .footer__copyright {
    font-size: 0.8rem;
  }

  .footer__legal {
    font-size: 0.8rem;
    gap: 8px;
  }

  .footer__credits {
    font-size: 0.8rem;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVIDADE - MOBILE PEQUENO (480px)
   ============================================================ */
@media (max-width: 480px) {
  .footer__main {
    padding: 30px 0 20px;
  }

  .footer__container {
    gap: 20px;
  }

  .footer__logo {
    height: 60px;
  }

  .footer__about-text {
    font-size: 0.9rem;
  }

  .footer__social {
    gap: 12px;
  }

  .footer__social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer__column-title {
    font-size: 0.95rem;
  }

  .footer__list {
    gap: 6px;
  }

  .footer__link {
    font-size: 0.85rem;
  }

  .footer__contact-item {
    gap: 10px;
  }

  .footer__contact-item i {
    width: 20px;
    height: 20px;
    font-size: 1rem;
  }

  .footer__contact-label {
    font-size: 0.75rem;
  }

  .footer__contact-value {
    font-size: 0.9rem;
  }

  .footer__cta-btn {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .footer__bottom {
    padding: 16px 0;
  }

  .footer__bottom-container {
    padding: 0 12px;
  }

  .footer__copyright {
    font-size: 0.75rem;
  }

  .footer__legal {
    font-size: 0.75rem;
  }

  .footer__legal-link {
    font-size: 0.75rem;
  }

  .footer__credits {
    font-size: 0.75rem;
  }
}

/* ============================================================
   ANIMAÇÕES & EFEITOS
   ============================================================ */
@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  animation: footerFadeIn 0.6s ease 0.3s both;
}

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */
.footer__link:focus,
.footer__social-link:focus,
.footer__cta-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================
   MODO ESCURO (Suporte adicional)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  .footer {
    background: linear-gradient(135deg, #0a0e14 0%, #131820 100%);
  }

  .footer__text {
    color: #e5e7eb;
  }
}
