/* Revenue Sequence — shared site styles (static build) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #F8F5EF; color: #201E1A; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }

/* Accessibility: skip link */
.skip-link { position: absolute; left: -9999px; top: 8px; background: #1C1C1A; color: #fff; padding: 8px 14px; border-radius: 4px; z-index: 999; font-size: 13px; }
.skip-link:focus { left: 8px; }

/* ---------- Header / navigation ---------- */
.rs-header { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid #E2DAD0; transition: box-shadow 200ms; }
.rs-header.is-scrolled { box-shadow: 0 2px 16px rgba(28,28,26,.08); }
.rs-nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 40px; height: 64px; display: flex; align-items: center; gap: 32px; }
.rs-logo { display: flex; align-items: center; text-decoration: none; }
.rs-logo img { height: 32px; width: auto; display: block; }
.rs-nav { display: flex; align-items: center; flex: 1; }
.rs-nav-item { position: relative; }
.rs-nav-link { font-size: 13px; font-weight: 500; color: #6E6860; text-decoration: none; padding: 0 14px; height: 64px; white-space: nowrap; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; transition: color 150ms, border-color 150ms; }
.rs-nav-link svg { margin-left: 6px; }
.rs-nav-link:hover, .rs-nav-item:focus-within > .rs-nav-link { color: #1C1C1A; border-bottom-color: rgba(196,115,58,.3); }
.rs-nav-link.is-active { font-weight: 700; color: #1C1C1A; border-bottom-color: #C4733A; }
.rs-nav-link.is-active:hover { border-bottom-color: #C4733A; }
.rs-drop { position: absolute; top: 64px; left: 0; width: 340px; background: #fff; border: 1px solid #E2DAD0; border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(28,28,26,.10); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 140ms, transform 140ms, visibility 140ms; }
.rs-drop.rs-drop-wide { width: 380px; }
.rs-nav-item:hover > .rs-drop, .rs-nav-item:focus-within > .rs-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.rs-drop a { display: grid; grid-template-columns: 28px 1fr; line-height: 1.4; align-items: baseline; gap: 8px; padding: 10px 20px; text-decoration: none; color: #1C1C1A; font-size: 13px; font-weight: 600; transition: background 140ms; }
.rs-drop a.no-n { grid-template-columns: 1fr; }
.rs-drop a:hover { background: #F8F5EF; }
.rs-drop a .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #C4733A; }
.rs-drop .rs-drop-all { display: block; margin: 8px 20px 4px; padding: 12px 0 0; border-top: 1px solid #E2DAD0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C4733A; grid-template-columns: 1fr; }
.rs-drop .rs-drop-all:hover { background: transparent; }
.rs-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; color: #1C1C1A; margin-right: -10px; }
.rs-burger .ic-close { display: none; }
.rs-header.menu-open .rs-burger .ic-open { display: none; }
.rs-header.menu-open .rs-burger .ic-close { display: block; }
.rs-mobile { display: none; }

@media (max-width: 900px) {
  .rs-nav-inner { padding: 0 20px; justify-content: space-between; }
  .rs-logo img { height: 28px; }
  .rs-nav { display: none; }
  .rs-burger { display: flex; }
  .rs-header.menu-open .rs-mobile { display: block; position: fixed; top: 65px; left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto; padding: 8px 20px 40px; border-top: 1px solid #E2DAD0; }
  .rs-mobile-group { border-bottom: 1px solid #E2DAD0; }
  .rs-mobile-link { display: flex; align-items: center; min-height: 52px; font-size: 17px; font-weight: 700; color: #1C1C1A; text-decoration: none; }
  .rs-mobile-link.is-active { color: #C4733A; }
  .rs-mobile-subs { display: grid; padding-bottom: 12px; }
  .rs-mobile-subs a { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 0 10px 12px; font-size: 15px; font-weight: 500; color: #46443E; text-decoration: none; line-height: 1.4; }
  .rs-mobile-subs a.no-n { grid-template-columns: minmax(0,1fr); }
  .rs-mobile-subs .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #C4733A; }
  body.rs-no-scroll { overflow: hidden; }
}

/* ---------- Forms ---------- */
.rs-form input:focus, .rs-form textarea:focus { border-color: #C4733A !important; outline: none; }
.rs-form button[type="submit"]:hover { opacity: .85; }
.rs-form .rs-error { font-size: 13px; color: #A33A2A; }

/* ---------- Index cards (services / who we serve) ---------- */
a.rs-service-card:hover { background: #FEFCF9 !important; border-top-color: #C4733A !important; }
a.rs-audience-card:hover { background: rgba(196,115,58,.06) !important; border-top-color: #C4733A !important; }

/* ---------- Small-screen refinements (inline styles were desktop-first) ---------- */
@media (max-width: 640px) {
  main section { padding-left: 24px !important; padding-right: 24px !important; }
  main section > div[style*="280px 1fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
  main section > div[style*="280px 1fr"] img { max-width: 280px; }
  footer { padding-left: 24px !important; padding-right: 24px !important; }
  .rs-form div[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
}
