/* =====================================================
   EASYBOOKZ — SITE FOOTER
   Modern, enterprise-grade footer design
===================================================== */

.site-footer {
  background: var(--bg-dark, #0f172a);
  color: var(--text-muted, #94a3b8);
  padding: 80px 0 32px;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
}

.site-footer .container {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}

/* =====================================================
   FOOTER MAIN GRID
===================================================== */

.footer-main {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px 32px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand Column */
.footer-brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-family: var(--font-heading, system-ui, -apple-system, sans-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.brand-name {
  color: #ffffff;
  font-family: var(--font-heading, system-ui, -apple-system, sans-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer-brand-column p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  color: #38bdf8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-email:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Links Columns */
.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-column h3 {
  margin: 0 0 4px 0;
  color: #ffffff;
  font-family: var(--font-heading, system-ui, -apple-system, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-links-column a {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.footer-links-column a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

/* =====================================================
   FOOTER BOTTOM & LEGAL
===================================================== */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  font-size: 13.5px;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-legal-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-legal-links a:hover {
  color: #94a3b8;
}

/* Address Block */
.footer-address {
  margin-top: 20px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

/* Focus styles for accessibility */
.site-footer a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 4px;
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand-column {
    grid-column: span 3;
  }
  
  .footer-brand-column p {
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 56px 0 28px;
  }

  .site-footer .container {
    width: calc(100% - 32px);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }

  .footer-brand-column {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 24px;
  }

  .footer-legal-links {
    gap: 16px;
  }
}

/* Reduce bottom padding of main link grid */
.footer-main {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px 32px;
  padding-bottom: 36px; /* Decreased from 64px */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tighten link vertical spacing */
.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Decreased from 12px for tighter grouping */
}

.footer-links-column h3 {
  margin: 0 0 8px 0; /* Adjusted heading margin */
  color: #ffffff;
  font-family: var(--font-heading, system-ui, -apple-system, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Reduce top padding of bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px; /* Decreased from 32px */
  font-size: 13.5px;
}

/* Bring address closer to copyright row */
.footer-address {
  margin-top: 10px; /* Decreased from 20px */
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}