/* ===========================================================================
   Manufacturing Equipment sample pages
   (project_builder/showcase/equipment_detail.html)

   A landing-page layout: a product-style hero (photo viewer with a thumbnail
   rail beside the plant summary), then full-width sections on alternating
   backgrounds with pill eyebrows, rounded cards and soft shadows. Warm
   amber/orange to match the manufacturing gallery. No inline styles anywhere
   in the template (CSP ratchet).
   =========================================================================== */

.eq-page {
  --eq-ink: #0f172a;
  --eq-body: #334155;
  --eq-muted: #64748b;
  --eq-line: #e2e8f0;
  --eq-soft: #fff9f2;
  --eq-mist: #f8fafc;
  --eq-brand: #b45309;
  --eq-brand-deep: #92400e;
  --eq-accent: #f59e0b;
  --eq-tint: #fff7ed;
  --eq-radius: 20px;
  --eq-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -16px rgba(15, 23, 42, .22);
  --eq-shadow-lift: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 48px -20px rgba(15, 23, 42, .32);
  --eq-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------------------------------------------------------------- buttons */
.eq-page .eq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--eq-ease), box-shadow .2s ease;
}
.eq-page .eq-btn:hover { transform: translateY(-1px); }
.eq-page .eq-btn--primary { background: var(--eq-brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(180, 83, 9, .7); }
.eq-page .eq-btn--primary:hover { background: var(--eq-brand-deep); color: #fff; }
.eq-page .eq-btn--outline { border-color: var(--eq-ink); color: var(--eq-ink); background: #fff; }
.eq-page .eq-btn--outline:hover { background: var(--eq-ink); color: #fff; }
.eq-page .eq-btn--ghost { border-color: var(--eq-line); color: var(--eq-ink); background: #fff; padding: .6rem 1.1rem; font-size: .88rem; }
.eq-page .eq-btn--ghost:hover { border-color: var(--eq-brand); color: var(--eq-brand); }
.eq-page .eq-btn--light { background: #fff; color: var(--eq-brand-deep); }
.eq-page .eq-btn--light:hover { color: var(--eq-brand-deep); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.eq-page .eq-btn--line { border-color: rgba(255, 255, 255, .8); color: #fff; }
.eq-page .eq-btn--line:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ------------------------------------------------------------------- hero */
.eq-hero {
  padding: 150px 0 56px;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(245, 158, 11, .16), transparent 70%),
    radial-gradient(700px 360px at 0% 100%, rgba(180, 83, 9, .08), transparent 70%),
    linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
}
.eq-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 24px;
  font-size: .88rem;
  color: var(--eq-muted);
}
.eq-crumbs a { color: var(--eq-body); text-decoration: none; }
.eq-crumbs a:hover { color: var(--eq-brand); }
.eq-crumbs i { font-size: .6rem; }

.eq-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* viewer */
.eq-viewer__stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--eq-radius);
  background: var(--eq-mist);
  box-shadow: var(--eq-shadow-lift);
}
.eq-viewer__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eq-viewer__empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 5rem;
  color: var(--eq-accent);
}
.eq-viewer__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--eq-ink);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--eq-ease);
}
.eq-viewer__nav:hover { background: #fff; transform: scale(1.06); }
.eq-viewer__nav--prev { left: 16px; }
.eq-viewer__nav--next { right: 16px; }
.eq-viewer__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .7rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, .78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .85rem;
}
.eq-viewer__caption strong { font-size: 1rem; }
.eq-viewer__caption span:last-child { color: rgba(255, 255, 255, .8); flex-basis: 100%; }
.eq-tagchip {
  padding: .15rem .55rem;
  border-radius: 6px;
  background: var(--eq-accent);
  color: var(--eq-ink);
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: .75rem;
  font-weight: 700;
}
.eq-viewer__note {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--eq-muted);
  font-size: .7rem;
  font-weight: 600;
}

.eq-thumbs {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  padding: 4px 2px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.eq-thumb {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 104px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .2s ease, transform .2s var(--eq-ease);
}
.eq-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.eq-thumb__tag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 0 .35rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, .75);
  color: #fff;
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: .62rem;
  font-weight: 700;
}
.eq-thumb:hover { transform: translateY(-2px); }
.eq-thumb.is-active,
.eq-thumb:focus-visible { border-color: var(--eq-brand); outline: none; }

/* summary */
.eq-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--eq-tint);
  color: var(--eq-brand);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.eq-title {
  margin: 16px 0 12px;
  color: var(--eq-ink);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.eq-lead { margin: 0 0 22px; color: var(--eq-body); font-size: 1.02rem; line-height: 1.65; }

.eq-budget {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 18px 20px;
  border: 1px solid #fde7c7;
  border-radius: 16px;
  background: #fff;
}
.eq-budget__label { color: var(--eq-muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eq-budget__value { color: var(--eq-ink); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.eq-budget__meta { color: var(--eq-muted); font-size: .88rem; }

.eq-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }

.eq-facts { margin: 0; border-top: 1px solid var(--eq-line); }
.eq-facts div {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--eq-line);
}
.eq-facts dt { color: var(--eq-muted); font-weight: 500; }
.eq-facts dd { margin: 0; color: var(--eq-ink); font-weight: 600; }

.eq-downloads { margin-top: 20px; }
.eq-downloads__title { margin: 0 0 8px; color: var(--eq-ink); font-weight: 700; }
.eq-downloads ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.eq-downloads a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .8rem;
  border: 1px solid var(--eq-line);
  border-radius: 12px;
  background: #fff;
  color: var(--eq-ink);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.eq-downloads a:hover { border-color: var(--eq-brand); color: var(--eq-ink); box-shadow: 0 6px 16px -8px rgba(180, 83, 9, .5); }
.eq-downloads a i { color: var(--eq-brand); }
.eq-downloads small {
  margin-left: auto;
  padding: .05rem .4rem;
  border-radius: 4px;
  background: var(--eq-tint);
  color: var(--eq-brand);
  font-size: .68rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------- tabs */
.eq-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 1px solid var(--eq-line);
  border-bottom: 1px solid var(--eq-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}
.eq-tabs .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.eq-tabs a {
  flex: 0 0 auto;
  padding: .5rem 1rem;
  border-radius: 999px;
  color: var(--eq-body);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.eq-tabs a:hover { background: var(--eq-tint); color: var(--eq-brand); }

/* --------------------------------------------------------------- sections */
.eq-section { padding: 80px 0; scroll-margin-top: 60px; }
.eq-section--alt { background: var(--eq-soft); }
.eq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 36px;
}
.eq-head--center { justify-content: center; text-align: center; }
.eq-head__actions { display: flex; gap: 8px; }
.eq-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--eq-tint);
  color: var(--eq-brand);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eq-section--alt .eq-eyebrow { background: #fff; }
.eq-head__title {
  margin: 0;
  color: var(--eq-ink);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.eq-head__sub { max-width: 640px; margin: 8px 0 0; color: var(--eq-muted); font-size: 1rem; }

/* equipment cards */
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.eq-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--eq-line);
  border-radius: var(--eq-radius);
  background: #fff;
  box-shadow: var(--eq-shadow);
  transition: transform .25s var(--eq-ease), box-shadow .25s ease;
}
.eq-card:hover { transform: translateY(-4px); box-shadow: var(--eq-shadow-lift); }
.eq-card__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.eq-card__photo { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.eq-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eq-card__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--eq-ink);
  opacity: 0;
  transition: opacity .2s ease;
}
.eq-card__photo:hover .eq-card__zoom,
.eq-card__photo:focus-visible .eq-card__zoom { opacity: 1; }
.eq-card__icon { display: grid; place-items: center; height: 100%; color: var(--eq-brand); font-size: 3rem; }
.eq-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: .2rem .55rem;
  border-radius: 6px;
  background: var(--eq-ink);
  color: #fff;
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: .72rem;
  font-weight: 700;
}
.eq-card__body { flex: 1; padding: 18px 20px 8px; }
.eq-card__stage { color: var(--eq-brand); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eq-card__name { margin: 6px 0 8px; color: var(--eq-ink); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.eq-card__spec { margin: 0 0 8px; color: var(--eq-ink); font-size: .86rem; font-weight: 600; }
.eq-card__desc { margin: 0; color: var(--eq-muted); font-size: .88rem; line-height: 1.55; }
.eq-card__meta {
  display: grid;
  grid-template-columns: .6fr .8fr 1.4fr;
  margin: 12px 0 0;
  border-top: 1px solid var(--eq-line);
}
.eq-card__meta div { padding: 10px 12px; }
.eq-card__meta div + div { border-left: 1px solid var(--eq-line); }
.eq-card__meta dt { color: var(--eq-muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eq-card__meta dd { margin: 2px 0 0; color: var(--eq-ink); font-size: .86rem; font-weight: 700; }

.eq-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--eq-ink);
  color: #fff;
}
.eq-totals div { padding: 18px 22px; }
.eq-totals div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.eq-totals span { display: block; color: rgba(255, 255, 255, .65); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eq-totals strong { display: block; margin-top: 4px; font-size: 1.2rem; }
.eq-note { margin: 12px 0 0; color: var(--eq-muted); font-size: .82rem; }

/* diagrams */
.eq-diagram {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--eq-line);
  border-radius: var(--eq-radius);
  background: #fff;
  box-shadow: var(--eq-shadow);
}
.eq-diagram a { display: block; cursor: zoom-in; }
.eq-diagram img { display: block; width: 100%; min-width: 760px; height: auto; }

/* process table */
.eq-table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--eq-line); border-radius: 16px; background: #fff; }
.eq-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; }
.eq-table th {
  padding: 14px 16px;
  background: var(--eq-mist);
  color: var(--eq-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.eq-table td { padding: 14px 16px; border-top: 1px solid var(--eq-line); color: var(--eq-body); vertical-align: top; }
.eq-table strong { color: var(--eq-ink); }
.eq-table__num { color: var(--eq-brand); font-weight: 800; }
.eq-table__detail { display: block; margin-top: 2px; color: var(--eq-muted); font-size: .85rem; }
.eq-table__side { display: inline-flex; align-items: center; gap: .35rem; margin-top: 6px; color: #c2410c; font-size: .8rem; font-weight: 600; }
.eq-table__eq { display: block; white-space: nowrap; }
.eq-table code { color: var(--eq-brand); font-size: .8rem; font-weight: 700; }

/* features */
.eq-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.eq-feature {
  padding: 28px;
  border-radius: var(--eq-radius);
  background: #fff;
  box-shadow: var(--eq-shadow);
}
.eq-feature__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--eq-accent), var(--eq-brand));
  color: #fff;
  font-size: 1.3rem;
}
.eq-feature h3 { margin: 0 0 8px; color: var(--eq-ink); font-size: 1.1rem; font-weight: 700; }
.eq-feature p { margin: 0; color: var(--eq-muted); font-size: .92rem; line-height: 1.6; }

.eq-spec-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.eq-spec { padding: 24px 28px; border-radius: var(--eq-radius); background: #fff; box-shadow: var(--eq-shadow); }
.eq-spec__title { display: flex; align-items: center; gap: .6rem; margin: 0 0 12px; color: var(--eq-ink); font-size: 1.1rem; font-weight: 700; }
.eq-spec__title i { color: var(--eq-brand); }
.eq-spec dl { margin: 0; }
.eq-spec dl div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--eq-line); }
.eq-spec dt { color: var(--eq-muted); font-weight: 500; }
.eq-spec dd { margin: 0; color: var(--eq-ink); font-weight: 600; }

/* SOPs */
.eq-sops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.eq-sop { padding: 26px 28px; border: 1px solid var(--eq-line); border-radius: var(--eq-radius); background: #fff; }
.eq-sop__title { display: flex; align-items: center; gap: .75rem; margin: 0 0 14px; color: var(--eq-ink); font-size: 1.1rem; font-weight: 700; }
.eq-sop__title span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--eq-tint);
  color: var(--eq-brand);
  font-size: .85rem;
  font-weight: 800;
}
.eq-sop ol { margin: 0; padding-left: 1.2rem; }
.eq-sop li { margin-bottom: 8px; color: var(--eq-body); font-size: .93rem; line-height: 1.55; }
.eq-sop li::marker { color: var(--eq-brand); font-weight: 700; }

/* process documents */
.eq-docs { display: grid; gap: 12px; }
.eq-doc { border: 1px solid var(--eq-line); border-radius: 16px; background: #fff; }
.eq-doc summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 16px 20px;
  color: var(--eq-ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.eq-doc summary::-webkit-details-marker { display: none; }
.eq-doc summary::after { content: "+"; margin-left: auto; color: var(--eq-brand); font-size: 1.3rem; font-weight: 400; }
.eq-doc[open] summary::after { content: "−"; }
.eq-doc summary i { color: var(--eq-brand); }
.eq-doc__num { color: var(--eq-muted); font-size: .8rem; }
.eq-doc__body { padding: 0 20px 20px; overflow-x: auto; color: var(--eq-body); font-size: .93rem; }
.eq-doc__body h3 { margin: 16px 0 8px; color: var(--eq-ink); font-size: 1rem; font-weight: 700; }
.eq-doc__body table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: .88rem; }
.eq-doc__body th,
.eq-doc__body td { padding: 8px 12px; border-bottom: 1px solid var(--eq-line); text-align: left; }
.eq-doc__body th { background: var(--eq-mist); color: var(--eq-ink); }
.eq-doc__body ul,
.eq-doc__body ol { padding-left: 1.2rem; }

/* closing CTA */
.eq-cta { padding: 0 0 80px; background: var(--eq-soft); }
.eq-cta__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 48px;
  border-radius: 28px;
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(255, 255, 255, .18), transparent 70%),
    linear-gradient(120deg, var(--eq-brand-deep), var(--eq-brand) 50%, var(--eq-accent));
  color: #fff;
}
.eq-cta__panel h2 { margin: 0 0 6px; color: #fff; font-size: 1.8rem; font-weight: 800; }
.eq-cta__panel p { max-width: 520px; margin: 0; color: rgba(255, 255, 255, .88); }
.eq-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 991.98px) {
  .eq-hero { padding-top: 120px; }
  .eq-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .eq-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-totals div:nth-child(3) { border-left: 0; }
  .eq-totals div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 767.98px) {
  .eq-section { padding: 56px 0; }
  .eq-ctas,
  .eq-downloads ul,
  .eq-spec-tables,
  .eq-sops,
  .eq-features { grid-template-columns: minmax(0, 1fr); }
  .eq-cta__panel { padding: 32px 24px; }
  .eq-viewer__nav { width: 38px; height: 38px; margin-top: -19px; }
  .eq-viewer__caption span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .eq-page .eq-btn,
  .eq-card,
  .eq-thumb,
  .eq-viewer__nav { transition: none; }
}
