/* Global resets / helpers — ported from the prototype's <helmet> inline <style>. */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--blue-200); }
[data-lucide] { width: 1em; height: 1em; }

/* Lucide swaps <i data-lucide> for an inline <svg data-lucide>; keep sizing stable. */
svg[data-lucide] { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }

/* ============================================================
   RESPONSIVE — mobile nav + section stacking
   The design is desktop-first with inline styles, so overrides
   use !important and [style*=] selectors to beat inline styles.
   ============================================================ */

/* Hamburger + mobile menu are hidden on desktop by default.
   Burger needs !important because its inline `all: unset` would otherwise win. */
.rma-burger { display: none !important; }
.rma-mobile-menu { display: none; }

/* ---- Mobile menu panel styling ---- */
.rma-mobile-menu {
  background: var(--ink-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 20px 26px;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}
.rma-mobile-menu.open { display: block; }
.rma-mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.82);
  font: var(--weight-semibold) 16px/1 var(--font-sans);
  padding: 15px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rma-mobile-menu a:active { color: #fff; }
.rma-mobile-menu details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font: var(--weight-semibold) 16px/1 var(--font-sans);
  padding: 15px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rma-mobile-menu details > summary::-webkit-details-marker { display: none; }
.rma-mobile-menu details > summary::after { content: '+'; color: var(--blue-400); font-size: 22px; line-height: 1; }
.rma-mobile-menu details[open] > summary::after { content: '\2013'; }
.rma-mobile-menu details a {
  padding-left: 20px;
  font-weight: var(--weight-regular);
  color: rgba(255,255,255,0.66);
  font-size: 15px;
}
.rma-m-cta {
  margin-top: 18px !important;
  text-align: center;
  background: var(--grad-blue);
  color: #fff !important;
  border-radius: 999px;
  padding: 16px !important;
  font: var(--weight-bold) 16px/1 var(--font-sans) !important;
  border-bottom: none !important;
  box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}

/* ---- Breakpoint: collapse desktop nav into hamburger ---- */
@media (max-width: 900px) {
  header[data-header] [data-nav] { display: none !important; }
  header[data-header] [data-panel] { display: none !important; }
  .rma-cta-desktop { display: none !important; }
  .rma-burger { display: inline-flex !important; }
}
@media (min-width: 901px) {
  .rma-mobile-menu { display: none !important; }
}

/* ---- Section stacking: any multi-column inline grid becomes single column ---- */
@media (max-width: 820px) {
  .rma-root [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* tame oversized hero display type on small screens */
  .rma-root h1[style*="64px"] { font-size: 40px !important; }
  .rma-root [style*="font: var(--weight-extrabold) 50px"] { font-size: 34px !important; }
  .rma-root [style*="48px/1"] { font-size: 32px !important; }
}

/* ============================================================
   FORMS — legible fields across all lead/audit/contact forms.
   The design has no other form controls, so scoping to .rma-root
   input/select/textarea safely covers every field (with or
   without data-f) on service, industry, audit and contact pages.
   ============================================================ */
.rma-root input,
.rma-root select,
.rma-root textarea {
  font: var(--weight-medium) 15px/1.4 var(--font-sans) !important;
  color: var(--ink-900) !important;
  background: var(--gray-50) !important;      /* subtle fill so the field reads on a white card */
  border: 1.5px solid var(--gray-300) !important;
  border-radius: 11px !important;
  padding: 14px 15px !important;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rma-root input::placeholder,
.rma-root textarea::placeholder {
  color: var(--gray-500) !important;          /* readable placeholder, not near-white */
  opacity: 1;
}
.rma-root select { color: var(--gray-600) !important; cursor: pointer; }
.rma-root input:focus,
.rma-root select:focus,
.rma-root textarea:focus {
  outline: none !important;
  border-color: var(--blue-600) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px var(--focus-ring) !important;
}
/* optional field label above inputs (added to markup) */
.rma-root .rma-flabel {
  display: block;
  font: var(--weight-semibold) 12.5px/1 var(--font-sans);
  color: var(--gray-600);
  margin: 0 0 7px 2px;
  letter-spacing: 0.01em;
}
/* 16px on phones to stop iOS auto-zoom on focus */
@media (max-width: 600px) {
  .rma-root input,
  .rma-root select,
  .rma-root textarea { font-size: 16px !important; }
}

/* ============================================================
   PROSE — Gutenberg article body (Guides / Articles / Insights / Reviews)
   ============================================================ */
.rma-prose { font: var(--weight-regular) 17px/1.75 var(--font-sans); color: var(--gray-600); }
.rma-prose > * { margin: 0 0 22px; }
.rma-prose h2 { font: var(--weight-extrabold) 28px/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--ink-900); margin: 44px 0 16px; }
.rma-prose h3 { font: var(--weight-bold) 21px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink-900); margin: 34px 0 12px; }
.rma-prose h4 { font: var(--weight-bold) 17px/1.4 var(--font-display); color: var(--ink-900); margin: 26px 0 10px; }
.rma-prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; font-weight: var(--weight-medium); }
.rma-prose a:hover { color: var(--blue-700); }
.rma-prose strong { color: var(--ink-900); font-weight: var(--weight-bold); }
.rma-prose ul, .rma-prose ol { padding-left: 26px; }
.rma-prose li { margin: 0 0 10px; }
.rma-prose img { border-radius: 14px; height: auto; }
.rma-prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--blue-500);
  color: var(--ink-900); font: var(--weight-medium) 19px/1.6 var(--font-sans);
}
.rma-prose code {
  background: var(--gray-100); border: 1px solid var(--border-subtle);
  border-radius: 6px; padding: 2px 6px; font: var(--weight-medium) 14px/1 var(--font-mono);
}
.rma-prose hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 40px 0; }
@media (max-width: 600px) { .rma-prose { font-size: 16px; } .rma-prose h2 { font-size: 24px; } }
