/* =========================================================
   Product Section — Premium v4
   Bento layout · animated glass orbs · magnetic CTA · conic ring
   Scoped under #Intro. Targets existing .service-intro markup.
   ========================================================= */

#Intro.wf-section,
#Intro {
  padding: 80px 0 120px !important;
  margin-bottom: 40px !important;
  position: relative;
  isolation: isolate;
  overflow: hidden;

  --pc-ink: #0b1220;
  --pc-ink-soft: #475569;
  --pc-muted: #64748b;
  --pc-border: rgba(15, 23, 42, 0.08);
  --pc-brand: #039746;
  --pc-brand-700: #027a39;
  --pc-brand-soft: rgba(3, 151, 70, 0.10);
  --pc-radius: 24px;
  --pc-shadow-rest: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px -6px rgba(15, 23, 42, 0.08);
  --pc-shadow-hover: 0 40px 70px -28px rgba(15, 23, 42, 0.28), 0 16px 36px -12px rgba(15, 23, 42, 0.14);
  --pc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------- Animated background orbs (hidden) -------- */
.pc-orbs { display: none !important; }

#Intro .content-wrapper { position: relative; z-index: 1; }

/* -------- Section heading -------- */
#Intro .heading-box-small {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
#Intro .heading-box-small .title-box.color-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--pc-brand-700) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 1px solid rgba(3, 151, 70, 0.22);
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -10px rgba(3,151,70,0.4);
}
#Intro .heading-box-small .title-box.color-green::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pc-brand);
  box-shadow: 0 0 0 4px rgba(3, 151, 70, 0.18);
  animation: pcPulse 2.4s var(--pc-ease) infinite;
}
@keyframes pcPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(3,151,70,0.18); }
  50%     { box-shadow: 0 0 0 8px rgba(3,151,70,0.05); }
}
#Intro .heading-box-small .h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: #000;

}
#Intro .heading-box-small .h2 :last-child span {
  color: #03a84e;
  /* background: #03a84e;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent; */
}

/* -------- Stats strip (injected by JS) -------- */
.pc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 880px;
  margin: 0 auto 56px;
  background: var(--pc-border);
  border: 1px solid var(--pc-border);
  border-radius: 20px;
  overflow: hidden;
  background-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -16px rgba(15,23,42,0.12);
}
.pc-stat {
  padding: 22px 16px;
  text-align: center;
  background: rgba(255,255,255,0.55);
}
.pc-stat__num {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: #03a84e;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.pc-stat__label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-muted);
}

/* -------- Bento grid (.flex → grid) -------- */
#Intro .content-wrapper > .flex {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 28px !important;
}
#Intro .content-wrapper > .flex:last-of-type { margin-bottom: 0 !important; }

/* Default: each card spans 2 of 6 → 3 per row */
#Intro .service-intro {
  grid-column: span 2;

  --pc-accent-from: #039746;
  --pc-accent-to:   #06b6d4;

  position: relative;
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: var(--pc-shadow-rest);
  opacity: 1 !important;
  transform: none !important;
  isolation: isolate;
  transition: transform 0.5s var(--pc-ease),
              box-shadow 0.5s var(--pc-ease);
  will-change: transform;
}

/* Featured (first card on row 1) spans 4 of 6 → bento break */
#Intro .content-wrapper > .flex:nth-of-type(1) .service-intro:nth-of-type(1) {
  grid-column: span 4;
}
#Intro .content-wrapper > .flex:nth-of-type(1) .service-intro:nth-of-type(1) .service-text-box .title-box {
  font-size: 1.55rem !important;
}

/* Hover lift */
#Intro .service-intro:hover {
  transform: translateY(-8px);
  box-shadow: var(--pc-shadow-hover);
}

/* Hover ring effect removed — cards rely on shadow lift only */
#Intro .service-intro::before { content: none !important; }

/* Whole card is clickable now */
#Intro .service-intro.pc-clickable { cursor: pointer; }
#Intro .service-intro.pc-clickable:focus-visible {
  outline: 0;
  box-shadow: var(--pc-shadow-hover),
              0 0 0 4px color-mix(in srgb, var(--pc-accent-from) 25%, transparent);
}
/* Belt-and-braces: hide any leftover CTA pill from prior versions */
#Intro .service-text-box .pc-cta { display: none !important; }

/* -------- Per-card details: tags row + 2 stat tiles -------- */
.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.pc-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--pc-ink, #0b1220);
  background: #ffffff;
  border: 1px solid #03a84e;
  border-radius: 8px;
  padding: 6px 11px;
  transition: color 0.25s var(--pc-ease), border-color 0.25s var(--pc-ease), background 0.25s var(--pc-ease), box-shadow 0.25s var(--pc-ease);
}
.pc-tag:hover {
  background: #03a84e;
  color: #ffffff;
  box-shadow: 0 4px 12px -6px rgba(3, 168, 78, 0.45);
}

.pc-tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}
.pc-tile {
  padding: 14px;
  background: #ffffff;
  border: 1px solid #03a84e;
  border-radius: 12px;
  transition: border-color 0.3s var(--pc-ease), background 0.3s var(--pc-ease), box-shadow 0.3s var(--pc-ease);
}
.pc-tile:hover {
  background: #03a84e;
  box-shadow: 0 8px 22px -10px rgba(3, 168, 78, 0.55);
}
.pc-tile:hover .pc-tile__num {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}
.pc-tile:hover .pc-tile__label {
  color: rgba(255, 255, 255, 0.92);
}
.pc-tile__num {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #000;
  /* background: linear-gradient(135deg, var(--pc-accent-from, #039746), var(--pc-accent-to, #06b6d4)); */
  /* -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; */
}
.pc-tile__label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pc-ink-soft, #475569);
}

/* Card action buttons */
.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.pc-btn {
  --pc-btn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 80px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform 0.3s var(--pc-btn-ease),
              background 0.3s var(--pc-btn-ease),
              color 0.3s var(--pc-btn-ease),
              border-color 0.3s var(--pc-btn-ease),
              box-shadow 0.3s var(--pc-btn-ease);
}
.pc-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--pc-btn-ease);
  z-index: 0;
  pointer-events: none;
}
.pc-btn:hover::before { left: 130%; }
.pc-btn__label,
.pc-btn__icon { position: relative; z-index: 1; }
.pc-btn__icon {
  transition: transform 0.35s var(--pc-btn-ease);
}
.pc-btn:hover .pc-btn__icon { transform: translateX(4px); }
.pc-btn:hover .pc-btn__icon--lead { transform: translateX(-2px) rotate(-8deg); }
.pc-btn:active { transform: translateY(0) scale(0.97); }

.pc-btn--ghost {
  background: #ffffff;
  color: #0b1220;
  border-color: #03a84e;
  border-radius: 80px;
}
.pc-btn--ghost:hover {
  background: #f0fdf4;
  color: #027a39;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(3, 168, 78, 0.35);
}

.pc-btn--primary {
  background: #03a84e;
  color: #ffffff;
  box-shadow: 0 6px 16px -8px rgba(3, 168, 78, 0.55);
}
.pc-btn--primary:hover {
  background: #027a39;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(3, 168, 78, 0.75);
}
.pc-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(3, 168, 78, 0.55);
  pointer-events: none;
  z-index: 0;
}
.pc-btn--primary:hover::after {
  animation: pcBtnPulse 1.4s var(--pc-btn-ease) infinite;
}
@keyframes pcBtnPulse {
  0%   { box-shadow: 0 0 0 0   rgba(3, 168, 78, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(3, 168, 78, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(3, 168, 78, 0);    }
}

@media (prefers-reduced-motion: reduce) {
  .pc-btn,
  .pc-btn::before,
  .pc-btn__icon,
  .pc-btn--primary::after { transition: none !important; animation: none !important; }
}

/* Per-card accent palette */
#Intro .content-wrapper > .flex:nth-of-type(1) .service-intro:nth-of-type(1) { --pc-accent-from:#039746; --pc-accent-to:#06b6d4; }
#Intro .content-wrapper > .flex:nth-of-type(1) .service-intro:nth-of-type(2) { --pc-accent-from:#2563eb; --pc-accent-to:#7c3aed; }
#Intro .content-wrapper > .flex:nth-of-type(1) .service-intro:nth-of-type(3) { --pc-accent-from:#f59e0b; --pc-accent-to:#ef4444; }
#Intro .content-wrapper > .flex:nth-of-type(2) .service-intro:nth-of-type(1) { --pc-accent-from:#06b6d4; --pc-accent-to:#2563eb; }
#Intro .content-wrapper > .flex:nth-of-type(2) .service-intro:nth-of-type(2) { --pc-accent-from:#7c3aed; --pc-accent-to:#ec4899; }
#Intro .content-wrapper > .flex:nth-of-type(2) .service-intro:nth-of-type(3) { --pc-accent-from:#ec4899; --pc-accent-to:#f59e0b; }
#Intro .content-wrapper > .flex:nth-of-type(3) .service-intro { --pc-accent-from:#0f172a; --pc-accent-to:#475569; }

/* -------- Card media -------- */
#Intro .services-intro-image {
  position: relative;
  width: 100% !important;
  height: auto !important;
  overflow: hidden;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}
#Intro .services-intro-image > img {
  position: relative !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 1.1s var(--pc-ease), filter 0.6s var(--pc-ease);
  z-index: 1;
}
#Intro .service-intro:hover .services-intro-image > img {
  transform: scale(1.04);
  filter: saturate(1.18) contrast(1.04);
}

/* Brand-color tint over the image */
#Intro .services-intro-image::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--pc-accent-from) 35%, transparent) 0%,
    color-mix(in srgb, var(--pc-accent-to)   25%, transparent) 100%
  ); */
  mix-blend-mode: multiply;
  opacity: 0.22;
  z-index: 2;
  transition: opacity 0.5s var(--pc-ease);
  pointer-events: none;
}
#Intro .service-intro:hover .services-intro-image::before { opacity: 0.12; }

/* Bottom-up legibility gradient */
#Intro .services-intro-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(11,18,32,0) 55%, rgba(11,18,32,0.45) 100%); */
  opacity: 0;
  transition: opacity 0.5s var(--pc-ease);
  z-index: 3;
  pointer-events: none;
}
#Intro .service-intro:hover .services-intro-image::after { opacity: 1; }

/* Hide legacy webflow overlays */
#Intro .change-this-image,
#Intro .on-scroll-bg { display: none !important; }

/* Corner glyph chip */
#Intro .service-intro .pc-glyph {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #475569);
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.45);
  z-index: 4;
  transition: transform 0.5s var(--pc-ease);
}
#Intro .service-intro:hover .pc-glyph {
  transform: scale(1.1) rotate(-3deg);
}

/* Badge */
#Intro .service-intro[data-badge]::after {
  content: attr(data-badge);
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--pc-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  z-index: 4;
}

/* -------- Card body -------- */
#Intro .service-text-box {
  padding: 24px 24px 24px !important;
  width: auto !important;
  max-width: none !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
#Intro .service-text-box .title-box {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--pc-ink) !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  line-height: 1.3 !important;
  white-space: normal;
  display: block;
}
#Intro .service-text-box .title-box::before {
  content: attr(data-category);
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin-bottom: 10px;
}
#Intro .service-text-box .mt-4 {
  margin-top: 4px !important;
  margin-bottom: 22px;
  min-height: 4.5em;
}
#Intro .service-text-box .mt-4 p {
  color: var(--pc-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide the broken nested-anchor pieces — JS replaces with .pc-cta link */
#Intro .service-text-box .block-link-text,
#Intro .service-text-box .block-link-box,
#Intro .service-text-box .block-link,
#Intro .service-text-box .link-underline,
#Intro .service-text-box .link-mini-arrow { display: none !important; }

/* -------- Magnetic CTA -------- */
#Intro .service-text-box .pc-cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--pc-border);
  background: #ffffff;
  color: var(--pc-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  will-change: transform;
  transition: color 0.35s var(--pc-ease),
              border-color 0.35s var(--pc-ease),
              box-shadow 0.35s var(--pc-ease);
}
#Intro .service-text-box .pc-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pc-accent-from), var(--pc-accent-to));
  transform: translateX(-101%);
  transition: transform 0.45s var(--pc-ease);
  z-index: -1;
}
#Intro .service-text-box .pc-cta:hover {
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 32px -10px color-mix(in srgb, var(--pc-accent-from) 60%, transparent);
}
#Intro .service-text-box .pc-cta:hover::before { transform: translateX(0); }
#Intro .service-text-box .pc-cta:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc-accent-from) 25%, transparent);
}
#Intro .service-text-box .pc-cta__arrow {
  transition: transform 0.35s var(--pc-ease);
}
#Intro .service-text-box .pc-cta:hover .pc-cta__arrow {
  transform: translateX(5px);
}

/* -------- Responsive -------- */
@media (max-width: 991px) {
  #Intro .content-wrapper > .flex {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  /* Bento featured spans both columns on tablet */
  #Intro .content-wrapper > .flex:nth-of-type(1) .service-intro:nth-of-type(1) {
    grid-column: span 2;
  }
  #Intro .service-intro { grid-column: span 1; }
  .pc-stats { grid-template-columns: repeat(2, 1fr); max-width: 540px; }
}
@media (max-width: 575px) {
  #Intro.wf-section, #Intro { padding: 60px 0 90px !important; }
  #Intro .content-wrapper > .flex { grid-template-columns: 1fr; gap: 18px; }
  #Intro .content-wrapper > .flex:nth-of-type(1) .service-intro:nth-of-type(1) {
    grid-column: span 1;
  }
  #Intro .content-wrapper > .flex:nth-of-type(1) .service-intro:nth-of-type(1) .service-text-box .title-box {
    font-size: 1.2rem !important;
  }
  #Intro .heading-box-small { margin-bottom: 28px; }
  #Intro .service-text-box { padding: 22px 20px 22px !important; }
  .pc-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  #Intro .service-intro,
  #Intro .service-intro *,
  .pc-orb { transition: none !important; animation: none !important; }
}
@media (hover: none) {
  #Intro .service-intro:hover { transform: none; }
}
