/*
 Theme Name:   Threadplay Astra
 Theme URI:    https://thread-play.com
 Description:  Child theme of Astra for THREADPLAY market validation site.
 Author:       Collective Tech LLC
 Author URI:   https://collectivetechllc.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  thread-play-astra
*/

/* ==============================
   THREADPLAY brand & layout
   ============================== */

:root {
  --tp-primary: #4A6FA5;
  --tp-primary-dark: #3d5d8a;
  --tp-secondary: #6B7B8C;
  --tp-accent: #5B8A9E;
  --tp-text: #2c3e50;
  --tp-text-light: #5d6d7e;
  --tp-bg: #ffffff;
  --tp-border: #e0e6ed;
}

body {
  color: var(--tp-text);
  background-color: var(--tp-bg);
}

/* Sections: whitespace and hierarchy */
.entry-content .wp-block-group,
.entry-content section {
  padding: 3rem 1rem;
}
@media (min-width: 768px) {
  .entry-content .wp-block-group,
  .entry-content section {
    padding: 4rem 2rem;
  }
}

/* Headings */
.entry-content h1,
.entry-content .wp-block-heading.has-h-1-font-size {
  color: var(--tp-text);
  font-weight: 700;
  margin-bottom: 1rem;
}
.entry-content h2 {
  color: var(--tp-text);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* CTA buttons – prominent, touch-friendly */
.entry-content .wp-block-buttons .wp-block-button__link,
.entry-content .wp-block-button__link,
a.wp-block-button__link,
.tp-cta {
  background-color: var(--tp-primary) !important;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  min-height: 48px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.entry-content .wp-block-buttons .wp-block-button__link:hover,
.entry-content .wp-block-button__link:hover,
a.wp-block-button__link:hover,
.tp-cta:hover {
  background-color: var(--tp-primary-dark) !important;
  color: #fff !important;
}

/* Hero section */
.tp-hero,
.wp-block-group.tp-hero {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.tp-hero .tp-hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}
.tp-hero .tp-hero-sub {
  font-size: 1.125rem;
  color: var(--tp-text-light);
  margin-bottom: 1.5rem;
}

/* Problem / Solution / Social proof blocks */
.tp-pain-point,
.tp-benefit {
  margin-bottom: 1rem;
}
.tp-pain-point::before,
.tp-benefit::before {
  margin-right: 0.5rem;
}
.tp-benefit::before {
  content: "✓";
  color: var(--tp-primary);
  font-weight: bold;
}

/* Testimonials */
.tp-testimonial {
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--tp-primary);
  background: #f8f9fa;
  border-radius: 0 6px 6px 0;
}

/* Email capture block */
#email-capture,
.tp-email-capture {
  background: #f0f4f8;
  padding: 2rem;
  border-radius: 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Form 7 overrides – match brand */
.wpcf7 input[type="email"],
.wpcf7 input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tp-border);
  border-radius: 6px;
  font-size: 1rem;
  min-height: 48px;
}
.wpcf7 input[type="submit"] {
  background-color: var(--tp-primary) !important;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  min-height: 48px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.wpcf7 input[type="submit"]:hover {
  background-color: var(--tp-primary-dark) !important;
}
.wpcf7 .wpcf7-radio .wpcf7-list-item {
  margin: 0.5rem 0;
}
.wpcf7 .wpcf7-radio .wpcf7-list-item-label {
  margin-left: 0.5rem;
}

/* Exit-intent popup overlay (custom popup) */
.tp-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999998;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tp-popup-overlay.is-visible {
  display: flex;
}
.tp-popup-box {
  background: var(--tp-bg);
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.tp-popup-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--tp-text);
}
.tp-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--tp-text-light);
}
.tp-popup-box {
  position: relative;
}
