/* ===== PAGE SHELL ===== */
.service-page { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.service-page article { max-width: 860px; margin: 0 auto; }

/* ===== CONTENT SPACING (hero excluded) ===== */
main > section:not(:first-child) { padding-left: 20px; padding-right: 20px; }

/* ===== HERO SECTION ===== */
.ohmz-hero { background: linear-gradient(135deg, var(--ohMz-dark) 0%, #2d2d4a 100%); color: #fff; padding: 3rem 1rem; text-align: center; }
.ohmz-hero h1 { font-size: 2.2rem; font-weight: 700; margin: 0 auto 1rem; max-width: 800px; line-height: 1.2; color: var(--ohMz-green); }
.ohmz-hero .hero-sub { font-size: 1.1rem; opacity: 0.9; max-width: 650px; margin: 0 auto 1.5rem; line-height: 1.5; }
.ohmz-hero .btn-primary { display: inline-block; padding: 0.85rem 2rem; background: var(--ohMz-green); color: #fff; border: none; border-radius: 4px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s; }
.ohmz-hero .btn-primary:hover { background: #008f70; }

/* ===== VIDEO HERO ===== */
.ohmz-hero-video { position: relative; overflow: hidden; min-height: 500px; display: flex; align-items: center; justify-content: center; background: var(--ohMz-dark); }
.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26,26,46,0.7); z-index: 1; }
.ohmz-hero-video .container { position: relative; z-index: 2; }
.ohmz-hero-video h1 { text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.ohmz-hero-video .hero-sub { text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

.ohmz-hero-image { position: relative; overflow: hidden; min-height: 400px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.ohmz-hero-image .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26,26,46,0.7); z-index: 1; }
.ohmz-hero-image .container { position: relative; z-index: 2; }
.ohmz-hero-image h1 { text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.ohmz-hero-image .hero-sub { text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
@media (max-width: 768px) { .ohmz-hero-image { min-height: 300px; } .ohmz-hero-image h1 { font-size: 1.6rem; } }

/* ===== SECTION HEADINGS ===== */
.service-page h2 { font-size: 1.6rem; font-weight: 600; color: var(--ohMz-dark); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ohMz-green); }
.service-page h3 { font-size: 1.2rem; font-weight: 600; color: #333; margin: 1.5rem 0 0.75rem; }

/* ===== FAILURE MODES GRID ===== */
.failure-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.failure-mode-card { background: var(--ohMz-gray); padding: 1.25rem; border-radius: 6px; border-left: 4px solid var(--ohMz-green); }
.failure-mode-card h4 { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.4rem; color: var(--ohMz-dark); }
.failure-mode-card p { font-size: 0.9rem; color: #555; margin: 0; line-height: 1.5; }

/* ===== CAPABILITIES LIST ===== */
.capability-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.capability-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.75rem; background: #fafafa; border-radius: 4px; }
.capability-item::before { content: "◆"; color: var(--ohMz-green); font-size: 0.7rem; margin-top: 0.3rem; flex-shrink: 0; }
.capability-item span { font-size: 0.95rem; color: #333; }

/* ===== PROCESS STEPS ===== */
.process-steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0; }
.process-steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #eee; }
.process-steps li:last-child { border-bottom: none; }
.process-steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; background: var(--ohMz-green); color: #fff; border-radius: 50%; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.process-steps .step-text { flex: 1; }
.process-steps .step-text strong { display: block; font-size: 1rem; color: var(--ohMz-dark); margin-bottom: 0.2rem; }
.process-steps .step-text span { font-size: 0.9rem; color: #555; }

@media (min-width: 769px) {
    .process-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: column;
        gap: 0 2rem;
    }
    .process-steps li { border-bottom: 1px solid #eee; }
    .process-steps li:nth-child(3),
    .process-steps li:nth-child(6) { border-bottom: none; }
}

/* ===== BUSINESS VALUE HIGHLIGHTS ===== */
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.value-card { padding: 1.25rem; border: 1px solid #e0e0e0; border-radius: 6px; }
.value-card h4 { font-size: 1rem; font-weight: 600; color: var(--ohMz-green); margin: 0 0 0.5rem; }
.value-card p { font-size: 0.9rem; color: #555; margin: 0; }
.value-card .card-link { display: inline-block; margin-top: 0.75rem; font-size: 0.85rem; color: var(--ohMz-green); font-weight: 600; text-decoration: none; }
.value-card .card-link:hover { text-decoration: underline; }

/* ===== WHO WE ARE (HOME) ===== */
.who-we-are { display: flex; gap: 2rem; margin: 1.5rem 0; }
.who-we-are-left { flex: 1; min-width: 0; }
.who-we-are-left p { font-size: 1rem; color: #333; line-height: 1.6; margin: 0 0 1rem; }
.who-we-are-right { flex: 1; min-width: 0; }
.who-we-are-right ul { list-style: none; padding: 0; margin: 0; }
.who-we-are-right li { padding: 0.5rem 0 0.5rem 1.25rem; border-left: 2px solid var(--ohMz-green); font-size: 0.95rem; color: #444; line-height: 1.5; }
.who-we-are-right li + li { margin-top: 0.25rem; }
.who-we-are-right li strong { color: var(--ohMz-dark); }
@media (max-width: 768px) { .who-we-are { flex-direction: column; } }

/* ===== EQUIPMENT TABLE ===== */
.equipment-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.equipment-table thead { background: var(--ohMz-dark); color: #fff; }
.equipment-table th { padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
.equipment-table td { padding: 0.6rem 1rem; border-bottom: 1px solid #e0e0e0; }
.equipment-table tbody tr:hover { background: var(--ohMz-gray); }
@media (max-width: 768px) { .equipment-table { font-size: 0.8rem; } .equipment-table th, .equipment-table td { padding: 0.5rem 0.6rem; } }

/* ===== RELATED SERVICES ===== */
.related-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; margin: 1.5rem 0; }
.related-service-link { display: block; padding: 0.75rem 1rem; border: 1px solid var(--ohMz-green); color: var(--ohMz-green); text-decoration: none; border-radius: 4px; font-size: 0.9rem; text-align: center; transition: background 0.15s, color 0.15s; }
.related-service-link:hover { background: var(--ohMz-green); color: #fff; }

/* ===== FAQ ACCORDION ===== */
.accordion-container { margin: 0; }
.accordion-item { border: 1px solid #e0e0e0; border-radius: 4px; margin-bottom: 0.5rem; }
.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1rem; cursor: pointer; background: #fafafa; font-size: 0.95rem; font-weight: 500; color: #333; transition: background 0.15s; }
.accordion-header:hover { background: #f0f0f0; }
.accordion-header.active { background: #e8f5f1; color: var(--ohMz-dark); }
.accordion-header .accordion-icon {
  width: 0 !important;
  height: 0 !important;
  display: inline-block !important;
  flex-shrink: 0;
  margin-left: 0.5rem;
  background: none !important;
  border-radius: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--ohMz-green);
  transition: transform 0.3s ease;
}
.accordion-header.active .accordion-icon { transform: rotate(180deg); }
.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  contain: content;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease;
  font-size: 16px;
  color: #67686e;
  background: #fff;
}
.accordion-content.active { padding: 20px; }
.accordion-content p { padding: 0; font-size: 0.9rem; color: #555; line-height: 1.6; margin: 0 0 1rem; }
.accordion-content p:last-child { margin-bottom: 0; }
.accordion-content .accordion-container { padding: 0 0 0.5rem 0; }
.accordion-content .accordion-item:last-child { margin-bottom: 0; }

/* FAQ Search (same structure as examples/faq-disclosure.php) */
.mw-faq-search { width: 100%; margin: 0 0 24px; }
.mw-faq-search__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #ffffff;
  font-family: "Metric Regular", Arial, sans-serif;
  font-size: 16px;
  color: #292d3a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mw-faq-search__input:focus {
  outline: none;
  border-color: var(--ohMz-green);
  box-shadow: 0 0 0 3px rgba(1, 169, 130, 0.14);
}
.mw-faq-search-empty {
  width: 100%;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #d9e1e3;
  border-radius: 8px;
  background: #f7f9f9;
  color: #566066;
}
.mw-faq-search-results { margin-top: 0.5rem; }
.mw-faq-hidden { display: none; }

/* ===== CTA SECTION ===== */
.ohmz-cta { text-align: center; padding: 2.5rem 1rem; background: var(--ohMz-gray); border-radius: 6px; margin: 2.5rem 0 1rem; }
.ohmz-cta h2 { border-bottom: none; margin-top: 0; }
.ohmz-cta .btn-primary { display: inline-block; padding: 0.9rem 2.5rem; background: var(--ohMz-green); color: #fff; border: none; border-radius: 4px; font-size: 1.05rem; font-weight: 600; text-decoration: none; cursor: pointer; margin-top: 1rem; }
.ohmz-cta .btn-primary:hover { background: #008f70; }

/* ===== RMA INTAKE CALLOUT ===== */
.rma-intake-section .container { max-width: 920px; }
.rma-intake-card {
  margin: 0.5rem 0 2rem;
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid #cfe7df;
  border-left: 6px solid var(--ohMz-green);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbfa 0%, #eef7f4 100%);
  box-shadow: 0 10px 28px rgba(26, 26, 46, 0.08);
}
.rma-intake-section h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.85rem;
}
.rma-intake-kicker {
  display: inline-flex;
  min-width: 160px;
  justify-content: center;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(1, 169, 130, 0.12);
  color: var(--ohMz-green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rma-intake-lead {
  font-size: 1.05rem;
  color: #2f3c44;
}
.rma-intake-card h3 {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid #d8e8e3;
}
.rma-contact-lines {
  line-height: 1.85;
}
.rma-contact-lines strong {
  color: var(--ohMz-dark);
}
.rma-intake-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #d8e8e3;
  color: #4f5d66;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ohmz-hero h1 { font-size: 1.6rem; }
  .ohmz-hero .hero-sub { font-size: 0.95rem; }
  .service-page h2 { font-size: 1.3rem; }
  .service-page { padding: 1.5rem 0.75rem 3rem; }
  .rma-intake-card { padding: 1.2rem 1rem 1.05rem; }
  .rma-intake-section h2 { font-size: 1.45rem; }
}
