/* =====================================================================
   About Us page — styles
   Native Divi modules (Heading / Text / Blurb / Image) styled to the reference,
   in the Momentus purple system and CONSISTENT with the homepage + calculator
   card design (same surfaces, borders, hover, eyebrows, headings). Scoped under
   body.vp-dark; all colours from vp.css tokens. No row-width overrides — content
   uses the site-wide Divi Content Width so pasted rows are never narrowed.
   ===================================================================== */

/* Section padding via two-class rules so they out-specify Divi's .et_pb_section. */
body.vp-dark .about-hero.et_pb_section { padding: 0; }
body.vp-dark .about-stats.et_pb_section { padding: 2.75rem 2rem; background: var(--vp-dark); border-bottom: 1px solid var(--vp-line); }
body.vp-dark .about-values.et_pb_section { padding: 5rem 2rem; background: var(--vp-dark); }
body.vp-dark .about-science.et_pb_section { padding: 5rem 2rem; background: var(--vp-dark-2); border-top: 1px solid var(--vp-line); }
body.vp-dark .about-mfg.et_pb_section { padding: 5rem 2rem; background: var(--vp-dark); border-top: 1px solid var(--vp-line); }
body.vp-dark .about-storage.et_pb_section { padding: 5rem 2rem; background: var(--vp-dark-2); border-top: 1px solid var(--vp-line); }
body.vp-dark .about-nonneg.et_pb_section { padding: 5rem 2rem; background: var(--vp-dark); border-top: 1px solid var(--vp-line); }

/* Neutralise Divi's default row padding; keep the site content width (no cap). */
body.vp-dark .about-hero .et_pb_row,
body.vp-dark .about-stats .et_pb_row,
body.vp-dark .about-values .et_pb_row,
body.vp-dark .about-science .et_pb_row,
body.vp-dark .about-mfg .et_pb_row,
body.vp-dark .about-storage .et_pb_row,
body.vp-dark .about-nonneg .et_pb_row { padding-top: 0; padding-bottom: 0; }

/* ── HERO ─────────────────────────────────────────────────────────── */
body.vp-dark .about-hero.et_pb_section {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: center;
}
body.vp-dark .about-hero.et_pb_section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.78) 0%, rgba(5,5,5,0.86) 55%, rgba(5,5,5,0.95) 100%);
  z-index: 0;
}
body.vp-dark .about-hero .et_pb_row { position: relative; z-index: 1; padding: 4.5rem 0; }
body.vp-dark .about-hero-inner { text-align: center; max-width: 760px; }
body.vp-dark .about-hero .et_pb_column { text-align: center; }

/* Shared eyebrow (purple, uppercase) — matches the homepage/calc section labels. */
body.vp-dark .about-eyebrow.et_pb_text,
body.vp-dark .about-eyebrow.et_pb_text p {
  font-family: var(--vp-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vp-primary-light);
}

/* Section header (eyebrow + h2 + subtitle) centered. */
body.vp-dark .about-header { text-align: center; margin-bottom: 3rem; }
body.vp-dark .about-subtitle.et_pb_text,
body.vp-dark .about-subtitle.et_pb_text p {
  font-family: var(--vp-font-sans);
  color: var(--vp-body);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}
body.vp-dark .about-hero-sub.et_pb_text,
body.vp-dark .about-hero-sub.et_pb_text p {
  font-family: var(--vp-font-sans);
  color: var(--vp-body);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ── STATS BAR ────────────────────────────────────────────────────── */
body.vp-dark .about-stat.et_pb_blurb { text-align: center; padding: 0; }
body.vp-dark .about-stat .et_pb_main_blurb_image { display: none; }
body.vp-dark .about-stat .et_pb_blurb_content { max-width: 100%; padding: 0; }
body.vp-dark .about-stat .et_pb_module_header,
body.vp-dark .about-stat .et_pb_module_header a {
  font-family: var(--vp-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--vp-white);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
body.vp-dark .about-stat .et_pb_blurb_description,
body.vp-dark .about-stat .et_pb_blurb_description p {
  font-family: var(--vp-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vp-gray-500);
}

/* ── CARD (Core Values / Manufacturing / Storage / Non-Negotiables) ──
   One shared card design, identical to the homepage/calculator cards. */
body.vp-dark .about-card.et_pb_blurb {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--vp-line);
  border-radius: var(--vp-radius-lg);
  padding: 1.5rem;
  height: 100%;
  transition: border-color var(--vp-transition), transform var(--vp-transition);
}
body.vp-dark .about-card.et_pb_blurb:hover {
  border-color: rgba(var(--vp-primary-rgb), 0.32);
  transform: translateY(-2px);
}
body.vp-dark .about-card .et_pb_main_blurb_image { display: block; text-align: left; margin: 0 0 1.1rem; line-height: 0; }
body.vp-dark .about-card .et_pb_main_blurb_image .et_pb_image_wrap,
body.vp-dark .about-card .et_pb_main_blurb_image img { width: 40px; height: 40px; display: inline-block; }
body.vp-dark .about-card .et_pb_blurb_content { max-width: 100%; padding: 0; text-align: left; }
body.vp-dark .about-card .et_pb_module_header {
  font-family: var(--vp-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--vp-white);
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}
body.vp-dark .about-card .et_pb_blurb_description,
body.vp-dark .about-card .et_pb_blurb_description p {
  font-size: 0.84rem;
  color: var(--vp-body);
  line-height: 1.7;
}
/* Even column heights across a grid row. */
body.vp-dark .about-grid .et_pb_column { display: flex; }
body.vp-dark .about-grid .et_pb_column > .et_pb_blurb { width: 100%; }
/* Bottom gutter for two-row grids (manufacturing). */
body.vp-dark .about-grid-row .et_pb_column { margin-bottom: 1.5rem; }

/* ── SCIENCE / THIRD-PARTY TESTING (2-column) ─────────────────────── */
/* The two columns are equal-height (Divi "Equalize Column Heights" on the row).
   The height is driven by the TEXT column; the image fills its column (see the
   desktop rule below), so the photo matches the adjacent content exactly. */
body.vp-dark .about-science .et_pb_row { align-items: stretch; }
body.vp-dark .about-science-text { text-align: left; }
body.vp-dark .about-science-text .about-eyebrow.et_pb_text p,
body.vp-dark .about-science-text .about-eyebrow.et_pb_text { text-align: left; }
body.vp-dark .about-science-intro.et_pb_text,
body.vp-dark .about-science-intro.et_pb_text p {
  font-family: var(--vp-font-sans);
  color: var(--vp-body);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
/* Feature list items (icon-left) — like the homepage "highest standards" list. */
body.vp-dark .about-feature.et_pb_blurb { margin-bottom: 1.5rem; }
body.vp-dark .about-feature .et_pb_blurb_content { display: flex; align-items: flex-start; gap: 0.9rem; max-width: 100%; text-align: left; }
body.vp-dark .about-feature .et_pb_main_blurb_image { margin: 0; flex-shrink: 0; line-height: 0; }
body.vp-dark .about-feature .et_pb_main_blurb_image .et_pb_image_wrap,
body.vp-dark .about-feature .et_pb_main_blurb_image img { width: 28px; height: 28px; }
body.vp-dark .about-feature .et_pb_module_header {
  font-family: var(--vp-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--vp-white);
  margin-bottom: 0.3rem;
}
body.vp-dark .about-feature .et_pb_blurb_description,
body.vp-dark .about-feature .et_pb_blurb_description p {
  font-size: 0.82rem;
  color: var(--vp-body);
  line-height: 1.65;
}

/* Vanguard image + caption overlay. */
body.vp-dark .about-sci-media { position: relative; }
body.vp-dark .about-sci-image.et_pb_image {
  margin: 0;
  border-radius: var(--vp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--vp-line);
}
body.vp-dark .about-sci-image.et_pb_image .et_pb_image_wrap { display: block; width: 100%; height: 100%; }
body.vp-dark .about-sci-image.et_pb_image img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Desktop: absolutely fill the (text-driven) column height so the photo does NOT
   inflate the row — the image ends up exactly as tall as the content beside it. */
@media (min-width: 981px) {
  body.vp-dark .about-sci-media { position: relative; display: flex; }
  body.vp-dark .about-sci-image.et_pb_image { position: absolute; inset: 0; margin: 0; height: auto; }
}
body.vp-dark .about-sci-caption.et_pb_blurb {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  margin: 0;
  padding: 0.65rem 1rem;
  max-width: calc(100% - 2.2rem);
  background: rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(var(--vp-primary-rgb), 0.4);
  border-radius: var(--vp-radius-sm);
  backdrop-filter: blur(4px);
}
body.vp-dark .about-sci-caption .et_pb_main_blurb_image { display: none; }
body.vp-dark .about-sci-caption .et_pb_blurb_content { max-width: 100%; padding: 0; text-align: left; }
body.vp-dark .about-sci-caption .et_pb_module_header {
  font-family: var(--vp-font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--vp-primary-light);
  letter-spacing: 0.01em;
  margin: 0;
}
body.vp-dark .about-sci-caption .et_pb_blurb_description,
body.vp-dark .about-sci-caption .et_pb_blurb_description p {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vp-gray-400);
  margin-top: 0.15rem;
  line-height: 1.3;
}

/* Non-negotiables: a slightly warmer (caution) border, matching the reference. */
body.vp-dark .about-nonneg .about-card.et_pb_blurb {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.18);
}
body.vp-dark .about-nonneg .about-card.et_pb_blurb:hover { border-color: rgba(239, 68, 68, 0.4); }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  /* Stacked: the image is in normal flow with a fixed, balanced height. */
  body.vp-dark .about-science .et_pb_column { width: 100% !important; }
  body.vp-dark .about-sci-media { margin-top: 2rem; position: relative; }
  body.vp-dark .about-sci-image.et_pb_image { position: static; }
  body.vp-dark .about-sci-image.et_pb_image img { height: 360px; }
}
@media (max-width: 480px) {
  body.vp-dark .about-sci-image.et_pb_image img { height: 260px; }
}
@media (max-width: 767px) {
  body.vp-dark .about-hero.et_pb_section { min-height: 340px; }
  body.vp-dark .about-hero .et_pb_row { padding: 3.5rem 0; }
  body.vp-dark .about-stats.et_pb_section,
  body.vp-dark .about-values.et_pb_section,
  body.vp-dark .about-science.et_pb_section,
  body.vp-dark .about-mfg.et_pb_section,
  body.vp-dark .about-storage.et_pb_section,
  body.vp-dark .about-nonneg.et_pb_section { padding: 3.25rem 1.25rem; }
  body.vp-dark .about-stat .et_pb_module_header { font-size: 1.6rem; }
  body.vp-dark .about-stat.et_pb_blurb { margin-bottom: 1.25rem; }
}
