/*
Theme Name: Child Thrive Theme
Theme URI: http://thrivethemes.com/
Version: 1.0
Author: <a href="http://www.thrivethemes.com">Thrive Themes</a>
Description: Fully customizable, front end theme and template editing for WordPress has arrived! 
Template: thrive-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, custom-everything
*/

/* ---- Hero title character reveal ---- */

/* Hidden until the script has split it (script adds .is-ready). Scoped to the
   front-end so the Thrive editor still shows the heading normally. */
body:not(.tve_editor_page) .hero-title:not(.is-ready) { visibility: hidden; }
body:not(.tve_editor_page) .hero-subtitle:not(.is-ready) {
  visibility: hidden;
  animation: kpaSubFailsafe 0s linear 10s forwards;
}
@keyframes kpaSubFailsafe { to { visibility: visible; } }
/* A word never breaks mid-character */
.hero-title .hero-word { display: inline-block; white-space: nowrap; }

/* Real space between words — preserved even inside a flex parent */
.hero-title .hero-space { white-space: pre; }

/* Per-character mask: overflow hidden clips the glyph while it rises from below.
   Padding + equal negative margin = clipping room for ascenders/descenders
   without changing the layout. */
.hero-title .hero-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;              /* required: overflow:hidden changes an inline-block's baseline */
  padding: 0.12em 0.04em 0.22em;
  margin:  -0.12em -0.04em -0.22em;
}

/* The moving glyph */
.hero-title .hero-char__inner { display: inline-block; }

/* KPA scroll reveal — pre-hide animated parts. JS reveals them via inline styles;
   the 3s failsafe restores them if GSAP fails to load. */
.text-image-sec-title, .text-image-sec-content, .text-image-sec-image,
.image-text-sec-title, .image-text-sec-content, .image-text-sec-image {
  opacity: 0;
}
.gform-theme--foundation .ginput_complex input,
.gform-theme--foundation .gfield input.large,
.gform-theme--foundation .gfield textarea{
    border-color: #dbdbdb !important; 
}
/* Container Box: Clean subtle card with rounded corners */
.gform_wrapper .gform_validation_errors,
.gform_wrapper .validation_error {
  background-color: #fef2f2 !important; /* Soft rose background */
  border: 1px solid #fecaca !important; /* Subtle border */
  border-left: 4px solid #dc2626 !important; /* Premium accent bar */
  border-radius: 8px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Heading: Modern sans-serif, compact size & tight line-height */
.gform_wrapper .gform_submission_error,
.gform_wrapper .validation_error > h2,
.gform_wrapper .gform_validation_errors > h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #991b1b !important;
  margin: 0 0 10px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Bullet list: Clean spacing & alignment */
.gform_wrapper .gform_validation_errors ol,
.gform_wrapper .gform_validation_errors ul {
  margin: 0 !important;
  padding-left: 18px !important;
}

.gform_wrapper .gform_validation_errors li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: #b91c1c !important;
  margin-bottom: 4px !important;
}

.gform_wrapper .gform_validation_errors li:last-child {
  margin-bottom: 0 !important;
}

/* Link styling inside the error box */
.gform_wrapper .gform_validation_errors a {
  color: #b91c1c !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

.gform_wrapper .gform_validation_errors a:hover {
  color: #7f1d1d !important;
}

/* Inline field validation messages below inputs */
.gform_wrapper .gfield_description.validation_message {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 12.5px !important;
  color: #dc2626 !important;
  margin-top: 5px !important;
  font-weight: 400 !important;
}
/* Gravity Forms Submit Button - Normal State */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper .gform_button {
  background-color: #000000 !important; /* Soft pill grey */
  color: #c59b27 !important; /* Dark text */
  font-family: inherit !important; /* Matches site serif font */
  font-size: 16px !important;
  font-weight: 400 !important;
  padding: 12px 32px !important;
  border-radius: 9999px !important; /* Fully rounded pill shape */
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-align: center !important;
  transition: all 0.3s ease-in-out !important;
  box-shadow: none !important;
}

/* Gravity Forms Submit Button - Hover State */
.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover,
.gform_wrapper .gform_button:hover {
  background-color: #b0b0b0 !important; /* Pure black */
  color: #111111 !important; /* Elegant gold accent text */
  transform: translateY(-1px);
}

/* Character Counter Text Styling */
.gform_wrapper .ginput_counter {
  font-family: inherit !important;
  font-size: 14px !important;
  color: #666666 !important;
  margin-top: 6px !important;
  margin-bottom: 16px !important;
}
#go-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #b8860b;
  color: #000000;
  border: 2px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.35),
              0 2px 6px rgba(0, 0, 0, 0.12);

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);

  /* Transition every animated property */
  transition: opacity 0.35s ease,
              visibility 0.35s ease,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Visible state - add this class via JS on scroll */
#go-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#go-top-btn:hover {
  background: #d4af37;
  color: #000000;
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.45),
              0 4px 10px rgba(0, 0, 0, 0.18);
}

#go-top-btn:active {
  background: #996f08;
  color: #000000;
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 6px 16px rgba(153, 111, 8, 0.35);
}

/* Keyboard focus ring for accessibility */
#go-top-btn:focus-visible {
  outline: 3px solid #d4af37;
  outline-offset: 4px;
}

/* Two ripple rings that expand and fade out on loop */
#go-top-btn::before,
#go-top-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #d4af37;
  opacity: 0;
  pointer-events: none;
}

#go-top-btn:hover::before {
  animation: goTopRipple 1.8s ease-out infinite;
}

/* Second ring starts halfway through */
#go-top-btn:hover::after {
  animation: goTopRipple 1.8s ease-out 0.9s infinite;
}

@keyframes goTopRipple {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    opacity: 0.15;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  #go-top-btn,
  #go-top-btn:hover,
  #go-top-btn:active {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: none;
  }
  #go-top-btn:hover::before,
  #go-top-btn:hover::after {
    animation: none;
  }
}

/* ---- Inverted state: button sitting over a .red-bg-section ---- */
#go-top-btn.is-on-red {
  background: #ffffff;
  color: #000000;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18),
              0 2px 6px rgba(0, 0, 0, 0.12);
}

#go-top-btn.is-on-red:hover {
  background: #fdf6e2;
  color: #000000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25),
              0 4px 8px rgba(0, 0, 0, 0.15);
}

#go-top-btn.is-on-red:active {
  background: #faecc3;
  color: #000000;
}

#go-top-btn.is-on-red::before {
  border-color: #ffffff;
}

/* Hover styles for touch devices */
@media (hover: none) {
  #go-top-btn:hover {
    background: #b8860b;
    color: #000000;
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.35),
                0 2px 6px rgba(0, 0, 0, 0.12);
  }
  #go-top-btn.is-on-red:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18),
                0 2px 6px rgba(0, 0, 0, 0.12);
  }
  #go-top-btn:hover::before {
    opacity: 0;
  }
}
/* iOS Safari cannot render fixed backgrounds; switch all layers to scroll on iOS only */
@supports (-webkit-touch-callout: none) {
  /* "html" prefix gives higher specificity than Thrive's rule, so this wins even with !important on both */
  html [data-css="tve-u-1703f427357"] {
    background-attachment: scroll, scroll, scroll !important;
  }
}
@media (hover: none) and (pointer: coarse) {
  html .tve-page-section-out,
  html .tve-content-box-background,
  html .symbol-section-out {
    background-attachment: scroll !important;
  }
}
@media (min-width: 300px) {
    .thrv_symbol_23 .symbol-section-out {
        box-shadow: none !important; 
    }
}

@media (max-width: 767px) {
  /* Cap every content box + its inner wrappers to the viewport */
  .thrv-content-box,
  .thrv-content-box .tve-content-box-background,
  .thrv-content-box .tve-cb {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .about-sub-section,
  .about-sub-section .tve-cb {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Clip the 24px slide-in travel without creating a scroll container.
     overflow-x: clip (not hidden) leaves sticky/ScrollTrigger untouched. */
  .about-wrapper,
   .contact-wrapper { /* replace with the real parent section/column selector */
    overflow-x: clip !important;
  } 
}