/**
 * CreatorLayer — sitewide UX polish
 */

/* Form feedback */
.creatorlayer-form-status,
.creatorlayer-quote-status {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 12px;
}

.creatorlayer-form-status[data-state="success"],
.creatorlayer-quote-status[data-state="success"] {
  color: #1a7f4b;
}

.creatorlayer-form-status[data-state="error"],
.creatorlayer-quote-status[data-state="error"] {
  color: #c0392b;
}

/* Focus visibility (keyboard + a11y) */
.form-contact input:focus-visible,
.form-contact textarea:focus-visible,
.form-newsletter input:focus-visible,
.form-newsletter-2 input:focus-visible,
.creatorlayer-quote-form input:focus-visible,
.creatorlayer-quote-form textarea:focus-visible,
.creatorlayer-quote-form select:focus-visible {
  outline: 2px solid var(--seo-marketing-purple, #7555f5);
  outline-offset: 2px;
}

/* Blog sidebar — real links, not dead anchors */
.tf-sidebar .item-tags {
  pointer-events: none;
  cursor: default;
}

.tf-sidebar .item-tags[href]:not([href="#"]) {
  pointer-events: auto;
  cursor: pointer;
}

/* Static blog blocks hidden when CRM content loads */
.cl-dynamic ~ .cl-static-fallback,
.wg-blog-detail.cl-dynamic .cl-static-fallback {
  display: none !important;
}

/* Homepage motto band (moved from inline styles) */
.cl-home-motto {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--digital-marketing-dark) 0%, var(--seo-purple) 100%);
}

.cl-home-motto__eyebrow {
  color: var(--digital-marketing-light, #c8f540);
  margin-bottom: 20px;
}

.cl-home-motto__title {
  color: var(--white, #fff);
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.25;
  margin-bottom: 20px;
}

.cl-home-motto__desc {
  color: var(--color-text-1, rgba(255, 255, 255, 0.65));
  max-width: 600px;
  margin: 0 auto;
}

/* Mobile sticky CTA bar */
.cl-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 16px;
  background: rgba(6, 9, 28, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

.cl-mobile-cta .tf-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  .cl-mobile-cta {
    display: block;
  }

  body.cl-has-mobile-cta {
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-home-motto strong {
    animation: none;
  }
}

/* Inner pages — breadcrumbs & titles */
.page-title .breadkcum {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.page-title .breadkcum a {
  transition: color 0.2s ease;
}

.page-title .breadkcum a:hover {
  color: var(--seo-marketing-purple, #7555f5);
}

.page-title .title {
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* Blog sidebar */
.tf-sidebar .wg-cta {
  border-radius: 20px;
  overflow: hidden;
}

.tf-sidebar .item-tags {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tf-sidebar .item-tags:not(.active):hover {
  background: var(--seo-marketing-purple, #7555f5);
  border-color: var(--seo-marketing-purple, #7555f5);
  color: var(--white, #fff);
}

/* Newsletter footer — clearer tap targets */
.footer-content.newsletter-footer .tf-btn {
  min-height: 48px;
}

/* Contact & quote forms — breathing room on mobile */
@media (max-width: 767px) {
  .form-contact fieldset,
  .creatorlayer-quote-form fieldset {
    margin-bottom: 16px;
  }

  .section-contact .heading-section,
  .section-quote .heading-section {
    margin-bottom: 40px;
  }
}

/* Testimonial avatars — no false link affordance */
.section-testimonials .user-tes .img-avt:not(a) {
  display: inline-block;
}

/* Skip dead sidebar tag styling when href is # */
.tf-sidebar .item-tags[href="#"] {
  pointer-events: none;
  opacity: 0.55;
}
