/* ============================================================
   Footer.css — Estilos do rodapé | CM Serviços & Soluções
   ============================================================ */

   footer {
    position: relative;
    background: linear-gradient(160deg, #0c1e4a 0%, #1e293b 100%);
    overflow: hidden;
  }
  
  /* Linha decorativa no topo */
  footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,.7), transparent);
  }
  
  /* Fundo decorativo sutil */
  footer::after {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(29,78,216,.07) 0%, transparent 70%);
    pointer-events: none;
  }
  
  /* ── Layout interno do rodapé ──────────────────────────────── */
  .footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 18px;
    position: relative;
    z-index: 1;
  }

  .footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    text-align: left;
  }
  .footer-brand img {
    width: 52px; height: 52px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    transition: transform .3s ease;
    flex-shrink: 0;
  }
  .footer-brand:hover img { transform: scale(1.06); }

  .footer-name {
    display: block;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.2px;
  }
  .footer-tagline {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 2px;
  }

  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .footer-copy {
    color: #94a3b8;
    font-size: 12.5px;
    margin: 0;
  }
  .footer-sub {
    color: #64748b;
    font-size: 12px;
    margin: 0;
  }

  .social-link svg { width: 20px; height: 20px; display: block; }

  @media (max-width: 640px) {
    .footer-inner { padding: 24px 16px 90px; }
    .footer-top,
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-brand { flex-direction: column; text-align: center; gap: 8px; }
  }
  
  /* ── Links sociais ─────────────────────────────────────────── */
  .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
  }
  
  /* Animação de entrada escalonada */
  .social-links .social-link:nth-child(1) { animation: socialPop .5s cubic-bezier(.34,1.56,.64,1) .1s both; }
  .social-links .social-link:nth-child(2) { animation: socialPop .5s cubic-bezier(.34,1.56,.64,1) .22s both; }
  .social-links .social-link:nth-child(3) { animation: socialPop .5s cubic-bezier(.34,1.56,.64,1) .34s both; }
  .social-links .social-link:nth-child(4) { animation: socialPop .5s cubic-bezier(.34,1.56,.64,1) .46s both; }
  
  @keyframes socialPop {
    from { opacity: 0; transform: scale(.4) translateY(16px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
  }
  
  /* Pulso suave em loop no estado idle */
  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #e2e8f0;
    font-size: 1.2rem;
    text-decoration: none;
    backdrop-filter: blur(8px);
    position: relative;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1),
                background .28s ease,
                border-color .28s ease,
                box-shadow .28s ease,
                color .28s ease;
  }
  
  /* Anel de pulso ao redor do ícone */
  .social-link::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.18);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .28s ease, transform .28s ease;
  }
  
  .social-link:hover::before {
    opacity: 1;
    transform: scale(1.08);
    animation: ringPulse 1.2s ease-in-out infinite;
  }
  
  @keyframes ringPulse {
    0%, 100% { transform: scale(1.08); opacity: .7; }
    50%       { transform: scale(1.18); opacity: .2; }
  }
  
  /* O ícone sobe e gira levemente no hover */
  .social-link i {
    transition: transform .32s cubic-bezier(.34,1.56,.64,1);
    display: block;
  }
  
  .social-link:hover {
    transform: translateY(-5px) scale(1.12);
  }
  
  .social-link:hover i {
    transform: rotate(-12deg) scale(1.15);
  }
  
  .social-link:active {
    transform: scale(.95);
  }
  
  /* Cores individuais no hover */
  .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 28px rgba(220,39,67,.45), 0 0 0 4px rgba(220,39,67,.12);
  }
  .social-link.instagram:hover::before {
    border-color: rgba(220,39,67,.5);
  }
  
  .social-link.youtube:hover {
    background: #ff0000;
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 28px rgba(255,0,0,.45), 0 0 0 4px rgba(255,0,0,.12);
  }
  .social-link.youtube:hover::before {
    border-color: rgba(255,0,0,.5);
  }
  
  .social-link.facebook:hover {
    background: #1877f2;
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 28px rgba(24,119,242,.45), 0 0 0 4px rgba(24,119,242,.12);
  }
  .social-link.facebook:hover::before {
    border-color: rgba(24,119,242,.5);
  }

  /* Google: sempre colorido e com anel pulsando para chamar a avaliação */
  .social-link.google {
    background: #fff;
    border-color: transparent;
  }
  .social-link.google::before {
    border-color: rgba(66,133,244,.6);
    opacity: 1;
    animation: googlePulse 1.8s ease-in-out infinite;
  }
  .social-link.google:hover {
    box-shadow: 0 12px 28px rgba(66,133,244,.45), 0 0 0 4px rgba(66,133,244,.12);
  }

  @keyframes googlePulse {
    0%, 100% { transform: scale(1); opacity: .9; }
    50%       { transform: scale(1.22); opacity: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    .social-link.google::before { animation: none; opacity: 0; }
  }