/*
  equipment.css — Crane Processing equipment catalog
  Styles the photo-card grid in src/equipment.html.
  Tokens come from base.css (--cream / --charcoal / --red / --gold / --muted).
*/

/* ── Hero (text band, no photo) ── */
.eq-hero {
  background: linear-gradient(160deg, #17120E 0%, #1B1713 55%, #241A0E 100%);
  padding: calc(2.75rem + 64px) 1.5rem 2.75rem;
  border-bottom: 1px solid rgba(199,146,58,.16);
}
.eq-hero-inner { max-width: 1100px; margin: 0 auto; }
.eq-hero-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #C7923A);
  border: 1px solid var(--gold, #C7923A);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.eq-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 900;
  color: var(--cream, #F4E6D3);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 680px;
}
.eq-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(244,230,211,.66);
  margin: 0 0 1.6rem;
  max-width: 600px;
}
.eq-hero-trust {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(199,146,58,.85);
  margin-top: 1.4rem;
}

/* ── Section + grid ── */
.eq-section {
  padding: 3.5rem 1.5rem 3.5rem;
  background: #F5F0E8;
  border-top: 1px solid rgba(80,50,25,.06);
}
.eq-inner { max-width: 1100px; margin: 0 auto; }
.eq-section .section-eyebrow { color: var(--gold, #C7923A); }
.eq-section .section-title   { color: var(--charcoal, #1B1713); margin-bottom: 0.6rem; }
.eq-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted, #5C4F3C);
  margin: 0 0 2.25rem;
  max-width: 640px;
}

.eq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.eq-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .eq-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eq-grid, .eq-grid--two { grid-template-columns: 1fr; } }

/* ── Card ── */
.eq-card {
  display: flex;
  flex-direction: column;
  background: #FDFAF5;
  border: 1px solid rgba(80,50,25,.10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(28,18,9,.04),
    0 10px 30px rgba(28,18,9,.06);
  transition: transform 0.18s cubic-bezier(0.16,1,0.3,1), box-shadow 0.18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .eq-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(28,18,9,.12); }
}
.eq-card--featured { border-color: rgba(199,146,58,.55); border-top: 3px solid var(--gold, #C7923A); }

/* ── Media panel — white so product shots read as a matched set ── */
.eq-card-media {
  position: relative;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(80,50,25,.08);
  aspect-ratio: 5 / 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}
.eq-card-media img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Placeholder shown until an approved photo is dropped in (empty .eq-card-media) */
.eq-card-media::after {
  content: 'PHOTO PENDING';
  position: absolute;
  z-index: 0;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(80,50,25,.25);
  pointer-events: none;
}
/* Hide the placeholder label once a real photo is present */
.eq-card-media:has(img)::after { content: none; }

/* "Recommended" / "Most popular" stamp */
.eq-card-stamp {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold, #C7923A);
  padding: 0.26rem 0.55rem;
  border-radius: 6px;
}

/* ── Body ── */
.eq-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.6rem 1.7rem;
}

.eq-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(154,106,34,.95);
  background: rgba(199,146,58,.12);
  padding: 0.26rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.7rem;
}

.eq-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal, #1B1713);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.eq-card-best {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted, #5C4F3C);
  margin: 0 0 1rem;
}

/* Platform-scoping note (e.g. Clover is not on Elavon) */
.eq-card-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted, #5C4F3C);
  background: rgba(80, 50, 25, .05);
  border-left: 2px solid rgba(199, 146, 58, .5);
  padding: 0.5rem 0.7rem;
  border-radius: 0 6px 6px 0;
  margin: 0 0 1rem;
}

.eq-card-specs {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  border-top: 1px solid rgba(80,50,25,.08);
}
.eq-card-specs li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(80,50,25,.07);
  align-items: baseline;
}
.eq-card-specs li span:first-child {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted, #5C4F3C);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 86px;
  opacity: 0.7;
}
.eq-card-specs li span:last-child { color: var(--charcoal, #1B1713); }

/* ── Collapsible specs ("Glance → Expand") — native <details>, no JS ── */
.eq-card-specs-acc {
  border-top: 1px solid rgba(80,50,25,.08);
  margin: 0 0 1rem;
}
.eq-card-specs-acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-dark, #9A6A22);
}
.eq-card-specs-acc > summary::-webkit-details-marker { display: none; }
.eq-card-specs-acc > summary::after {
  content: '＋';
  font-size: 13px;
  line-height: 1;
  color: var(--gold, #C7923A);
}
.eq-card-specs-acc[open] > summary { color: var(--charcoal, #1B1713); }
.eq-card-specs-acc[open] > summary::after { content: '−'; }
.eq-card-specs-acc .eq-card-specs { border-top: none; margin: 0 0 0.4rem; }

/* ── Price block ── */
.eq-card-price {
  margin-top: auto;
  padding-top: 0.4rem;
}
.eq-card-price-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal, #1B1713);
  line-height: 1.1;
  letter-spacing: -0.5px;
  display: block;
}
.eq-card-price-unit {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted, #5C4F3C);
  letter-spacing: 0;
}
.eq-card-price-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal, #1B1713);
  display: block;
  line-height: 1.15;
}
.eq-card-price-sub {
  display: block;
  font-size: 12.5px;
  color: var(--muted, #5C4F3C);
  margin-top: 0.3rem;
}

/* ── CTA row ── */
.eq-card-cta {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.eq-btn {
  flex: 1;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}
.eq-btn--primary { background: var(--cta, #C07820); color: #fff; }
.eq-btn--primary:hover { background: var(--gold-dark, #9A6A22); }
.eq-btn--ghost {
  background: transparent;
  color: var(--charcoal, #1B1713);
  border-color: rgba(80,50,25,.28);
}
.eq-btn--ghost:hover { border-color: var(--gold, #C7923A); color: var(--gold-dark, #9A6A22); }

/* ── Footnote under the grid ── */
.eq-footnote {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted, #5C4F3C);
  text-align: center;
  max-width: 760px;
  margin: 2.25rem auto 0;
}

/* ── Stagger entrance (works with scroll-reveal.js .reveal/.visible) ── */
.reveal-stagger .eq-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.reveal-stagger.visible .eq-card { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible .eq-card:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible .eq-card:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.visible .eq-card:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible .eq-card:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.visible .eq-card:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible .eq-card:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger.visible .eq-card:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible .eq-card:nth-child(8) { transition-delay: 0.40s; }
.reveal-stagger.visible .eq-card:nth-child(9) { transition-delay: 0.45s; }
.reveal-stagger.visible .eq-card:nth-child(10) { transition-delay: 0.50s; }

/* ══ POPULAR SETUPS / BUNDLES ══ */
.eq-bundles {
  padding: 2.75rem 1.5rem 3rem;
  background: #EBD8BC;
  border-top: 1px solid rgba(80,50,25,.10);
}
.eq-bundles .section-eyebrow { color: var(--gold, #C7923A); }
.eq-bundles .section-title   { color: var(--charcoal, #1B1713); margin-bottom: 0.6rem; }

.eq-bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .eq-bundle-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eq-bundle-grid { grid-template-columns: 1fr; } }

.eq-bundle-card {
  display: flex;
  flex-direction: column;
  background: #FDFAF5;
  border: 1px solid rgba(80,50,25,.12);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(28,18,9,.05), 0 4px 16px rgba(28,18,9,.07);
}
.eq-bundle-card--featured { border-color: rgba(199,146,58,.55); border-top: 3px solid var(--gold, #C7923A); }

.eq-bundle-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(154,106,34,.95);
  background: rgba(199,146,58,.12);
  padding: 0.26rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.7rem;
}
.eq-bundle-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal, #1B1713);
  line-height: 1.2;
  margin: 0 0 0.35rem;
}
.eq-bundle-devices {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-dark, #9A6A22);
  margin: 0 0 0.7rem;
}
.eq-bundle-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted, #5C4F3C);
  margin: 0 0 1rem;
}
.eq-bundle-price {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(80,50,25,.09);
  margin-bottom: 1rem;
}
.eq-bundle-card .eq-btn { flex: none; width: 100%; }
