/* ============================================
   FOOTER MODULE STYLES
   ============================================ */

/* Main Footer Section */
.footer-section {
  width: 100%;
  padding: 4rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   TOP SECTION: BRAND + SOCIAL LINKS
   ============================================ */

.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

/* Brand Text */
.footer-brand {
  flex: 1;
}

.footer-brand-text {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: hsl(var(--foreground));
  margin: 0;
}

.footer-brand-name {
  font-weight: 600;
}

/* Social Links Container */
.footer-social {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  opacity: 0.8;
}

/* Social Icon Circle */
.footer-social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social-icon .icon {
  color: hsl(var(--primary));
  transition: all 0.3s ease;
}

/* Email icon - white by default */
.footer-social-icon.email {
  border-color: white;
}

.footer-social-icon.email .icon {
  color: white;
}

/* LinkedIn Hover */
.footer-social-link:hover .footer-social-icon.linkedin {
  background-color: #0A66C2;
  border-color: #0A66C2;
}

.footer-social-link:hover .footer-social-icon.linkedin .icon {
  color: white;
  fill: white;
}

/* Slack Hover */
.footer-social-link:hover .footer-social-icon.slack {
  background-color: #4A154B;
  border-color: #4A154B;
}

.footer-social-link:hover .footer-social-icon.slack .icon {
  color: white;
  fill: white;
}

/* Email Hover */
.footer-social-link.email-trigger:hover .footer-social-icon.email {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: white;
}

.footer-social-link.email-trigger:hover .footer-social-icon.email .icon {
  color: white !important;
  stroke: white !important;
}

/* Keep email label white on hover */
.email-trigger:hover .footer-social-label {
  color: white !important;
}

/* Social Label Text */
.footer-social-label {
  font-size: 1rem;
  color: hsl(var(--foreground));
  transition: color 0.3s ease;
}

/* Email label - white by default */
.email-trigger .footer-social-label {
  color: white;
}

.footer-social-link:hover .footer-social-label {
  color: hsl(var(--muted-foreground));
}

/* ============================================
   BOTTOM SECTION: COPYRIGHT
   ============================================ */

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}



/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: flex-start;
  }

  .footer-social {
    flex-wrap: nowrap;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .footer-section {
    padding: 3rem 0;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-social {
    gap: 1.5rem;
  }

  .footer-social-link {
    gap: 0.375rem;
  }

  .footer-social-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .footer-social-icon .icon {
    width: 1.125rem;
    height: 1.125rem;
  }

  .footer-social-label {
    font-size: 0.875rem;
  }


/* Very small mobile */
@media (max-width: 480px) {
  .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .email-modal-content {
    padding: 2rem 1rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus styles for keyboard navigation */
.footer-social-link:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.email-modal-close:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--button-orange));
  box-shadow: 0 0 0 3px hsl(var(--button-orange) / 0.1);
}

.form-submit:focus {
  outline: 2px solid hsl(var(--button-orange));
  outline-offset: 2px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}