:root {
  --rm-blue: #083b66;
  --rm-blue-2: #0b5f99;
  --rm-cyan: #11a5c8;
  --rm-ink: #172431;
  --rm-muted: #5c6975;
  --rm-line: #dbe4ea;
  --rm-soft: #f3f7fa;
}

.rmseo-content,
.rmseo-home-hub,
.rmseo-quote-panel {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 40px));
  margin: 64px auto;
  color: var(--rm-ink);
  font-size: 17px;
  line-height: 1.75;
}

.rmseo-content h1,
.rmseo-content h2,
.rmseo-content h3,
.rmseo-home-hub h2,
.rmseo-quote-panel h2 {
  color: var(--rm-blue);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rmseo-content h1 { font-size: clamp(36px, 5vw, 62px); margin: 12px 0 24px; }
.rmseo-content h2,
.rmseo-home-hub h2,
.rmseo-quote-panel h2 { font-size: clamp(27px, 3vw, 38px); margin: 48px 0 16px; }
.rmseo-content h3 { font-size: 21px; margin: 28px 0 8px; }
.rmseo-content section { scroll-margin-top: 110px; }

.rmseo-eyebrow {
  color: var(--rm-blue-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0;
}

.rmseo-lead { max-width: 900px; color: #304657; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.55; }
.rmseo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.rmseo-specs,
.rmseo-case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.rmseo-specs p,
.rmseo-case-facts p { margin: 0; padding: 18px; border: 1px solid var(--rm-line); background: var(--rm-soft); }
.rmseo-link-list { columns: 2; gap: 36px; }
.rmseo-link-list li { margin: 0 0 12px; break-inside: avoid; }

.rmseo-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 44px;
}

.rmseo-card-grid a {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--rm-line);
  border-radius: 6px;
  background: #fff;
  color: var(--rm-blue);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.rmseo-card-grid a:hover,
.rmseo-card-grid a:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(8,59,102,.14); }
.rmseo-card-grid strong { font-size: 20px; }
.rmseo-card-grid span { color: var(--rm-muted); font-size: 15px; }

.rmseo-cta {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 28px;
  margin: 64px 0 0;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rm-blue), #052b4c);
  color: #fff;
}

.rmseo-cta h2,
.rmseo-cta .rmseo-eyebrow { color: #fff; margin-top: 0; }
.rmseo-cta p { margin-bottom: 0; }
.rmseo-cta-actions { display: flex; flex-direction: column; gap: 12px; }
.rmseo-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 22px; border-radius: 4px; font-weight: 800; text-decoration: none !important; }
.rmseo-button-primary { background: var(--rm-cyan); color: #001f2b !important; }
.rmseo-button-light { background: #fff; color: var(--rm-blue) !important; }
.rmseo-button:focus-visible { outline: 3px solid #ffcf4a; outline-offset: 3px; }

.rmseo-disclosure,
.rmseo-quote-panel { padding: 28px; border-left: 5px solid var(--rm-cyan); background: var(--rm-soft); }
.rmseo-quote-panel { margin-top: 48px; margin-bottom: 96px; }
.rmseo-quote-panel h2 { margin-top: 10px; }

.rmseo-floating {
  position: fixed;
  z-index: 9998;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.22));
}

.rmseo-floating a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 999px;
  background: #21c063;
  color: #062f1a !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}

.rmseo-floating a:last-child { background: var(--rm-blue); color: #fff !important; }

@media (max-width: 900px) {
  .rmseo-grid,
  .rmseo-cta { grid-template-columns: 1fr; }
  .rmseo-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .rmseo-content,
  .rmseo-home-hub,
  .rmseo-quote-panel { width: min(100% - 28px, 1180px); margin-top: 40px; }
  .rmseo-card-grid,
  .rmseo-specs,
  .rmseo-case-facts { grid-template-columns: 1fr; }
  .rmseo-link-list { columns: 1; }
  .rmseo-floating { right: 10px; bottom: 10px; left: 10px; }
  .rmseo-floating a { flex: 1; justify-content: center; }
}

@media print {
  .rmseo-floating { display: none; }
}
