/**
 * Modern compact footer
 * Cosmic variant: deep space gradient, subtle stars & planet, light text
 */

:root {
  --footer-bg: #fafafa;
  --footer-border: rgba(0, 0, 0, 0.06);
  --footer-text: #374151;
  --footer-text-muted: #6b7280;
  --footer-accent: #08BBD2;
  --footer-heading-gradient: linear-gradient(90deg, #6A00F4, #8A4FD5, #00B4FF);
}

/* Modern planetary theme – light background, dark text, subtle orbs & stars */
.site-footer--planetary {
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 40%, #eef2ff 100%);
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  position: relative;
  overflow: hidden;
}

.site-footer--planetary .site-footer__cosmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Subtle star dots (dark on light) */
.site-footer--planetary .site-footer__cosmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 22%, rgba(30, 41, 59, 0.2), transparent),
    radial-gradient(1px 1px at 85% 30%, rgba(30, 41, 59, 0.15), transparent),
    radial-gradient(1px 1px at 72% 78%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(1.5px 1.5px at 28% 65%, rgba(30, 41, 59, 0.12), transparent),
    radial-gradient(1px 1px at 50% 45%, rgba(99, 102, 241, 0.1), transparent),
    radial-gradient(1px 1px at 8% 50%, rgba(30, 41, 59, 0.14), transparent),
    radial-gradient(1px 1px at 92% 88%, rgba(30, 41, 59, 0.12), transparent);
  background-size: 100% 100%;
}

/* Soft planet orb – violet (bottom-right) */
.site-footer--planetary .site-footer__cosmos::after {
  content: "";
  position: absolute;
  width: min(380px, 85vw);
  height: min(380px, 85vw);
  right: -10%;
  bottom: -20%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(139, 92, 246, 0.14) 0%,
    rgba(99, 102, 241, 0.08) 45%,
    transparent 75%
  );
  pointer-events: none;
}

/* Second orb – teal (top-left) */
.site-footer--planetary .site-wrap::before {
  content: "";
  position: absolute;
  width: min(260px, 55vw);
  height: min(260px, 55vw);
  left: -6%;
  top: -12%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 55% 55%,
    rgba(6, 182, 212, 0.12) 0%,
    rgba(8, 187, 210, 0.06) 50%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

/* Orbital accent line above bottom bar */
.site-footer--planetary .site-footer__main::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(180px, 50vw);
  height: 50px;
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-bottom: none;
  border-radius: 180px 180px 0 0;
  pointer-events: none;
  z-index: 0;
}

.site-footer--planetary .site-footer__main {
  position: relative;
}

.site-footer--planetary .site-wrap {
  position: relative;
  z-index: 1;
}

/* Cosmic planetary theme (dark – optional) */
.site-footer--cosmic {
  --footer-bg: transparent;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-text: rgba(255, 255, 255, 0.92);
  --footer-text-muted: rgba(255, 255, 255, 0.6);
  --footer-accent: #6ee7f7;
  --footer-heading-gradient: linear-gradient(90deg, #a78bfa, #c4b5fd, #67e8f9);
}

.site-footer--cosmic {
  background: linear-gradient(160deg, #0f0c29 0%, #1a1535 35%, #16213e 70%, #0f172a 100%);
  border-top: 1px solid var(--footer-border);
  position: relative;
  overflow: hidden;
}

/* Cosmic layer: stars + planet orbs */
.site-footer__cosmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Starfield (small dots) */
.site-footer__cosmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 25%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 25% 75%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 75% 60%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 50% 40%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 8% 55%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 92% 85%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 40% 12%, rgba(255, 255, 255, 0.25), transparent);
  background-size: 100% 100%;
  opacity: 0.9;
}

/* Soft planet orb (bottom-right) */
.site-footer__cosmos::after {
  content: "";
  position: absolute;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  right: -12%;
  bottom: -25%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(139, 92, 246, 0.35) 0%,
    rgba(99, 102, 241, 0.2) 40%,
    rgba(79, 70, 229, 0.08) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* Second orb (top-left, subtle) */
.site-footer--cosmic .site-wrap::before {
  content: "";
  position: absolute;
  width: min(280px, 60vw);
  height: min(280px, 60vw);
  left: -8%;
  top: -15%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 60% 60%,
    rgba(6, 182, 212, 0.2) 0%,
    rgba(8, 187, 210, 0.08) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Subtle orbital arc */
.site-footer--cosmic .site-footer__main::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(200px, 55vw);
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: none;
  border-radius: 200px 200px 0 0;
  pointer-events: none;
  z-index: 0;
}

.site-footer--cosmic .site-footer__main {
  position: relative;
}

.site-footer--cosmic .site-wrap {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
}

/* Force light text in cosmic footer (override global/Tailwind) */
.site-footer--cosmic .site-footer__tagline,
.site-footer--cosmic .site-footer__contact-item,
.site-footer--cosmic .site-footer__contact-item a {
  color: rgba(255, 255, 255, 0.92) !important;
}

.site-footer--cosmic .site-footer__link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.site-footer--cosmic .site-footer__link:hover,
.site-footer--cosmic .site-footer__contact-item a:hover {
  color: #6ee7f7 !important;
}

.site-footer--cosmic .site-footer__bottom,
.site-footer--cosmic .site-footer__bottom a {
  color: rgba(255, 255, 255, 0.6) !important;
}

.site-footer--cosmic .site-footer__bottom a:hover {
  color: #6ee7f7 !important;
}

.site-footer--cosmic .site-footer__col-title:not(.site-footer__col-title--gradient) {
  color: rgba(255, 255, 255, 0.6) !important;
}

.site-footer--cosmic .site-footer__col-title--gradient {
  background: linear-gradient(90deg, #a78bfa, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light icons on cosmic */
.site-footer--cosmic .site-footer__contact-icon,
.site-footer--cosmic .site-footer__brand-social img {
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.site-footer--cosmic .site-footer__contact-item:hover .site-footer__contact-icon,
.site-footer--cosmic .site-footer__brand-social a:hover img {
  opacity: 0.95;
}

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 2rem 0 0;
  width: 100%;
}

/* Main row: logo, links, contact, social */
.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem 1.5rem;
  padding-bottom: 1.5rem;
}

.site-footer__brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__logo {
  display: block;
  width: 8rem;
  height: auto;
}

.site-footer__tagline {
  font-size: 0.8125rem;
  color: var(--footer-text-muted);
  line-height: 1.5;
  max-width: 14rem;
  margin: 0;
}

.site-footer__brand-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.site-footer__brand-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__brand-social a:hover {
  color: var(--footer-accent);
  transform: translateY(-1px);
}

.site-footer__brand-social img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  filter: brightness(0);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.site-footer__brand-social a:hover img {
  opacity: 0.85;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: flex-start;
}

.site-footer__nav-group {
  display: contents;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-text-muted);
  margin-bottom: 0.25rem;
}

.site-footer__col-title--gradient {
  background: var(--footer-heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-footer__link {
  font-size: 0.875rem;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: var(--footer-accent);
}

.site-footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--footer-text);
}

.site-footer__contact-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  filter: brightness(0);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.site-footer__contact-item:hover .site-footer__contact-icon {
  opacity: 0.75;
}

.site-footer__contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__contact-item a:hover {
  color: var(--footer-accent);
}

.site-footer__location-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer__location-link:hover {
  color: var(--footer-accent);
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--footer-text);
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__social a:hover {
  color: var(--footer-accent);
  transform: translateY(-1px);
}

.site-footer__social img {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

/* Bottom bar */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--footer-border);
  font-size: 0.8125rem;
  color: var(--footer-text-muted);
}

.site-footer__bottom a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__bottom a:hover {
  color: var(--footer-accent);
}

/* Mobile: compact footer */
@media (max-width: 768px) {
  .site-footer {
    padding: 1rem 0 0;
  }

  .site-footer__main {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.75rem;
  }

  .site-footer__brand {
    text-align: left;
    width: 100%;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  
  .site-footer__tagline {
    text-align: left;
    font-size: 0.75rem;
    line-height: 1.4;
    max-width: 100%;
  }

  .site-footer__brand-social {
    justify-content: flex-start;
    margin-top: 0;
    gap: 0.5rem;
  }

  .site-footer__brand-social img {
    width: 1.375rem;
    height: 1.375rem;
  }

  .site-footer__nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: flex-start;
  }

  .site-footer__nav .site-footer__col:first-child {
    flex: 0 0 50%;
    min-width: 0;
  }

  .site-footer__nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 0 0 50%;
    min-width: 0;
  }

  .site-footer__col {
    gap: 0.375rem;
  }

  .site-footer__col-title {
    font-size: 0.625rem;
    margin-bottom: 0.125rem;
  }

  .site-footer__link,
  .site-footer__contact-item {
    font-size: 0.8125rem;
  }

  .site-footer__contact-icon {
    width: 0.75rem;
    height: 0.75rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    padding: 0.625rem 0;
    font-size: 0.75rem;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 0.75rem 0 0;
  }

  .site-footer__main {
    gap: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .site-footer__nav {
    gap: 0.75rem 1rem;
  }

  .site-footer__col-title {
    font-size: 0.625rem;
  }
}
