/* ==========================================================================
   FOOTER STYLES - Prime Stage Productions LLP
   ========================================================================== */

:root {
  /* Colors */
  --footer-bg-start: #0a1a35;
  --footer-bg-end: #0d1b2a;
  --footer-text: #e0e0e0;
  --footer-text-muted: #a0aec0;
  --accent-color: #f4c10f;
  --link-color: #7f9cf5;
  --border-color: rgba(255, 255, 255, 0.1);
  
  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  
  /* Typography */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  
  /* Transitions */
  --transition: all 0.2s ease;
}

/* Base Footer Styles */
.site-footer {
  background: linear-gradient(135deg, var(--footer-bg-start), var(--footer-bg-end));
  color: var(--footer-text);
  padding: var(--space-5) 0 0;
  position: relative;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Subtle radial highlight to avoid banding */
.site-footer::after {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  pointer-events: none;
  background: radial-gradient( circle at 30% 20%, rgba(255,255,255,0.10), rgba(255,255,255,0.0) 60% );
}

/* Reset global section styles inside footer to avoid light panels */
.site-footer section,
.site-footer .footer-section,
.site-footer .footer-brand {
  background: transparent !important;
  padding: 0 !important;
  margin: 0;
}

/* Ensure inner elements don't inherit unexpected backgrounds */
.site-footer .footer-section *,
.site-footer .footer-brand * {
  background: transparent;
}

/* Footer Grid Layout */
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* Brand Column */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: var(--space-3);
  color: white;
  font-size: var(--text-xl); /* Decreased text size */
  font-weight: 700;
}

.footer-logo-subtext {
  font-size: 0.5em; /* 50% of parent */
  font-weight: 400;
  color: var(--footer-text-muted);
  letter-spacing: 0.5px;
  text-transform: none;
  display: block;
  margin-top: 4px;
}

.footer-logo img {
  height: 60px; /* Increased icon size */
  width: auto;
  margin-right: var(--space-2);
  border-radius: 4px;
}

.footer-tagline {
  color: var(--footer-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: var(--text-lg);
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.social-link i { opacity: 1; }

.social-link:hover,
.social-link:focus {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Instagram gradient pill */
.social-link.instagram {
  background: radial-gradient( circle farthest-corner at 35% 90%, #fec564, #feda7e 30%, #fa7e1e 45%, #d62976 60%, #962fbf 75%, #4f5bd5 );
}
.social-link.instagram:hover,
.social-link.instagram:focus {
  filter: brightness(1.05);
}

/* WhatsApp green */
.social-link.whatsapp {
  background: #25D366;
}
.social-link.whatsapp:hover,
.social-link.whatsapp:focus {
  filter: brightness(1.05);
}

/* Optional: tone phone/email if needed */
.social-link.phone { background: rgba(73,126,230,0.9); }
.social-link.email { background: rgba(244,193,15,0.9); }

.social-link:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Footer Sections */
.footer-section {
  margin-bottom: var(--space-4);
}

.footer-heading {
  color: #ffffff;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  position: relative;
  padding-bottom: var(--space-1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

/* Links List */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: #d9e2ec;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition);
  display: inline-block;
  padding: 2px 0;
  font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact Information */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  gap: var(--space-2);
  align-items: center; /* perfect vertical centering */
  color: var(--footer-text);
  font-size: var(--text-sm);
  line-height: 1.6;
  padding: 4px 0; /* tighten vertical rhythm */
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.06);
  flex: 0 0 44px;
}
.contact-icon i { font-size: 1rem; }

.contact-text {
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
  overflow-wrap: break-word; /* Better for wrapping long text */
  word-break: break-word; /* Fallback for older browsers */
}

.footer-section .contact-text,
.footer-section .contact-link {
  color: #ffffff; /* White text for better visibility */
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  /* word-break is now handled by .contact-text */
}

.contact-link:hover,
.contact-link:focus {
  color: #ffffff;
  text-decoration: underline;
}

/* Per-item icon colors */
.contact-item.address .contact-icon { background: #f4c10f; } /* Gold */
.contact-item.address .contact-icon i { color: #0a1a35; }

.contact-item.phone .contact-icon { background: #f4c10f; } /* Yellow */
.contact-item.phone .contact-icon i { color: #0a1a35; }

.contact-item.email .contact-icon { background: #f4c10f; } /* Gold */
.contact-item.email .contact-icon i { color: #0a1a35; }

.contact-item.hours .contact-icon { background: #f4c10f; } /* Gold */
.contact-item.hours .contact-icon i { color: #0a1a35; }

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-3) 0;
  margin-top: var(--space-5);
  border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.copyright {
  color: var(--footer-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-link {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition);
}

.legal-link:hover,
.legal-link:focus {
  color: white;
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (min-width: 641px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .legal-links {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
    gap: var(--space-5);
  }
  
  .footer-section:last-child {
    padding-left: var(--space-3);
  }
}

/* Print Styles */
@media print {
  .site-footer {
    border-top: 1px solid #ddd;
    padding: var(--space-3) 0;
  }
  
  .footer-links a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
  
  .footer-social,
  .back-to-top {
    display: none;
  }
}
