/*
Theme Name: Foresyte
Theme URI: https://foresyte.com
Author: Foresyte Inc.
Author URI: https://foresyte.com
Description: Foresyte - Anticipate the Journey. Real-Time Customer Journey And Intent Platform.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foresyte
Tags: business, technology
*/

/* =========================================
   BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-title,
.font-onest {
  font-family: 'Onest', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* =========================================
   CUSTOM BACKGROUND CLASSES
   (bg images injected via inline PHP style)
   ========================================= */
.mesh-bg {
  background-color: #020617;
  background-image:
    linear-gradient(rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.7)),
    url('assets/bg/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.capabilites-bg {
  background-color: #020617;
  background-image:
    linear-gradient(rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.7)),
    url('assets/bg/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* =========================================
   CLIP PATH UTILITIES
   ========================================= */
.wavy-border {
  clip-path: ellipse(100% 100% at 50% 0%);
}

.wavy-top {
  clip-path: ellipse(150% 100% at 50% 0%);
}

.wavy-bottom {
  clip-path: ellipse(150% 100% at 50% 100%);
}

/* =========================================
   SHAPE DIVIDERS
   ========================================= */
.custom-shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-shape-divider-top svg {
  position: relative;
  display: block;
  width: calc(108% + 1.3px);
  height: 100px;
}

.custom-shape-divider-top .shape-fill {
  fill: #FFFFFF;
}

.custom-shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(140% + 1.3px);
  height: 160px;
}

.custom-shape-divider-bottom .shape-fill {
  fill: #FFFFFF;
}

/* =========================================
   SCROLLBAR HIDE
   ========================================= */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

@keyframes marquee-slow {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.33%);
  }
}

.animate-marquee-slow {
  animation: marquee-slow 40s linear infinite;
}

.animate-marquee-slow:hover {
  animation-play-state: paused;
}

/* =========================================
   COLORS
   ========================================= */
.text-foresyte-blue {
  color: #293241;
}

/* =========================================
   MODAL OVERLAY
   ========================================= */
.foresyte-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.foresyte-modal-overlay.active {
  display: flex;
}

.foresyte-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(8px);
}

.foresyte-modal-inner {
  position: relative;
  width: 100%;
  max-width: 56rem;
  z-index: 10;
}

/* =========================================
   NAVBAR
   ========================================= */
#foresyte-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1.25rem 0;
  background: transparent;
}

#foresyte-nav.scrolled,
#foresyte-nav.force-dark {
  background: #0f172a;
  padding: 0.75rem 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* =========================================
   FORMS
   ========================================= */
.foresyte-input {
  width: 100%;
  padding: 0.625rem 1rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s;
}

.foresyte-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #2563eb;
}

.foresyte-input::placeholder {
  color: #94a3b8;
}

/* Contact Form 7 — Book a Demo modal */
#demo-modal .foresyte-demo-form > p {
  margin: 0 0 1rem;
}

#demo-modal .foresyte-demo-form > p:last-child {
  margin-bottom: 0;
}

#demo-modal .foresyte-demo-form .space-y-1 > * + * {
  margin-top: 0.25rem;
}

#demo-modal .foresyte-demo-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#demo-modal .foresyte-demo-form select.foresyte-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

#demo-modal .foresyte-demo-form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

#demo-modal .foresyte-demo-form .wpcf7-not-valid-tip {
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

.foresyte-btn-demo {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem 1rem;
  background: #3590f3;
  color: #fff;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.foresyte-btn-demo:hover {
  background: #3b82f6;
}

.foresyte-btn-demo:active {
  transform: scale(0.98);
}

/* =========================================
   RESPONSIVE HELPERS
   ========================================= */
@media (max-width: 768px) {
  .mesh-bg {
    background-attachment: scroll;
  }

  .capabilites-bg {
    background-attachment: scroll;
  }
}
/* =========================================
   LOGO CLIPPING & VISIBILITY
   ========================================= */
.facebook-logo-clip, .instagram-logo-clip { object-fit: contain; mix-blend-mode: normal; }
.nice-logo-clip { transform: scale(0.95); display: inline-block; }

/* Allied Global Brand Styles */
.allied-green { color: #126B5C; }
.allied-border { border-color: #126B5C; }
.bg-allied { background-color: #126B5C; }



/* 1. Hide the default CF7 loading spinner icon completely */
.wpcf7 .wpcf7-spinner {
    display: none !important;
}

/* 2. Set the form container as relative so the overlay positions correctly */
.wpcf7-form {
    position: relative;
}

/* 3. Create the overlay with a custom spinner using your new class */
.wpcf7-form.submitting::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    z-index: 999; /* Ensures it sits on top of all form elements */
}

/* 4. Create a pure CSS spinning wheel centered on the overlay */
.wpcf7-form.submitting::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;  /* Centers the spinner vertically */
    margin-left: -20px; /* Centers the spinner horizontally */
    z-index: 1000;      /* Sits perfectly on top of the overlay background */
    
    /* The Spinner Design */
    border: 4px solid rgba(0, 0, 0, 0.1); /* Light gray track background */
    border-top: 4px solid #0073aa;        /* The active colored spinning segment */
    border-radius: 50%;                    /* Makes it a perfect circle */
    
    animation: cf7-custom-spin 0.8s linear infinite;
}

/* Spinner rotation animation */
@keyframes cf7-custom-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 5. Disable user interaction and fade fields while submitting */
.wpcf7-form.submitting input,
.wpcf7-form.submitting textarea,
.wpcf7-form.submitting button,
.wpcf7-form.submitting select {
    pointer-events: none; /* Block all clicks, focus, and typing */
    opacity: 0.6;        /* Visual cue indicating the form is disabled */
}