/* =========================================================
   Premium polish layer — cards, accents, work-sample strip
   ========================================================= */

/* Home card hover: emerald border + glow */
.agf-highlight-card:hover,
.agf-service-card:hover,
.agf-feature-card:hover,
.agf-adv-card:hover,
.agf-testimonial-card:hover {
  border-color: rgba(33, 199, 122, 0.45) !important;
  box-shadow:
    0 22px 55px rgba(3, 16, 18, 0.1),
    0 0 40px rgba(33, 199, 122, 0.12) !important;
}

.agf-highlight-card__icon,
.agf-service-card__icon,
.agf-feature-card__icon,
.agf-adv-card__icon {
  background: rgba(33, 199, 122, 0.1) !important;
  border-color: rgba(33, 199, 122, 0.28) !important;
  color: #21C77A !important;
  box-shadow: 0 0 24px rgba(33, 199, 122, 0.12);
}

/* Dark KPI / advantages sections */
.agf-home-block--kpi,
.agf-home-block--advantages,
.agf-home-block--testimonials {
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(33, 199, 122, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(8, 61, 63, 0.65), transparent 60%),
    linear-gradient(160deg, #031012 0%, #081F21 50%, #083D3F 100%) !important;
}

.agf-home-block--services,
.agf-home-block--features {
  background: var(--agf-bg, #FAFBFB) !important;
}

.agf-home-block--highlights {
  background: #fff !important;
}

.agf-kpi-card__num,
.agf-adv-card__title {
  color: #fff !important;
}

.agf-kpi-card:hover,
.agf-adv-card:hover {
  border-color: rgba(33, 199, 122, 0.4) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 40px rgba(33, 199, 122, 0.15) !important;
}

/* Work samples strip on home — image cards aligned with page partial */
.agf-ws-strip {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.agf-ws-strip__wrap {
  max-width: 1100px;
}

.agf-ws-strip__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}

.agf-ws-strip__intro {
  min-width: 0;
}

.agf-ws-strip__title {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: right;
}

.agf-ws-strip__title a {
  color: inherit !important;
  text-decoration: none !important;
  padding: 0;
}

.agf-ws-strip__title a::after {
  display: none !important;
}

.agf-ws-strip__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.8;
}

.agf-ws-strip__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.agf-ws-strip__more:hover {
  border-color: rgba(33, 199, 122, 0.5);
  background: rgba(33, 199, 122, 0.14);
  color: #fff !important;
}

.agf-ws-strip__more i {
  font-size: 0.72rem;
}

.agf-ws-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agf-ws-strip__grid > .agf-ws-col {
  display: flex;
  width: 100%;
  max-width: none;
  flex: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.agf-ws-strip .agf-ws-card,
.agf-ws-strip a.agf-ws-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #031012 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.agf-ws-strip .agf-ws-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.4);
  border-color: rgba(33, 199, 122, 0.35);
}

.agf-ws-strip .agf-ws-card__frame {
  display: none !important;
}

.agf-ws-strip .agf-ws-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #052628;
  margin: 0;
  border: 0;
}

.agf-ws-strip .agf-ws-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.agf-ws-strip .agf-ws-card:hover .agf-ws-card__img {
  transform: scale(1.08);
}

.agf-ws-strip .agf-ws-card__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(33, 199, 122, 0.28), transparent 55%),
    linear-gradient(145deg, #083D3F, #031012);
}

.agf-ws-strip .agf-ws-card__caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 6px;
  padding: 14px 14px 16px;
  background: transparent !important;
  min-height: 0;
}

.agf-ws-strip .agf-ws-card__meta {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(33, 199, 122, 0.2);
  border: 1px solid rgba(33, 199, 122, 0.35);
  color: #CFF7E7 !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
}

.agf-ws-strip .agf-ws-card__title,
.agf-ws-strip .agf-ws-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agf-ws-strip .agf-ws-card__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #21C77A !important;
  opacity: 1;
}

.agf-ws-strip .agf-ws-card__action i {
  color: #21C77A;
  font-size: 11px;
}

@media (max-width: 991.98px) {
  .agf-ws-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 575.98px) {
  .agf-ws-strip__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .agf-ws-strip__grid {
    grid-template-columns: 1fr;
  }
}

/* Pages mosaic polish */
.demo3 .piec1,
.demo3 .piec2,
.demo3 .piec3,
.demo3 .piec4,
.demo3 .piec5 {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(3, 16, 18, 0.1);
  border: 1px solid #DDE2E2;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.demo3 .piec1:hover,
.demo3 .piec2:hover,
.demo3 .piec3:hover,
.demo3 .piec4:hover,
.demo3 .piec5:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 199, 122, 0.4);
  box-shadow: 0 22px 50px rgba(3, 16, 18, 0.12), 0 0 30px rgba(33, 199, 122, 0.12);
}

/* Floating shapes glow in hero */
.agf-floating-shape {
  color: rgba(33, 199, 122, 0.45);
  filter: drop-shadow(0 0 12px rgba(33, 199, 122, 0.35));
}

/* Blog / FAQ containers subtle polish */
.agf-theme-dark .owl-carousel .owl-dot.active span,
.agf-theme-dark .owl-theme .owl-dots .owl-dot.active span {
  background: #21C77A !important;
}

/* Hero orbs + badge pulse */
.agf-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.agf-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.agf-hero-orb--1 {
  width: 340px;
  height: 340px;
  top: 10%;
  left: 5%;
  background: radial-gradient(circle, rgba(33, 199, 122, 0.45), transparent 70%);
  animation: agfOrb 9s ease-in-out infinite;
}

.agf-hero-orb--2 {
  width: 260px;
  height: 260px;
  bottom: 15%;
  right: 10%;
  background: radial-gradient(circle, rgba(8, 61, 63, 0.8), transparent 70%);
  animation: agfOrb 11s ease-in-out infinite reverse;
}

.agf-hero-orb--3 {
  width: 180px;
  height: 180px;
  top: 40%;
  right: 35%;
  background: radial-gradient(circle, rgba(50, 230, 154, 0.3), transparent 70%);
  animation: agfOrb 7s ease-in-out infinite;
}

@keyframes agfOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.12); }
}

.agf-hero-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.agf-hero-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #21C77A;
  box-shadow: 0 0 0 0 rgba(33, 199, 122, 0.5);
  animation: agfDotPulse 1.8s ease-out infinite;
}

@keyframes agfDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(33, 199, 122, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(33, 199, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 199, 122, 0); }
}

/* Hero mobile */
@media (max-width: 991.98px) {
  .agf-parallax-hero {
    min-height: auto;
    padding: 28px 0 48px !important;
  }

  .agf-hero-card {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  .agf-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    line-height: 1.35 !important;
  }

  .agf-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .agf-hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .agf-hero-mini-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .agf-hero-mini-stats__num {
    font-size: 1.15rem !important;
  }

  .agf-hero-mini-stats__label {
    font-size: 10px !important;
  }

  .agf-hero-scroll {
    display: none;
  }

  .agf-floating-shapes {
    opacity: 0.35;
  }
}

/* Home block mobile spacing */
@media (max-width: 767.98px) {
  .agf-home-block {
    padding: 48px 0 !important;
  }

  .agf-home-title h2 {
    font-size: 1.4rem !important;
  }

  .arvino-plans-content {
    padding-left: 0 !important;
    margin-bottom: 1.5rem;
  }

  .arvino-plans-title {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  .arvino-plans-actions {
    flex-direction: column;
  }

  .arvino-plans-btn-primary,
  .arvino-plans-btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Page content comfort under fixed header */
.agf-ux .main_wrap > *:not(header):not(.of-site-mask):not(.off-canvas-wrap):not(.agf-bottom-nav) {
  /* body content flows after padding-top on main_wrap */
}

/* Soft page background rhythm */
.agf-ux {
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(33, 199, 122, 0.06), transparent 50%),
    #FAFBFB;
}

