/* Telepresenz — custom styles beyond what theme.json expresses. */

:root {
  --tp-shadow-sm: 0 4px 12px rgba(11, 31, 54, 0.06);
  --tp-shadow-md: 0 12px 28px rgba(99, 102, 241, 0.12);
  --tp-shadow-lg: 0 24px 48px rgba(99, 102, 241, 0.18);
}

/* ---- Gradient text ---- */
.is-style-gradient-text {
  background: var(--wp--preset--gradient--premium);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Cards ---- */
.wp-block-group.is-style-card,
.wp-block-group.is-style-card-hover {
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  box-shadow: var(--tp-shadow-sm);
  height: 100%;
}
.wp-block-group.is-style-card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wp-block-group.is-style-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--tp-shadow-md);
}
.tp-card-center { text-align: center; }

/* ---- Gradient button ---- */
.wp-block-button.is-style-gradient > .wp-block-button__link {
  background: var(--wp--preset--gradient--premium);
  color: #fff;
  border: none;
  box-shadow: var(--tp-shadow-md);
}
.wp-block-button.is-style-gradient > .wp-block-button__link:hover { filter: brightness(1.05); }

/* ---- Header ---- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.tp-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.tp-logo { margin: 0; }
.wp-block-navigation .wp-block-navigation-item__content { font-weight: 500; color: #1e293b; }
.wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); }
.wp-block-navigation .wp-block-navigation__submenu-container {
  border-radius: 12px;
  box-shadow: var(--tp-shadow-md);
  border: 1px solid var(--wp--preset--color--border);
  padding: 0.4rem;
  min-width: 240px;
}

/* ---- Footer ---- */
.tp-footer { background: var(--wp--preset--color--heading); color: #cbd5e1; }
.tp-footer :where(h1,h2,h3,h4,h5,h6) { color: #fff; }
.tp-footer a { color: #cbd5e1; text-decoration: none; }
.tp-footer a:hover { color: #fff; text-decoration: underline; }
.tp-foot-list { list-style: none; padding-left: 0; margin: 0; }
.tp-foot-list li { margin-bottom: 0.55rem; }

/* ---- Section rhythm ---- */
.tp-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.tp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--wp--preset--color--primary);
  margin-bottom: 0.5rem;
}

/* ---- Hero ---- */
.tp-hero .tp-hero-accent { color: var(--wp--preset--color--blue); }
.tp-hero-video { margin: 0; }
.tp-hero-video video {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--tp-shadow-lg);
  display: block;
}

/* ---- Emoji icon ---- */
.tp-emoji { font-size: 2.5rem; line-height: 1; margin: 0 0 0.25rem; }

/* ---- Client pills ---- */
.tp-clients { max-width: 1000px; margin-inline: auto; }
.tp-pill {
  margin: 0;
  padding: 0.45rem 1rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wp--preset--color--muted);
  box-shadow: var(--tp-shadow-sm);
}

/* ---- Check list (products) ---- */
.tp-check-list { list-style: none; padding-left: 0; margin: 0; }
.tp-check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.45rem; }
.tp-check-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--wp--preset--color--success);
  font-weight: 700;
}

/* ---- Steps (how it works) ---- */
.tp-step { position: relative; }
.tp-step-num {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: var(--wp--preset--gradient--premium);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.tp-step-phase { font-weight: 600; margin: 0; }

/* ---- Stats ---- */
.tp-stat { text-align: center; }
.tp-stat-num { margin: 0; font-weight: 800; line-height: 1; }
.tp-dashboard { margin: 0; }
.tp-dashboard img { border-radius: 16px; box-shadow: var(--tp-shadow-lg); width: 100%; }

/* ---- Capabilities ---- */
.tp-cap-group {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--tp-shadow-sm);
}
.tp-cap-bar { background: linear-gradient(135deg, #34d399, #3b82f6); }
.tp-cap-bar h3 { margin: 0; color: #fff; }
.tp-cap-body { background: #f9fafb; }

/* ---- FAQ ---- */
.tp-faq { margin-bottom: 0.75rem; }
.tp-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary::after { content: "+"; color: var(--wp--preset--color--primary); font-size: 1.4rem; margin-left: 1rem; }
.tp-faq[open] summary::after { content: "\2212"; }

/* ---- CTA banner ---- */
.tp-cta-banner { text-align: center; box-shadow: var(--tp-shadow-lg); }
.tp-cta-banner .wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
}

/* ---- Font Awesome section icons ---- */
.tp-fa { font-size: 2.4rem; line-height: 1; margin: 0 0 0.4rem; }
.tp-card-center .tp-fa { text-align: center; }

/* ---- Cookie consent bar ---- */
.tp-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--wp--preset--color--heading); color: #e5e7eb;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.tp-cookie[hidden] { display: none; }
.tp-cookie-inner {
  max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.tp-cookie-text strong { color: #fff; display: block; margin-bottom: 0.2rem; }
.tp-cookie-text p { margin: 0; font-size: 0.85rem; color: #cbd5e1; max-width: 720px; }
.tp-cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.tp-cookie-btn { border: 0; cursor: pointer; border-radius: 8px; padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.85rem; }
.tp-cookie-manage { background: transparent; color: #cbd5e1; border: 1px solid #475569; }
.tp-cookie-accept { background: var(--wp--preset--color--primary); color: #fff; }
.tp-cookie-decline { background: #334155; color: #e5e7eb; }

/* ---- Responsive ---- */
@media (max-width: 781px) {
  .tp-hero .wp-block-column { flex-basis: 100% !important; }
  .tp-step-num { font-size: 2.25rem; }
}
