/* ===================== PRODUCTS OVERVIEW ===================== */
.products {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 7vw, 100px);
  background: #ffffff;
  overflow: hidden;
  text-align: center;
}

/* ---------- Heading ---------- */
.products-head {
  max-width: 880px;
  margin: 0 auto clamp(34px, 4vw, 56px);
  padding: 0 24px;
}

.products-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #16202f;
}

.products-title .grad {
  background: linear-gradient(100deg, #5b8def 0%, #2f6bd8 50%, #6aa0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.products-sub {
  margin-top: 16px;
  font-size: clamp(0.98rem, 1.3vw, 1.18rem);
  font-weight: 300;
  line-height: 1.6;
  color: #6b7689;
}

/* ---------- Carousel ---------- */
.pcarousel {
  position: relative;
  height: clamp(420px, 50vw, 600px);
  max-width: 1300px;
  margin: 0 auto;
  touch-action: pan-y;
}

.pslide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(270px, 31vw, 440px);
  height: clamp(360px, 43vw, 560px);
  border-radius: 28px;
  overflow: hidden;
  background: #0b1f47;
  box-shadow: 0 26px 60px rgba(12, 28, 70, 0.22);
  cursor: pointer;
  user-select: none;
  transform: translate(-50%, -50%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s ease,
              box-shadow 0.6s ease;
  will-change: transform;
}

.pslide.is-active {
  cursor: default;
  box-shadow: 0 44px 100px rgba(10, 26, 70, 0.42);
}

.pslide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Veil dims the non-active slides */
.pslide-veil {
  position: absolute;
  inset: 0;
  background: rgba(232, 238, 247, 0.42);
  opacity: 0.6;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.pslide.is-active .pslide-veil {
  opacity: 0;
}

/* Overlay text (only on the active slide) */
.pslide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 2.2vw, 30px);
  background: linear-gradient(to top,
    rgba(4, 14, 40, 0.95) 0%,
    rgba(4, 14, 40, 0.78) 32%,
    rgba(4, 14, 40, 0.30) 62%,
    rgba(4, 14, 40, 0) 82%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease 0.1s, transform 0.55s ease 0.1s;
  pointer-events: none;
}

.pslide.is-active .pslide-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pslide-title {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  line-height: 1.18;
  margin-bottom: 18px;
}

.pslide-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon info"
    "btn  btn";
  column-gap: 12px;
  row-gap: 16px;
  align-items: center;
}

.pslide-icon {
  grid-area: icon;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* real brand logos — show the whole mark, not cropped */
.pslide-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* fallback photo icons keep edge-to-edge cover */
.pslide-icon--photo img {
  object-fit: cover;
  padding: 0;
}

.pslide-info {
  grid-area: info;
  min-width: 0;
  text-align: left;
  color: #fff;
}

.pslide-brand {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.pslide-desc {
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pslide-btn {
  grid-area: btn;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #1a3f7a;
  padding: 12px 30px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pslide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* ---------- Controls ---------- */
.pcontrols {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: clamp(26px, 3vw, 40px);
}

.pdots {
  display: flex;
  gap: 10px;
}

.pdot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #c7d2e4;
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}

.pdot.active {
  width: 32px;
  background: #2f6bd8;
}

.parrows {
  display: flex;
  gap: 18px;
}

.parrow {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(78, 124, 200, 0.25);
  background: #fff;
  color: #2f6bd8;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28, 50, 90, 0.10);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.parrow:hover {
  background: #2f6bd8;
  color: #fff;
  transform: translateY(-2px);
}

.parrow:active {
  transform: scale(0.94);
}

/* ---------- Reveal ---------- */
.products .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.products .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .pcarousel {
    height: clamp(380px, 105vw, 470px);
  }

  .pslide {
    width: clamp(260px, 84vw, 350px);
    height: clamp(320px, 100vw, 410px);
    border-radius: 22px;
  }

  /* heading at the TOP, footer at the bottom */
  .pslide-overlay {
    justify-content: space-between;
    background:
      linear-gradient(to bottom, rgba(4, 14, 40, 0.72) 0%, rgba(4, 14, 40, 0) 30%),
      linear-gradient(to top, rgba(4, 14, 40, 0.95) 0%, rgba(4, 14, 40, 0.5) 30%, rgba(4, 14, 40, 0) 60%);
  }

  .pslide-title {
    font-size: 1.15rem;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  }

  /* no description on phones */
  .pslide-desc {
    display: none;
  }

  /* icon + brand + button all on one line */
  .pslide-foot {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon info btn";
    column-gap: 10px;
    align-items: center;
  }

  .pslide-btn {
    grid-area: btn;
    justify-self: end;
    padding: 9px 18px;
    font-size: 0.8rem;
  }

  @media (prefers-reduced-motion: reduce) {
    .pslide { transition: none; }
  }
}
