/* ================================
   PRODUCTS PAGE – BASE (WHITE THEME)
   ================================ */

body.products-page {
  background: #ffffff;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* easy tuning */
  --product-title-size: 2.3rem;
  --product-body-size: 1rem;
  --product-bullet-size: 0.96rem;
}

/* shared container */
body.products-page .top2 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* smooth scroll for in-page links */
html {
  scroll-behavior: smooth;
}



/* ================================
   PRODUCTS HEADING BLOCK
   ================================ */

body.products-page .main_heading {
  padding-top: 40px;
}

body.products-page .main_heading h1 {
  font-family: "DM Serif Text", system-ui, serif;
  font-size: clamp(2.4rem, 3.1vw, 2.8rem);
  color: #f9fafb;
  text-align: left;
  margin-bottom: 6px;
}

body.products-page .main_heading p {
  font-size: 0.98rem;
  color: #9ca3af;
  max-width: 620px;
  text-align: justify;
}

/* thin divider between hero + sections */
body.products-page .bord4 {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin: 0 auto;
  max-width: 1100px;
}



/* =========================================
   PAGE HEADING BLOCK
   ========================================= */

body.products-page .main_heading {
  padding-top: 40px;
  padding-bottom: 10px;
}

body.products-page .main_heading h1 {
  font-family: "DM Serif Text", system-ui, serif;
  font-size: clamp(2.4rem, 3.1vw, 2.8rem);
  color: #111827;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

body.products-page .main_heading p {
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 640px;
}

/* thin divider below heading */
body.products-page .bord4 {
  border-top: 1px solid #e5e7eb;
  margin: 0 auto;
  max-width: 1100px;
}

/* =========================================
   PRODUCT SECTIONS – IMAGE + TEXT
   ========================================= */

body.products-page .product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); /* image | text */
  column-gap: 56px;
  align-items: flex-start;
  padding: 90px 0 110px;
  scroll-margin-top: 110px;      /* for #hash links */
}

/* optional subtle divider between cards */
body.products-page .product-card + .product-card {
  border-top: 1px solid #f3f4f6;
}

/* --------- IMAGE COLUMN ---------- */

body.products-page .card-image {
  position: sticky;
  top: 110px;      /* sits below fixed nav */
  align-self: flex-start;

  aspect-ratio: 16 / 9;
  max-height: 70vh;
  width: 100%;

  border-radius: 26px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #f3f4f6, #e5e7eb);
   box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);

  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease-out,
    transform 0.9s ease-out;
}

body.products-page .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s ease-out;
}

/* --------- TEXT COLUMN ---------- */

body.products-page .card-content {
  align-self: flex-start;
  max-width: 580px;
  padding-top: 10px;
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.85s ease-out,
    transform 0.85s ease-out;
}

body.products-page .card-content h1 {
  font-family: "DM Serif Text", system-ui, serif;
  font-size: var(--product-title-size);
  color: #111827;
  margin-bottom: 14px;
}

/* small label / pill if you use it */
body.products-page .card-content .product-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5563;
  background: #f3f4f6;
  margin-bottom: 10px;
}

/* main paragraphs */
body.products-page .card-content .bullet3 p {
  font-size: var(--product-body-size);
  line-height: 1.8;
  color: #374151;
  margin-bottom: 12px;
  text-align: justify;
}

body.products-page .card-content .bullet3 p strong {
  color: #111827;
}

/* bullet list */
body.products-page .card-content .bullet3 ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

body.products-page .card-content .bullet3 li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  font-size: var(--product-bullet-size);
  color: #4b5563;
  line-height: 1.7;
}

body.products-page .card-content .bullet3 li::before {
  content: "•";
  position: absolute;
  left: 5px;
  top: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

/* when card enters viewport (JS adds .in-view) */
body.products-page .product-card.in-view .card-image {
  opacity: 1;
  transform: translateY(0);
}

body.products-page .product-card.in-view .card-image img {
  transform: scale(1.01);
}

body.products-page .product-card.in-view .card-content {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   SECTION LABELS / ANCHOR TITLES (optional)
   ========================================= */

body.products-page .product-anchor-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin-bottom: 10px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 960px) {
  body.products-page .banner {
    margin-top: 70px;
    height: 260px;
  }

  body.products-page .product-card {
    grid-template-columns: 1fr;
    padding: 60px 0 70px;
    row-gap: 26px;
  }

  body.products-page .card-image {
    position: relative;
    top: auto;
    max-height: 320px;
    aspect-ratio: 16 / 9;
    margin-bottom: 6px;
  }

  body.products-page .card-content {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  body.products-page .banner {
    height: 230px;
    min-height: 220px;
  }

  body.products-page .card-image {
    max-height: 250px;
    border-radius: 20px;
  }

  body.products-page .main_heading {
    padding-top: 28px;
  }

  body.products-page .product-card {
    padding: 50px 0 60px;
  }
}
/* =========================================
   PRODUCTS PAGE – MOBILE CENTER ALIGNMENT
   ========================================= */

@media (max-width: 768px) {

  /* Center page heading text */
  body.products-page .main_heading h1,
  body.products-page .main_heading p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Product card wrapper */
  body.products-page .product-card {
    text-align: center;
  }

  /* Center content column */
  body.products-page .card-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  /* Paragraph text */
  body.products-page .card-content .bullet3 p {
    text-align: center;
  }

  /* Bullet list center */
  body.products-page .card-content .bullet3 ul {
    padding-left: 0;
    display: inline-block;
    text-align: left; /* bullets readable but block is centered */
  }

  body.products-page .card-content .bullet3 li {
    padding-left: 16px;
  }

  body.products-page .card-content .bullet3 li::before {
    left: 0;
  }

  /* Center image */
  body.products-page .card-image {
    margin-left: auto;
    margin-right: auto;
  }
}
