/* ==========================================================================
   MS Dental Works — Equipment pages (tech-west-equipment, new-dental-air-compressors,
   new-dental-vacuum-systems, dental-equipment-installation, new-dental-office-equipment
   + their es/ twins). Rewritten 2026-09-22 on the site's own tokens (css/tokens.css):
   Plus Jakarta Sans headings · DM Sans body · JetBrains Mono for codes/eyebrows.
   Loads AFTER tokens/homepage/homepage-prod/styles.css. Every class is generic (eq-*) so
   all five pages share this one file and add nothing of their own.
   Laws: one amber action per region · teal = phone pill + accents · pill radius 999px ·
   white cards, 1px rgba(26,47,63,.08), radius 16px, no boxes-in-boxes.
   ========================================================================== */

:root {
  --eq-line: rgba(26, 47, 63, 0.08);
  --eq-line-strong: rgba(26, 47, 63, 0.14);
  --eq-teal-tint: rgba(60, 200, 200, 0.12);
  --eq-wrap: 1200px;
}

/* ---- Layout primitives ---- */
.eq-wrap { max-width: var(--eq-wrap); margin: 0 auto; padding: 0 24px; }
.eq-section { padding: 80px 0; background: #fff; }
.eq-section--bone { background: var(--bone); }
.eq-section--tight { padding: 56px 0; }
.eq-section-head { max-width: 720px; margin-bottom: 40px; }
.eq-section-head h2 {
  font-family: var(--font-heading); font-weight: 700; color: var(--navy);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.12; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.eq-section-head p { font-size: 1.05rem; line-height: 1.6; color: var(--gray-500); margin: 0; }
.eq-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Eyebrow: mono · uppercase · teal-deep · 11px · .14em (SPEC §2) */
.eq-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep);
  margin: 0 0 14px;
}
.eq-eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; }

/* Mono code badge (CMP / VAC / INST / PLAN / TW / 01) */
.eq-code {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--teal-deep); background: var(--eq-teal-tint);
  padding: 5px 9px; border-radius: 6px; line-height: 1; white-space: nowrap;
}

/* ---- Buttons (pill radius; amber = THE action, teal = phone) ---- */
.eq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  line-height: 1.2; white-space: nowrap; transition: background .15s ease, transform .15s ease;
}
.eq-btn:hover { transform: translateY(-1px); }
.eq-btn-amber { background: var(--amber); color: var(--navy); }
.eq-btn-amber:hover { background: var(--amber-hover); color: var(--navy); }
.eq-btn-phone { background: var(--teal); color: var(--navy); font-variant-numeric: tabular-nums; }
.eq-btn-phone:hover { background: var(--teal-light); color: var(--navy); }
.eq-btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25); font-weight: 700; }
.eq-btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
.eq-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.eq-btn:focus-visible, .eq-choice:focus-visible, .eq-subnav a:focus-visible, .eq-link:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px;
}

/* Inline text link with arrow (teal-deep, Plus Jakarta 700) */
.eq-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 700; font-size: 14.5px;
  color: var(--teal-deep); text-decoration: none;
}
.eq-link:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Small muted note */
.eq-note { font-size: 13.5px; line-height: 1.6; color: var(--gray-500); margin: 0; }
.eq-note a { color: var(--teal-deep); font-weight: 600; }

/* ---- Ribbon language slot (EN ⇄ ES twin link lives in the shared ribbon) ---- */
.hp-ribbon-lang a {
  font-family: var(--font-heading); font-weight: 800; font-size: 11.5px; letter-spacing: 0.08em;
  color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px; padding: 2px 9px; line-height: 1.4;
}
.hp-ribbon-lang a:hover { background: rgba(255,255,255,0.14); text-decoration: none; }

/* ==========================================================================
   HERO — navy-900 gradient, breadcrumb, eyebrow, H1 2.8rem/700/white/-.02em,
   one-line sub, amber primary + teal phone pill. Side: a white card (brand/summary).
   ========================================================================== */
.eq-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-600) 100%);
}
.eq-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(60,200,200,0.14), transparent 60%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.eq-hero .eq-wrap { position: relative; }
.eq-crumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 18px 0 0; font-size: 13px; color: rgba(255,255,255,0.6);
}
.eq-crumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.eq-crumb a:hover { color: #fff; }
.eq-crumb span { opacity: .55; }
.eq-hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px; align-items: center; padding: 40px 0 64px;
}
.eq-hero .eq-eyebrow { color: var(--teal-light); }
.eq-hero h1 {
  font-family: var(--font-heading); font-weight: 700; color: #fff;
  font-size: 2.8rem; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px;
  text-shadow: none;
}
.eq-hero h1 em { font-style: italic; color: var(--teal); font-weight: 700; }
.eq-hero-sub { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 58ch; margin: 0 0 28px; }
.eq-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.eq-hero-foot { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.6); }
.eq-hero-foot a { color: var(--teal-light); font-weight: 600; }

/* Hero side card: white, one level, no nested boxes */
.eq-hero-card {
  background: #fff; color: var(--gray-700);
  border: 1px solid var(--eq-line); border-radius: 16px;
  padding: 26px 28px; box-shadow: 0 20px 50px rgba(14,27,37,0.28);
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.eq-hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eq-brand-logo { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--eq-line); }
.eq-brand-logo img { height: 72px; width: auto; flex: none; }
.eq-brand-dealer {
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--navy); line-height: 1.3;
}
.eq-brand-dealer small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); margin-top: 4px; }
.eq-hero-card-label { font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--navy); margin: 0; }
.eq-hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eq-hero-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--gray-700); }
.eq-hero-card li::before {
  content: '✓'; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--eq-teal-tint); color: var(--teal-deep); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.eq-hero-card .eq-note { padding-top: 12px; border-top: 1px solid var(--eq-line); }

/* ==========================================================================
   SUB-NAV — a row of pills under the hero (the five equipment pages; current active)
   ========================================================================== */
.eq-subnav { background: #fff; border-bottom: 1px solid var(--eq-line); }
.eq-subnav .eq-wrap {
  display: flex; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.eq-subnav .eq-wrap::-webkit-scrollbar { display: none; }
.eq-subnav-label {
  flex: none; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); margin-right: 6px;
}
.eq-subnav a {
  flex: none; display: inline-flex; align-items: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 13.5px; color: var(--navy);
  border: 1px solid var(--eq-line-strong); border-radius: 999px; padding: 8px 16px;
  text-decoration: none; background: #fff; transition: background .15s ease, border-color .15s ease;
}
.eq-subnav a:hover { background: var(--gray-50); border-color: var(--teal); color: var(--navy); }
.eq-subnav a[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ==========================================================================
   EQUIPMENT CARDS — white cards with a mono code badge, clean auto-fit grid
   ========================================================================== */
.eq-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.eq-card {
  background: #fff; border: 1px solid var(--eq-line); border-radius: 16px;
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.eq-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(60,200,200,0.45); }
.eq-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.eq-card-top svg { width: 64px; height: 44px; color: var(--navy-500); flex: none; }
.eq-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
.eq-card p { font-size: 15px; line-height: 1.6; color: var(--gray-500); margin: 0; }
.eq-card-actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.eq-source { font-size: 12.5px; color: var(--gray-500); text-decoration: none; }
.eq-source:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.eq-cards + .eq-note { margin-top: 22px; max-width: 80ch; }

/* ==========================================================================
   DECISIONS — 3-up numbered points on bone
   ========================================================================== */
.eq-decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* Four-card decision bands: clean 2x2 from ~800px up, one column on phones */
.eq-decisions--four { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }

.eq-decision {
  background: #fff; border: 1px solid var(--eq-line); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.eq-decision .eq-code { align-self: flex-start; }
.eq-decision h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--navy); margin: 4px 0 0; }
.eq-decision p { font-size: 15px; line-height: 1.6; color: var(--gray-500); margin: 0; }

/* ==========================================================================
   STEPS — the 4-step working plan
   ========================================================================== */
.eq-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: eq-step; }
.eq-step { border-top: 2px solid var(--teal); padding-top: 18px; min-width: 0; }
.eq-step .eq-code { background: transparent; padding: 0; color: var(--teal-deep); margin-bottom: 12px; }
.eq-step h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 0 0 8px; }
.eq-step p { font-size: 14.5px; line-height: 1.6; color: var(--gray-500); margin: 0; }

/* ==========================================================================
   FAQ — reuses the site's .faq-item accordion (styles.css + js/site.js)
   ========================================================================== */
.eq-faq { max-width: 800px; margin: 0 auto; }
.eq-faq .eq-section-head { margin-left: auto; margin-right: auto; text-align: center; }
.eq-faq .faq-item { background: #fff; border: 1px solid var(--eq-line); border-radius: 12px; }
.eq-faq .faq-item.open { border-color: var(--teal); }
.eq-faq .faq-question { font-weight: 700; }

/* ==========================================================================
   RELATED — the other equipment pages + repair/planning resources
   ========================================================================== */
.eq-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.eq-related a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--eq-line); border-radius: 12px; padding: 16px 18px;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.eq-related a:hover { border-color: var(--teal); transform: translateY(-1px); color: var(--navy); }
.eq-related a::after { content: '→'; color: var(--teal-deep); font-weight: 700; flex: none; }
.eq-resources { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.eq-resources li { margin: 0; }

/* ==========================================================================
   INQUIRY — #quote. Side column + form. Markup follows js/equipment.js.
   ========================================================================== */
.eq-quote { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.eq-quote-side { position: sticky; top: 24px; }
.eq-quote-side .eq-section-head { margin-bottom: 18px; }
.eq-quote-side .eq-note { margin-bottom: 14px; max-width: 42ch; }
.eq-quote-side .eq-btn-phone { margin: 6px 0 14px; }
.eq-form {
  background: #fff; border: 1px solid var(--eq-line); border-radius: 16px; padding: 28px;
}
.eq-form .eq-note { margin-bottom: 18px; }
.eq-form fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.eq-form legend { font-family: var(--font-heading); font-weight: 700; font-size: 13.5px; color: var(--navy); margin-bottom: 10px; padding: 0; }
.eq-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.eq-choice {
  font-family: var(--font-heading); font-weight: 600; font-size: 13.5px; color: var(--navy);
  background: #fff; border: 1px solid var(--eq-line-strong); border-radius: 999px; padding: 9px 15px;
  min-height: 40px; cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.eq-choice:hover { border-color: var(--teal); background: var(--gray-50); }
.eq-choice[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.eq-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.eq-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eq-field.full { grid-column: 1 / -1; }
.eq-field label { font-family: var(--font-heading); font-weight: 600; font-size: 13.5px; color: var(--navy); }
.eq-field input, .eq-field select, .eq-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--gray-700);
  background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px 14px;
  min-height: 48px; transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.eq-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F8A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.eq-field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.eq-field input::placeholder, .eq-field textarea::placeholder { color: var(--gray-300); opacity: 1; }
.eq-field input:focus, .eq-field select:focus, .eq-field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--eq-teal-tint);
}
.eq-field-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--gray-500); margin-top: -6px; }
.eq-privacy { font-size: 12.5px; line-height: 1.55; color: var(--gray-500); margin: 18px 0 16px; }
.eq-form .eq-btn { width: auto; }
.eq-form noscript p { margin: 14px 0 0; font-size: 14px; color: var(--gray-700); }
.eq-quote-status {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; line-height: 1.55;
  white-space: pre-line; border: 1px solid var(--eq-line); background: var(--gray-50); color: var(--gray-700);
}
.eq-quote-status:empty { display: none; }
.eq-quote-status[data-state="preview"], .eq-quote-status[data-state="selected"], .eq-quote-status[data-state="sending"] {
  background: var(--amber-soft); border-color: rgba(245,158,11,0.45); color: #6B4A05;
}
.eq-quote-status[data-state="error"] { background: var(--emergency-bg); border-color: rgba(225,29,72,0.35); color: #9F1239; }
.eq-quote-status[data-state="success"] { background: #ECFDF5; border-color: rgba(5,150,105,0.35); color: #065F46; }
.eq-quote-status:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.eq-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* js/equipment.js needs .eq-header/.eq-menu to exist before it wires the form; these inert hooks are never shown. */
.eq-js-hooks { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .eq-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 0 48px; }
  .eq-hero-card { max-width: 560px; }
  .eq-decisions { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .eq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .eq-quote { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .eq-quote-side { position: static; }
}
@media (max-width: 767px) {
  .eq-wrap { padding: 0 16px; }
  .eq-section { padding: 52px 0; }
  .eq-section--tight { padding: 40px 0; }
  .eq-section-head { margin-bottom: 26px; }
  .eq-hero h1 { font-size: 1.75rem; }
  .eq-hero-sub { font-size: 15.5px; }
  .eq-hero-inner { padding: 24px 0 40px; }
  .eq-actions .eq-btn { flex: 1 1 auto; min-width: 0; padding: 14px 18px; font-size: 15px; white-space: normal; text-align: center; }
  .eq-hero-card { padding: 20px; box-shadow: var(--shadow); }
  .eq-brand-logo img { height: 56px; }
  .eq-subnav .eq-wrap {
    padding-right: 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
            mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .eq-cards, .eq-decisions, .eq-related { grid-template-columns: minmax(0, 1fr); }
  .eq-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .eq-card, .eq-decision { padding: 22px; }
  .eq-form { padding: 20px 16px; }
  .eq-form-grid { grid-template-columns: minmax(0, 1fr); }
  .eq-field.full, .eq-field-note { grid-column: auto; }
  .eq-form .eq-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .eq-btn, .eq-card, .eq-related a, .eq-choice, .eq-subnav a, .eq-field input, .eq-field select, .eq-field textarea { transition: none; }
  .eq-btn:hover, .eq-card:hover, .eq-related a:hover { transform: none; }
}
