/* ==========================================================================
   FOOTER & FLOATING BACK‑TO‑TOP BUTTON
   ========================================================================== */

/* ---------- Footer base ---------- */
.site-footer {
  background-color: var(--color-surface-primary);
  border-top: 1px solid var(--color-border-secondary);
  margin-top: 80px;
  padding-top: 70px;
  color: var(--color-text-primary);
  font-family: 'Inter', sans-serif;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-widget-title {
  font-family: 'Degular Display', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 25px 0;
  color: var(--color-text-primary);
  position: relative;
  padding-bottom: 12px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* ---------- Column 1: Brand & Experts ---------- */
.footer-logo-wrapper { margin-bottom: 20px; }
.footer-site-title { font-size: 28px; font-weight: 800; margin: 0; }

.split-brand-logo a { text-decoration: none; }
.split-brand-logo .brand-part-1 { color: var(--color-text-primary); }
.split-brand-logo .brand-part-2 { color: var(--color-accent); }

.value-proposition-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.experts-list-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text-primary);
}

.expert-roster {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 15px;
}

.expert-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.expert-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border-secondary);
  background-color: var(--color-surface-tertiary);
}

.expert-info { display: flex; flex-direction: column; }
.expert-name { font-size: 13px; font-weight: 700; color: var(--color-text-primary); }
.expert-title {
  font-size: 11px; font-weight: 600; color: var(--color-text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---------- Columns 2–4: Quick Links ---------- */
.footer-links-column ul { list-style: none; padding: 0; margin: 0; }
.footer-links-column li { margin-bottom: 14px; }
.footer-links-column a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}
.footer-links-column a:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

/* ---------- Bottom utility bar ---------- */
.site-info-bar {
  border-top: 1px solid var(--color-border-secondary);
  padding: 15px 0;
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
}

.info-bar-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.copyright-info { order: 1; }
.footer-legal-links { order: 2; flex-grow: 1; text-align: center; }
.footer-legal-links a { color: var(--color-text-primary); text-decoration: none; transition: color 0.3s; }
.footer-legal-links a:hover { color: var(--color-accent); }
.legal-divider { margin: 0 5px; opacity: 0.5; }
.global-site-toggles { order: 3; }
.back-to-top { order: 4; }

/* Developer credit */
.footer-developer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--grey, #666);
  border-top: 1px solid var(--light-grey, #e0e0e0);
  background: inherit;
  flex-wrap: wrap;
}

.footer-developer__text {
  margin-right: 4px;
}

.footer-developer__icon {
  display: inline-flex;
  align-items: center;
  color: var(--grey, #666);
  transition: color 0.2s;
}

.footer-developer__icon:hover {
  color: var(--primary-red, #cc0000);
}

/* =========================================
   FLOATING BACK‑TO‑TOP BUTTON
   ========================================= */
.back-to-top-button {
  position: fixed !important;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface-primary);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.back-to-top-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.3);
}

.back-to-top-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5px;
}

/* Responsive footer */
@media (max-width: 1024px) {
  .site-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-roster { grid-template-columns: 1fr 1fr; }
  .info-bar-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    align-items: center;
  }
  .global-site-toggles { grid-column: 1; grid-row: 1; justify-self: start; }
  .back-to-top { grid-column: 2; grid-row: 1; justify-self: end; }
  .copyright-info { grid-column: 1; grid-row: 2; justify-self: start; }
  .footer-legal-links { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; }
}

@media (max-width: 768px) {
  .site-footer { padding-top: 50px; }
  .site-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .expert-roster { grid-template-columns: 1fr; }
  .info-bar-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  .global-site-toggles { grid-column: 1; grid-row: 1; justify-self: start; }
  .back-to-top { grid-column: 2; grid-row: 1; justify-self: end; }
  .footer-legal-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
    font-size: 10px;
    white-space: nowrap;
    overflow-x: auto;
    width: 100%;
  }
  .copyright-info { grid-column: 1 / -1; grid-row: 3; justify-self: center; text-align: center; font-size: 12px; }
  .back-to-top-button { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}