/*
Theme Name: Coherence Child
Theme URI: http://weshore.com/
Author: Weshore Themes
Author URI: https://weshore.com
Template: coherence
Description: Smart, Powerful and Unlimited Customizable WordPress Theme.
Version: 1.0
License: Private License
License URI: license.txt
Text Domain: coherence-child
Tags: responsive, retina, rtl-language-support, blog, portfolio, custom-colors, live-editor
*/

/* ========================================
   CSS CUSTOM PROPERTIES
======================================== */
:root {
  --header-nav-spacing: 5px;
  --border-radius-small: 8px;
  --border-radius-medium: 15px;
  --border-radius-large: 50px;
  --transition-fast: 0.3s ease-in-out;
  --shadow-light: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
  --review-padding: 35px 25px;
  --nav-button-size: 45px;
  --nav-button-offset: 25px;
  --animation-duration: 1.618s;
  --scroll-width: 15px;
  --facebook-blue: #1877f2;
  --white: #fff;
  --light-gray: #fcfcfc;
  --scroll-track: #dedede4a;
  --scroll-thumb: #dedede;
}

/* ========================================
   HEADER STYLES
======================================== */
.coherence-child .section-header .menu-with-logo .coherence-core-nav-menu {
  align-items: center;
}

.coherence-child .section-footer .menu-icon-home > a i,
.coherence-child .section-header .menu-icon-home > a i {
  display: none;
}

.coherence-child .section-header .menu-center-logo > a:hover {
  background: unset;
}

.coherence-child .section-header .coherence-core-nav-menu .menu-icon-rs {
  margin-inline: var(--header-nav-spacing);
}

.coherence-child .section-header .coherence-core-nav-menu .menu-icon-rs > a {
  padding-inline: var(--header-nav-spacing);
}

/* Home page header - transparent background */
.home header {
  position: absolute;
  width: 100%;
  background: transparent;
  top: 0;
  left: 0;
  z-index: 1000;
}

.home header .header-wrapper .section-header {
  background: transparent;
}

.coherence-child header#site-header.sticky-active .header-wrapper .section-header {
  background: var(--e-global-color-primary);
  transition: background-color var(--transition-fast);
}

/* Navigation hover effects - Desktop only */
@media only screen and (min-width: 1025px) {
  .coherence-child .section-header .menu-icon-home > a span {
    display: none;
  }

  .coherence-child .section-header .menu-1 .coherence-core-nav-menu > li a.coherence-core-menu-item:hover::after,
  .coherence-child .section-header .menu-1 .current-menu-item > a.coherence-core-menu-item::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 3px;
    top: 90%;
    left: 50%;
    opacity: 1;
    transform: translateX(-50%);
    background: url("/wp-content/uploads/2023/09/img-after-header.png") no-repeat center / cover;
    transition: opacity var(--transition-fast);
  }

  .coherence-child .section-header .menu-2 .coherence-core-nav-menu > li a.coherence-core-menu-item:hover::after,
  .coherence-child .section-header .menu-2 .current-menu-item > a.coherence-core-menu-item::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 3px;
    top: 90%;
    left: 50%;
    opacity: 1;
    transform: translateX(-50%);
    background: repeating-linear-gradient(90deg, var(--white) 0px, var(--white) 3px, transparent 3px, transparent 8px);
    transition: opacity var(--transition-fast);
  }
}

/* ========================================
   INTERACTIVE ELEMENTS
======================================== */
.coherence-child a.dib.link_phone2:hover,
.coherence-child a.dib.link_phone1:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--transition-fast);
}

.coherence-child .phone-hover a:hover {
  color: var(--e-global-color-color_1);
  transition: color var(--transition-fast);
}

/* ========================================
   HOME PAGE SECTIONS
======================================== */

/* Image gallery with performance optimization */
.coherence-child .img-gallery .gallery-icon {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
  will-change: transform;
}

.coherence-child .img-gallery .gallery-icon * {
  transition: all var(--transition-fast);
}

.coherence-child .img-gallery .gallery-icon:hover img {
  transform: scale(1.05);
  filter: brightness(0.5);
}

/* Slider optimization */
.coherence-child .prime-slide-general .bdt-prime-slider .bdt-slideshow-items li > div {
  height: 100%;
  min-height: inherit;
}

.coherence-child .col-slider-inner-content > .e-con-inner {
  margin-right: 0;
  margin-left: auto;
}

/* Instagram section with performance hints */
.coherence-child .sc-insta .sbi_photo_wrap {
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  will-change: transform;
}

.coherence-child .sc-insta .sbi_photo_wrap:hover img {
  transform: scale(1.1);
}

.coherence-child .sc-insta .MediaTile__root {
  border-radius: 10px;
}

.coherence-child .sc-points-forts {
  overflow: hidden;
}

/* ========================================
   GOOGLE REVIEWS OPTIMIZATION
======================================== */

/* Base review styling */
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-review-item > .ti-inner {
  padding: var(--review-padding);
  border-radius: var(--border-radius-small);
  background: var(--light-gray);
  box-shadow: var(--shadow-light);
  transition: box-shadow var(--transition-fast);
}

.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-review-item:hover > .ti-inner {
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
}

/* Navigation buttons - optimized specificity */
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev,
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-next {
  display: block;
  background: var(--e-global-color-color_1);
  width: var(--nav-button-size);
  height: var(--nav-button-size);
  border-radius: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev {
  left: calc(-1 * var(--nav-button-offset));
}

.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-next {
  right: calc(-1 * var(--nav-button-offset));
}

/* Navigation arrows - consolidated styling */
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev::after,
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev::before {
  left: 25%;
  background: var(--white);
  transition: background-color var(--transition-fast);
}

.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev::after {
  top: 35%;
}

.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev::before {
  top: 58%;
}

.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-next::after {
  top: 58%;
  right: 33%;
  background: var(--white);
  transition: background-color var(--transition-fast);
}

.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-next::before {
  top: 35%;
  right: 30%;
  background: var(--white);
  transition: background-color var(--transition-fast);
}

/* Hover states - consolidated */
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev:hover,
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-next:hover {
  background: var(--white);
  transform: scale(1.05);
}

.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev:hover::after,
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev:hover::before,
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-next:hover::after,
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-next:hover::before {
  background: var(--e-global-color-color_1);
}

/* ========================================
   SOCIAL MEDIA SECTIONS
======================================== */

/* Facebook section */
.coherence-child .fb-page iframe {
  border-radius: var(--border-radius-large);
  border: 14px solid var(--facebook-blue);
  overflow: hidden;
}

/* ========================================
   FOOTER OPTIMIZATION
======================================== */
.coherence-child .coherence-logo svg {
  width: 130px;
  height: auto;
}

.coherence-child .coherence-logo svg * {
  fill: var(--white);
}

.coherence-child .section-footer .menu-center-logo {
  display: none;
}

.coherence-child .menu-main-footer .hide-sub-mn .sub-menu,
.coherence-child .menu-main-footer .hide-sub-mn .sub-arrow {
  display: none;
}

.coherence-child .contact-col-home {
  height: 100%;
}

/* ========================================
   REVIEWS LAYOUT SYSTEMS
======================================== */

/* Grid layout for reviews page */
.coherence-child .col-widget-avis.col-avis-pg .ti-widget.ti-goog .ti-reviews-container {
  max-height: none;
  overflow-y: visible;
  width: 100%;
  overflow: hidden;
}

.coherence-child .col-widget-avis.col-avis-pg .ti-widget.ti-goog .ti-reviews-container-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  gap: 2%;
}

.coherence-child .col-widget-avis.col-avis-pg .ti-widget.ti-goog .ti-review-item {
  width: 31%;
  position: relative;
  left: 0;
  flex: 0 0 31%;
  padding: 0;
  margin-bottom: 2%;
}

.coherence-child .col-widget-avis.col-avis-pg .ti-widget.ti-goog .ti-controls-dots,
.coherence-child .col-widget-avis.col-avis-pg .ti-widget.ti-goog .ti-controls {
  display: none;
}

/* Home page reviews layout */
.coherence-child .col-avis-home .ti-widget.ti-goog .ti-review-content {
  height: auto;
}

.coherence-child .col-avis-home .ti-widget.ti-goog .ti-reviews-container {
  max-height: none;
  overflow-y: visible;
  width: 100%;
  overflow: hidden;
}

.coherence-child .col-avis-home .ti-widget.ti-goog .ti-reviews-container-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  margin: 0;
}

.coherence-child .col-avis-home .ti-widget.ti-goog .ti-review-item {
  width: 100%;
  position: relative;
  left: 0;
  flex: 0 0 100%;
  padding: 0;
  margin: 1% 0;
}

.coherence-child .col-avis-home .ti-widget.ti-goog .ti-controls-dots,
.coherence-child .col-avis-home .ti-widget.ti-goog .ti-controls,
.coherence-child .col-avis-home .ti-widget.ti-goog .ti-controls-line {
  display: none;
}

/* Scrollable reviews with custom scrollbar */
.coherence-child .avismod .ti-widget.ti-goog {
  height: 500px;
  overflow-y: auto;
  padding-right: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

.coherence-child .avismod .ti-widget.ti-goog::-webkit-scrollbar {
  width: var(--scroll-width);
}

.coherence-child .avismod .ti-widget.ti-goog::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: var(--border-radius-large);
}

.coherence-child .avismod .ti-widget.ti-goog::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: var(--border-radius-large);
}

.coherence-child .avismod .ti-widget.ti-goog::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.coherence-child .fusion-text.fusion-text-6.txt_av {
  max-width: 500px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media only screen and (max-width: 1500px) {
  .coherence-child .img-abs-sc-fb {
    display: none;
  }
}

@media only screen and (max-width: 1024px) {
  .coherence-child .section-header .coherence-core-dropdown {
    min-width: 290px;
    right: 0;
    left: auto;
  }

  .coherence-child .section-header .coherence-core-dropdown .menu-center-logo,
  .coherence-child .section-header .coherence-core-dropdown .menu-icon-rs {
    display: none;
  }

  .coherence-child .section-header-2 {
    background: var(--e-global-color-color_2);
  }

  .coherence-child .col-widget-avis.col-avis-pg .ti-widget.ti-goog .ti-review-item {
    width: 48%;
    flex: 0 0 48%;
  }
}

@media only screen and (max-width: 767px) {
  .coherence-child .sc-insta .e-con.e-flex {
    flex-wrap: nowrap;
  }
}

@media only screen and (max-width: 600px) {
  .coherence-child .col-widget-avis.col-avis-pg .ti-widget.ti-goog .ti-review-item {
    width: 98%;
    flex: 0 0 98%;
  }
}

/* ========================================
   PERFORMANCE OPTIMIZED ANIMATIONS
======================================== */
.coherence-child .animate_02 {
  animation: float-down var(--animation-duration) ease-in-out infinite alternate;
  will-change: transform;
}

.coherence-child .animate_01,
.coherence-child body .img_prsnt_1 > div::before {
  animation: float-up var(--animation-duration) ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes float-down {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(20px);
  }
}

@keyframes float-up {
  from {
    transform: translateY(20px);
  }
  to {
    transform: translateY(0);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .coherence-child .animate_02,
  .coherence-child .animate_01,
  .coherence-child body .img_prsnt_1 > div::before {
    animation: none;
  }

  .coherence-child * {
    transition-duration: 0.01ms;
  }
}

/* ========================================
   PERFORMANCE HINTS
======================================== */
.coherence-child .img-gallery .gallery-icon,
.coherence-child .sc-insta .sbi_photo_wrap,
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-prev,
.coherence-child .sc-google-avis .ti-widget.ti-goog .ti-controls .ti-next {
  contain: layout style paint;
}

/* Critical rendering optimization */
.coherence-child .section-header,
.coherence-child .home header {
  contain: layout style;
}

/*test*/


