/*
Theme Name: Formula Premium
Theme URI: http://awplife.com/
Author: awplife.com
Author URI: http://awplife.com/
Description: Formula Premium is a powerful, multipurpose WordPress theme designed for businesses, agencies, portfolios, and WooCommerce stores. With a blazing-fast performance, dark/light mode support, one-click demo imports, and an intuitive customizer, building stunning websites has never been easier — no coding required.
Tags: blog, portfolio, news, grid-Layout, one-column, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, post-formats, rtl-language-support, sticky-post, translation-ready
Version: 3.5.0
Tested upto : 6.8
License URI: awplife.com
License: GNU General Public License v3 or later
Text Domain: formula
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Common
# Form
# Navigations
# Animations
# Mobile Nav
# Search Popup
# Page Header
# Google Map
# Client Carousel
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Common
--------------------------------------------------------------*/

:root {
  scroll-behavior: smooth;

  --thm-font: "Inter", sans-serif;
  --thm-reey-font: "reeyregular";
  --thm-gray: #726f84;
  --thm-gray-rgb: rgb(50 49 56 / 35%);
  --thm-primary: #7b40c0;
  --thm-primary-rgb: rgb(123, 64, 192);
  --thm-black: #020617;
  --thm-black-rgb: rgb(8 0 18 / 40%);
  --thm-base: #ffffff;
  --thm-base-rgb: rgb(255, 255, 255);
  --thm-light: #f2f4f8;
  --thm-light-rgb: rgb(242, 244, 248);
  --thm-letter-space-big: 0.1em;
  --thm-letter-space-small: -0.02em;
  --thm-text-transform: capitalize;

  /* Slider Defaults */
  --formula-slider-title-fs: 96px;
  --formula-slider-title-lh: 96px;
  --formula-slider-subtitle-fs: 14px;
  --formula-slider-desc-fs: 20px;
  --formula-slider-desc-lh: 34px;
  --formula-slider-btn-fs: 14px;

  /* Global Section Defaults */
  --formula-section-title-fs: 60px;
  --formula-section-title-lh: 60px;
  --formula-section-title-fw: 900;
  --formula-section-subtitle-fs: 14px;
  --formula-section-subtitle-lh: 30px;
  --formula-section-subtitle-fw: 700;
  --formula-section-divider-color: var(--thm-primary);

  /* Corner Radius & Shape Defaults */
  --thm-card-radius: 12px;
  --thm-btn-radius: 8px;
  --thm-input-radius: 8px;
  --thm-badge-radius: 6px;
}

.row {
  --bs-gutter-x: 30px;
}

.gutter-y-30 {
  --bs-gutter-y: 30px;
}

body {
  font-family: var(--thm-font);
  color: var(--thm-gray);
  font-size: 18px;
  line-height: 34px;
  font-weight: 500;
  overflow-x: clip;
}

body.locked {
  overflow: hidden;
}

/* Boxed Layout */
body.boxed {
  max-width: 1280px;
  margin: 0 auto;
  background-color: var(--thm-base);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
  position: relative;
}

@media (min-width: 1281px) {
  html:has(body.boxed) {
    background-color: #f0f2f5;
  }

  body.boxed .sticky-menu.is-sticky {
    max-width: 1280px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }
}

a {
  color: var(--thm-gray);
}

a,
a:hover,
a:visited {
  text-decoration: none;
}

/* WordPress Gutenberg Block Buttons */
.wp-block-button__link,
.wp-element-button,
.wp-block-button .wp-block-button__link,
.wp-block-file__button {
  color: #ffffff !important;
  background-color: var(--thm-primary);
  border-radius: var(--thm-btn-radius, 50px);
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.wp-block-button .wp-block-button__link:hover,
.wp-block-file__button:hover {
  color: #ffffff !important;
  opacity: 0.9;
}

/* Outline Gutenberg Block Button */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
  background-color: transparent !important;
  color: var(--thm-primary) !important;
  border: 2px solid var(--thm-primary) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-element-button:hover {
  background-color: var(--thm-primary) !important;
  color: #ffffff !important;
}

a:focus-visible {
  text-decoration: underline;
}

::-webkit-input-placeholder {
  color: inherit;
  opacity: 1;
}

::-moz-placeholder {
  color: inherit;
  opacity: 1;
}

:-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}

::-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}

::placeholder {
  color: inherit;
  opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--thm-black);
  margin: 0;
}

/* Theme Dark Utility Overrides (For specific sections in Default Mode) */
.theme-dark .section-header .section-title,
.theme-dark .section-title,
.theme-dark .callout-to-action .title,
.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6 {
  color: var(--thm-light);
}

.theme-dark p {
  color: var(--thm-gray);
}

dl,
ol,
ul {
  margin-top: 0;
  margin-bottom: 0;
}

::-webkit-input-placeholder {
  color: inherit;
  opacity: 1;
}

::-moz-placeholder {
  color: inherit;
  opacity: 1;
}

:-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}

::-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}

::placeholder {
  color: inherit;
  opacity: 1;
}

.page-wrapper {
  position: relative;
  margin: 0 auto;
  width: 100%;
  min-width: 300px;
  overflow: clip;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* boxed style */

body.boxed-wrapper {
  background-color: var(--thm-light);
}

.boxed-wrapper .page-wrapper {
  max-width: 1410px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--thm-base);
  box-shadow: 0px 0px 100px 0px rgba(0, 0, 0, 0.08);
}

.boxed-wrapper .page-wrapper__dark {
  background-color: #1c1e22;
}

::-webkit-input-placeholder {
  color: inherit;
  opacity: 1;
}

::-moz-placeholder {
  color: inherit;
  opacity: 1;
}

:-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}

::-ms-input-placeholder {
  color: inherit;
  opacity: 1;
}

::placeholder {
  color: inherit;
  opacity: 1;
}

.section {
  margin: 0;
  padding: 100px 0;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.section-separator {
  border-color: var(--thm-border);
  border-width: 1px;
  margin-top: 0;
  margin-bottom: 0;
}

.theme-dark {
  background-color: var(--thm-black);
}

.theme-light {
  background-color: var(--thm-light);
}

.text-dark {
  color: var(--thm-black);
}

.text-light {
  color: var(--thm-light);
}

.thm-btn,
.wpforms-submit {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  -webkit-appearance: none;
  border: none;
  border-radius: var(--thm-btn-radius, 8px);
  background-color: var(--thm-primary);
  color: var(--thm-base);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px 40px;
  transition: 500ms;
  letter-spacing: 0.1em;
}

.thm-btn:hover,
.wpforms-submit:hover {
  background: var(--thm-base);
  color: var(--thm-primary);
}

.theme-wrapper {
  background: var(--thm-base);
}

body.locked .theme-wrapper {
  visibility: hidden !important;
}

.bootstrap-select .dropdown-menu {
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 0;
}

.bootstrap-select .dropdown-item.active,
.bootstrap-select .dropdown-item:active {
  background-color: var(--thm-base);
}

.preloader {
  position: fixed;
  background-color: var(--thm-black);
  background-position: center center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9991;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.preloader__image {
  background-image: url(assets/images/loader.png);
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-name: flipInY;
  animation-name: flipInY;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 60px auto;
  width: 100%;
  height: 100%;
}

/* card effect */

.card-holder {
  position: relative;
}

.card-holder::before,
.card-holder::after {
  position: absolute;
  content: "";
  left: -10px;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -ms-transition: all 0.25s;
  -o-transition: all 0.25s;
  transition: all 0.25s;
}

.card-holder::before {
  width: 10px;
  height: 100%;
  top: 10px;
}

.card-holder::after {
  width: 100%;
  height: 10px;
  bottom: -10px;
}

.card-holder.double .card__image::before,
.card-holder.double .card__image::after {
  position: absolute;
  content: "";
  left: -20px;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -ms-transition: all 0.25s;
  -o-transition: all 0.25s;
  transition: all 0.25s;
  background: var(--thm-black);
}

.card-holder.holder-small .card__image::before,
.card-holder.holder-small .card__image::after {
  right: -20px;
  left: unset;
}

.card-holder.holder-small::before,
.card-holder.holder-small::after {
  right: -10px;
  left: unset;
}

.card-holder.double .card__image::before {
  width: 10px;
  height: 100%;
  top: 20px;
}

.card-holder.double .card__image::after {
  width: 100%;
  height: 10px;
  bottom: -20px;
}

.card-holder.base::before,
.card-holder.base::after {
  background: var(--thm-primary);
}

/* scroll to top */

.scroll-to-top {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: var(--thm-primary);
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99;
  text-align: center;
  transition: all 0.4s ease;
  display: none;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.scroll-to-top i {
  color: var(--thm-base);
  font-size: 18px;
  line-height: 45px;
}

.scroll-to-top:hover {
  background-color: var(--thm-black);
}

.scroll-to-top:hover i {
  color: var(--thm-base);
}

/* page loader custom ring loader css */
.page-loader {
  position: fixed;
  background-color: var(--thm-black, #0f1013);
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 9991;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ==============================================================
   Page Loader Styling (Modern & Customizer Integrated)
   ============================================================== */

/* Modern Glowing Core Styles */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modern-loader {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-loader .glow-bg {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle,
      rgba(36, 236, 255, 0.15) 0%,
      rgba(228, 28, 248, 0.05) 50%,
      transparent 70%);
  filter: blur(10px);
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

.modern-loader .ring-track {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.03);
}

.modern-loader .spinning-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top: 3px solid var(--loader-color-primary, var(--thm-primary, #61ce70));
  border-right: 3px solid var(--loader-color-primary, var(--thm-primary, #61ce70));
  animation: loader-spin 1.2s cubic-bezier(0.5, 0.1, 0.1, 0.9) infinite;
}

.modern-loader .inner-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--loader-color-primary, var(--thm-primary, #61ce70));
  box-shadow: 0 0 20px var(--loader-color-primary, var(--thm-primary, #61ce70));
  animation: core-pulse 1.5s ease-in-out infinite alternate;
}

.loader-title,
h2.loader-title {
  color: #ffffff;
  font-family: "Montserrat", "Inter", "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 8px;
  text-indent: 8px;
  margin: 10px 0 5px 0;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1.3;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 25%,
    var(--loader-color-primary, var(--thm-primary, #695a96)) 50%,
    #ffffff 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shine 3s linear infinite;
  text-shadow: 0 0 20px color-mix(in srgb, var(--loader-color-primary, var(--thm-primary, #695a96)) 40%, transparent);
}

.loader-subtitle {
  color: rgba(255, 255, 255, 0.4);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-indent: 4px;
  text-transform: uppercase;
  animation: fade-pulse 2s ease-in-out infinite alternate;
}

/* Clean Double Rings Styles */
.clean-double-rings {
  position: relative;
  width: 80px;
  height: 80px;
}

.clean-double-rings .ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
}

.clean-double-rings .ring-outer {
  border-top: 3px solid var(--thm-primary);
  border-bottom: 3px solid var(--thm-primary);
  animation: loader-spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.clean-double-rings .ring-inner {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
  opacity: 0.7;
  animation: loader-spin-reverse 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

/* Text Wave Reveal Styles */
.text-reveal-stagger {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--thm-primary);
}

.text-reveal-stagger span {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  filter: blur(2px);
  animation: reveal-char 2.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.text-reveal-stagger span.space {
  width: 8px;
}

@keyframes reveal-char {
  0% {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(4px);
  }

  15%,
  80% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  95%,
  100% {
    opacity: 0;
    transform: translateY(-15px);
    filter: blur(4px);
  }
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes core-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
    box-shadow:
      0 0 30px var(--thm-primary),
      0 0 50px var(--thm-primary);
  }
}

@keyframes glow-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes text-shine {
  to {
    background-position: 200% center;
  }
}

@keyframes fade-pulse {
  0% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.7;
  }
}

@keyframes loader-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

