@layer components;

:root {
  --footer-navy: #020617;
  --footer-navy-light: #1e293b;
  --footer-text: hsla(0,0%,85%,0.9);
  --footer-gold: #fbbf24;
  --footer-gold-dark: #f59e0b;
  --footer-link-hover: hsla(38,100%,60%,0.9);
}

/* Mobile-First Footer */
.site-footer {
  background: var(--footer-navy);
  color: var(--footer-text);
  padding-block: clamp(2.5rem, 8vw, 4rem);
  margin-top: clamp(3rem, 10vw, 5rem);
  position: relative;
  scroll-margin-top: 5rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, hsla(38,100%,50%,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, hsla(38,100%,50%,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 3rem);
  max-width: min(95vw, 1200px);
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.footer-section {
  flex: 1;
  min-width: 0;
}

/* Company Info */
.footer-section h3 {
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  font-weight: 800;
  color: hsl(0,0%,98%);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: -0.02em;
}

.footer-section p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.6;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  color: hsla(0,0%,85%,0.8);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 600;
  color: var(--footer-text);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: clamp(0.5rem, 1.5vw, 0.75rem);
  border-radius: 0.75rem;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--footer-gold);
  background: hsla(38,100%,60%,0.15);
  transform: translateX(0.25rem);
}

/* Quick Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.footer-links a {
  font-size: clamp(0.9rem, 2.5vw, 0.95rem);
  color: hsla(0,0%,85%,0.8);
  transition: all 0.3s ease;
  padding: clamp(0.375rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
  border-radius: 0.5rem;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.25rem;
  height: clamp(0.75rem, 2vw, 1rem);
  background: var(--footer-gold);
  border-radius: 0.125rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover::before,
.footer-links a:focus-visible::before {
  opacity: 1;
  left: -0.75rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: white;
  background: hsla(0,0%,100%,0.1);
  padding-left: clamp(1.5rem, 4vw, 2rem);
}

/* CTA Section */
.footer-cta h3 {
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.footer-cta p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  color: hsla(0,0%,85%,0.8);
}

.footer-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.btn-sm {
  padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.5rem, 4vw, 1.75rem);
  border-radius: 2.5rem;
  font-weight: 700;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 3rem;
  flex: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fleet-gold), var(--fleet-gold-dark));
  color: #a3a385;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-0.25rem) scale(1.02);
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.6);
}

.btn-secondary {
  background: hsla(0,0%,100%,0.15);
  backdrop-filter: blur(12px);
  color: hsl(0,0%,98%);
  border: 1px solid hsla(0,0%,100%,0.25);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: hsla(0,0%,100%,0.25);
  transform: translateY(-0.125rem);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid hsla(0,0%,20%,0.5);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  padding-bottom: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  font-size: clamp(0.8rem, 2.2vw, 0.875rem);
  color: hsla(0,0%,70%,0.7);
}

.footer-bottom a {
  color: var(--footer-gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: hsl(38,100%,70%);
  text-decoration: underline;
}

/* Responsive Layout */
@media (min-width: 480px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .footer-cta-buttons {
    flex-direction: row;
  }
  
  .btn-sm {
    flex: initial;
    max-width: 14rem;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

@media (min-width: 1024px) {
  .footer-section {
    flex: none;
    width: auto;
  }
}

/* Social Icons Row */
.footer-social {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: clamp(1rem, 3vw, 1.5rem);
}

.footer-social a {
  width: clamp(2.75rem, 8vw, 3.25rem);
  height: clamp(2.75rem, 8vw, 3.25rem);
  background: hsla(0,0%,100%,0.12);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid hsla(0,0%,100%,0.15);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--fleet-gold);
  color: #111827;
  transform: translateY(-0.25rem) scale(1.05);
  box-shadow: 0 10px 25px hsla(38,100%,60%,0.4);
}

.footer-social svg {
  width: clamp(1.25rem, 3.5vw, 1.5rem);
  height: clamp(1.25rem, 3.5vw, 1.5rem);
}

/* Accessibility */
.btn-sm:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--fleet-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .footer *,
  .footer *::before,
  .footer *::after {
    transition: none;
    animation: none;
  }
}

@media (prefers-contrast: high) {
  .site-footer {
    border-top: 2px solid;
  }
  
  .footer-links a::before {
    width: 0.375rem;
  }
}
