/**
 * OmniVantis — Section visuals: stock photography (Unsplash, self-hosted)
 * with brand-tinted scrims. See assets/visual-source-map.md for sources.
 */

.pd-ph {
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Fill absolute slides in #uc-main */
.uc-img-slide .pd-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

/* ── Show-case swiper (dark section): photography + scrim for white titles ── */
.pd-ph--show-1 {
  background-color: #1a1a1a;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse 80% 50% at 20% 25%, rgba(51, 166, 207, 0.22) 0%, transparent 50%),
    url("../images/home/show-marketing.jpg");
}

.pd-ph--show-2 {
  background-color: #064e45;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.74) 100%),
    radial-gradient(circle at 78% 22%, rgba(18, 140, 126, 0.35) 0%, transparent 45%),
    url("../images/home/show-whatsapp.jpg");
}

.pd-ph--show-3 {
  background-color: #0f172a;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.76) 100%),
    radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.18) 0%, transparent 48%),
    url("../images/home/show-sms.jpg");
}

.pd-ph--show-4 {
  background-color: #020617;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.75) 100%),
    radial-gradient(ellipse at 82% 18%, rgba(51, 166, 207, 0.15) 0%, transparent 40%),
    url("../images/home/show-voice.jpg");
}

.pd-ph--show-5 {
  background-color: #1e1b4b;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.76) 100%),
    radial-gradient(circle at 48% 38%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    url("../images/home/show-geo.jpg");
}

.pd-ph--show-6 {
  background-color: #1c1917;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.74) 100%),
    radial-gradient(ellipse at 32% 28%, rgba(251, 191, 36, 0.12) 0%, transparent 44%),
    url("../images/home/show-analytics.jpg");
}

/* ── Use-case accordion (light section): distinct journey imagery ── */
.pd-ph--uc-1 {
  background-color: #292524;
  background-image:
    linear-gradient(180deg, rgba(26, 26, 26, 0.12) 0%, rgba(26, 26, 26, 0.45) 100%),
    radial-gradient(ellipse 70% 50% at 30% 35%, rgba(51, 166, 207, 0.18) 0%, transparent 50%),
    url("../images/home/uc-marketing.jpg");
}

.pd-ph--uc-2 {
  background-color: #0f172a;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.5) 100%),
    radial-gradient(circle at 70% 30%, rgba(72, 209, 204, 0.12) 0%, transparent 42%),
    url("../images/home/uc-engagement.jpg");
}

.pd-ph--uc-3 {
  background-color: #1e293b;
  background-image:
    linear-gradient(180deg, rgba(30, 41, 59, 0.2) 0%, rgba(15, 23, 42, 0.55) 100%),
    radial-gradient(circle at 25% 65%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
    url("../images/home/uc-notifications.jpg");
}

.pd-ph--uc-4 {
  background-color: #1c1917;
  background-image:
    linear-gradient(180deg, rgba(28, 25, 23, 0.15) 0%, rgba(28, 25, 23, 0.48) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(51, 166, 207, 0.12) 0%, transparent 38%),
    url("../images/home/uc-support.jpg");
}

/* Swiper / card slides: maintain height */
.pd-ph--showcase-slide {
  width: 100%;
  min-height: 320px;
  height: 100%;
}

@media (min-width: 640px) {
  .pd-ph--showcase-slide {
    min-height: 360px;
  }
}

/* Homepage blog grid — radius aligned with show-case cards; brand.css excludes .pd-ph from generic [class*="-card"] */
.pd-ph--blog-card {
  width: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 10;
  border-radius: 1.75rem;
  overflow: hidden;
}

/* Accents use brand tokens: --color-main-600 #33A6CF, --ov-silver #8A9BB8 */
.pd-ph--blog-1 {
  background-color: #2a181c;
  background-image:
    linear-gradient(165deg, rgba(51, 65, 85, 0.82) 0%, rgba(26, 26, 26, 0.88) 42%, rgba(15, 15, 15, 0.92) 100%),
    radial-gradient(ellipse 75% 60% at 22% 32%, rgba(51, 166, 207, 0.4) 0%, transparent 52%),
    radial-gradient(circle at 88% 18%, rgba(138, 155, 184, 0.18) 0%, transparent 35%),
    url("../images/home/blog-channel-strategy.jpg");
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pd-ph--blog-2 {
  background-color: #0c1929;
  background-image:
    linear-gradient(135deg, rgba(14, 116, 144, 0.55) 0%, rgba(12, 74, 110, 0.7) 35%, rgba(15, 23, 42, 0.88) 100%),
    radial-gradient(circle at 72% 58%, rgba(56, 189, 248, 0.25) 0%, transparent 48%),
    url("../images/home/blog-compliance.jpg");
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Testimonials — hero panel */
.pd-ph--testimonial {
  width: 100%;
  min-height: 397px;
}

.pd-ph--testimonial-1 {
  background-color: #292524;
  background-image:
    linear-gradient(180deg, rgba(41, 37, 36, 0.25) 0%, rgba(28, 25, 23, 0.72) 100%),
    radial-gradient(ellipse at 40% 20%, rgba(51, 166, 207, 0.14) 0%, transparent 50%),
    url("../images/home/testimonial-panel-1.jpg");
}

.pd-ph--testimonial-2 {
  background-color: #1e293b;
  background-image:
    linear-gradient(180deg, rgba(30, 41, 59, 0.22) 0%, rgba(15, 23, 42, 0.7) 100%),
    radial-gradient(circle at 60% 30%, rgba(94, 234, 212, 0.1) 0%, transparent 40%),
    url("../images/home/testimonial-panel-2.jpg");
}

.pd-ph--testimonial-3 {
  background-color: #312e81;
  background-image:
    linear-gradient(180deg, rgba(49, 46, 129, 0.3) 0%, rgba(30, 27, 75, 0.75) 100%),
    radial-gradient(circle at 30% 70%, rgba(165, 180, 252, 0.2) 0%, transparent 45%),
    url("../images/home/testimonial-panel-3.jpg");
}

/* Testimonials — 84×84 avatar */
.pd-ph--avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.pd-ph--avatar-1 {
  background-image: url("../images/home/avatar-1.jpg");
  background-size: cover;
  background-position: center 20%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.pd-ph--avatar-2 {
  background-image: url("../images/home/avatar-2.jpg");
  background-size: cover;
  background-position: center 25%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.pd-ph--avatar-3 {
  background-image: url("../images/home/avatar-3.jpg");
  background-size: cover;
  background-position: center 15%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Mini avatars on dark backgrounds (roadmap strip) */
.pd-ph--avatar-on-dark-1 {
  background-image:
    linear-gradient(145deg, #99d4ef 0%, #33A6CF 45%, #2789AD 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.pd-ph--avatar-on-dark-2 {
  background-image:
    linear-gradient(145deg, #5eead4 0%, #0d9488 50%, #115e59 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.pd-ph--avatar-on-dark-3 {
  background-image:
    linear-gradient(145deg, #c4b5fd 0%, #6366f1 50%, #3730a3 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Hero: photography + brand mesh (static for stable photo composition) */
.pd-ph--hero-main {
  background-color: #0d1117;
  background-image:
    linear-gradient(158deg, rgba(13, 15, 20, 0.35) 0%, rgba(13, 15, 20, 0.62) 55%, rgba(13, 15, 20, 0.78) 100%),
    radial-gradient(ellipse 90% 75% at 68% 25%, rgba(51, 166, 207, 0.22) 0%, transparent 58%),
    radial-gradient(circle at 18% 72%, rgba(138, 155, 184, 0.14) 0%, transparent 48%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1400&q=80");
  background-size: cover, cover, cover, cover;
  background-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .pd-ph--hero-main {
    background-position: center;
  }
}

/* Footer top — phone / product visual column */
.pd-ph--footer-visual {
  width: min(100%, 400px);
  min-width: 260px;
  min-height: 300px;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(165deg, rgba(10, 10, 10, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse 80% 55% at 70% 35%, rgba(51, 166, 207, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 25% 70%, rgba(45, 212, 191, 0.12) 0%, transparent 42%),
    url("../images/home/footer-device.jpg");
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* About section — dashboard / analytics imagery */
.pd-ph--dashboard-mock {
  background-color: #1e1a2e;
  background-image:
    linear-gradient(180deg, rgba(30, 26, 46, 0.22) 0%, rgba(15, 23, 42, 0.52) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 28%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(51, 166, 207, 0.14) 0%, transparent 55%),
    url("../images/home/about-dashboard.jpg?v=2");
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Let’s talk CTA */
.pd-ph--cta {
  width: 100%;
  min-height: 320px;
  border-radius: 1rem;
  background-color: #0f172a;
  background-image:
    linear-gradient(125deg, rgba(30, 41, 59, 0.42) 0%, rgba(15, 23, 42, 0.58) 48%, rgba(2, 6, 23, 0.72) 100%),
    radial-gradient(ellipse 90% 70% at 10% 90%, rgba(51, 166, 207, 0.26) 0%, transparent 55%),
    radial-gradient(circle at 88% 12%, rgba(138, 155, 184, 0.14) 0%, transparent 42%),
    url("../images/home/cta-connectivity.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

@media (min-width: 768px) {
  .pd-ph--cta {
    min-height: 380px;
  }
}

/* Blog listing — featured posts */
.pd-ph--blog-feature {
  width: 100%;
  min-height: 280px;
  aspect-ratio: 16 / 9;
}

.pd-ph--blog-page-1 {
  background-color: #1a1a1a;
  background-image:
    radial-gradient(ellipse 75% 50% at 30% 40%, rgba(51, 166, 207, 0.35) 0%, transparent 50%),
    linear-gradient(145deg, #292524 0%, #1a1a1a 100%);
}

.pd-ph--blog-page-2 {
  background-color: #0c4a6e;
  background-image:
    radial-gradient(circle at 75% 25%, rgba(125, 211, 252, 0.3) 0%, transparent 45%),
    linear-gradient(160deg, #082f49 0%, #0c4a6e 100%);
}

.pd-ph--blog-page-3 {
  background-color: #1e1b4b;
  background-image:
    radial-gradient(circle at 40% 60%, rgba(167, 139, 250, 0.35) 0%, transparent 48%),
    linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
}

/* Sidebar author */
.pd-ph--sidebar-author {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  background-image: linear-gradient(145deg, #66B8D4 0%, #2789AD 100%);
}

/* Recent post thumbs */
.pd-ph--recent {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 0.375rem;
}

.pd-ph--recent-1 {
  background-image: linear-gradient(135deg, #44403c 0%, #1c1917 100%);
}

.pd-ph--recent-2 {
  background-image: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

.pd-ph--recent-3 {
  background-image: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%);
}

/* Blog page — laptop strip */
.pd-ph--laptop-hero {
  display: inline-block;
  width: min(100%, 420px);
  min-height: 180px;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  background-color: #1e293b;
  background-image:
    radial-gradient(ellipse at 50% 80%, rgba(51, 166, 207, 0.25) 0%, transparent 50%),
    linear-gradient(165deg, #334155 0%, #0f172a 100%);
}

/* Task management section — floating panel */
.pd-ph--task-float {
  width: min(42vw, 400px);
  min-height: 260px;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  background-color: #14532d;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(74, 222, 128, 0.25) 0%, transparent 45%),
    linear-gradient(145deg, #166534 0%, #14532d 100%);
}
