/* ===================================================================================

* Theme Name: Barr Center 2025
* Theme URI: https://wp.hixstudio.net/liko/
* Author: Scarlett's Web, Inc. 
* Author URI: https://scarletts-web.com
* Description: Barr Center
* Version: 1.0.0
* Template: liko
* License: GNU General Public License version 3.0

====================================================================================== */

/* =========================================================
   CONTENT / POSTS
   ========================================================= */

/* Hide the first image that appears inside post content */
.single-post .entry-content img:first-of-type {
  display: none !important;
}

/* Inline image fixes */
.image_spacing img {
  margin: 20px 0;
}

/* =========================================================
   GLOBAL LAYOUT SAFETY
   ========================================================= */

/* Stop mobile horizontal wobble / right-side overflow */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Safer on iOS when something uses 100vw */
body {
  position: relative;
  font-size:16px;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

#header-sticky {
  padding: 0 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.5);
}

.header-main-menu nav ul li .submenu {
  background: rgba(255, 255, 255, 1);
}

.e-con.elementor-sticky--active {
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

.elementor-sticky--active .blur {
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  background-color: #fcfafa59;
}

li.e-n-menu-item {
  margin-left: 5px;
}

.elementor-widget-n-menu .e-n-menu-content > .e-con {
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

/* Mobile nav */
elementor-widget-n-menu .e-n-menu[data-layout="dropdown"] .e-n-menu-wrapper {
  animation: hide-scroll 0.3s backwards;
  background-color: white !important;
}

.elementor-widget-n-menu .e-n-menu-heading {
  row-gap: 0;
}

/* =========================================================
   LISTS / TYPOGRAPHY
   ========================================================= */

ul {
  list-style-type: disc;
}

.elementor-widget-text-editor ul > li {
  margin-left: 30px;
  font-size: 16px;
}

/* Duplicate rule retained (as requested; original had it twice) */
.elementor-widget-text-editor ul > li {
  font-size: 16px;
}

p {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-weight: var(--e-global-typography-text-font-weight);
  color: var(--e-global-color-text);
  font-size: 16px;
}

.white_texts p {
  color: #ffffff !important;
}

/* =========================================================
   CONTENT AREAS / WIDGETS
   ========================================================= */

.contents h3 {
  font-size: 50px !important;
  font-weight: 300 !important;
  line-height: 1;
  letter-spacing: 0;
  color: var(--e-global-color-text) !important;
  margin: 30px 0;
}
.elementor-widget-theme-post-content .elementor-widget-container h2{
  font-size: 50px !important;
  font-weight: 500 !important;
  line-height: 1;
  letter-spacing: 0;
  color: var(--e-global-color-text) !important;
  margin: 30px 0;
}

.sidebar__widget-title {
  text-transform: none;
  color: #fff !important;
  font-family: "Urbanist", Sans-serif !important;
  font-weight: 600 !important;
  font-size: 18px;
  border-bottom: var(--separator-width, 1px) solid
    var(--box-border-color, #ffffff);
  padding: var(--box-padding, 20px);
}

.elementor-posts .elementor-post__card {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.elementor-posts-nothing-found {
  font-size: 16px;
}

.elementor-toc__body {
  color: #fff;
  line-height: 1.15em;
}

.sv-service-text p {
  max-width: none;
}

/* =========================================================
   BUTTONS / ANIMATIONS
   ========================================================= */

.tp-btn-border {
  height: 50px;
  line-height: 50px;
  border: 1px solid #474747;
}

.elementor-widget-tp-button:nth-child(2) {
  transition-delay: 0.25s;
}

@keyframes tpDropIn {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tp-stagger-ready .tp-btn-bounce {
  opacity: 0;
  transform: translateY(18px);
  animation: tpDropIn 0.7s ease forwards;
}

/* =========================================================
   GRADIENTS / BLUR PANELS
   ========================================================= */

.gradient_hero {
  /* background-color: hsla(221, 80%, 88%, 1);
 background-image: radial-gradient(
      at 23% 4%,
      hsla(228, 25%, 92%, 1) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 0% 0%,
      hsla(345, 8%, 94%, 1) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 99% 99%,
      hsla(221, 80%, 88%, 1) 0px,
      transparent 50%
    );*/
	background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
}

.gradient_hero_rev {
  /*background: linear-gradient(
    316deg,
    #c0d7e7 8.62%,
    #6fa3c9 38.91%,
    #dd9e7833 72.98%,
    #fefcfd 99.91%
  );*/
	background-image: linear-gradient(to top, #ace0f9 0%, #fff1eb 100%);

}

.blur-box {
  padding: clamp(2rem, 1.8571428571428572rem + 0.7142857142857143vw, 2.5rem);
  border-radius: 3rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background-color: #fcfafa24;
  width: 100%;
  max-width: 800px;
  height: 100%;
}

/* =========================================================
   HEADER MENU TYPOGRAPHY
   ========================================================= */

.tp-inner-header-menu > nav > ul > li > a,
.header-main-menu nav ul li .submenu > li a {
  font-weight: normal;
  text-transform: none;
  font-family: "lato";
  line-height: 1.25em;
}

/* =========================================================
   PAGE-SPECIFIC / OVERRIDES
   ========================================================= */

.elementor-14567 .elementor-element.elementor-element-3ec8642
  .elementor-heading-title {
  color: white !important;
}

/* Homepage */
.home .tp-shop-category-item img {
  transition: 0.9s;
  width: 100%;
  max-height: 600px;
  width: auto;
  border-radius: 2rem;
}

.home .fix {
  overflow: visible;
}

.home .tp-shop-category-item .tp-btn-shop-category {
  display: none;
}

.tp-hero-content {
  max-width: none;
  margin-bottom: 20px;
}

.tp-btn-border-wrap .text-2 {
  position: absolute;
  top: 30%;
  display: block;
  white-space: normal !important;
  word-break: break-word;
  text-align: center;
  color: var(--tp-common-white);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.tp-project-btn {
  margin-bottom: 10px;
}

/* =========================================================
   PROGRESS BAR (MOBILE)
   ========================================================= */

@media (max-width: 767px) {
  #reading-progress {
    height: 6px;
  }

  #reading-progress span {
    background: #1e64f0 !important;
    box-shadow: 0 0 6px rgba(30, 100, 240, 0.45);
  }
}


@media (max-width: 767px) {
  #reading-progress span {
    background: #1e64f0 !important;
  }

  .blur-box {
    max-width: 85vw;
    backdrop-filter: blur(5px);
    background-color: #fcfafa1a;
  }

  .tp-btn-border {
    padding: 0px 15px;
  }

  div[id^="e-n-menu-content-"] > .e-con.e-child:not(:last-child) {
    margin-bottom: 18px;
  }
}

@media (max-width: 600px) {
  .tp-btn-border.tp-el-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .tp-btn-border-wrap .text-1 {
    display: block;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .tp-btn-border-wrap .text-2 {
    display: none !important;
  }

  .tp-btn-border::before {
    width: 120%;
    height: 120%;
    top: -120%;
  }

  .tp-btn-border-wrap .text-2 {
    top: 25%;
    padding: 0 8px;
  }
}


/* =========================================================
   SMOOTH ELEMENTOR SCROLL EFFECTS (GSAP-LIKE EASING)
   ========================================================= */

.hero-section [data-settings*="scroll_effect"],
.elementor-element[data-settings*="scroll_effect"] {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (min-width: 1025px) {
  .hero-section [data-settings*="scroll_effect"],
  .elementor-element[data-settings*="scroll_effect"] {
    transition-duration: 0.45s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* =========================================================
   HOVER PUSH (BACKGROUND IMAGE CONTAINERS)
   ========================================================= */

.hover-push {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: 
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        background-size 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s ease;
    will-change: transform, background-size, box-shadow;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Lock baseline */
    transform: translateX(0);
}

.hover-push:hover {
    transform: translateX(8px) translateY(0) !important;
}

.hover-push:nth-child(even):hover {
    transform: translateX(-8px);
}

.hover-push:nth-child(odd):hover {
    transform: translateX(8px);
}

/* =========================================================
   RESPONSIVE / MISC
   ========================================================= */

@media (max-width: 768px) {
  .hover-push:hover,
  .hover-push:nth-child(even):hover {
    transform: scale(1.03) translateX(0);
  }

  .elementor-widget-icon-list {
    border-right: 0 !important;
  }

  /* misc */
  .elementor-widget-icon-list {
    border-right: 1px solid #fff;
    padding-right: 8px;
  }

  .tp-project-btn {
    display: flex;
    justify-content: center;
  }

  h1.elementor-heading-title {
    font-size: 40px !important;
  }

  h2.elementor-heading-title {
    font-size: 22px !important;
  }

  h3.tp-sidebar-widget-title.sidebar__widget-title {
    color: white !important;
    text-align: left !important;
  }

  body .contents h3 {
    font-size: 30px !important;
  }
}

/* =========================================================
   GLOBAL FAQ ACCORDION STYLES
   Applies site-wide to all accordions inside .fq-faq-wrapper
   Open state: coral background + white title/icon/content
   Closed state: blue title/icon
   Smooth fades without "lag"
   ========================================================= */

/* -------------------------
   TRANSITIONS (fade only)
   ------------------------- */

/* Title + icon + row background fade */
.fq-faq-wrapper button.tp-el-title,
.fq-faq-wrapper .accordion-items,
.fq-faq-wrapper .tp-el-icon-color::before,
.fq-faq-wrapper .tp-el-icon-color::after {
  transition: color 200ms ease-out,
    background-color 200ms ease-out,
    -webkit-text-fill-color 200ms ease-out;
}

/* Content fades faster to avoid feeling delayed */
.fq-faq-wrapper .tp-el-content,
.fq-faq-wrapper .tp-el-content * {
  transition: color 120ms ease-out, -webkit-text-fill-color 120ms ease-out;
}

/* -------------------------
   CLOSED STATE
   ------------------------- */

/* Closed title (blue) */
.fq-faq-wrapper button.tp-el-title.collapsed {
  color: rgb(30, 100, 240) !important;
  -webkit-text-fill-color: rgb(30, 100, 240) !important;
  background-color: transparent !important;
}

/* Closed icon (blue) - pseudo elements */
.fq-faq-wrapper button.tp-el-title.collapsed .tp-el-icon-color::before,
.fq-faq-wrapper button.tp-el-title.collapsed .tp-el-icon-color::after {
  background-color: rgb(30, 100, 240) !important;
}

/* -------------------------
   OPEN STATE
   ------------------------- */

/* Open row background (coral) */
.fq-faq-wrapper .accordion-items:has(button.tp-el-title:not(.collapsed)) {
  background-color: #f1846f !important;
}

/* Open title (white) - force override Elementor text-fill rules */
.fq-faq-wrapper button.tp-el-title:not(.collapsed) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

/* Open icon (white) - pseudo elements */
.fq-faq-wrapper button.tp-el-title:not(.collapsed) .tp-el-icon-color::before,
.fq-faq-wrapper button.tp-el-title:not(.collapsed) .tp-el-icon-color::after {
  background-color: #ffffff !important;
}

/* Open content (white) */
.fq-faq-wrapper .accordion-collapse.show .tp-el-content,
.fq-faq-wrapper .accordion-collapse.show .tp-el-content * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.tp-service-2-accordion-box.accordion-header.accordion-buttons{
  color: #346be9;
}
/* -----------------------------------------------------------------
   Barr Center footer quick links - FORCE GRID and FIX HOVER
   ----------------------------------------------------------------- */
.elementor-location-footer 
.elementor-element-3e040e9 
.elementor-widget-text-editor > h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
}
/* ============================================
   GF Intro texts - works even when Elementor wrappers break adjacency
   ============================================ */

/* Subtext line (closest paragraph above the form) */
.gf-intro-sub {
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.0;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #ffffff;
}

/* Headline line (the paragraph above the subtext, if present) */
.gf-intro-head {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Headline strong styling (either layout) */
.gf-intro-sub strong,
.gf-intro-head strong {
  display: block;
  font-size: 50px !important;
  font-weight: 300 !important;
  line-height: 1;
  margin: 30px 0 0 0;
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .gf-intro-sub {
    font-size: 1.25rem;
  }

  .gf-intro-sub strong,
  .gf-intro-head strong {
    font-size: 1.5rem !important;
  }
}
