/* ═══════════════════════════════════════════════════════════
   HOME VISUAL — Images, showcases, richer sections
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero showcase (right column) ─── */
.hero-showcase {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

.hero-showcase-main {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-showcase-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-showcase-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 10, 18, 0.85) 100%);
}

.hero-showcase-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-showcase-badge strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.hero-showcase-badge span {
  font-size: 0.75rem;
  color: #a8bdd0;
}

.hero-showcase-float {
  position: absolute;
  z-index: 3;
  padding: 0.65rem 0.85rem;
  background: rgba(10, 18, 30, 0.92);
  border: 1px solid rgba(61, 184, 191, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e4edf5;
  white-space: nowrap;
}

.hero-showcase-float svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
}

.hero-showcase-float--top {
  top: 8%;
  right: -4%;
  animation: float-gentle 5s ease-in-out infinite;
}

.hero-showcase-float--bottom {
  bottom: 22%;
  left: -6%;
  animation: float-gentle 5s ease-in-out infinite 1.5s;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ─── Expertise cards with images ─── */
.expertise-card {
  overflow: hidden;
  padding: 0 !important;
}

.expertise-card-media {
  position: relative;
  height: 130px;
  overflow: hidden;
}

.expertise-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.5s ease;
}

.expertise-card:hover .expertise-card-media img {
  transform: scale(1.06);
}

.expertise-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(5, 10, 18, 0.75) 100%);
}

.expertise-card-media .expertise-icon {
  position: absolute;
  bottom: 0.75rem;
  left: 0.85rem;
  z-index: 2;
}

.expertise-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ─── Client work strip ─── */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.logo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 184, 191, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.logo-card-img {
  height: 100px;
  overflow: hidden;
}

.logo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.logo-card:hover .logo-card-img img {
  transform: scale(1.05);
}

.logo-card-name {
  padding: 0.75rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

/* ─── AI hero photo ─── */
.ai-agents-hero-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-agents-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.ai-agents-hero-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 10, 18, 0.9) 100%);
}

.ai-agents-hero-photo .agent-soundwave {
  margin-bottom: 0.75rem;
}

/* ─── Testimonial avatars ─── */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(61, 184, 191, 0.35);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.testimonial-meta .testimonial-author {
  margin: 0;
  font-size: 0.9rem;
}

.testimonial-meta .testimonial-role {
  margin: 0;
  font-size: 0.75rem;
}

/* ─── How we work images ─── */
.how-step-img {
  width: 100%;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.how-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.how-step:hover .how-step-img img {
  transform: scale(1.04);
}

/* ─── CTA banner image ─── */
.cta-banner-inner {
  position: relative;
  overflow: hidden;
}

.cta-banner-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.cta-banner-inner .cta-banner-content {
  position: relative;
  z-index: 2;
}

/* ─── CTA strip accent ─── */
.cta-strip-inner {
  position: relative;
  overflow: hidden;
}

.cta-strip-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 35%;
  opacity: 0.15;
  pointer-events: none;
}

.cta-strip-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent, black 40%);
}

@media (max-width: 1023px) {
  .hero-showcase {
    display: block;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-strip-visual {
    display: none;
  }
}

@media (max-width: 640px) {
  .logos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .logo-card-img {
    height: 80px;
  }

  .expertise-card-media {
    height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-showcase-float--top,
  .hero-showcase-float--bottom {
    animation: none;
  }
}
