/* =============================================================
   footer-style.css — Shared Footer Styles
   ============================================================= */

.site-footer {
  background-color: #0f172a;
  --footer-navy-muted: #94a3b8;
  --footer-navy-fg: #f1f5f9;
  --footer-brand: #2563eb;
  --footer-brand-dark: #1d4ed8;
  
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.footer-inner {
  max-width: 1400px;
  margin-inline: auto;
  padding: 3.5rem 2rem 1.5rem;
}

@media (max-width: 767px) {
  .footer-inner {
    padding: 2.5rem 1.25rem 1.5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.25rem;
}

.footer-col {
  min-width: 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.footer-brand {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 3;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2.2fr repeat(4, 1fr) 2fr;
    gap: 3.25rem;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* Newsletter column spans full width on mobile */
.footer-col:has(.newsletter-form),
.footer-col:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-col:has(.newsletter-form),
  .footer-col:last-child {
    grid-column: span 1;
  }
}

/* Footer logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  line-height: 1;
}

.logo-name {
  font-size: 1.375rem; /* Matches var(--font-size-2xl) */
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--footer-navy-fg, #f1f5f9);
}

.logo-name--light {
  color: var(--footer-navy-fg, #f1f5f9);
}

.logo-accent {
  color: var(--footer-brand, #2563eb);
}

.logo-tagline {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--footer-navy-muted, #94a3b8);
  white-space: nowrap;
}

.logo-tagline--light {
  color: var(--footer-navy-muted, #94a3b8);
}

/* Footer description */
.footer-desc {
  margin-top: 1.25rem;
  max-width: 280px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--footer-navy-muted, #94a3b8);
}

@media (max-width: 767px) {
  .footer-desc {
    max-width: 100%;
  }
}

/* Social links */
.footer-social {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full, 9999px);
  background-color: rgba(37, 99, 235, 0.25);
  color: var(--footer-navy-fg, #f1f5f9);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
  background-color: var(--footer-brand, #2563eb);
  transform: translateY(-2px);
}

/* Footer columns */
.footer-col-title {
  font-size: var(--font-size-md, 0.9375rem);
  font-weight: 600;
  color: var(--footer-navy-fg, #f1f5f9);
}

.footer-links {
  margin-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
}

.footer-link {
  font-size: 13.5px;
  color: var(--footer-navy-muted, #94a3b8);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--footer-navy-fg, #f1f5f9);
}

/* Newsletter */
.footer-newsletter-text {
  margin-top: 0.75rem;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--footer-navy-muted, #94a3b8);
  max-width: 480px;
}

.newsletter-form {
  margin-top: 1rem;
  display: flex;
  width: 100%;
  max-width: 480px;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 0.875rem;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-right: none;
  border-radius: var(--radius-sm, 0.375rem) 0 0 var(--radius-sm, 0.375rem);
  background: rgba(15, 23, 42, 0.6);
  font-size: 14px;
  color: var(--footer-navy-fg, #f1f5f9);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--footer-brand, #2563eb);
  background: rgba(15, 23, 42, 0.9);
}

.newsletter-input::placeholder {
  color: var(--footer-navy-muted, #94a3b8);
}

.newsletter-btn {
  flex-shrink: 0;
  width: 48px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 var(--radius-sm, 0.375rem) var(--radius-sm, 0.375rem) 0;
  background-color: var(--footer-brand, #2563eb);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.newsletter-btn:hover {
  background-color: var(--footer-brand-dark, #1d4ed8);
}

.newsletter-disclaimer {
  margin-top: 0.625rem;
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--footer-navy-muted, #94a3b8);
}

/* Footer bottom bar */
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copyright {
  font-size: 13px;
  color: var(--footer-navy-muted, #94a3b8);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 13px;
  color: var(--footer-navy-muted, #94a3b8);
}

.footer-legal-link {
  color: var(--footer-navy-muted, #94a3b8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-link:hover {
  color: var(--footer-navy-fg, #f1f5f9);
}

.footer-legal-sep {
  opacity: 0.4;
}

@media (max-width: 767px) {
  .footer-bottom {
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* =============================================================
   Mobile Sidebar Navigation Drawer (Shared)
   ============================================================= */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.mobile-drawer.drawer-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.drawer-open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  background-color: #040c33;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.mobile-drawer.drawer-open .mobile-drawer-content {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.drawer-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.drawer-brand-name {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.drawer-brand-subtitle {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-top: 3px;
  text-transform: uppercase;
}

.drawer-close-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #040c33;
  color: #ffffff;
  border: none;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s, transform 0.2s;
}

.drawer-close-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-50%) scale(1.05);
}

/* Drawer Navigation */
.drawer-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  overflow-y: auto;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.drawer-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.drawer-link--active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.drawer-link svg {
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.drawer-link:hover svg {
  color: #ffffff;
}

/* Drawer Footer */
.drawer-footer {
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-link--logout {
  color: rgba(255, 255, 255, 0.85);
}

.drawer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin-block: 0.5rem;
}
