/* ============================================================================
   FENAJUD FOOTER v2.0 — Dark Cathedral
   ============================================================================ */

.site-footer {
  background: var(--void);
  color: var(--white);
  position: relative;
}

/* === SVG Separator === */
.footer-separator {
  display: block;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
  transform: translateY(-1px);
  margin-bottom: -2px;
}

.footer-separator svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* === Footer Top: Brand Block === */
.footer-brand {
  padding-block: var(--space-20) var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-brand::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(210, 38, 48, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .footer-brand {
    padding-block: var(--space-28) var(--space-24);
  }
}

.footer-brand__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

/* Logo wrap with subtle glow */
.footer-brand__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-brand__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.footer-brand__logo-wrap .footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

@media (min-width: 768px) {
  .footer-brand__logo-wrap .footer-logo {
    height: 50px;
  }
}

/* Elegant divider */
.footer-brand__divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(210, 38, 48, 0.6) 50%, transparent 100%);
  border-radius: 1px;
  position: relative;
}

.footer-brand__divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--fenajud-red);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(210, 38, 48, 0.4);
}

/* Tagline */
.footer-brand__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.01em;
  line-height: 1.45;
  max-width: 520px;
  margin: 0;
}

.footer-brand__tagline strong {
  font-weight: 700;
  color: var(--white);
}

/* === Footer Main Grid === */
.footer-main {
  padding-block: var(--space-4);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10) var(--space-8);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-10);
  }
}

/* === Footer Column === */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col__title {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* === Address Block === */
.footer-address {
  font-size: var(--text-base);
  color: var(--ash);
  line-height: 1.7;
}

.footer-address__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-address__item svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--fenajud-red);
  opacity: 0.8;
}

.footer-address a {
  color: var(--ash);
  transition: color var(--duration-normal) var(--ease-out-quart);
}

.footer-address a:hover {
  color: var(--white);
}

/* === Footer Links === */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-base);
  color: var(--ash);
  transition: color var(--duration-normal) var(--ease-out-quart),
              transform var(--duration-normal) var(--ease-out-quart);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

/* === Affiliations === */
.footer-affiliations {
  margin-top: var(--space-4);
}

.footer-affiliations__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--space-3);
}

.footer-affiliations__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--slate);
}

.footer-affiliations__list span {
  color: var(--charcoal);
}

/* === Social Icons === */
.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social__link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash);
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.footer-social__link:hover {
  background: var(--fenajud-red);
  border-color: var(--fenajud-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 38, 48, 0.3);
}


/* === Footer Utility Bar === */
.footer-utility {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-block: var(--space-4);
}

.footer-utility__inner {
  display: flex;
  justify-content: center;
}

.footer-utility__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  list-style: none;
}

.footer-utility__links a {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color var(--duration-normal) var(--ease-out-quart);
}

.footer-utility__links a:hover {
  color: var(--white);
}


/* === Footer Bottom === */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-block: var(--space-6);
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom__copy {
  font-size: var(--text-sm);
  color: var(--slate);
}

.footer-bottom__legal {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom__legal a {
  font-size: var(--text-sm);
  color: var(--slate);
  transition: color var(--duration-normal) var(--ease-out-quart);
}

.footer-bottom__legal a:hover {
  color: var(--white);
}


/* === Back to Top Button === */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--graphite);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration-normal) var(--ease-out-quart);
  box-shadow: var(--shadow-3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--fenajud-red);
  border-color: var(--fenajud-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(210, 38, 48, 0.3);
}
