/* ==========================================================================
   RunStaffRun Marketing Site — shared design system
   Linked by every public marketing page (index.html, for-recruiters.html,
   for-agencies.html, about.html, contact-us.html, blog.html + posts, and
   the header/footer chrome of the legacy utility pages). All selectors are
   prefixed `.rsr-` and variables `--rsr-` so this can't collide with the
   page-local `:root` variables some older pages still declare inline.
   ========================================================================== */

:root {
  --rsr-navy: #1B4F8A;
  --rsr-navy-dark: #143c6b;
  --rsr-green: #6EB43F;
  --rsr-green-dark: #5a9832;
  --rsr-blue-cta: #2E6DB4;
  --rsr-blue-cta-dark: #255a94;
  --rsr-bg-light: #F5F5F5;
  --rsr-white: #ffffff;
  --rsr-text: #666666;
  --rsr-text-dark: #333333;
  --rsr-border: #e2e2e2;
  --rsr-radius: 6px;
  --rsr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rsr-max: 1200px;
}

.rsr-page { font-family: var(--rsr-font); color: var(--rsr-text); background: var(--rsr-white); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.rsr-page * { box-sizing: border-box; }
.rsr-page img { max-width: 100%; display: block; }
.rsr-page a { text-decoration: none; }

/* ── Photo placeholder ─────────────────────────────────────────────────── */
.rsr-ph {
  position: relative;
  width: 100%; height: 100%;
  min-height: 260px;
  background: linear-gradient(135deg, var(--rsr-navy) 0%, var(--rsr-blue-cta) 55%, var(--rsr-green) 130%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.rsr-ph svg { width: 44px; height: 44px; opacity: 0.55; }
.rsr-ph::after {
  content: attr(data-caption);
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  font-size: 11px; color: rgba(255,255,255,0.75); font-weight: 500;
  line-height: 1.4;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.rsr-nav { position: sticky; top: 0; z-index: 200; background: var(--rsr-white); border-bottom: 1px solid var(--rsr-border); height: 76px; display: flex; align-items: center; }
.rsr-nav-inner { max-width: var(--rsr-max); margin: 0 auto; padding: 0 32px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.rsr-logo { font-size: 20px; font-weight: 800; color: var(--rsr-navy); letter-spacing: -0.4px; }
.rsr-logo span { color: var(--rsr-green); }
.rsr-burger { width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.rsr-burger span { width: 24px; height: 2px; background: var(--rsr-navy); transition: transform 0.2s, opacity 0.2s; }
.rsr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rsr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rsr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.rsr-overlay { position: fixed; inset: 0; background: var(--rsr-white); z-index: 300; display: none; overflow-y: auto; }
.rsr-overlay.open { display: block; }
.rsr-overlay-inner { max-width: 640px; margin: 0 auto; padding: 100px 32px 60px; }
.rsr-acc-item { border-bottom: 1px solid var(--rsr-border); }
.rsr-acc-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; cursor: pointer; }
.rsr-acc-head span.rsr-acc-label { font-size: 20px; font-weight: 800; color: var(--rsr-navy); letter-spacing: -0.3px; }
.rsr-acc-chevron { font-size: 22px; color: var(--rsr-green); font-weight: 300; transition: transform 0.2s; }
.rsr-acc-item.open .rsr-acc-chevron { transform: rotate(180deg); }
.rsr-acc-body { display: none; padding: 0 4px 24px; }
.rsr-acc-item.open .rsr-acc-body { display: block; }
.rsr-acc-body a { display: block; padding: 10px 0; font-size: 15px; color: var(--rsr-text); font-weight: 500; }
.rsr-acc-body a:hover { color: var(--rsr-navy); }
.rsr-overlay-link { display: block; padding: 22px 4px; font-size: 20px; font-weight: 800; color: var(--rsr-navy); border-bottom: 1px solid var(--rsr-border); }
.rsr-overlay-cta { display: block; text-align: center; background: var(--rsr-green); color: var(--rsr-white); font-weight: 700; font-size: 16px; padding: 18px; border-radius: var(--rsr-radius); margin-top: 24px; }
.rsr-overlay-cta:hover { background: var(--rsr-green-dark); }
.rsr-overlay-close { position: absolute; top: 24px; right: 28px; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; font-size: 26px; color: var(--rsr-navy); line-height: 1; }
body.rsr-noscroll { overflow: hidden; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.rsr-hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.rsr-hero .rsr-ph { position: absolute; inset: 0; min-height: 0; }
.rsr-hero-overlay { position: absolute; inset: 0; background: rgba(10, 24, 46, 0.55); }
.rsr-hero-inner { position: relative; z-index: 2; max-width: 780px; padding: 0 32px; color: var(--rsr-white); }
.rsr-hero-inner h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 18px; }
.rsr-hero-sub { font-style: italic; font-size: 19px; color: rgba(255,255,255,0.92); margin-bottom: 22px; line-height: 1.5; }
.rsr-hero-stats { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.rsr-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.rsr-btn { display: inline-block; padding: 15px 30px; border-radius: var(--rsr-radius); font-size: 15px; font-weight: 700; border: none; cursor: pointer; font-family: var(--rsr-font); transition: background 0.15s, border-color 0.15s; }
.rsr-btn-green { background: var(--rsr-green); color: var(--rsr-white); }
.rsr-btn-green:hover { background: var(--rsr-green-dark); }
.rsr-btn-blue { background: var(--rsr-blue-cta); color: var(--rsr-white); }
.rsr-btn-blue:hover { background: var(--rsr-blue-cta-dark); }
.rsr-btn-outline { background: transparent; color: var(--rsr-white); border: 1.5px solid rgba(255,255,255,0.7); }
.rsr-btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ── Value prop / centered text section ────────────────────────────────── */
.rsr-value { padding: 100px 32px; text-align: center; }
.rsr-value-inner { max-width: 760px; margin: 0 auto; }
.rsr-h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--rsr-navy); letter-spacing: -0.6px; margin-bottom: 22px; }
.rsr-value p { font-size: 17px; line-height: 1.75; }

/* ── Split section (photo + blue box) ──────────────────────────────────── */
.rsr-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.rsr-split.rsr-split-rev { direction: rtl; }
.rsr-split.rsr-split-rev > * { direction: ltr; }
.rsr-split-photo { min-height: 400px; }
.rsr-split-box { background: var(--rsr-navy); color: var(--rsr-white); display: flex; flex-direction: column; justify-content: center; padding: 64px; }
.rsr-split-box h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 26px; }
.rsr-split-box ul { list-style: none; margin-bottom: 30px; }
.rsr-split-box ul li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 15.5px; font-weight: 500; }
.rsr-split-box ol { padding-left: 22px; margin-bottom: 30px; }
.rsr-split-box ol li { padding: 10px 0; font-size: 15.5px; line-height: 1.55; }
.rsr-split-box p { font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; opacity: 0.92; }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.rsr-testi { padding: 100px 32px; }
.rsr-testi-inner { max-width: var(--rsr-max); margin: 0 auto; display: grid; grid-template-columns: 55fr 45fr; gap: 60px; align-items: center; }
.rsr-testi.rsr-testi-noimg .rsr-testi-inner { grid-template-columns: 1fr; max-width: 760px; }
.rsr-testi-quote { font-size: 22px; font-style: italic; line-height: 1.6; color: var(--rsr-text-dark); margin-bottom: 24px; }
.rsr-testi-name { color: var(--rsr-green); font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; font-size: 14px; }
.rsr-testi-title { font-style: italic; color: var(--rsr-text); font-size: 14px; margin-top: 4px; margin-bottom: 24px; }
.rsr-testi-arrows { display: flex; gap: 12px; }
.rsr-testi-arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--rsr-border); background: var(--rsr-white); color: var(--rsr-navy); font-size: 16px; cursor: pointer; }
.rsr-testi-arrows button:hover { border-color: var(--rsr-navy); }
.rsr-testi-photo { min-height: 340px; border-radius: var(--rsr-radius); overflow: hidden; }

/* ── Green CTA band ─────────────────────────────────────────────────────── */
.rsr-cta-band { background: var(--rsr-green); padding: 90px 32px; text-align: center; color: var(--rsr-white); }
.rsr-cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.rsr-cta-band p { font-size: 17px; max-width: 560px; margin: 0 auto 32px; opacity: 0.95; }

/* ── 3-col feature cards ────────────────────────────────────────────────── */
.rsr-cards { background: var(--rsr-bg-light); padding: 100px 32px; }
.rsr-cards-inner { max-width: var(--rsr-max); margin: 0 auto; }
.rsr-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 20px; }
.rsr-card { background: var(--rsr-white); padding: 40px 32px; border-radius: var(--rsr-radius); }
.rsr-card h3 { color: var(--rsr-green); font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.rsr-card p { font-size: 15px; line-height: 1.7; }

/* ── Benefits list (centered, large) ───────────────────────────────────── */
.rsr-benefits { background: var(--rsr-bg-light); padding: 100px 32px; text-align: center; }
.rsr-benefits-inner { max-width: 640px; margin: 0 auto; }
.rsr-benefits ul { list-style: none; margin-top: 12px; }
.rsr-benefits ul li { font-size: 19px; color: var(--rsr-text-dark); font-weight: 500; padding: 16px 0; border-bottom: 1px solid var(--rsr-border); }
.rsr-benefits ul li:last-child { border-bottom: none; }

/* ── Blog grid ──────────────────────────────────────────────────────────── */
.rsr-blog-section { padding: 100px 32px; }
.rsr-blog-section-inner { max-width: var(--rsr-max); margin: 0 auto; }
.rsr-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 20px; }
.rsr-blog-card { position: relative; min-height: 380px; border-radius: var(--rsr-radius); overflow: hidden; display: flex; align-items: flex-end; color: var(--rsr-white); }
.rsr-blog-card .rsr-ph { position: absolute; inset: 0; min-height: 0; }
.rsr-blog-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,20,35,0.88) 0%, rgba(10,20,35,0.15) 60%); }
.rsr-blog-card-body { position: relative; z-index: 2; padding: 26px; }
.rsr-blog-date { font-size: 13px; opacity: 0.85; margin-bottom: 8px; }
.rsr-blog-card-title { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.3; margin-bottom: 16px; }
.rsr-blog-read { display: inline-block; border: 1.5px solid rgba(255,255,255,0.7); padding: 8px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--rsr-radius); color: var(--rsr-white); }
.rsr-blog-read:hover { background: rgba(255,255,255,0.15); }

/* Blog index page — post grid (photo above, text below) */
.rsr-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.rsr-post-card .rsr-ph { min-height: 380px; border-radius: var(--rsr-radius); margin-bottom: 18px; }
.rsr-post-card-title { font-size: 17px; font-weight: 800; text-transform: uppercase; color: var(--rsr-navy); letter-spacing: -0.1px; line-height: 1.35; margin-bottom: 8px; }
.rsr-post-card-date { font-size: 13px; color: var(--rsr-green); font-weight: 700; margin-bottom: 10px; }
.rsr-post-card-excerpt { font-size: 14.5px; line-height: 1.65; }

/* ── FAQ (reuses .rsr-acc-item/.rsr-acc-head/.rsr-acc-chevron/.rsr-acc-body) ─ */
.rsr-faq { padding: 100px 32px; background: var(--rsr-bg-light); }
.rsr-faq-inner { max-width: 760px; margin: 0 auto; }
.rsr-faq .rsr-acc-item { border-bottom-color: var(--rsr-border); }
.rsr-faq .rsr-acc-head span.rsr-acc-label { font-size: 16px; font-weight: 700; color: var(--rsr-text-dark); }
.rsr-faq .rsr-acc-body p { font-size: 15px; line-height: 1.75; }
.rsr-faq .rsr-acc-body a { color: var(--rsr-blue-cta); font-weight: 600; }

/* ── Contact cards ──────────────────────────────────────────────────────── */
.rsr-contact-section { background: var(--rsr-bg-light); padding: 100px 32px; }
.rsr-contact-inner { max-width: var(--rsr-max); margin: 0 auto; }
.rsr-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 700px; margin: 20px auto 0; }
.rsr-contact-card { background: var(--rsr-white); padding: 40px; border-radius: var(--rsr-radius); text-align: center; }
.rsr-contact-card .rsr-contact-name { color: var(--rsr-green); font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.rsr-contact-card .rsr-contact-title { color: var(--rsr-green); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.rsr-contact-card .rsr-contact-line { font-size: 14.5px; color: var(--rsr-text); margin-bottom: 4px; }
.rsr-contact-card a { color: var(--rsr-navy); font-weight: 600; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.rsr-form-section { padding: 100px 32px; }
.rsr-form-inner { max-width: 640px; margin: 0 auto; }
.rsr-form-group { margin-bottom: 18px; }
.rsr-form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--rsr-text-dark); margin-bottom: 6px; }
.rsr-form-group input, .rsr-form-group textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--rsr-border); border-radius: var(--rsr-radius); font-family: var(--rsr-font); font-size: 14.5px; color: var(--rsr-text-dark); outline: none; }
.rsr-form-group input:focus, .rsr-form-group textarea:focus { border-color: var(--rsr-navy); }
.rsr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rsr-form-success { display: none; background: rgba(110,180,63,0.12); border: 1px solid rgba(110,180,63,0.4); color: #3f6b26; padding: 18px; border-radius: var(--rsr-radius); font-size: 14px; margin-bottom: 16px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.rsr-footer { background: var(--rsr-navy); color: rgba(255,255,255,0.7); padding: 64px 32px 32px; }
.rsr-footer-inner { max-width: var(--rsr-max); margin: 0 auto; }
.rsr-footer-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.rsr-footer-col h4 { color: var(--rsr-green); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.rsr-footer-col p, .rsr-footer-col div { font-size: 14px; line-height: 1.8; }
.rsr-footer-col a { color: rgba(255,255,255,0.75); }
.rsr-footer-col a:hover { color: var(--rsr-white); }
.rsr-footer-col ul { list-style: none; }
.rsr-footer-col ul li { margin-bottom: 10px; }
.rsr-footer-social { display: flex; gap: 10px; margin-top: 14px; }
.rsr-footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,0.12); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--rsr-white); }
.rsr-footer-social a:hover { background: var(--rsr-green); }
.rsr-footer-bottom { padding-top: 28px; font-size: 13px; text-align: center; color: rgba(255,255,255,0.55); }

/* ── Article (blog post) ────────────────────────────────────────────────── */
.rsr-article { max-width: 720px; margin: 0 auto; padding: 64px 32px 100px; }
.rsr-article-back { font-size: 13px; font-weight: 700; color: var(--rsr-blue-cta); margin-bottom: 24px; display: inline-block; }
.rsr-article-date { font-size: 13px; color: var(--rsr-green); font-weight: 700; margin-bottom: 10px; }
.rsr-article h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--rsr-navy); letter-spacing: -0.6px; line-height: 1.15; margin-bottom: 28px; }
.rsr-article .rsr-ph { min-height: 320px; border-radius: var(--rsr-radius); margin-bottom: 36px; }
.rsr-article p { font-size: 16.5px; line-height: 1.85; color: var(--rsr-text-dark); margin-bottom: 20px; }
.rsr-article h2 { font-size: 22px; font-weight: 800; color: var(--rsr-navy); margin: 36px 0 16px; }
.rsr-article a { color: var(--rsr-blue-cta); font-weight: 600; }
.rsr-article ul { margin: 0 0 20px 22px; }
.rsr-article ul li { font-size: 16px; line-height: 1.75; margin-bottom: 8px; color: var(--rsr-text-dark); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rsr-split, .rsr-testi-inner:not(.rsr-testi-noimg .rsr-testi-inner) { grid-template-columns: 1fr; }
  .rsr-testi-inner { grid-template-columns: 1fr; }
  .rsr-testi-photo { order: -1; min-height: 240px; }
  .rsr-cards-grid, .rsr-blog-grid, .rsr-post-grid { grid-template-columns: 1fr; }
  .rsr-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .rsr-form-row { grid-template-columns: 1fr; }
  .rsr-split-box { padding: 48px 32px; }
}
@media (max-width: 600px) {
  .rsr-nav-inner { padding: 0 20px; }
  .rsr-value, .rsr-testi, .rsr-cards, .rsr-benefits, .rsr-blog-section, .rsr-contact-section, .rsr-form-section, .rsr-cta-band { padding: 64px 20px; }
}
