/*
Theme Name: Spectra One Child
Theme URI: 
Description: A child theme of the Spectra One theme
Author: Your Name
Author URI: 
Template: spectra-one
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spectra-one-child
*/

/* Add your custom styles below this line */

/* Service Card Hover Effects */
.services-cards {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.services-cards:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Service Card Button Cursor */
.services-cards .uagb-button__wrapper a {
    cursor: pointer;
}

/* Equal Height Testimonial Cards */
.uagb-testimonial__wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Update Testimonial Card structure to push names to bottom */
.uagb-testimonial__wrap .uagb-tm__content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.uagb-testimonial__wrap .uagb-tm__text-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.uagb-testimonial__wrap .uagb-tm__desc {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    flex: 1;
}

.uagb-testimonial__wrap .uagb-tm__meta-inner {
    margin-top: auto;
}

.uagb-tm__desc strong {
    font-size: 5em;
    line-height: 0.6;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    margin-bottom: -0.2em;
    padding: 0;
}

/* Testimonial Text Border */

/* Team Card Hover Effects */
.team--card {
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid transparent;
    border-radius: 14px;
}

.team--card:hover {
    transform: translateY(-10px);
    border-color: #dfdfdf;
    border-width: 1px;
    border-radius: 14px;
    box-shadow: var(--wp--preset--shadow--natural);
}

/* Global Button Styles */
.uagb-buttons__outer-wrap .uagb-buttons-repeater,
.uagb-buttons-repeater.wp-block-button__link,
.wp-block-button__link,
.uagb-button__link {
    position: relative;
    transition: all 0.3s ease !important;
    border-radius: 100px !important;
    overflow: hidden;
    z-index: 1;
    background-color: var(--wp--preset--color--primary);
}

.uagb-buttons__outer-wrap .uagb-buttons-repeater::before,
.uagb-buttons-repeater.wp-block-button__link::before,
.wp-block-button__link::before,
.uagb-button__link::before {
    content: '';
    position: absolute;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--wp--preset--color--primary) 85%, black);
    transition: all 0.3s ease-in-out;
    z-index: -1;
}

.uagb-buttons__outer-wrap .uagb-buttons-repeater:hover::before,
.uagb-buttons-repeater.wp-block-button__link:hover::before,
.wp-block-button__link:hover::before,
.uagb-button__link:hover::before {
    right: 0;
}

.uagb-buttons__outer-wrap .uagb-buttons-repeater:not(:hover)::before,
.uagb-buttons-repeater.wp-block-button__link:not(:hover)::before,
.wp-block-button__link:not(:hover)::before,
.uagb-button__link:not(:hover)::before {
    right: 100%;
    transition: all 0.3s ease-in-out;
}

/* Ensure button text stays visible */
.uagb-buttons__outer-wrap .uagb-buttons-repeater *,
.uagb-buttons-repeater.wp-block-button__link *,
.wp-block-button__link *,
.uagb-button__link * {
    position: relative;
    z-index: 2;
}

/* Ensure SVG icons transition smoothly too */
.uagb-button__icon svg,
.uagb-buttons-repeater .uagb-button__icon svg {
    transition: all 0.3s ease !important;
}

/* Primary Button Styles */
.primary--btn .uagb-buttons-repeater {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease !important;
    border-radius: 100px !important;
    background-color: var(--wp--preset--color--primary) !important;
}

.primary--btn .uagb-buttons-repeater::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 100%;
    height: 100%;
    background: var(--wp--preset--color--secondary);
    z-index: -1;
    transition: all 0.3s ease;
}

.primary--btn .uagb-buttons-repeater:hover::before {
    right: 0;
}

/* Remove transition from button link div */
.primary--btn .uagb-button__link {
    background: none !important;
    transition: none !important;
}

/* Only apply transition to the SVG icon */
.primary--btn .uagb-button__icon svg {
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Secondary Button Style */
.secondary--btn .uagb-buttons-repeater.wp-block-button__link {
    background-color: #FDFDFD !important;
    color: var(--wp--preset--color--primary) !important;
    border: 2px solid #009ADE !important;
    padding: calc(0.667em + 2px) calc(1.333em + 2px) !important;
}

.secondary--btn .uagb-buttons-repeater.wp-block-button__link:hover {
    background-color: #0080B7 !important;
    color: #FDFDFD !important;
    border-color: #0080B7 !important;
}

.secondary--btn .uagb-button__link {
    border: none !important;
    background: none !important;
}

.secondary--btn .uagb-button__icon svg {
    fill: currentColor !important;
    transition: all 0.3s ease !important;
}

/* Custom Banner Styles */
.banner-wrapper {
  position: relative;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-width: none !important;
}

.banner-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  right: -100%;
  bottom: 0;
  background-color: #009ade;
  z-index: -1;
}

.banner-container {
  display: flex;
  justify-content: space-evenly;
  gap: 40px;
  padding: 20px 40px;
  will-change: transform;
  transition: transform 0.1s linear;
  width: max-content;
  margin: 0 auto;
}

.banner-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  min-width: min-content;
  height: auto;
  background-color: #009ade;
  padding: 15px 25px;
  box-sizing: border-box;
  margin: 0;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
  gap: 15px;
}

.banner-item:hover {
  transform: translateY(-5px);
}

.banner-icon {
  flex-shrink: 0;
}

.banner-icon i {
  font-size: 22px;
  color: white;
}

.banner-item h3 {
    margin: 0;
    font-size: 1.89em;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    overflow: visible;
    color: white;
    line-height: 1.1;
}

h2 {
    font-weight: 700;
}

@media (max-width: 767px) {
  .banner-container {
    padding: 15px 20px;
    gap: 20px;
  }

  .banner-item {
    width: 220px;
    padding: 0 30px;
    gap: 10px;
  }
  
  .banner-icon i {
    font-size: 20px;
  }
  
  .banner-item h3 {
    font-size: 1.1em;
  }
}
