/* ==========================================================================
   OUR PRODUCT RANGE — INDUSTRIAL MODERN SECTION (V2)
   Inspired by modern engineering catalog design with mint/emerald accents
   ========================================================================== */

.prod-range-section {
  position: relative;
  background: #ffffff;
  padding: 70px 0 85px;
  overflow: hidden;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.prod-range-section .container {
  width: 80% !important;
  max-width: 80% !important;
  margin-inline: auto !important;
}

@media (max-width: 1200px) {
  .prod-range-section .container {
    width: 88% !important;
    max-width: 88% !important;
  }
}

@media (max-width: 768px) {
  .prod-range-section .container {
    width: 95% !important;
    max-width: 95% !important;
    padding-inline: 16px;
  }
}

/* ── BACKGROUND AMBIENT & FACTORY ART ── */
.prod-range__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Factory workshop photo in top-right */
.prod-range__bg-factory {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 420px;
  background-size: cover;
  background-position: center 25%;
  opacity: 0.9;
  filter: saturate(1.05) contrast(1.02);
  mask-image: linear-gradient(
    to bottom left,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 45%,
    rgba(0, 0, 0, 0.15) 75%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom left,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 45%,
    rgba(0, 0, 0, 0.15) 75%,
    transparent 100%
  );
}

/* Smooth gradient overlay covering full background */
.prod-range__bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, #ffffff 0%, #ffffff 40%, rgba(255, 255, 255, 0.85) 62%, rgba(255, 255, 255, 0.45) 100%),
    linear-gradient(180deg, transparent 0%, transparent 220px, #ffffff 360px, #ffffff 100%);
}

/* Angled dynamic modern green polygons on borders */
.prod-range__bg-poly-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 290px;
  height: 520px;
  background: linear-gradient(135deg, rgba(0, 158, 79, 0.22) 0%, rgba(16, 185, 129, 0.12) 40%, transparent 75%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.prod-range__bg-poly-left-sub {
  position: absolute;
  top: 60px;
  left: 0;
  width: 150px;
  height: 400px;
  background: linear-gradient(150deg, rgba(5, 150, 105, 0.16) 0%, transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 85%);
}

.prod-range__bg-poly-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 400px;
  background: linear-gradient(225deg, rgba(0, 158, 79, 0.28) 0%, rgba(16, 185, 129, 0.14) 50%, transparent 80%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* ── SECTION HEADER ── */
.prod-range__header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 42px;
}

.prod-range__head-left {
  flex: 1;
  max-width: 620px;
}

/* Eyebrow: ──• OUR PRODUCT RANGE */
.prod-range__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.prod-range__eyebrow-line {
  width: 36px;
  height: 2px;
  background: #009e4f;
  border-radius: 2px;
}

.prod-range__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #009e4f;
  box-shadow: 0 0 0 3px rgba(0, 158, 79, 0.2);
}

.prod-range__eyebrow-text {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #064e3b;
}

.prod-range__eyebrow-accent {
  color: #009e4f;
}

/* Main title */
.prod-range__title {
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 16px;
}

.prod-range__title-green {
  color: #009e4f;
  display: block;
}

/* Description */
.prod-range__desc {
  font-size: 1.02rem;
  line-height: 1.62;
  color: #475569;
  max-width: 530px;
  margin: 0;
}

/* ── HEADER RIGHT (Billboard sign + View All CTA) ── */
.prod-range__head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Workshop Wall Signboard */
.prod-range__signboard {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 158, 79, 0.18);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px -6px rgba(0, 50, 25, 0.12);
}

.prod-range__sign-tagline {
  display: flex;
  flex-direction: column;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  color: #064e3b;
  text-align: right;
  text-transform: uppercase;
}

.prod-range__sign-tagline span {
  display: block;
}

.prod-range__sign-highlight {
  color: #009e4f;
}

.prod-range__sign-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1.5px solid rgba(0, 158, 79, 0.18);
  padding-left: 14px;
}

.prod-range__sign-logo-box {
  width: 36px;
  height: 36px;
  border: 1.5px solid #064e3b;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.prod-range__sign-logo-s {
  font-size: 1.35rem;
  font-weight: 900;
  color: #064e3b;
  line-height: 1;
  font-family: 'Arial Black', sans-serif;
  letter-spacing: -0.05em;
}

.prod-range__sign-name {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #064e3b;
  margin-top: 3px;
  white-space: nowrap;
}

/* View All Products Pill CTA */
.prod-range__all-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #064e3b;
  color: #ffffff;
  padding: 8px 10px 8px 24px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(6, 78, 59, 0.45);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.prod-range__all-btn:hover {
  background: #009e4f;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(0, 158, 79, 0.5);
}

.prod-range__all-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #064e3b;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.prod-range__all-btn:hover .prod-range__all-icon {
  transform: translateX(3px);
  color: #009e4f;
}

/* ── 3-COLUMN PRODUCT CARDS GRID ── */
.prod-range__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 28px;
}

/* ── CARD COMPONENT ── */
.prod-card-v2 {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  padding: 0 0 20px;            /* no top padding — video goes edge-to-edge */
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 12px 32px -8px rgba(0, 50, 25, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease;
  overflow: hidden;
}

.prod-card-v2:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 158, 79, 0.3);
  box-shadow: 
    0 24px 50px -10px rgba(0, 60, 30, 0.15),
    0 6px 16px rgba(0, 158, 79, 0.08);
}

/* Top accent bar (featured on card 2, or visible on hover) */
.prod-card-v2__top-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 3.5px;
  background: #009e4f;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.35s ease, width 0.35s ease;
}

.prod-card-v2--featured .prod-card-v2__top-bar,
.prod-card-v2:hover .prod-card-v2__top-bar {
  opacity: 1;
}

/* ── MEDIA AREA — edge-to-edge video ── */
.prod-card-v2__media-link {
  display: block;
  text-decoration: none;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.prod-card-v2__media-box {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

/* Hide podium & glow — not needed in video mode */
.prod-card-v2__stage,
.prod-card-v2__podium-svg,
.prod-card-v2__glow {
  display: none;
}

/* ── PRODUCT IMAGE fallback ── */
.prod-card-v2__img {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  z-index: 1;
}

/* ── PRODUCT VIDEO – edge-to-edge inside top media area ── */
.prod-card-v2__video,
.prod-card-v2__yt-wrap {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  background: #000;
  border-radius: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.prod-card-v2:hover .prod-card-v2__video,
.prod-card-v2:hover .prod-card-v2__img {
  transform: scale(1.03);
}

/* Card body gets side padding (no top padding since video is edge-to-edge) */
.prod-card-v2__body {
  padding: 18px 20px 0;
}

@media (prefers-reduced-motion: reduce) {
  .prod-card-v2__video { transform: none !important; }
}


/* ── CARD BODY ── */
.prod-card-v2__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  z-index: 2;
  padding: 18px 20px 0;
}


/* Title: AED-01 */
.prod-card-v2__title-link {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}

.prod-card-v2__model {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0f172a;
  transition: color 0.3s ease;
}

.prod-card-v2__model-prefix {
  color: #0f172a;
}

.prod-card-v2__model-num {
  color: #009e4f;
}

.prod-card-v2:hover .prod-card-v2__model-prefix {
  color: #064e3b;
}

/* Short Description */
.prod-card-v2__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #556960;
  margin: 0 0 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

/* ── ACTION BUTTONS ROW ── */
.prod-card-v2__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  gap: 7px;
  align-items: center;
  width: 100%;
}

/* Base button */
.prod-card-v2__btn {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

/* Primary: Inquiry Now */
.prod-card-v2__btn--inquiry {
  background: #064e3b;
  color: #ffffff;
  border: 1.5px solid #064e3b;
  box-shadow: 0 6px 18px -4px rgba(6, 78, 59, 0.35);
}

.prod-card-v2__btn--inquiry:hover {
  background: #009e4f;
  border-color: #009e4f;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -4px rgba(0, 158, 79, 0.45);
}

/* Secondary: View Details */
.prod-card-v2__btn--details {
  background: #ffffff;
  color: #064e3b;
  border: 1.5px solid #a7f3d0;
}

.prod-card-v2__btn--details:hover {
  border-color: #009e4f;
  color: #009e4f;
  background: #f0fdf4;
  transform: translateY(-2px);
}

.prod-card-v2__btn svg {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.prod-card-v2__btn:hover svg {
  transform: translateX(3px);
}

/* ── RESPONSIVE DESIGN ── */
@media (max-width: 1080px) {
  .prod-range__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .prod-range__head-right {
    align-items: flex-start;
  }
  .prod-range__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .prod-range__bg-factory {
    width: 80%;
    opacity: 0.4;
  }
}

@media (max-width: 640px) {
  .prod-range-section {
    padding: 60px 0 70px;
  }
  .prod-range__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }
  .prod-card-v2 {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .prod-card-v2__media-box {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .prod-card-v2__video {
    object-position: center center;
  }
  .prod-card-v2__img {
    max-height: 200px;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
  }
  .prod-range__media-box {
    height: 250px;
  }
  .prod-range__title {
    font-size: 1.85rem;
  }
  .prod-card-v2__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .prod-card-v2__btn {
    width: 100%;
  }
  .prod-range__signboard {
    display: none;
  }
}
