/* ===================================================================
   RSOFT SYSTEMS INC — Master Stylesheet (Clean / White edition)
   White-dominant content, blue used as an accent, with a contrasting
   blue banner (hero / page-hero).
   NOTE: content is ALWAYS visible by default; entrance animation is a
   pure-CSS enhancement that never hides content (no JS dependency).
=================================================================== */

:root {
  --navy:      #0F2747;
  --ink:       #3B4858;
  --ink-soft:  #6B7787;
  --brand:     #2664D8;
  --brand-dark:#1B4CAB;
  --brand-soft:#EAF1FD;

  --bg:        #FFFFFF;
  --bg-soft:   #F7F9FC;
  --line:      #E7EBF1;
  --line-soft: #EEF1F6;

  /* contrasting blue banner gradient */
  --grad-hero: linear-gradient(135deg, #0F2747 0%, #1B4CAB 58%, #2E7BD6 100%);

  --shadow-sm: 0 1px 2px rgba(15,39,71,.05);
  --shadow:    0 8px 30px rgba(15,39,71,.07);
  --shadow-md: 0 14px 40px rgba(15,39,71,.10);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --maxw:      1140px;

  --font-head: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(54px, 7vw, 92px) 0; }
[id] { scroll-margin-top: 96px; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 16px; color: var(--navy); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--ink-soft); }
.accent, .pop { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .97rem;
  padding: 13px 26px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s, border-color .2s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 44px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.36rem; color: var(--navy); }
.brand__sub { font-family: var(--font-head); font-weight: 500; font-size: .58rem; letter-spacing: .4em; color: var(--ink-soft); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--navy);
  padding: 9px 14px; border-radius: 8px; transition: background .2s, color .2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--brand); background: var(--bg-soft); }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 21px; height: 2.2px;
  background: var(--navy); border-radius: 2px; transform: translate(-50%, -50%); transition: .25s ease;
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after  { transform: translate(-50%, 6px); }
.nav__toggle.open span { background: transparent; }
.nav__toggle.open span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav__toggle.open span::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- Hero (contrasting blue banner) ---------- */
.hero { background: var(--grad-hero); color: #fff; }
.hero__inner { max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 7vw, 80px); }
.hero .eyebrow { color: #BFD7FF; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.025em; margin: 14px 0 18px; }
.hero h1 .pop { color: #84B6FF; }
.hero p.lead { color: #D3E2F7; max-width: 600px; margin: 0 auto 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.hero .btn--primary { background: #fff; color: var(--brand-dark); }
.hero .btn--primary:hover { background: #eaf1fd; color: var(--brand-dark); }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Trust / certifications ---------- */
.trust { border-top: 1px solid var(--line-soft); background: #fff; }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; padding: 30px 0; }
.trust__label { font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.cert-logo { height: 78px; width: auto; }
.cert-logo--sm { height: 54px; width: auto; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--brand); }
.stat__label { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7e1f0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.card__icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card__list { margin-top: 14px; display: grid; gap: 8px; }
.card__list li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink); }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 15px; height: 15px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card__link:hover svg { transform: translateX(4px); }

/* ---------- Split / panel ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.panel h3 { font-size: 1.2rem; margin-bottom: 10px; }
.panel p { color: var(--ink-soft); }
.checklist { display: grid; gap: 13px; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checklist li svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 28px 24px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step__num {
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--brand);
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* ---------- CTA ---------- */
.cta { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 60px); text-align: center; }
.cta h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.cta p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 26px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ---------- Forms ---------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy); }
.field label .req { color: #d6485f; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(38,100,216,.13);
}
.form-note { font-size: .84rem; color: var(--ink-soft); margin-top: 4px; }
.form-status { display:none; padding: 13px 16px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 6px; }
.form-status.show { display: block; }
.form-status.success { background: #e7f7ef; color: #137a55; border: 1px solid #b7e6d3; }
.form-status.error { background: #fdecee; color: #b23145; border: 1px solid #f5c6cd; }

/* ---------- Contact info ---------- */
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 15px; align-items: flex-start; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.info-item__icon { width: 46px; height: 46px; flex: none; border-radius: 11px; display:grid; place-items:center; background: var(--brand-soft); color:var(--brand); }
.info-item__icon svg { width: 22px; height: 22px; }
.info-item h3 { font-size: .98rem; margin-bottom: 2px; }
.info-item a, .info-item p { color: var(--ink-soft); font-size: .96rem; }
.info-item a:hover { color: var(--brand); }

/* ---------- Page hero (contrasting blue banner) ---------- */
.page-hero { background: var(--grad-hero); color: #fff; padding: clamp(50px, 7vw, 84px) 0; }
.page-hero__inner { max-width: 800px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: 13px; }
.page-hero h1 .pop { color: #84B6FF; }
.page-hero p { color: #D3E2F7; font-size: clamp(1.02rem, 1.7vw, 1.18rem); max-width: 620px; }
.breadcrumb { font-size: .84rem; color: #AFC6EC; margin-bottom: 14px; }
.breadcrumb a { color: #D8E6FB; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.45rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 58px 0 24px; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-about { margin: 16px 0; font-size: .94rem; color: var(--ink-soft); max-width: 320px; }
.footer-social { display:flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; background: var(--bg-soft); border:1px solid var(--line); display:grid; place-items:center; color: var(--brand); transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); color:#fff; }
.footer-social svg { width: 19px; height: 19px; }
.site-footer h4 { color: var(--navy); font-size: .98rem; margin-bottom: 15px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: var(--ink-soft); font-size: .94rem; }
.footer-links a:hover { color: var(--brand); }
.footer-contact li { display:flex; gap: 10px; align-items: flex-start; font-size:.94rem; margin-bottom: 11px; color: var(--ink-soft); }
.footer-contact svg { width: 17px; height: 17px; flex:none; color: var(--brand); margin-top: 3px; }
.footer-contact a { color: var(--ink-soft); } .footer-contact a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display:flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .87rem; color: var(--ink-soft); }
.footer-bottom a { color: var(--ink-soft); } .footer-bottom a:hover { color: var(--brand); }

/* ===================================================================
   Entrance animation — ALWAYS ends visible. No JS required.
=================================================================== */
@keyframes rsoftFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: rsoftFadeUp .6s ease both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
.reveal.d4 { animation-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px 24px 24px; gap: 2px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; z-index: 99;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav__cta { margin: 8px 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav__toggle { display: block; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .trust__inner { flex-direction: column; gap: 14px; }
}
@media (max-width: 430px) {
  .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__cta, .cta__btns { flex-direction: column; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color:#fff; padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; color:#fff; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------- Print ---------- */
@media print { .reveal { animation: none; } .site-header { position: static; } }
