/* Sharp Growth Co. Services tab enhancements */
.sgc-web-feature-card,
.sgc-main-service-box {
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 260ms ease, border-color 260ms ease !important;
  will-change: transform, box-shadow;
}

.sgc-main-service-box {
  border-radius: 18px !important;
  cursor: pointer;
}

.sgc-main-service-box:hover,
.sgc-main-service-box:focus,
.sgc-main-service-box:focus-within,
.sgc-main-service-box.sgc-service-is-active {
  transform: translateY(-6px) scale(1.018) !important;
  box-shadow: 0 24px 52px rgba(32, 18, 10, 0.22), 0 8px 22px rgba(32, 18, 10, 0.14) !important;
  border-color: oklch(0.65 0.09 72 / 0.45) !important;
  z-index: 3;
}

.sgc-web-feature-card {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  border-radius: 16px !important;
  min-height: 190px;
  cursor: pointer;
  background-color: #1a0f09 !important;
  background-image: none !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 0 0 1px rgba(198, 150, 77, 0.2);
}

.sgc-web-feature-card .sgc-web-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--sgc-card-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.68;
  transform: scale(1);
  transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1), filter 420ms ease, opacity 260ms ease;
}

.sgc-web-feature-card .sgc-web-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(26, 15, 9, 0.92) 0%, rgba(26, 15, 9, 0.76) 48%, rgba(26, 15, 9, 0.64) 100%),
    radial-gradient(circle at 12% 16%, rgba(198, 150, 77, 0.18), transparent 34%);
  transition: background 260ms ease;
}

.sgc-web-feature-card > :not(.sgc-web-card-bg):not(.sgc-web-card-overlay) {
  position: relative;
  z-index: 2;
}

.sgc-web-feature-card h3,
.sgc-web-feature-card p,
.sgc-web-feature-card svg,
.sgc-web-feature-card [data-lucide],
.sgc-web-feature-card .lucide {
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}

.sgc-web-feature-card h3 {
  color: rgba(246, 238, 225, 0.96) !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.sgc-web-feature-card p {
  color: rgba(238, 225, 207, 0.82) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.sgc-web-feature-card:hover,
.sgc-web-feature-card:focus,
.sgc-web-feature-card:focus-within,
.sgc-web-feature-card.sgc-service-is-active {
  transform: translateY(-5px) scale(1.022) !important;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28), 0 8px 18px rgba(32, 18, 10, 0.2) !important;
  border-color: oklch(0.65 0.09 72 / 0.58) !important;
}

.sgc-web-feature-card:hover .sgc-web-card-bg,
.sgc-web-feature-card:focus .sgc-web-card-bg,
.sgc-web-feature-card:focus-within .sgc-web-card-bg,
.sgc-web-feature-card.sgc-service-is-active .sgc-web-card-bg {
  transform: scale(1.075);
  filter: saturate(1.08) contrast(1.05);
  opacity: 0.72;
}

.sgc-web-feature-card:hover .sgc-web-card-overlay,
.sgc-web-feature-card:focus .sgc-web-card-overlay,
.sgc-web-feature-card:focus-within .sgc-web-card-overlay,
.sgc-web-feature-card.sgc-service-is-active .sgc-web-card-overlay {
  background:
    linear-gradient(90deg, rgba(26, 15, 9, 0.9) 0%, rgba(26, 15, 9, 0.72) 48%, rgba(26, 15, 9, 0.58) 100%),
    radial-gradient(circle at 12% 16%, rgba(198, 150, 77, 0.2), transparent 34%);
}

@media (max-width: 640px) {
  .sgc-main-service-box:hover,
  .sgc-main-service-box:focus,
  .sgc-main-service-box:focus-within,
  .sgc-main-service-box.sgc-service-is-active,
  .sgc-web-feature-card:hover,
  .sgc-web-feature-card:focus,
  .sgc-web-feature-card:focus-within,
  .sgc-web-feature-card.sgc-service-is-active {
    transform: translateY(-3px) scale(1.01) !important;
  }

  .sgc-web-feature-card {
    min-height: 178px;
  }

  .sgc-web-feature-card .sgc-web-card-overlay {
    background: linear-gradient(90deg, rgba(26, 15, 9, 0.94) 0%, rgba(26, 15, 9, 0.8) 55%, rgba(26, 15, 9, 0.68) 100%);
  }
}

/* Animated Website Design & Development banner background */
.sgc-website-design-hero {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  background: #180d07 !important;
}

.sgc-website-design-hero > :not(.sgc-website-hero-image-layer):not(.sgc-website-hero-gradient-layer):not(.sgc-website-hero-shimmer-layer):not(.sgc-website-hero-streak-layer) {
  position: relative;
  z-index: 3;
}

.sgc-website-hero-image-layer,
.sgc-website-hero-gradient-layer,
.sgc-website-hero-shimmer-layer,
.sgc-website-hero-streak-layer {
  position: absolute;
  inset: -8%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.sgc-website-hero-image-layer {
  background-image: var(--sgc-website-hero-image);
  background-size: cover;
  background-position: 44% 50%;
  background-repeat: no-repeat;
  opacity: 0.4;
  filter: saturate(0.98) contrast(1.04) brightness(0.86);
  transform: translate3d(-1.5%, 0, 0) scale(1.045);
  animation: sgcLuxuryBannerDrift 30s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

.sgc-website-hero-gradient-layer {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 13, 7, 0.94) 0%, rgba(24, 13, 7, 0.78) 33%, rgba(24, 13, 7, 0.66) 62%, rgba(24, 13, 7, 0.9) 100%),
    radial-gradient(circle at 22% 30%, rgba(198, 150, 77, 0.2), transparent 34%),
    radial-gradient(circle at 78% 62%, rgba(238, 204, 151, 0.14), transparent 32%);
  backdrop-filter: blur(0.3px);
}

.sgc-website-hero-shimmer-layer {
  z-index: 2;
  inset: -18% -34%;
  background:
    linear-gradient(104deg, transparent 0%, transparent 37%, rgba(214, 169, 91, 0.06) 45%, rgba(255, 229, 181, 0.22) 50%, rgba(214, 169, 91, 0.08) 55%, transparent 64%, transparent 100%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 224, 168, 0.16), transparent 48%);
  mix-blend-mode: screen;
  opacity: 0.72;
  filter: blur(10px);
  transform: translate3d(-28%, 0, 0) rotate(0.001deg);
  animation: sgcGoldShimmerSweep 18s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  will-change: transform, opacity;
}

.sgc-website-hero-streak-layer {
  z-index: 2;
  inset: -22% -26%;
  background:
    linear-gradient(112deg, transparent 13%, rgba(191, 139, 63, 0.1) 28%, rgba(255, 230, 184, 0.24) 31%, rgba(191, 139, 63, 0.08) 35%, transparent 52%),
    linear-gradient(108deg, transparent 46%, rgba(255, 221, 158, 0.14) 58%, rgba(181, 127, 55, 0.07) 63%, transparent 76%);
  mix-blend-mode: screen;
  opacity: 0.42;
  filter: blur(16px);
  transform: translate3d(-10%, 1.5%, 0) scale(1.04);
  animation: sgcGoldLightStreaks 24s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes sgcLuxuryBannerDrift {
  0% {
    background-position: 41% 50%;
    transform: translate3d(-1.8%, 0, 0) scale(1.045);
  }
  50% {
    background-position: 50% 48%;
    transform: translate3d(1.1%, -0.4%, 0) scale(1.075);
  }
  100% {
    background-position: 58% 51%;
    transform: translate3d(2.2%, 0.35%, 0) scale(1.06);
  }
}

@keyframes sgcGoldShimmerSweep {
  0% {
    opacity: 0;
    transform: translate3d(-36%, 1%, 0) scale(1.02);
  }
  20% {
    opacity: 0.48;
  }
  55% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translate3d(34%, -1%, 0) scale(1.08);
  }
}

@keyframes sgcGoldLightStreaks {
  0% {
    opacity: 0.26;
    transform: translate3d(-14%, 2%, 0) scale(1.03);
  }
  45% {
    opacity: 0.48;
  }
  100% {
    opacity: 0.36;
    transform: translate3d(12%, -1%, 0) scale(1.09);
  }
}

@media (max-width: 760px) {
  .sgc-website-hero-image-layer,
  .sgc-website-hero-shimmer-layer,
  .sgc-website-hero-streak-layer {
    inset: -12%;
  }

  .sgc-website-hero-image-layer {
    opacity: 0.34;
    background-position: 50% 50%;
    animation-duration: 34s;
  }

  .sgc-website-hero-gradient-layer {
    background:
      linear-gradient(180deg, rgba(24, 13, 7, 0.96) 0%, rgba(24, 13, 7, 0.82) 48%, rgba(24, 13, 7, 0.94) 100%),
      radial-gradient(circle at 35% 22%, rgba(198, 150, 77, 0.16), transparent 36%);
  }

  .sgc-website-hero-shimmer-layer {
    opacity: 0.44;
    filter: blur(14px);
    animation-duration: 22s;
  }

  .sgc-website-hero-streak-layer {
    opacity: 0.3;
    filter: blur(18px);
    animation-duration: 28s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sgc-website-hero-image-layer,
  .sgc-website-hero-shimmer-layer,
  .sgc-website-hero-streak-layer {
    animation: none !important;
    transform: none !important;
  }
}

/* Home page My Services image-fill correction: keeps every service-card image covering the full tile. */
.sgc-home-services-section .sgc-home-service-card {
  position: relative !important;
  overflow: hidden !important;
  background-color: #b8b0a7;
  min-height: 280px;
  isolation: isolate;
}

.sgc-home-services-section .sgc-home-service-card .sgc-home-service-card-image,
.sgc-home-services-section .sgc-home-service-card > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 0.45 !important;
  transform: none !important;
}

.sgc-home-services-section .sgc-home-service-card h3,
.sgc-home-services-section .sgc-home-service-card p,
.sgc-home-services-section .sgc-home-service-card div:not(:has(img)) {
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  .sgc-home-services-section .sgc-home-service-card {
    min-height: 260px;
  }
}
