/* ==========================================================================
   Totality Estates — Footer + floating action pill
   ========================================================================== */

.te-footer {
  background: var(--te-ink-deepest);
  color: var(--te-white);
  padding: clamp(52px, 8vw, 80px) var(--te-gutter) 44px;
}
.te-footer__inner { max-width: var(--te-content-max); margin-inline: auto; }

/* ---- Masthead ---- */
.te-footer__brand {
  margin: 0;
  font-family: var(--te-font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.02em;
}
.te-footer__lead {
  margin: 18px 0 0;
  font-size: var(--te-fs-18);
  line-height: 1.6;
  color: var(--te-on-dark-78);
  max-width: 62ch;
}
.te-footer__license {
  margin: 16px 0 0;
  font-size: var(--te-fs-16);
  color: var(--te-on-dark-42);
}

/* ---- Link columns ---- */
.te-footer__cols {
  display: grid;
  /* 6 columns fit on one row on desktop; wraps fluidly below ~1230px. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr));
  gap: 32px 24px;
  padding: 44px 0;
  margin-top: 36px;
  border-top: 1px solid var(--te-on-dark-border-12);
}
.te-footer__head {
  margin: 0 0 18px;
  font-family: var(--te-font-body);
  font-size: var(--te-fs-18);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--te-white);
}
.te-footer__col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.te-footer__col a {
  font-size: var(--te-fs-17);
  color: var(--te-on-dark-78);
  transition: color var(--te-hover-transition);
}
.te-footer__col a:hover { color: var(--te-white); }

.te-footer__col--call .te-footer__phone {
  display: block;
  font-size: var(--te-fs-17);
  color: var(--te-on-dark-78);
  transition: color var(--te-hover-transition);
}
.te-footer__col--call .te-footer__phone:hover { color: var(--te-white); }
.te-footer__region {
  display: block; margin-top: 6px;
  font-size: var(--te-fs-15);
  color: var(--te-on-dark-42);
}

/* ---- Base row ---- */
.te-footer__base {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--te-on-dark-border-12);
}
.te-footer__baseL {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 20px;
}
.te-footer__baseL .te-logo { margin-right: 4px; }
.te-footer__copy { font-size: var(--te-fs-16); color: var(--te-on-dark-62); }
.te-footer__ai { font-size: var(--te-fs-16); color: var(--te-on-dark-42); transition: color var(--te-hover-transition); }
.te-footer__ai:hover { color: var(--te-on-dark-78); }
.te-footer__social { display: flex; align-items: center; gap: 22px; }
.te-footer__social a { color: rgba(255,255,255,0.7); transition: color var(--te-hover-transition); }
.te-footer__social a:hover { color: var(--te-white); }

/* ==========================================================================
   Floating action pill (fixed, all pages)
   ========================================================================== */
.te-fab {
  position: fixed;
  right: var(--te-float-offset);
  bottom: var(--te-float-offset);
  z-index: var(--te-z-float);
  display: flex; align-items: center; gap: 10px;
}
.te-fab[hidden] { display: none; }
.te-fab__dismiss {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: rgba(16,17,20,0.82);
  color: var(--te-white); font-size: var(--te-fs-15);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--te-hover-transition);
}
.te-fab__dismiss:hover { background: var(--te-ink-strong); }
.te-fab__pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--te-ink);
  color: var(--te-white);
  font-size: var(--te-fs-17); font-weight: 600;
  padding: 16px 24px;
  border-radius: var(--te-r-pill);
  box-shadow: var(--te-shadow-float-pill);
  transition: background var(--te-hover-transition);
}
.te-fab__pill:hover { background: #2A2C31; color: var(--te-white); }
.te-fab__spark { font-size: var(--te-fs-16); line-height: 1; display: inline-flex; }
.te-fab__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--te-accent-dot);
  position: relative;
}

/* ---- Animation: draw the eye without being obnoxious ---- */

/* Entrance: rise and fade in on load. */
.te-fab { animation: te-fab-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes te-fab-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Pill: a slow accent "breathe" glow. */
.te-fab__pill { animation: te-fab-breathe 3.8s ease-in-out infinite; }
@keyframes te-fab-breathe {
  0%, 100% { box-shadow: var(--te-shadow-float-pill); }
  50%      { box-shadow: var(--te-shadow-float-pill), 0 0 26px 1px rgba(47, 107, 255, 0.30); }
}
.te-fab__pill:hover { animation-play-state: paused; }

/* Sparkle: gentle twinkle. */
.te-fab__spark { animation: te-fab-twinkle 2.8s ease-in-out infinite; transform-origin: center; }
@keyframes te-fab-twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 0.85; }
  50%      { transform: scale(1.28) rotate(18deg); opacity: 1; }
}

/* Dot: a repeating notification ping ring. */
.te-fab__dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  animation: te-fab-ping 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes te-fab-ping {
  0%   { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(47, 107, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .te-fab, .te-fab__pill, .te-fab__spark, .te-fab__dot::after { animation: none; }
}

/* Keep the pill from crowding tiny screens */
@media (max-width: 480px) {
  .te-fab__pill { font-size: var(--te-fs-16); padding: 14px 20px; }
}
