/* =====================================================
   RIVAYA — MAIN STYLESHEET v3.0
   rivaya.com.au | Rivaya Pty Ltd ABN 14 697 212 669
   Clean, SaaS-premium, Inter-based design
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  /* Colours */
  --navy:       #0a0f1e;
  --navy-2:     #111827;
  --navy-3:     #1e293b;
  --accent:     #0052cc;
  --accent-h:   #003fa3;
  --accent-pale:#eff4ff;
  --body:       #374151;
  --muted:      #6b7280;
  --subtle:     #9ca3af;
  --white:      #ffffff;
  --surface:    #f8fafc;
  --surface-2:  #f1f5f9;
  --border:     #e2e8f0;
  --border-d:   rgba(255,255,255,0.10);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: 96px;
  --container:   1200px;

  /* Radius */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  /* Transitions */
  --ease: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--body); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
svg { display: block; }

/* ─── LAYOUT ─── */
.rv-container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.rv-container--sm { max-width: 860px; margin: 0 auto; padding: 0 40px; }
.rv-section { padding: var(--section-pad) 40px; }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4,h5 {
  font-family: var(--font);
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 44px); font-weight: 700; }
h3 { font-size: clamp(16px, 1.8vw, 20px); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 16px; font-weight: 600; }
p  { line-height: 1.75; color: var(--body); }

/* Tabular numerals for stats */
.rv-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Label / eyebrow */
.rv-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.rv-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}
.rv-label--light { color: rgba(255,255,255,0.55); }
.rv-label--light::before { background: rgba(255,255,255,0.4); }

/* Section title block */
.rv-head { margin-bottom: 56px; }
.rv-head h2 { margin-bottom: 14px; }
.rv-head p { font-size: 17px; color: var(--muted); max-width: 520px; font-weight: 300; }
.rv-head--center { text-align: center; }
.rv-head--center p { margin: 0 auto; }
.rv-head--light h2 { color: var(--white); }
.rv-head--light p { color: rgba(255,255,255,0.65); }
.rv-head--light .rv-label { color: rgba(255,255,255,0.55); }
.rv-head--light .rv-label::before { background: rgba(255,255,255,0.4); }

/* ─── BUTTONS ─── */
.rv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.rv-btn svg { flex-shrink: 0; transition: transform var(--ease); }
.rv-btn:hover svg { transform: translateX(3px); }

.rv-btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.rv-btn--primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,82,204,0.28);
}
.rv-btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.rv-btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.rv-btn--ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.22);
}
.rv-btn--ghost-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
}
.rv-btn--lg { padding: 16px 32px; font-size: 15px; }

/* ─── NAV ─── */
#rv-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background var(--ease), box-shadow var(--ease), border-color var(--ease);
  padding: 0 40px;
  border-bottom: 1px solid transparent;
}
#rv-nav.is-scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
}
.rv-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.rv-nav-logo {
  display: block;
  height: 36px;
  flex-shrink: 0;
  line-height: 0;
}
.rv-nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}
/* Logo switching — display based, no opacity/filter */
.rv-nav-logo .logo-dark  { display: none; }
.rv-nav-logo .logo-light { display: block; }
#rv-nav.is-scrolled .rv-nav-logo .logo-light { display: none; }
#rv-nav.is-scrolled .rv-nav-logo .logo-dark  { display: block; }

.rv-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.rv-nav-links > a,
.rv-nav-links > .rv-has-drop > a {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.80);
  padding: 7px 13px;
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
  display: block;
}
.rv-nav-links > a:hover,
.rv-nav-links > .rv-has-drop > a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.09);
}
#rv-nav.is-scrolled .rv-nav-links > a,
#rv-nav.is-scrolled .rv-nav-links > .rv-has-drop > a {
  color: var(--muted);
}
#rv-nav.is-scrolled .rv-nav-links > a:hover,
#rv-nav.is-scrolled .rv-nav-links > .rv-has-drop > a:hover {
  color: var(--navy);
  background: var(--surface);
}
.rv-nav-cta {
  margin-left: 8px;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 9px 20px !important;
  border-radius: var(--r) !important;
  background: var(--accent) !important;
  color: var(--white) !important;
  border: 1.5px solid var(--accent);
  transition: all var(--ease) !important;
}
.rv-nav-cta:hover {
  background: var(--accent-h) !important;
  border-color: var(--accent-h) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,82,204,0.30) !important;
}

/* Services dropdown */
.rv-has-drop { position: relative; }
.rv-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  min-width: 300px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 600;
}
.rv-has-drop:hover .rv-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.rv-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--navy) !important;
  background: transparent !important;
  transition: background var(--ease) !important;
}
.rv-dropdown a:hover { background: var(--surface) !important; }
.rv-dd-icon {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.rv-dd-label strong { display: block; font-weight: 500; color: var(--navy); line-height: 1.3; }
.rv-dd-label span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

/* Mobile burger */
.rv-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.rv-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}
#rv-nav.is-scrolled .rv-burger span { background: var(--navy); }
.rv-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rv-burger.is-open span:nth-child(2) { opacity: 0; }
.rv-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.rv-mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 40px 28px;
  z-index: 499;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.rv-mobile-nav.is-open { display: block; }
.rv-mobile-nav a {
  display: block;
  padding: 11px 0;
  font-size: 15px;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.rv-mobile-nav a:last-child { border: none; }
.rv-mobile-nav .rv-btn--primary { margin-top: 16px; width: 100%; justify-content: center; }

/* ─── PAGE HERO (inner pages) ─── */
.rv-page-hero {
  background: var(--navy);
  padding: 140px 40px 80px;
  position: relative;
  overflow: hidden;
}
.rv-page-hero-inner { max-width: var(--container); margin: 0 auto; position: relative; z-index: 1; }
.rv-page-hero h1 { color: var(--white); margin-bottom: 16px; max-width: 700px; }
.rv-page-hero p { color: rgba(255,255,255,0.65); font-size: 18px; font-weight: 300; max-width: 560px; line-height: 1.75; }
/* Subtle dot pattern */
.rv-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ─── HOMEPAGE HERO ─── */
.rv-hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.rv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
/* Single subtle accent glow — top right only */
.rv-hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,82,204,0.14) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  pointer-events: none;
}
.rv-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: center;
}
.rv-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 24px;
  opacity: 0;
  animation: rv-up 0.6s ease 0.1s forwards;
}
.rv-hero-tag::before { content: ''; width: 18px; height: 1.5px; background: rgba(255,255,255,0.35); }
.rv-hero h1,
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 22px;
  max-width: 700px;
  /* No flex, no italic, no large letter-spacing */
  display: block;
  font-style: normal;
  opacity: 0;
  animation: rv-up 0.6s ease 0.25s forwards;
}
.rv-hero-sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.80;
  color: rgba(255,255,255,0.62);
  max-width: 640px;
  margin-bottom: 40px;
  opacity: 0;
  animation: rv-up 0.6s ease 0.40s forwards;
}
.rv-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rv-up 0.6s ease 0.55s forwards;
}
.rv-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  animation: rv-up 0.6s ease 0.70s forwards;
}
.rv-hero-stat-n {
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}
.rv-hero-stat-l { font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 0.03em; }

/* Hero right: credential cards */
.rv-hero-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: rv-fade 0.6s ease 1.0s forwards;
}
.rv-cred-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  transition: border-color var(--ease);
}
.rv-cred-card:hover { border-color: rgba(255,255,255,0.2); }
.rv-cred-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(0,82,204,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.rv-cred-card strong { display: block; font-size: 13px; font-weight: 500; color: var(--white); }
.rv-cred-card span { display: block; font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 1px; }

/* ─── TRUST BAR ─── */
.rv-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 40px;
  background: var(--white);
}
.rv-trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.rv-trust-label { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--subtle); white-space: nowrap; }
.rv-trust-items { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.rv-trust-item {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b0b8c8;
  transition: color var(--ease);
}
.rv-trust-item:hover { color: var(--navy); }

/* ─── SERVICES GRID ─── */
.rv-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 56px;
}
.rv-svc-card {
  background: var(--white);
  padding: 36px 32px;
  transition: background var(--ease);
  position: relative;
}
.rv-svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.rv-svc-card:hover { background: var(--surface); }
.rv-svc-card:hover::after { transform: scaleX(1); }
.rv-svc-num { font-size: 11px; font-weight: 600; color: var(--subtle); letter-spacing: 0.08em; display: block; margin-bottom: 20px; }
.rv-svc-icon { font-size: 24px; margin-bottom: 16px; }
.rv-svc-title { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 10px; letter-spacing: -0.015em; }
.rv-svc-desc { font-size: 13.5px; color: var(--muted); line-height: 1.70; margin-bottom: 20px; }
.rv-svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  letter-spacing: 0.01em;
}
.rv-svc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--ease);
}
.rv-svc-link:hover { gap: 8px; }

/* ─── WHY RIVAYA ─── */
.rv-dark-section { background: var(--navy); }
.rv-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 56px;
}
.rv-why-card {
  background: var(--navy-2);
  padding: 36px;
  transition: background var(--ease);
}
.rv-why-card:hover { background: var(--navy-3); }
.rv-why-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.rv-why-title { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 9px; letter-spacing: -0.015em; }
.rv-why-desc { font-size: 14px; color: rgba(255,255,255,0.50); line-height: 1.70; }

/* ─── CASE STUDIES GRID ─── */
.rv-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.rv-case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
.rv-case-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-3px); }
.rv-case-head {
  background: var(--navy);
  padding: 32px;
  min-height: 140px;
}
.rv-case-sector { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); display: block; margin-bottom: 10px; }
.rv-case-title { font-size: 19px; font-weight: 600; color: var(--white); line-height: 1.3; letter-spacing: -0.015em; }
.rv-case-body { padding: 24px 32px; }
.rv-case-result-n { font-size: 38px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.rv-case-result-n em { font-style: normal; color: var(--accent); }
.rv-case-result-l { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.rv-case-desc { font-size: 13.5px; color: var(--body); line-height: 1.70; }
.rv-case-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }

/* ─── PROCESS STEPS ─── */
.rv-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.rv-steps::before {
  content: '';
  position: absolute;
  top: 24px; left: 10%; right: 10%;
  height: 1px;
  background: var(--border);
}
.rv-step { padding: 0 20px; text-align: center; }
.rv-step-dot {
  width: 48px; height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--white);
  margin: 0 auto 20px;
  position: relative; z-index: 1;
  transition: all var(--ease);
}
.rv-step:hover .rv-step-dot {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,82,204,0.25);
}
.rv-step-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.rv-step-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── USE CASES ─── */
.rv-uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.rv-uc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}
.rv-uc-card:hover { border-color: var(--accent); box-shadow: 0 8px 28px rgba(0,82,204,0.08); }
.rv-uc-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--accent-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.rv-uc-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 9px; letter-spacing: -0.01em; }
.rv-uc-desc { font-size: 13.5px; color: var(--muted); line-height: 1.70; flex: 1; }
.rv-uc-link { margin-top: 20px; font-size: 13px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; transition: gap var(--ease); }
.rv-uc-link:hover { gap: 8px; }
.rv-uc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ─── TESTIMONIALS ─── */
.rv-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.rv-testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: box-shadow var(--ease);
}
.rv-testi-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.07); }
.rv-testi-quote { font-size: 28px; color: var(--accent); line-height: 1; margin-bottom: 14px; font-family: Georgia, serif; }
.rv-testi-text { font-size: 14.5px; line-height: 1.75; color: var(--body); margin-bottom: 22px; font-style: italic; font-weight: 300; }
.rv-testi-author { display: flex; align-items: center; gap: 11px; }
.rv-testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--white);
  flex-shrink: 0;
}
.rv-testi-name { font-size: 13px; font-weight: 500; color: var(--navy); }
.rv-testi-role { font-size: 12px; color: var(--muted); }

/* ─── CTA BAND ─── */
.rv-cta-band {
  background: var(--navy);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rv-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.rv-cta-band-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.rv-cta-band h2 { color: var(--white); margin-bottom: 14px; }
.rv-cta-band p { color: rgba(255,255,255,0.60); font-size: 17px; font-weight: 300; margin-bottom: 32px; }
.rv-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── CONTACT ─── */
.rv-contact-section { background: var(--navy); padding: var(--section-pad) 40px; }
.rv-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; max-width: var(--container); margin: 0 auto; }
.rv-contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.rv-contact-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.rv-contact-lbl { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.40); margin-bottom: 2px; }
.rv-contact-val { font-size: 14px; color: rgba(255,255,255,0.75); }
.rv-contact-val a { color: rgba(100,180,255,0.85); }
.rv-contact-val a:hover { color: #64b4ff; }

/* Contact form */
.rv-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 36px;
}
.rv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rv-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rv-form-group label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.rv-form-group input,
.rv-form-group select,
.rv-form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--white);
  transition: border-color var(--ease), background var(--ease);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.rv-form-group input::placeholder,
.rv-form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.rv-form-group select { color: rgba(255,255,255,0.65); cursor: pointer; }
.rv-form-group select option { background: var(--navy-2); color: var(--white); }
.rv-form-group input:focus,
.rv-form-group select:focus,
.rv-form-group textarea:focus {
  border-color: rgba(0,82,204,0.7);
  background: rgba(0,82,204,0.07);
  box-shadow: 0 0 0 3px rgba(0,82,204,0.14);
}
.rv-form-group textarea { resize: vertical; min-height: 110px; }
.rv-form-submit {
  width: 100%; padding: 14px; border-radius: var(--r);
  background: var(--accent); color: var(--white); border: none;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.rv-form-submit:hover { background: var(--accent-h); box-shadow: 0 6px 20px rgba(0,82,204,0.30); }
.rv-form-note { font-size: 12px; color: rgba(255,255,255,0.35); text-align: center; margin-top: 10px; }
.rv-form-success { display: none; text-align: center; padding: 20px; color: #4ade80; font-size: 15px; }

/* ─── ABOUT ─── */
.rv-about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.rv-about-visual {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: relative;
}
.rv-about-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}
.rv-about-name { font-family: var(--font); font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; margin-bottom: 4px; }
.rv-about-role { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 28px; }
.rv-about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-about-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  padding: 14px;
}
.rv-about-stat-n { font-size: 26px; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.rv-about-stat-n em { font-style: normal; color: #60a5fa; }
.rv-about-stat-l { font-size: 11px; color: rgba(255,255,255,0.40); letter-spacing: 0.03em; }
.rv-about-certs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.rv-about-cert {
  font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
  background: rgba(0,82,204,0.20); color: #93c5fd;
  border: 1px solid rgba(0,82,204,0.30);
}
.rv-about-body p { font-size: 15.5px; line-height: 1.80; color: var(--body); margin-bottom: 17px; }
.rv-about-points { display: flex; flex-direction: column; gap: 13px; margin-top: 24px; }
.rv-about-point { display: flex; gap: 12px; align-items: flex-start; }
.rv-about-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.rv-about-point-text { font-size: 14.5px; color: var(--body); line-height: 1.65; }
.rv-about-point-text strong { font-weight: 500; color: var(--navy); }

/* ─── BLOG / INSIGHTS ─── */
.rv-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rv-post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
}
.rv-post-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }
.rv-post-thumb {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}
.rv-post-thumb-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.rv-post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.rv-post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rv-post-cat { font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.rv-post-read { font-size: 11px; color: var(--subtle); }
.rv-post-title { font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: 8px; letter-spacing: -0.01em; }
.rv-post-title a { color: inherit; }
.rv-post-title a:hover { color: var(--accent); }
.rv-post-excerpt { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }
.rv-post-footer { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.rv-post-date { font-size: 11px; color: var(--subtle); }
.rv-post-more { font-size: 12px; font-weight: 500; color: var(--accent); display: flex; align-items: center; gap: 4px; }

/* Single post / case study content */
.rv-prose h2 { font-size: 24px; margin: 36px 0 13px; }
.rv-prose h3 { font-size: 19px; margin: 28px 0 10px; }
.rv-prose p { font-size: 16px; line-height: 1.82; margin-bottom: 18px; color: var(--body); }
.rv-prose ul, .rv-prose ol { padding-left: 22px; margin-bottom: 18px; }
.rv-prose li { margin-bottom: 7px; line-height: 1.75; font-size: 15.5px; }
.rv-prose ul li { list-style: disc; }
.rv-prose ol li { list-style: decimal; }
.rv-prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 28px 0;
  padding: 14px 22px;
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--navy-3);
}
.rv-prose a { color: var(--accent); }
.rv-prose strong { font-weight: 600; color: var(--navy); }
.rv-prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 3px; font-size: 13px; font-family: monospace; }
.rv-prose pre { background: var(--navy); color: rgba(255,255,255,0.80); padding: 20px; border-radius: var(--r-sm); overflow-x: auto; margin-bottom: 20px; font-size: 13px; line-height: 1.65; }
.rv-prose img { border-radius: var(--r-sm); margin: 24px 0; }

/* ─── FOOTER ─── */
#rv-footer {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 40px 28px;
}
.rv-footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}
.rv-footer-logo { display: block; height: 32px; width: auto; margin-bottom: 14px; }
.rv-footer-tagline { font-size: 13px; color: rgba(255,255,255,0.40); line-height: 1.70; max-width: 260px; margin-bottom: 16px; }
.rv-footer-abn { font-size: 11px; color: rgba(255,255,255,0.22); letter-spacing: 0.04em; }
.rv-footer-col h5 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(255,255,255,0.40);
  margin-bottom: 14px;
}
.rv-footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.rv-footer-col a { font-size: 13px; color: rgba(255,255,255,0.50); transition: color var(--ease); }
.rv-footer-col a:hover { color: var(--white); }
.rv-footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.rv-footer-copy { font-size: 12px; color: rgba(255,255,255,0.22); }
.rv-footer-links { display: flex; gap: 20px; }
.rv-footer-links a { font-size: 12px; color: rgba(255,255,255,0.22); transition: color var(--ease); }
.rv-footer-links a:hover { color: rgba(255,255,255,0.50); }

/* ─── SCROLL REVEAL ─── */
.rv-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.60s ease, transform 0.60s ease; }
.rv-reveal.rv-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }

/* ─── ANIMATIONS ─── */
@keyframes rv-up   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }

/* ─── PAGINATION ─── */
.rv-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.rv-pagination a, .rv-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); color: var(--navy); transition: all var(--ease);
}
.rv-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.rv-pagination .current { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ─── BREADCRUMBS ─── */
.rv-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.40);
  margin-bottom: 20px;
}
.rv-breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--ease); }
.rv-breadcrumb a:hover { color: rgba(255,255,255,0.80); }
.rv-breadcrumb span { color: rgba(255,255,255,0.55); }

/* ─── SIDEBAR ─── */
.rv-sidebar-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.rv-sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.rv-sidebar-box h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px; }
.rv-sidebar-box-dark {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 24px;
}
.rv-sidebar-box-dark h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.40); margin-bottom: 14px; }

/* ─── 404 ─── */
.rv-404 {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
}
.rv-404::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.rv-404-inner { position: relative; z-index: 1; max-width: 560px; }
.rv-404-num {
  font-size: clamp(100px, 18vw, 180px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  opacity: 0.08;
  letter-spacing: -0.04em;
  margin-bottom: -40px;
  display: block;
}
.rv-404-inner h1 { color: var(--white); margin-bottom: 14px; font-size: clamp(28px, 4vw, 44px); }
.rv-404-inner p { color: rgba(255,255,255,0.55); margin-bottom: 36px; font-size: 17px; font-weight: 300; }

/* ─── FILTER BAR ─── */
.rv-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.rv-filter-btn {
  padding: 8px 18px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: all var(--ease);
  font-family: var(--font);
}
.rv-filter-btn:hover, .rv-filter-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
}

/* ─── SERVICE DETAIL LAYOUT ─── */
.rv-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.rv-outcome-list { display: flex; flex-direction: column; gap: 11px; }
.rv-outcome-item { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--body); line-height: 1.60; }
.rv-outcome-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .rv-hero-inner { grid-template-columns: 1fr; }
  .rv-hero-cards { display: none; }
  .rv-about-grid { grid-template-columns: 1fr; gap: 48px; }
  .rv-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .rv-detail-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .rv-container, .rv-container--sm, .rv-section { padding-left: 20px; padding-right: 20px; }
  #rv-nav { padding: 0 20px; }
  .rv-nav-links { display: none; }
  .rv-burger { display: flex; }
  .rv-hero { padding: 110px 20px 60px; }
  .rv-page-hero { padding: 120px 20px 60px; }
  .rv-services-grid { grid-template-columns: 1fr; }
  .rv-why-grid { grid-template-columns: 1fr; }
  .rv-cases-grid { grid-template-columns: 1fr; }
  .rv-uc-grid { grid-template-columns: 1fr; }
  .rv-testi-grid { grid-template-columns: 1fr; }
  .rv-blog-grid { grid-template-columns: 1fr; }
  .rv-steps { grid-template-columns: 1fr 1fr; gap: 36px; }
  .rv-steps::before { display: none; }
  .rv-contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .rv-form-row { grid-template-columns: 1fr; }
  .rv-footer-grid { grid-template-columns: 1fr 1fr; }
  .rv-footer-bottom { flex-direction: column; text-align: center; }
  .rv-trust-inner { gap: 16px; }
  .rv-cta-band { padding: 56px 20px; }
  .rv-contact-section { padding: 64px 20px; }
}
@media (max-width: 480px) {
  h1 { font-size: 34px; }
  .rv-hero-stats { gap: 20px; flex-wrap: wrap; }
  .rv-hero-actions, .rv-cta-btns { flex-direction: column; }
  .rv-btn { width: 100%; justify-content: center; }
  .rv-steps { grid-template-columns: 1fr; }
  .rv-footer-grid { grid-template-columns: 1fr; }
  .rv-form-wrap { padding: 22px 16px; }
}

/* ─── PATCH v3.1 — Active nav, hover lifts, counter animation ─── */

/* Active nav item — current page highlight */
#rv-nav .rv-nav-links > a.current-page,
#rv-nav .rv-nav-links > a[aria-current="page"] {
  font-weight: 500;
}
#rv-nav.is-scrolled .rv-nav-links > a.current-page,
#rv-nav.is-scrolled .rv-nav-links > a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}
#rv-nav:not(.is-scrolled) .rv-nav-links > a.current-page,
#rv-nav:not(.is-scrolled) .rv-nav-links > a[aria-current="page"] {
  color: var(--white);
  background: rgba(255,255,255,0.10);
  border-radius: var(--r-sm);
}

/* Hover lift — service cards */
.rv-svc-card {
  transition: background var(--ease), transform 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.22s cubic-bezier(.4,0,.2,1);
}
.rv-svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}

/* Hover lift — use case cards */
.rv-uc-card {
  transition: border-color var(--ease), box-shadow var(--ease), transform 0.22s cubic-bezier(.4,0,.2,1);
}
.rv-uc-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0,82,204,0.10);
}

/* Hover lift — why/value cards */
.rv-why-card {
  transition: background var(--ease), transform 0.22s cubic-bezier(.4,0,.2,1);
}
.rv-why-card:hover {
  transform: translateY(-3px);
}

/* Counter number animation */
.rv-counter {
  display: inline-block;
}
@keyframes rv-count-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.rv-counter.is-counted {
  animation: rv-count-in 0.4s ease forwards;
}

/* Smooth underline on footer links */
.rv-footer-col a {
  position: relative;
  transition: color var(--ease);
}
.rv-footer-col a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.40);
  transition: width 0.25s ease;
}
.rv-footer-col a:hover::after { width: 100%; }

/* Subtle separator line between nav items on scroll */
#rv-nav.is-scrolled .rv-has-drop > a {
  border-right: 1px solid var(--border);
  padding-right: 16px;
  margin-right: 4px;
}

/* Trust bar items — subtle hover */
.rv-trust-item {
  transition: color var(--ease);
  cursor: default;
}
.rv-trust-item:hover { color: var(--navy); }

