/* Shared styles for rivzzo.com inner pages (About, FAQ, and guides to come).
   Tokens, nav and footer mirror index.html; keep them in step when the homepage changes.
   The homepage keeps its own inline styles. */

@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/NotoSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/NotoSans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/NotoSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/NotoSans-Bold.woff2') format('woff2'); }

:root {
  --navy: #13448a;
  --navy-hover: #0f3a76;
  --dark-bg: #191d2b;
  --peri: #5d6cdb;
  --peri-120: #4b57b2;
  --peri-80: #7d89e2;
  --sky: #b2e4ff;
  --sky-40: #e0f4ff;
  --sky-20: #e8f7ff;
  --success-bg: #d8f3e8;  --success-ink: #007a4b;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f2f2f2;
  --gray-200: #e6e6e6;
  --gray-300: #d5d7d7;
  --gray-400: #acaeaf;
  --gray-500: #646a6c;
  --gray-600: #494e50;
  --gray-700: #3a4042;
  --gray-800: #293032;
  --gray-900: #080826;
  --font: 'Noto Sans', 'Noto Sans Devanagari', 'Noto Sans Kannada', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { font-family: var(--font); color: var(--gray-800); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.prose a, .text-link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .text-link:hover { color: var(--navy-hover); }

/* ---------- Navigation (same as the homepage) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0; transition: background .4s ease, box-shadow .4s ease, padding .4s ease; }
.nav.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 20px rgba(12,47,99,.08); padding: 6px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 56px; transition: height .4s ease; }
.nav.scrolled .nav-logo img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--gray-600); letter-spacing: .01em; white-space: nowrap; transition: color .3s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-cta { background: var(--navy); color: var(--white) !important; padding: 10px 24px; border-radius: 50px; font-weight: 600 !important; font-size: .85rem !important; letter-spacing: .02em; transition: background .3s ease, transform .2s ease, box-shadow .3s ease; }
.nav-cta:hover { background: var(--navy-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(19,68,138,.3); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; }
@media (max-width: 1199px) { .nav-links { gap: 20px; } }
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px 24px; box-shadow: 0 20px 40px rgba(0,0,0,.08); border-radius: 0 0 20px 20px; }
}
@media (max-width: 768px) { .nav-logo img { height: 48px; } }

/* ---------- Page hero ---------- */
/* White hero and white / gray-50 section bands, as on the homepage. No gradients. */
.page-hero { padding: 150px 0 72px; background: var(--white); }
.crumbs { font-size: .85rem; color: var(--gray-500); margin-bottom: 20px; }
.crumbs a { color: var(--navy); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--sky-40); color: var(--navy-hover); padding: 8px 18px; border-radius: 50px; font-size: .82rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 22px; }
.badge .dot { width: 8px; height: 8px; background: var(--peri); border-radius: 50%; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.15; color: var(--gray-900); margin-bottom: 20px; }
.page-hero .lede { font-size: 1.15rem; color: var(--gray-500); max-width: 720px; line-height: 1.8; }
.page-hero .meta { margin-top: 16px; font-size: .88rem; color: var(--gray-500); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--gray-50); }
.section-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--peri-120); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--gray-900); line-height: 1.2; margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); max-width: 620px; margin-bottom: 48px; }
.prose p { font-size: 1.05rem; color: var(--gray-600); margin-bottom: 16px; max-width: 640px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 20px; padding: 28px; box-shadow: 0 10px 40px rgba(12,47,99,.05); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.icon-tile { width: 52px; height: 52px; flex: none; background: var(--sky-20); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.icon-tile svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); line-height: 1.3; margin: 16px 0 8px; }
.card p { font-size: .95rem; color: var(--gray-600); line-height: 1.65; }
.card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-400); margin-top: 16px; }
.card small + h3 { margin-top: 4px; }
.role-list { display: grid; gap: 16px; }
.role-row { display: flex; gap: 16px; align-items: flex-start; }
.role-row h3 { margin: 0 0 2px; font-size: 1.05rem; }
.role-row small { margin: 0; }

/* ---------- Steps (same as the homepage) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 48px; left: calc(12.5% + 20px); right: calc(12.5% + 20px); height: 2px; background: linear-gradient(90deg, var(--sky), var(--peri-80), var(--sky)); }
.step-card { text-align: center; position: relative; z-index: 1; }
.step-number { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sky-20); border: 3px solid var(--sky); color: var(--navy); }
.step-number svg { width: 36px; height: 36px; }
.step-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.step-card p { font-size: .92rem; color: var(--gray-500); line-height: 1.7; max-width: 300px; margin: 0 auto; }
.trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.trust-row .card { display: flex; gap: 16px; align-items: flex-start; }
.trust-row .card h3 { margin: 0 0 6px; font-size: 1.05rem; }

/* ---------- People and facts ---------- */
.person { display: flex; gap: 16px; align-items: center; }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.avatar.pale { background: var(--sky-20); color: var(--navy); }
.person h3 { margin: 0 0 2px; }
.person p { font-size: .9rem; color: var(--gray-500); }
.facts-card { margin-top: 32px; }
.facts { display: grid; grid-template-columns: 220px 1fr; }
.facts dt, .facts dd { padding: 14px 0; border-top: 1px solid var(--gray-100); }
.facts dt:first-of-type, .facts dd:first-of-type { border-top: 0; padding-top: 0; }
.facts dt { font-weight: 600; color: var(--gray-900); font-size: .95rem; }
.facts dd { color: var(--gray-600); font-size: .95rem; }
.facts dd a { color: var(--navy); font-weight: 600; }
.facts dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 20px; font-size: .9rem; color: var(--gray-500); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.faq-toc { position: sticky; top: 110px; display: grid; gap: 4px; }
.faq-toc p { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 8px; }
.faq-toc a { display: block; padding: 10px 14px; border-radius: 12px; font-size: .95rem; font-weight: 500; color: var(--gray-600); transition: background .2s ease, color .2s ease; }
.faq-toc a:hover { background: var(--sky-20); color: var(--navy); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { display: flex; align-items: center; gap: 14px; font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin-bottom: 20px; }
.faq-group h2 .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.faq-group h2 .icon-tile svg { width: 20px; height: 20px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item[open] { border-color: var(--sky); box-shadow: 0 10px 30px rgba(12,47,99,.06); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.05rem; font-weight: 600; color: var(--gray-900); line-height: 1.4; }
.faq-item summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-20) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313448a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease-out-expo); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 22px; }
.faq-item .answer p { font-size: .98rem; color: var(--gray-600); line-height: 1.7; max-width: 680px; }
.faq-item .answer a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Call to action band ---------- */
.cta-band { padding: 96px 0; background: var(--gray-50); text-align: center; }
.cta-band .section-title { max-width: 620px; margin: 0 auto 14px; }
.cta-band .section-subtitle { margin: 0 auto 32px; max-width: 520px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 32px; border-radius: 16px; font-weight: 600; font-size: 1rem; transition: background .3s ease, transform .2s ease, box-shadow .3s ease; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(19,68,138,.3); }
.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--sky); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .contact { margin-top: 24px; font-size: .92rem; color: var(--gray-500); }
.cta-band .contact a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Footer (same as the homepage) ---------- */
.footer { padding: 60px 0 40px; background: var(--dark-bg); color: var(--gray-400); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-tagline, .footer-about { font-size: .82rem; color: var(--gray-400); margin-top: 6px; max-width: 460px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; list-style: none; max-width: 640px; }
.footer-links a { font-size: .85rem; color: var(--gray-400); white-space: nowrap; transition: color .3s ease; }
.footer-links a:hover { color: var(--white); }
.footer-contact { margin: 32px 0; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-contact h2 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.footer-contact p { font-size: .9rem; line-height: 1.7; margin-bottom: 10px; }
.footer-contact a { font-size: 1rem; font-weight: 600; color: var(--white); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-office h2 { font-size: .85rem; font-weight: 600; color: var(--gray-300); margin-bottom: 8px; }
.footer-office address { font-style: normal; font-size: .85rem; line-height: 1.8; color: var(--gray-400); }
.footer-office strong { font-weight: 500; color: var(--gray-200); }
.footer-social { display: flex; justify-content: center; gap: 14px; list-style: none; margin-top: 32px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); color: var(--gray-400); transition: color .3s ease, border-color .3s ease, background .3s ease; }
.footer-social a:hover { color: var(--white); border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.footer-social svg { width: 18px; height: 18px; }
.footer-copy { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); font-size: .78rem; color: var(--gray-400); }
.footer-copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-toc p { width: 100%; margin-bottom: 0; }
  .faq-toc a { background: var(--white); border: 1px solid var(--gray-200); padding: 8px 14px; border-radius: 50px; font-size: .88rem; }
}
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 48px; }
  .section, .cta-band { padding: 72px 0; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps-grid::before { display: none; }
  .trust-row { grid-template-columns: 1fr; margin-top: 48px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; }
  .facts dd { border-top: 0; padding-top: 2px; }
  .facts dd:first-of-type { padding-top: 2px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
  .footer-office, .footer-contact { text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .faq-item summary { padding: 18px 18px; }
  .faq-item .answer { padding: 0 18px 20px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
