/*
  footer.css
  Footer: an editorial asymmetric composition.
*/

.comrade-footer {
  position: relative;
  background-color: var(--comrade-bg);
  color: var(--comrade-text);
  border-top: 1px solid var(--comrade-border); /* Top border for the whole footer */
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}

/* --- Decorative Orbit --- */
.comrade-footer__orbit-decoration {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 400px;
  height: 400px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.comrade-footer__orbit-svg {
  width: 100%;
  height: 100%;
  fill: none;
}
.comrade-footer__orbit-path {
  stroke: var(--comrade-border-strong);
  stroke-width: 1px;
}
.comrade-footer__orbit-node {
  fill: var(--comrade-primary);
}

/* --- Main Grid --- */
.comrade-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 768px) {
  .comrade-footer__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .comrade-footer__right {
    flex-direction: column;
    padding-top: 0;
  }
}

/* --- Left Side: Brand Statement --- */
.comrade-footer__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.comrade-footer__statement {
  margin: 0 0 1.25rem 0;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--comrade-text);
}

.comrade-footer__statement-highlight {
  color: var(--comrade-primary);
}

.comrade-footer__tagline {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  line-height: 1.5;
  color: var(--comrade-text-muted);
  max-width: 380px;
}

.comrade-footer__cta {
  margin-top: auto; /* Push CTA to bottom if needed, though with flex column it stays below */
}

/* --- Right Side: Utilities --- */
.comrade-footer__right {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 0.5rem;
}

.comrade-footer__heading {
  margin: 0 0 1rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--comrade-text-muted);
}

.comrade-footer__nav-list,
.comrade-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comrade-footer__nav-link {
  position: relative;
  width: fit-content;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--comrade-text);
  text-decoration: none;
}

.comrade-footer__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: var(--comrade-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--comrade-transition-hover);
}

.comrade-footer__nav-link:hover {
  color: var(--comrade-primary);
}

.comrade-footer__nav-link:hover::after {
  transform: scaleX(1);
}

.comrade-footer__contact-row {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--comrade-text);
  transition: color var(--comrade-transition-hover);
  text-decoration: none;
}

.comrade-footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--comrade-text-muted);
  transition: color var(--comrade-transition-hover);
}

.comrade-footer__contact-icon svg {
  width: 18px;
  height: 18px;
}

.comrade-footer__contact-row:hover {
  color: var(--comrade-primary);
}

.comrade-footer__contact-row:hover .comrade-footer__contact-icon {
  color: var(--comrade-primary);
}

/* --- Bottom legal bar --- */
.comrade-footer__bottom {
  border-top: 1px solid var(--comrade-border);
  padding-block: clamp(0.5rem, 1.5vw, 0.75rem);
}

.comrade-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--comrade-text-muted);
}

.comrade-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.comrade-footer__legal-links a {
  color: var(--comrade-text-muted);
  transition: color var(--comrade-transition-hover);
  text-decoration: none;
}

.comrade-footer__legal-links a:hover {
  color: var(--comrade-text);
}
