/* Rs Consulting & Staffing Services Limited — shared stylesheet */
:root {
  --navy: #002b49;
  --maroon: #8b2c2c;
  --blue: #0056b3;
  --text: #333;
  --muted: #555;
  --line: #e6e8eb;
  --bg: #fafafa;
  --card: #fff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--maroon); }
h1, h2, h3 { line-height: 1.25; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 300; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* Header */
.site-header { background: #fff; padding: 12px 4vw; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 18px; line-height: 1.1; }
.brand img { width: 48px; height: 48px; }
.brand small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; font-size: 22px; line-height: 1; padding: 6px 12px; cursor: pointer; color: var(--navy); }

/* Hero */
.hero { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--navy); }
.hero--tall { min-height: 480px; }
.hero--medium { min-height: 340px; }
.hero--short { min-height: 260px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 25, 38, .62); z-index: 2; }
.hero__text { position: relative; z-index: 3; max-width: 900px; padding: 40px 20px; color: #fff; }
.hero__text h1 { font-size: clamp(28px, 4.6vw, 52px); margin: 0 0 14px; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.hero__text p { font-size: 18px; margin: 0; color: #eef2f5; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* Generic sections */
.section { max-width: 900px; margin: 0 auto; padding: 64px 4vw 24px; text-align: center; }
.section h2 { font-size: 28px; color: var(--navy); font-weight: 600; margin: 0 0 18px; }
.section p { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; max-width: 1180px; margin: 0 auto; padding: 16px 4vw 70px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.09); transform: translateY(-3px); color: inherit; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 18px 20px 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 48px 4vw; }
.cta-band h2 { margin: 0 0 12px; font-weight: 600; }
.cta-band p { margin: 0 auto 24px; max-width: 640px; color: #dbe5ec; }

.btn { display: inline-block; padding: 14px 28px; background: var(--maroon); color: #fff; text-decoration: none; border: 0; border-radius: 3px; font: 600 14px var(--font); text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background .25s; }
.btn:hover { background: #6f2222; color: #fff; }
.btn--navy { background: var(--navy); }
.btn--navy:hover { background: #001c30; }
.btn--ghost { background: transparent; border: 1px solid currentColor; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* Notes and callouts */
.note { background: #eef5f9; border-left: 4px solid var(--blue); padding: 18px 20px; margin: 26px 0; font-size: 15px; color: #333; }
.note--warn { background: #fcf8e3; border-left-color: var(--maroon); }
.note strong:first-child { color: var(--navy); }
.disclaimer { background: #f8f9fa; border-left: 4px solid var(--maroon); padding: 16px 20px; margin: 24px 0; font-size: 15px; color: #444; text-align: left; }

/* Article / long-form pages */
.article { max-width: 900px; margin: -50px auto 50px; padding: 48px 56px; background: var(--card); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.08); position: relative; z-index: 10; font-size: 16px; color: #444; }
.article--plain { margin-top: 48px; }
.article h1 { color: var(--navy); font-size: 32px; margin-top: 0; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.article h2 { color: var(--navy); font-size: 27px; margin: 52px 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.article h3 { color: var(--maroon); font-size: 21px; margin: 36px 0 14px; font-weight: 600; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 22px; }
.article li { margin-bottom: 10px; }
.meta-box { background: #f8f9fa; border-left: 4px solid var(--maroon); padding: 18px 20px; margin-bottom: 30px; font-size: 15px; color: #555; }
.meta-box p { margin: 0 0 6px; }
.meta-box p:last-child { margin: 0; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 24px; margin: 0 0 10px; }
.toc strong { color: var(--navy); }
.toc ol { margin: 10px 0 0; }
.toc li { margin-bottom: 6px; }
.example { background: #fdfdfd; border: 1px solid var(--line); border-left: 4px solid var(--navy); padding: 20px 24px; margin: 24px 0; }
.example h4 { margin: 18px 0 8px; color: var(--navy); font-size: 16px; }
.example h4:first-child { margin-top: 0; }
.example ul { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.data-table th, .data-table td { border: 1px solid #e0e0e0; padding: 12px 14px; text-align: left; vertical-align: top; }
.data-table th { background: #f4f6f8; color: var(--navy); }
.data-table tr:nth-child(even) td { background: #fafbfc; }
.updated { font-size: 14px; color: #666; }
.article-cta { text-align: center; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.article-cta h3 { color: var(--navy); margin: 0 0 18px; }

/* Contact */
.contact-grid { max-width: 1000px; margin: 50px auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 40px; }
.panel { flex: 1; min-width: 300px; background: var(--card); padding: 36px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,.05); }
.panel h2 { color: var(--navy); margin: 0 0 24px; font-size: 24px; }
.info-stack { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 20px; }
.info { background: var(--card); padding: 26px 28px; border-radius: 8px; border-left: 4px solid var(--navy); box-shadow: 0 5px 15px rgba(0,0,0,.03); }
.info h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.info p { margin: 0; }
.info--note { background: #eef5f9; border-left-color: var(--maroon); font-size: 14px; font-style: italic; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field { width: 100%; padding: 13px 14px; margin-bottom: 18px; border: 1px solid #cfd4d9; border-radius: 3px; font: 15px var(--font); background: #fff; color: var(--text); }
.field:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 20px; color: var(--muted); }
.check input { margin-top: 4px; flex: none; }
.check label { font-weight: 400; margin: 0; color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-hint { font-size: 13px; color: #666; margin: -8px 0 18px; }

/* Centered message pages (thank you, 404) */
.center-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.message-box { background: #fff; padding: 48px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.06); max-width: 520px; border-top: 5px solid var(--navy); }
.message-box--404 { border-top-color: var(--maroon); }
.message-box h1 { color: var(--navy); font-size: 34px; margin: 0 0 14px; }
.message-box .big { font-size: 80px; line-height: 1; margin: 0 0 8px; }
.message-box h2 { margin: 0 0 14px; font-size: 24px; color: #333; }
.message-box p { color: var(--muted); margin: 0 0 28px; }

/* Footer */
.site-footer { background: #f1f3f5; padding: 48px 4vw 36px; text-align: center; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer p { font-size: 14px; color: #666; margin: 0 0 8px; }
.site-footer a { color: var(--navy); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { margin-top: 16px; }
.footer-links a, .footer-links button { margin: 0 8px; }
.linklike { background: none; border: 0; padding: 0; font: 600 14px var(--font); color: var(--navy); cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.site-footer .footer-fine { font-size: 12px; color: #777; max-width: 760px; margin: 18px auto 0; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #cfd4d9; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 20px 22px; z-index: 500; }
.cookie-banner h2 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.cookie-banner p { margin: 0 0 14px; font-size: 14px; color: #444; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 22px; font-size: 13px; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 4vw 14px; box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .article { margin-top: 0; border-radius: 0; padding: 30px 20px; box-shadow: none; }
  .hero--tall { min-height: 380px; }
  .panel { padding: 26px 20px; }
  .message-box { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .btn { transition: none; } }
