/* ==========================================================
   ThinkAIQ — Social modals (WhatsApp / Instagram / YouTube / LinkedIn)
   LIGHT premium theme. One reusable modal. Vanilla JS.
   ========================================================== */

.tq-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.tq-modal.is-open {
  display: block;
}

.tq-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: tqFade 0.24s ease-out;
}

.tq-modal-card {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 8vh auto 0;
  padding: 28px 24px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: linear-gradient(#fefefe, #f8fafc) padding-box,
    linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2)) border-box;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.18);
  animation: tqPop 0.24s ease-out;
}

@keyframes tqFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tqPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

.tq-modal.is-closing .tq-modal-overlay {
  animation: tqFadeOut 0.18s ease-in forwards;
}

.tq-modal.is-closing .tq-modal-card {
  animation: tqOut 0.18s ease-in forwards;
}

@keyframes tqFadeOut {
  to { opacity: 0; }
}

@keyframes tqOut {
  to { opacity: 0; transform: scale(0.96); }
}

.tq-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tq-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.tq-modal-title {
  margin: 0;
  padding-right: 44px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.tq-modal-sub {
  margin: 12px 0 22px;
  font-size: 14px;
  color: #64748b;
}

.tq-list {
  display: grid;
  gap: 10px;
}

.tq-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  animation: tqRowIn 0.34s ease backwards;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tq-list .tq-row:nth-child(1) { animation-delay: 0.04s; }
.tq-list .tq-row:nth-child(2) { animation-delay: 0.08s; }
.tq-list .tq-row:nth-child(3) { animation-delay: 0.12s; }
.tq-list .tq-row:nth-child(4) { animation-delay: 0.16s; }

@keyframes tqRowIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.tq-row:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.03), rgba(139, 92, 246, 0.03));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.12);
}

.tq-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.tq-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tq-avatar--wa {
  background: #dcfce7;
  color: #16a34a;
}

.tq-avatar--ig {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
  color: #ffffff;
}

.tq-avatar--yt {
  background: #fee2e2;
  color: #dc2626;
}

.tq-avatar--li {
  background: #dbeafe;
  color: #0a66c2;
  font-size: 18px;
}

.tq-avatar svg {
  display: block;
}

.tq-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tq-row-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.tq-row-meta {
  margin-top: 2px;
  font-size: 13px;
  color: #64748b;
}

.tq-row-chevron {
  flex: 0 0 auto;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tq-row:hover .tq-row-chevron {
  color: #06b6d4;
  transform: translateX(4px);
}

/* Highlighted top card (company pages) */
.tq-ig-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(131, 58, 180, 0.15);
  background: rgba(131, 58, 180, 0.06);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  animation: tqRowIn 0.34s ease backwards;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tq-ig-head--li {
  border-color: rgba(10, 102, 194, 0.15);
  background: rgba(10, 102, 194, 0.06);
}

.tq-ig-head:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.12);
}

.tq-ig-head .tq-avatar {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.tq-ig-head .tq-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  overflow-wrap: anywhere;
}

.tq-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #833ab4;
  background: rgba(131, 58, 180, 0.1);
}

.tq-ig-head--li .tq-badge {
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.1);
}

.tq-follow-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tq-ig-head:hover .tq-follow-btn {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(225, 48, 108, 0.28);
}

.tq-follow-btn--li {
  background: #0a66c2;
}

.tq-divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.tq-divider-label::before,
.tq-divider-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

body.tq-modal-open {
  overflow: hidden;
}

/* ---------- Minimal footer (brand + copyright) ---------- */
.footer-three-area {
  overflow: hidden;
}

.footer-min {
  background: #0a0d14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0;
}

.footer-min .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-min-brand {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-min-copy {
  margin: 0;
  font-size: 13px;
  color: #8b93a7;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .footer-min {
    padding: 40px 0;
  }
}

@media (max-width: 767px) {
  .tq-modal-card {
    width: 90%;
    margin-top: 6vh;
  }
}

@media (max-width: 480px) {
  .tq-ig-head {
    flex-wrap: wrap;
  }

  .tq-ig-head .tq-row-info {
    flex: 1 1 auto;
  }

  .tq-ig-head .tq-row-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .tq-follow-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tq-modal-overlay,
  .tq-modal-card,
  .tq-row,
  .tq-ig-head {
    animation: none;
  }

  .tq-modal-close:hover {
    transform: none;
  }

  .tq-row:hover,
  .tq-ig-head:hover,
  .tq-row:hover .tq-row-chevron {
    transform: none;
  }
}

/* ==========================================================
   YouTube — hidden until the channel is live
   Hides every YouTube trigger (offcanvas list, header icons,
   footer icon row, founder cards, contact row).
   ========================================================== */
[data-modal="yt"],
li:has(> a[data-modal="yt"]),
a[aria-label="YouTube"],
a[aria-label="ThinkAIQ on YouTube"] {
  display: none !important;
}

/* ==========================================================
   Footer enquiry form — email delivery (FormSubmit)
   ========================================================== */
.footer-honey {
  display: none !important;
}

.footer-form-note {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #6ee7b7;
}
