/*
Theme Name: Lead Planet
Theme URI: https://subversellc.com/
Author: Subverse LLC
Author URI: https://subversellc.com/
Description: Lead Planet
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: leadplanet
*/

/* Defaults
---------------------------------------- */

html {
  scroll-behavior: smooth;
}

html,
body {
  /* clip hard-clips without creating a scroll container.
     Unlike overflow:hidden, it keeps scrollLeft at 0 so
     position:fixed elements anchor to the true viewport. */
  overflow-x: clip;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus {
  transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
  text-decoration: none;
}

mark {
  background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary) 100%);
  background-position: 0 85%;
  background-repeat: repeat-x;
  background-size: 100% 15%;
}

.no-margin-top {
  margin-top: 0 !important;
}

.wp-block-tiptip-hyperlink-group-block,
.wp-block-tiptip-hyperlink-group-block a {
  text-decoration: none;
}

/* Blend Modes
---------------------------------------- */

.has-blend-mode-screen {
  mix-blend-mode: screen;
}

.has-blend-mode-multiply {
  mix-blend-mode: multiply;
}

/* Header
---------------------------------------- */

#site-header {
  z-index: 100;
}

/* Media Queries
---------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Glassmorphism
---------------------------------------- */

.has-glassmorphism {
  backdrop-filter: blur(10px);
  background-color: var(--wp--preset--color--white-75);
}

/* ─────────────────────────────────────────
   HOME
───────────────────────────────────────── */

/* Hero
---------------------------------------- */

@media screen and (max-width: 768px) {
  .lp-hero .is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 960px) {
  .lp-hero {
    padding-top: var(--wp--preset--spacing--space-1000) !important;
  }
}

@media screen and (max-width: 600px) {
  .lp-hero {}
}

@media screen and (max-width: 480px) {
  .lp-hero {

    /*padding-bottom: 18rem !important;

    .wp-block-heading {
      font-size: var(--wp--preset--font-size--type-700) !important;
    }

    .hero-subtitle {
      font-size: var(--wp--preset--font-size--type-300) !important;
    } */

    .is-layout-grid {
      .lp-tile {
        padding-top: var(--wp--preset--spacing--space-600) !important;
        padding-right: var(--wp--preset--spacing--space-300) !important;
        padding-bottom: var(--wp--preset--spacing--space-600) !important;
        padding-left: var(--wp--preset--spacing--space-300) !important;
      }
    }
  }
}

.lp-tile {
  transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.lp-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--wp--preset--shadow--medium-shade) !important;
}

.lp-hero-bg {
  inset-block: 0;
  inset-inline: 0;
  inset-block-start: -14rem;
  position: absolute;
  z-index: -1;

  @media screen and (max-width: 1920px) {
    inset-block-start: -6rem;
  }

  @media screen and (max-width: 1366px) {
    inset-inline: -10%;
    inset-block-start: -8rem;
  }

  @media screen and (max-width: 1024px) {
    inset-inline: -15%;
    inset-block-start: -3rem;
  }

  @media screen and (max-width: 960px) {
    inset-inline: 0%;
    inset-block-start: -3rem;
  }

  @media screen and (max-width: 480px) {
    inset-block-start: -19rem;
  }
}

.lp-hero-bg::after {
  display: block;
  content: "";
  block-size: 50%;
  inline-size: 100%;
  top: -50%;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
}

.lp-hero-bg img {
  block-size: 100%;
  display: block;
  inline-size: 100%;
  object-fit: cover;
  object-position: bottom;
  overflow: visible;
}

/* Trusted By
---------------------------------------- */

@media screen and (max-width: 480px) {
  .lp-trusted-by {
    padding-top: 0 !important;
    padding-bottom: var(--wp--preset--spacing--space-1100) !important;
  }
}

/* Why Choose
---------------------------------------- */

@media screen and (max-width: 480px) {

  .lp-why-choose .wp-block-image {
    display: none;
  }

  .lp-why-choose .wp-block-columns {
    gap: 0 !important;
  }

  .wp-container-core-group-is-layout-3f2825e9>*+* {
    margin-block-start: var(--wp--preset--spacing--space-1100) !important;
  }

}


/* Reviews
---------------------------------------- */

.lp-reviews .lp-review {
  transition: box-shadow var(--wp--custom--transition);
}

.lp-reviews .lp-review:hover {
  box-shadow: var(--wp--preset--shadow--medium-shade) !important;
}

.lp-reviews-bg {
  inset-block: 0;
  inset-inline: 0;
  inset-block-start: -10%;
  position: absolute;
  z-index: -1;

  @media screen and (max-width: 1366px) {
    inset-inline: -10%;
    inset-block-start: 5rem;
  }

  @media screen and (max-width: 1024px) {
    inset-inline: -30%;
    inset-block-start: 2rem;
  }

  @media screen and (max-width: 960px) {
    inset-inline: -80%;
    inset-block-start: -2rem;
  }

  @media screen and (max-width: 480px) {
    inset-inline: -100%;
    inset-block-start: 10rem;
  }
}

.lp-reviews-bg img {
  block-size: 100%;
  display: block;
  inline-size: 100%;
  object-fit: cover;
  object-position: bottom;
  overflow: visible;
}

/* CTA
---------------------------------------- */

.lp-cta-bg {
  inset-inline: 0;
  inset-block-end: 0;
  position: absolute;
  z-index: -1;

  @media screen and (max-width: 1366px) {
    inset-inline: -10%;
  }

  @media screen and (max-width: 1024px) {
    inset-inline: -30%;
  }

  @media screen and (max-width: 960px) {
    inset-inline: -80%;
  }

  @media screen and (max-width: 480px) {
    inset-inline: -100%;
  }
}

.lp-cta-form a {
  color: var(--wp--preset--color--white-75) !important;
}

.lp-cta-form a:hover {
  color: var(--wp--preset--color--white) !important;
}

@media screen and (max-width: 480px) {
  .lp-cta-form {
    padding-top: var(--wp--preset--spacing--space-800) !important;
    padding-right: var(--wp--preset--spacing--space-800) !important;
    padding-bottom: var(--wp--preset--spacing--space-800) !important;
    padding-left: var(--wp--preset--spacing--space-800) !important;
  }
}

.lp-cta-bg img {
  block-size: 100%;
  display: block;
  inline-size: 100%;
  object-fit: cover;
  object-position: bottom;
  overflow: visible;
}

.frm_style_formidable-style.with_frm_style .form-field#frm_field_6_container {
  margin-bottom: 0;
}

/* General
---------------------------------------- */

@media screen and (max-width: 480px) {

  .lp-why-choose,
  .lp-reviews,
  .lp-about {
    padding-top: var(--wp--preset--spacing--space-800) !important;
    padding-bottom: var(--wp--preset--spacing--space-800) !important;
  }

  .lp-cta {
    padding-top: var(--wp--preset--spacing--space-800) !important;
  }
}

@media screen and (max-width: 768px) {
  .lp-view-desktop {
    display: none !important;
  }
}

@media screen and (min-width: 769px) {
  .lp-view-mobile {
    display: none !important;
  }
}

/* ─────────────────────────────────────────
   SINGLE
───────────────────────────────────────── */

@media screen and (max-width: 480px) {

  .lp-byline {
    border: none;
    padding-right: 0;
  }
}

/* ─────────────────────────────────────────
   ARCHIVE / SEARCH TEMPLATES
───────────────────────────────────────── */

/* Search results list */
.lp-search-results {
  padding-top: var(--wp--preset--spacing--40);
  padding-bottom: var(--wp--preset--spacing--50);
}

.lp-search-result-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--lp-neutral-lt);
}

.lp-search-result-thumb {
  width: 100px;
  height: 80px;
  background: linear-gradient(135deg, #E8F5F0, #D4EDE6);
  border-radius: 8px;
  flex-shrink: 0;
}

.lp-search-result-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--lp-dark);
  margin-bottom: 0.375rem;
}

.lp-search-result-body h3 a {
  text-decoration: none;
  color: inherit;
}

.lp-search-result-body h3 a:hover {
  color: var(--lp-primary);
}

.lp-search-result-body p {
  font-size: 0.875rem;
  color: var(--lp-neutral);
  line-height: 1.6;
}

.lp-no-results {
  text-align: center;
  padding: var(--wp--preset--spacing--50) 0;
}

.lp-no-results h2 {
  color: var(--lp-primary);
  margin-bottom: 0.75rem;
}

.lp-no-results p {
  color: var(--lp-neutral);
  margin-bottom: 1.5rem;
}



/* ─────────────────────────────────────────
   404 PAGE
───────────────────────────────────────── */

.error-illustration {
  position: relative;
  width: 280px;
  height: 200px;
  margin: 0 auto 40px;
}

.error-num {
  font-family: var(--wp--preset--font-family--gabarito);
  font-size: 140px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 50%, var(--wp--preset--color--tertiary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  position: relative;
  z-index: 2;
  letter-spacing: -4px;
  user-select: none;
}

/* Floating decorative elements */
.float-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.float-shape-1 {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(59, 169, 144, 0.15), rgba(59, 169, 144, 0.05));
  top: 10px;
  left: 0;
  animation: float1 4s ease-in-out infinite;
}

.float-shape-2 {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(127, 108, 145, 0.15), rgba(127, 108, 145, 0.05));
  top: 0;
  right: 10px;
  animation: float2 5s ease-in-out infinite;
}

.float-shape-3 {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgba(0, 61, 92, 0.12), rgba(0, 61, 92, 0.04));
  bottom: 20px;
  left: 30px;
  animation: float3 3.5s ease-in-out infinite;
}

.float-shape-4 {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, rgba(59, 169, 144, 0.2), rgba(59, 169, 144, 0.08));
  bottom: 10px;
  right: 30px;
  animation: float1 4.5s ease-in-out infinite 0.5s;
}

.float-shape-5 {
  width: 12px;
  height: 12px;
  background: rgba(127, 108, 145, 0.18);
  top: 40px;
  left: 50px;
  animation: float2 3s ease-in-out infinite 1s;
}

/* Magnifying glass searching animation */
.search-anim {
  position: absolute;
  bottom: 25px;
  right: 55px;
  z-index: 3;
  animation: searchDrift 6s ease-in-out infinite;
  opacity: 0.5;
}

.search-anim svg {
  width: 44px;
  height: 44px;
  color: var(--secondary-700);
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(8deg);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(-6deg);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes searchDrift {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-12px, -6px) rotate(-5deg);
  }

  50% {
    transform: translate(4px, -10px) rotate(3deg);
  }

  75% {
    transform: translate(10px, -3px) rotate(-2deg);
  }
}

/* ─────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children>*:nth-child(1) {
  transition-delay: 0.00s;
}

.stagger-children>*:nth-child(2) {
  transition-delay: 0.08s;
}

.stagger-children>*:nth-child(3) {
  transition-delay: 0.16s;
}

.stagger-children>*:nth-child(4) {
  transition-delay: 0.24s;
}

.stagger-children>*:nth-child(5) {
  transition-delay: 0.32s;
}

.stagger-children>*:nth-child(6) {
  transition-delay: 0.40s;
}

.stagger-children>*:nth-child(7) {
  transition-delay: 0.48s;
}

.stagger-children>*:nth-child(8) {
  transition-delay: 0.56s;
}


/* ─────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  .animate-on-scroll,
  .lp-category-card,
  .lp-testimonial-card,
  .lp-post-card,
  .lp-btn-primary,
  .lp-btn-outline,
  .lp-form-submit {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .stagger-children>* {
    transition-delay: 0s;
  }

  html {
    scroll-behavior: auto;
  }
}