@import "./theme.css";

/* ==========================================================================
   GS SERVICES AND SUPPLY LLC - Replicated Webflow Micro-Interactions & Animations
   ========================================================================== */

/* 1. Scroll Reveal Entrance Animations */
[data-w-id] {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-w-id].is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Stagger delays for grid items */
.price-grid > *:nth-child(1),
.advantages-wrapper > *:nth-child(1),
.w-dyn-items > *:nth-child(1) {
  transition-delay: 0.05s;
}

.price-grid > *:nth-child(2),
.advantages-wrapper > *:nth-child(2),
.w-dyn-items > *:nth-child(2) {
  transition-delay: 0.15s;
}

.price-grid > *:nth-child(3),
.advantages-wrapper > *:nth-child(3),
.w-dyn-items > *:nth-child(3) {
  transition-delay: 0.25s;
}

.price-grid > *:nth-child(4),
.advantages-wrapper > *:nth-child(4),
.w-dyn-items > *:nth-child(4) {
  transition-delay: 0.35s;
}

/* 2. Button Icon Clip Animation (Replicated Webflow Arrow Slide) */
.clip {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.button-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.button-icon-wrap.absolute {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translate(-100%, 100%);
}

.primary-button:hover .button-icon-wrap:not(.absolute),
.primary-button-green:hover .button-icon-wrap:not(.absolute),
.secondary-button:hover .button-icon-wrap:not(.absolute),
.secondary-button-white:hover .button-icon-wrap:not(.absolute),
.round-button:hover .button-icon-wrap:not(.absolute) {
  transform: translate(100%, -100%);
}

.primary-button:hover .button-icon-wrap.absolute,
.primary-button-green:hover .button-icon-wrap.absolute,
.secondary-button:hover .button-icon-wrap.absolute,
.secondary-button-white:hover .button-icon-wrap.absolute,
.round-button:hover .button-icon-wrap.absolute {
  transform: translate(0%, 0%);
}

/* 3. Service Card Text Slide Animation (Replicated Webflow Service Hover) */
.service-item {
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-title-wrapper {
  overflow: hidden;
  position: relative;
}

.service-title-wrap {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-title-wrap.absolute-service {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
}

.service-item:hover .service-title-wrap:not(.absolute-service) {
  transform: translateY(-100%);
}

.service-item:hover .service-title-wrap.absolute-service {
  transform: translateY(0%);
}

.service-item:hover .round-button-services .button-icon-wrap:not(.absolute) {
  transform: translate(100%, -100%);
}

.service-item:hover .round-button-services .button-icon-wrap.absolute {
  transform: translate(0%, 0%);
}

.service-item:hover {
  transform: translateX(8px);
  background-color: rgba(255, 255, 255, 0.06);
}

/* 4. Card Lift & Glow Interactions */
.price-item, .advantages-item, .collection-item-blog-post {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-item:hover, .advantages-item:hover, .collection-item-blog-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.price-item.primary-price:hover {
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.25);
}

/* 5. Hide Webflow Badge */
.w-webflow-badge {
  display: none !important;
  visibility: hidden !important;
}
