/* ============================================================
   FOOTER & FOOTER CTA — Shared Styles
   SmartR Spaces 2026
   ============================================================ */

/* ── PRE-FOOTER CTA ─────────────────────────────────────── */
.footer-cta {
  background: #0D0D0C;
  padding: clamp(5rem, 11vw, 9rem) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,168,107,0.2);
}

/* Dot grid texture */
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Green ambient glow */
.footer-cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,168,107,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Label pill */
.footer-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0,168,107,0.08);
  border: 1px solid rgba(0,168,107,0.2);
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.footer-cta__label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px rgba(0,168,107,0.9);
}

/* Heading */
.footer-cta__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

/* Sub */
.footer-cta__sub {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.48);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

/* Actions */
.footer-cta__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: 0.875rem 2rem;
  border-radius: 100px;
  transition: background 220ms ease, transform 220ms cubic-bezier(0.16,1,0.3,1), box-shadow 220ms ease;
  box-shadow: 0 4px 20px rgba(0,168,107,0.3);
}

.footer-cta__btn-primary:hover {
  background: #007844;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,168,107,0.42);
}

.footer-cta__btn-primary:active { transform: translateY(0); }

.footer-cta__btn-ghost {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 220ms ease, gap 220ms ease;
}

.footer-cta__btn-ghost:hover {
  color: #FFFFFF;
  gap: 0.625rem;
}

/* Right: Constellation */
.footer-cta__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-cta__constellation {
  position: relative;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
}

.footer-cta__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hub */
.footer-cta__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(0,168,107,0.1);
  border: 1px solid rgba(0,168,107,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
  z-index: 2;
}

.footer-cta__hub::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0,168,107,0.12);
  animation: hub-pulse 3s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.4; }
}

/* Tags */
.footer-cta__tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  z-index: 2;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.footer-cta__tag svg {
  color: var(--color-accent);
  opacity: 0.75;
  flex-shrink: 0;
}

.footer-cta__tag:hover {
  border-color: rgba(0,168,107,0.28);
  color: rgba(255,255,255,0.88);
  background: rgba(0,168,107,0.06);
}

/* 8-node octagonal constellation (hub at 210,210 in 420×420) */
.footer-cta__tag--lighting   { top: 49px;  left: 158px; }  /* top */
.footer-cta__tag--climate    { top: 91px;  left: 261px; }  /* top-right */
.footer-cta__tag--security   { top: 194px; left: 303px; }  /* right */
.footer-cta__tag--audio      { top: 297px; left: 261px; }  /* bottom-right */
.footer-cta__tag--networking { top: 339px; left: 158px; }  /* bottom */
.footer-cta__tag--switching  { top: 297px; left: 55px;  }  /* bottom-left */
.footer-cta__tag--video      { top: 194px; left: 13px;  }  /* left */
.footer-cta__tag--access     { top: 91px;  left: 55px;  }  /* top-left */

/* Scroll reveal */
.footer-cta__left  { transition-delay: 0ms; }
.footer-cta__right { transition-delay: 120ms; }

.footer-cta__phone {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-accent);
  transition: color 0.3s ease;
}

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

@media (max-width: 900px) {
  .footer-cta__inner { grid-template-columns: 1fr; }
  .footer-cta__right { display: none; }
  .footer-cta__heading { font-size: clamp(2rem, 8vw, 3rem); }
  .footer-cta__actions { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: #111210;
  color: rgba(255,255,255,0.65);
  padding: clamp(3rem, 7vw, 5.5rem) 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 0.9fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__logo img {
  height: 80px;
  width: auto;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.38);
  max-width: 28ch;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 200ms ease;
}

.footer__links a:hover { color: #FFFFFF; }

.footer__contact-item {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 0.625rem;
}

.footer__contact-item:last-child { margin-bottom: 0; }

.footer__contact-item a {
  color: inherit;
  transition: color 200ms ease;
}

.footer__contact-item a:hover { color: rgba(255,255,255,0.85); }

/* Bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

.footer__socials {
  display: flex;
  gap: 0.625rem;
}

.footer__social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.footer__social:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 217, 126, 0.08);
}

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
