/* Footer styles - responsive, accessible, minimal dependencies */
:root{
  --footer-bg: #0b1020;
  --footer-ink: #e6eef8;
  --footer-muted: #9fb1c8;
  --accent: #0d6efd;
  --container-gap: 24px;
}

.footer{
  z-index: 10;
  background: linear-gradient(180deg, rgba(8,12,22,1) 0%, rgba(10,14,28,1) 100%) !important;
  color: var(--footer-ink);
  padding: clamp(32px, 4vw, 56px) 16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.footer-container{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: var(--container-gap);
  align-items: start;
}

.footer-logo h2{
  margin: 0 0 8px 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.05;
  color: var(--footer-ink);
}

.footer-copyright{
  color: var(--footer-muted);
  font-size: 13px;
}

.footer-links{
  display: flex;
  gap: 24px;
}

.footer-links a{
  display: block;
  color: var(--footer-ink);
  text-decoration: none;
  margin: 6px 0;
  transition: color .18s ease, transform .18s ease;
}

.footer-links a:hover,
.footer-links a:focus{
  color: var(--accent);
  transform: translateY(-1px);
}

.newsletter h2{
  margin: 0 0 8px 0;
  font-size: 18px;
}

.newsletter p{
  margin: 0 0 12px 0;
  color: var(--footer-muted);
  font-size: 14px;
}

.newsletter-form{
  display:flex;
  gap:8px;
  align-items:center;
}

.newsletter-form input[type="email"]{
  flex:1 1 auto;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: var(--footer-ink);
  outline: none;
}

.newsletter-form input[type="email"]::placeholder{
  color: var(--footer-muted);
}

.newsletter-form button{
  border: none;
  background: linear-gradient(180deg, var(--accent), #0756d6);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13,110,253,0.12);
}

.newsletter-form button:focus{
  outline: 3px solid rgba(13,110,253,0.18);
}

.newsletter-privacy{
  margin-top: 12px;
  font-size: 12px;
  color: var(--footer-muted);
}

.footer a{color:inherit}

/* Responsive */
@media (max-width: 900px){
  .footer-container{
    grid-template-columns: 1fr;
  }

  .footer-links{flex-direction:row;flex-wrap:wrap}
  .footer-links > div{min-width:50%;}
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .newsletter {
        grid-column: span 2;
        max-width: 100%;
    }
    
    .company-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 2rem 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px){
    
    .newsletter {
        grid-column: span 1;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 0;
    }
    
    .newsletter-form button {
        border-radius: 4px;
    }
    
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .footer-links a, .newsletter-form button{ transition: none; }
}
